blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
9b380b9609b1d0d72a2e283bfa1a30b164347a92 | 703 | #!/bin/bash
set -e
set -x
# Set up the Phabricator code base
mkdir /srv/phabricator
cd /srv/phabricator
git clone --depth=1 https://github.com/phacility/libphutil.git /srv/phabricator/libphutil
git clone --depth=1 https://github.com/phacility/arcanist.git /srv/phabricator/arcanist
git clone --depth=1 https://github.c... |
7c97a084bc63830a5b3b4ecf2dc1b654aa7eacd2 | 668 | #
#####################
#--> SVN POST DOWNLOAD
#####################
#default download.sh : populate source path via svn
if [ -e "./src/.svn" ]
then
cd src
CURRENT=$(svn info --show-item revision)
local_log "current status 'HEAD' ${CURRENT}"
if [ "${REVISION}" == "HEAD" ]
then
verify_stor... |
ec58bdf58f5beb9b1cbf89085c03148681f00d70 | 312 | #!/usr/bin/env bash
set -e
# vue redefine JSX which incompatible with react JSX
file=packages/vue/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts
# Don't use alias due to unbuntu (CI) can't recognize.
if [ $(uname) == 'Darwin' ]
then
sed -i '' 's/JSX/_VUE_/' $file
else
sed -i 's/JSX/_VUE_/' $file
fi
|
3107a46f5d8272e646ae788dddc6c1a622d0a93c | 240 | #!/bin/bash
Rscript ../analysis/merge_results.R 9_pre_test_or-cond0-trials-round1.csv f 9_pre_test_or-cond0-trials-round2.csv f 9_pre_test_or-cond1-trials-round1.csv m 9_pre_test_or-cond1-trials-round2.csv m > 9_pre_test_or-trials.csv
|
d3076c464a42acb7e53bbbaaf59f114c9dda07fc | 272 | #!/bin/sh
echo "
all:
gcc -o helloworld helloworld.c
install:
mkdir -p \$(DESTDIR)/usr/bin
cp helloworld \$(DESTDIR)/usr/bin
chmod a+x \$(DESTDIR)/usr/bin/helloworld
clean:
rm -f helloworld
" > Makefile
srcdir=`dirname $0`
ln -s ${srcdir}/helloworld.c
echo "DONE"
|
afe834bc69091bef23a3fbbd33bf7abf80441f65 | 93 | #!/bin/bash
git pull origin master
git add .
git commit -m "update"
git push origin master
|
30ab1bfb9f73cca97cebcf426e5354fe81ba4172 | 70 | #!/bin/bash
dig @resolver1.opendns.com ANY myip.opendns.com +short -4
|
625cf5e9ee3d2e586428bc919b19a274641e8ec2 | 233 | #!/bin/bash
#
# Basic facter for KNAF
#
# (C) 2015 Mike Baehr
#
# This is free software: see COPYING for terms/conditions
if [ -n "$FACTS" ]; then
find $FACTS -maxdepth 1 ! -type d | sort | while read FACT; do
$FACT
done
fi
|
8725d589af9d768579ae3d495b9c500133509828 | 888 | #!/bin/sh
echo "I:" > /dev/lcd1202
echo "L1:" > /dev/lcd1202
sleep 3
echo "L0:" > /dev/lcd1202
sleep 3
#-----------
echo "GH:" > /dev/lcd1202
#-----------
echo "PC:t" > /dev/lcd1202
echo "PC:e" > /dev/lcd1202
echo "PC:s" > /dev/lcd1202
echo "PC:t" > /dev/lcd1202
sleep 10
#-----------
echo "DR:" > /d... |
a960162b70cd49e21f3e9163f1d9986d78e2dc94 | 91 | #!/bin/bash
mvn --file jarvis package -DskipTests
java -jar jarvis/target/jarvis-1.0.jar $* |
ef3da2b4f409da46b00e6f77ed4201043a46fd41 | 115 | #!/usr/bin/env bash
modified_files=$(terraform fmt -recursive)
for f in ${modified_files}
do
git add "$f"
done
|
564259c5c49f912f1a693f41067472b2e043c271 | 73 | #!/bin/bash
set -euo pipefail
cd js
npm run build-dev
cd ..
revel run
|
ac12ee6e613b1e79dd8918ed79df7091455d9953 | 354 | #!/bin/sh
# @source https://gist.github.com/gurdiga/4143516
# Use like this:
#
# minify-js.sh < app.js > app.min.js
#
curl -s \
-d compilation_level=SIMPLE_OPTIMIZATIONS \
-d output_format=text \
-d output_info=compiled_code \
-d charset=utf-8 \
--data-urlencode "js_code@-" \
http://clo... |
a3daf1c51fdcbc1531355ac1c094589c2907c681 | 44 | #!/bin/bash
gcc -lpthread liczby_pierwsze.c
|
4212c4fe9cd640349bd64eeec1ac95c939edbe88 | 67 | clear
gcc -std=c++11 \
sender.cc test.cc \
-o out \
-lws2_32
./out
|
bb71a326530cfa9deafc65c58b40f4144138519f | 118 | DEVICE_NAME="cepheus"
TGNAME="DarkDampSquib"
MAINTAINER="Andrin Geiger"
DISCUSSION="https://t.me/officialderpfestMi9"
|
22a57b32f68c8984c9c1d225c80f9c85017332b2 | 621 | #!/bin/bash
# Run this tool from root git folder: scripts/build-prep.sh
# Ensure submodules are up-to-date
git submodule update --init
# Move to grpc folder
cd submodules
cd grpc
# Ensure grpc submodules are up-to-date
git submodule update --init
# Ensure submodule packages are restored
cd vsprojects
../../../too... |
c7377bc6baff4dafc55d0f7f6dc0a4a06b2a6e13 | 903 | #!/bin/bash
#
# Move aliased scripts to ~/.alias_scripts
#
mkdir /home/$USER/.alias_scripts
cp check_raid.sh ~/.alias_scripts
cp cpubench.sh ~/.alias_scripts
cp gwe.sh ~/.alias_scripts
cp resetsound.sh ~/.alias_scripts
cp git_setup.sh ~/.alias_scripts
cp dpkg-sort.sh ~/.alias_scripts
echo "alias check-raid='/home/$... |
8c398bae989663b16aeafbacf364b432f2b4735b | 243 | #! /bin/false
# # run this file like this:
# (venv)$ cd path/to/tct/Contrib
# (venv)$ source install.source-me.sh
cp -p check_include_files.py $(echo $PATH | cut -d : -f 1)
cp -p jq $(echo $PATH | cut -d : -f 1)
|
746c100903fdbbfe009ca870369935482a5e9162 | 1,395 | #!/bin/bash
OPENSHIFT_BACKUP_VERSION=latest
OC_VERSION=latest
DOWNLOAD_ALWAYS=0
GITHUB_NAME=gerald1248
for dependency in jq curl head unzip; do
if [ -z $(which $dependency) ]; then
echo "Missing dependency '$dependency'"
exit 1
fi
done
if [ ! -d downloads/ ]; then
mkdir downloads
fi
if [ ! -f download... |
f4427e1191a29a227131f6770bb79d46486c3d38 | 533 | #! /bin/bash
curl -O https://s3.amazonaws.com/paladin.aligner/test.fq
curl -O https://s3.amazonaws.com/paladin.aligner/paladin_test.faa
../paladin index -r3 paladin_test.faa
../paladin prepare -r1 -f paladin_test.faa
../paladin align -t4 paladin_test.faa test.fq -o test
if [ -s test_uniprot.tsv ];
then
... |
565255012c743f6b06ddc90a2f61c3db8004db71 | 11,897 | export TEMP_FOLDER_PATH1=./channel/temp1
export TEMP_FOLDER_PATH2=./channel/temp2
export TEMP_FOLDER_PATH3=./channel/temp3
export TEMP_FOLDER_PATH4=./channel/temp4
export CORE_PEER_TLS_ENABLED=true
export ORDERER_CA=${PWD}/../../artifacts/channel/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.... |
883d86710c9cd909c875539575a3f7555ea0e6f1 | 184 | #!/bin/bash
wget https://downloads.slack-edge.com/linux_releases/slack-desktop-4.3.2-amd64.deb -O slack.deb
dpkg -i slack.deb
apt-get -f install
apt update && apt upgrade
rm slack.deb |
8fbc04f88e5023d10a62c6319cf82bad9b49bf2c | 2,350 | # install NextCloud Client from debian packages
# from: https://help.nextcloud.com/t/nextcloud-client-for-raspberry-pi/27989/62
#
# get required packages
#
# define packages
packages=(
q/qtwebengine-opensource-src/libqt5webenginecore5_5.11.3+dfsg-2+deb10u1_armhf.deb
q/qtwebengine-opensource-src/libqt5webengine... |
900d949a62fde29dbc060c31f2cd5355518434f1 | 867 | ARGFILE=./sh/argfiles/medium_res_net
RESUME_FILENAME=21_March_2018_Wednesday_23_40_27anneal-medium_endofcycle_checkpoint_3
SAVE_PREFIX=res_net_anneal_medium
PRUNE_PCT=10
REPORT_FILENAME=./reports/medium_res_net_prune_$PRUNE_PCT
python -m examples.lab $(cat $ARGFILE) --save_prefix=$SAVE_PREFIX --resume_mode=standard ... |
3a34dffdde0b268e3260810b10e31e70d1f6518b | 1,671 | #!/bin/ksh
if [ -f /sbclocal/netcool/UBS_ENVIRONMENT/omniprof ]; then
. /sbclocal/netcool/UBS_ENVIRONMENT/omniprof
fi
while getopts dp opt
do
case "$opt" in
d) # Sets User name for OS and GW login
PA_LIST="LDN1052_PA LDN1054_PA STM5257_PA STM1953_PA STM1935_PA STM1979_PA STM9174_PA SNG1281_PA"
LOGFILE=LicAud... |
a4856ce78ff0fea303f72d073a9c3dbdd59b057e | 95 | echo "enter the number"
read n
s=$((n%2))
if [ $s -eq 0 ]
then
echo "even"
else
echo "odd"
fi
|
42df14c91b68db83f2975d7839c3938e08856919 | 77 | docker build -t orleanschess.host:dev -f ./src/OrleansChess.Host/Dockerfile . |
c8845ed6185e5cba31f393cddf56a9eebcd27cf3 | 1,049 | #!/bin/bash
#
# Copyright(c) 2012-2019 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause-Clear
#
. `dirname $0`/conf_framework
if compile_module "WRITE_FLUSH" "linux/fs.h"
then
add_define "CAS_RQ_IS_FLUSH(rq) \\
((rq)->cmd_flags & CAS_REQ_FLUSH)"
add_define "CAS_WRITE_FLUSH \\
WRITE_FLUSH"
if ... |
fd40e37643e406f12a9f0ca758bd27c8b36e06b7 | 354 | #!/bin/bash
query="SELECT GET_AHM_EPOCH()"
epoch=`/opt/vertica/bin/vsql -h 172.17.0.4 -U dbadmin -d docker -c "$query" -t`
/opt/vertica/bin/vsql -e -h 172.17.0.4 -U dbadmin -d docker -c "SELECT COUNT(0) FROM workshop.fact_sales"
/opt/vertica/bin/vsql -e -h 172.17.0.4 -U dbadmin -d docker -c "AT EPOCH $epoch SELECT CO... |
0c42c8eee0d9f4437c5eef776212b584949f2794 | 177 | # DB Config - replace these values with the correct db values
DB_PASSWORD=password
# Clarifai API Key (https://califai.com)
CLARIFAI_API_KEY=ADD_KEY_HERE
JWT_SECRET=thesecret
|
ee836d051fa93786ef7e701ec1bcc0cb53ff919b | 491 | export MONGODB_URI="mongodb://mojiashen1:19941124Momo@ds015934.mlab.com:15934/mojiahorizons"
export SECRET=foobar
export APP_ID='910196102460311'
export APP_SECRET='97f7c137ff88ff58a6dd1fa45342040c'
export ACCOUNT_SID='ACaec6dba2cc6c4a7b5450b13306a34ad0'
export ACCOUNT_TOKEN='16790c4ff64265f57142404bb02e2e1b'
export FR... |
003ba3292627e8c5922100501f00480d8d072116 | 918 | #!/usr/bin/env bash
# $1 is the full path where 'git init' was run
# run after 'git init' 'git add' and 'git commit -m "first commit"'
# after these commands above the local repo is setup
# now to duplicate it to the server and setup the remote
if [ ! $# -eq 1 ]
then
echo "Expects one argument, directory of git r... |
a3c94d04774233ff8aca51bf696039bb2a74718b | 180 | #!/bin/bash
for (( i=0; i<=10; i++ ))
do
curl -G -X POST "127.0.0.1:4000/read_request_from_client" --data-urlencode 'request=1' --data-urlencode 'ip_client=client:12346'
done
|
ad180cc68948318a234518780e56d8f31960fc96 | 4,188 | #!/bin/bash
#----------------------------------------------------
# File: axel.sh
# Contents: axel是一款多线程文件下载器, 可以快速下载文件.
# Date: 19-1-18
#----------------------------------------------------
declare -r version=2.16.1
declare -r workdir=$(pwd)
declare -r success=0
declare -r failure=1
# log
log_error(){
red="\03... |
41eeee01d063bd0421792650ff02d97c483611cd | 93 | #! /bin/bash
shift # 参数列表左移
echo $0
echo $1
echo $2
echo $*
echo $@
echo $#
|
6628ef15fc10a4cba5a7dc47159ac2cdac53bdd0 | 1,988 | #!/bin/bash
src_dir=$1
if [ "$#" -ne "1" ]; then
echo "Error args num: $#."
exit 2
fi
out_dir="./output"
done_dir="$out_dir/done_xps"
err_dir="$out_dir/err_xps"
pdf_dir="$out_dir/pdf"
txt_dir="$out_dir/txt"
done_xps2pdf_log="$out_dir/done_xps2pdf.log"
err_xps2pdf_log="$out_dir/err_xps2pdf.log"
done_pdf2txt... |
1a735a89c36589f9e5666e9ab253f79fc61c5816 | 747 | # Maintainer: Martin C. Doege <mdoege at compuserve dot com>
pkgname=roguesynth-git
_gitname=rogue
pkgver=414.9f80a2a
pkgrel=3
pkgdesc="Multimode softsynth with LV2 interface"
arch=(i686 x86_64)
url="https://github.com/timowest/rogue"
license=('GPL')
groups=('lv2-plugins')
depends=('lv2' 'lvtk-git' 'fftw' 'qt4' 'libs... |
347c972acb7c87956ffd4c299ca2720a805180a7 | 761 | echo "Remember to set up the environment first with setup_geant4.sh"
if [ $HOSTNAME = "t3ui17" ]; then
echo "Rebuilding on PSI"
cd /shome/tklijnsm/testbeam/geant4/EEShashlikSimulation/H4OpticalSmall
rm -rf cmake
mkdir cmake
cd cmake
cp ../rebuild.sh rebuild.sh
cp ../recompile.sh recompile.sh... |
8dfc95452eba68c81617c38684775209a6685112 | 1,619 | #echo ---linux
# console can change colormap
# esc]Pnrrggbb: color n = rrggbb, all hex
# esc[0m reset attr
# more info:
# man console_codes
# man terminfo
#enlighten blue please - when can't make it 16colors
echo -e "\e]P46090c0"
_set _TAB=$_CTL"I"
_set _ENTER=$_CTL"J"
_set k_clrscr=''
so $_INIs/kmap
_kesc F1 ... |
df921e24c45c6d775990535f5b2534bef00919c4 | 1,338 | #!/bin/sh
set -e
SCRIPT_DIR=$(dirname $0)
ADDED_DIR=${SCRIPT_DIR}/added
ARTIFACTS_DIR=/tmp/artifacts
mkdir -p $APP_ROOT/src && mkdir -p $APP_ROOT/etc
chown -R 185:0 $APP_ROOT && chmod a+rwX -R $APP_ROOT
cp $ADDED_DIR/utils/* $APP_ROOT/src
cp $ADDED_DIR/etc/* $APP_ROOT/etc
# Change the permissions on /etc/passwd so ... |
3a71c48c19cc857100942deddfe4251d54c2058e | 2,521 |
#!/bin/bash
echo "home: $HOME"
echo "user: $(whoami)"
#####################
# create an account #
#####################
PASSWORD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w30 | head -n1)
echo $PASSWORD > $HOME/.parity-pass
parity account new --password $HOME/.parity-pass
address=0x$(cat $HOME/.parity/keys/*| ... |
e1c435f37b76f15decfb14b22ec9c7b6acf7da73 | 757 | #!/bin/bash
#This script extracts plant attributes from an image
#Invoke this via cron on a regular (hourly?) basis to refresh the data
#Author: Howard Webb
#Date: 11/5/2017
echo "Process image for plant data"
#Modify this path if you move the webcam image directory
pic_dir="/home/pi/MVP/pictures/"
pic2_dir="/home/p... |
ec3aac917ce03c554ac91b4a5da0cf761341e8f3 | 270 | #!/usr/bin/env bash
rm pkglist
for dir in *; do
[[ ! -d "$dir" ]] && continue
[[ ! -e "$dir/shoppepkg" ]] && continue
[[ -e "ignore" ]] && grep "^$(basename dir)" ignore &>/dev/null && continue
source $dir/shoppepkg
echo "$pkgname $pkgrel $pkgver" >> pkglist
done
|
855b8084f02ea49aa31ad84610b956e636e8eeea | 1,553 | #!/bin/bash
#
# Photo in conky
# by helmuthdu and paulvictor
#source="~/.myconky/pics"
photo=~/.conky/images/cute_boy.png
#cd $source
cd ~/.conky/images/
number=$(ls -R | wc -l)
random=$RANDOM
random=${random}%${number}
lines=`echo ${random} + 2 | bc`
filename=`ls | head -n $lines | tail -n 1`
cp $filename $photo
... |
ae81b786766a60bee8198272ddfadca050eaa26f | 163 | #!/bin/bash -x
shopt -s extglob
read -p "Enter your last name " name
pat="^[A-Z]{1}[a-z]{3}$"
if [[ $name =~ $pat ]]
then
echo valid
else
echo invalid
fi
|
885a1c2e9a90fc3f26375e36ae6bebf60fc6992b | 184 | #!/bin/bash
. ./export.bash
#Make it soe the deno can access the network, env var and do file-system read/write
deno test --allow-net --allow-env --allow-read --allow-write --reload
|
588a5bd6a8bb27e0f89f4cfceab00da2cd20ec37 | 138 | # APP
SERVER_PORT=3115
# DATABASE
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=test
DB_USERNAME=ariel
DB_PASSWORD=ariel
|
a8b5644e44d0ba904ee08fee660a68f8a33e3bc3 | 223 | #!/bin/bash
SERVER_NAME=''
SERVER_PORT='24654'
ENTRY=''
PW=''
IP=$( curl -s 'ipinfo.io' | jq -r '.ip' )
(echo -e "login: ${ENTRY}\n${PW}\n\nchange-ip: ${IP}\n"; sleep 5) | openssl s_client -connect $SERVER_NAME:$SERVER_PORT |
507b366a9dedf2693c31bae6ec5f00b1b0a4640f | 25 | brew cask install dosbox
|
6a024e65e2f65c0c0902a0b40eda8aa69be76c03 | 1,371 |
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
export PATH="/usr/local/sbin:$PATH"
# NOTE: Have to do this because curl is built into macosx
export PATH="/usr/local/opt/curl/bin:$PATH"
export PATH=$PATH:${PROFILE_SCRIPT_DIR}/shellscripts
export NVM_DIR="$HOME/.nvm"
... |
147fba41a9c172eaa6ce9f07e7f6146f682b3ea5 | 337 | export MAVEN_HOME=/opt/maven
export JAVA_HOME=/opt/java/jdk1.8.0_112
export JENKINS_HOME=/jenkins
mvn package
docker stop restful-server
docker rm restful-server
docker rmi kinpzz/restful-server
docker build -t kinpzz/restful-server .
docker run -d -p 127.0.0.1:8082:8082 --name restful-server --link db:db-server kinpz... |
70e7a985e10548f0a22cf562b854e14eb2971b5b | 69 | #!/bin/bash
aws ec2 stop-instances --instance-id i-044d12ac310266c66
|
36231169fccdcb3566f0cc418eba572a78a1fb09 | 149 | #!/bin/sh
./clean.sh
./close.sh template.pdf;
latex template.tex;
bibtex template.aux;
latex template.tex;
dvipdfmx template.dvi;
open template.pdf;
|
2347eeb6b63065cacee94e9041099d17d3039009 | 96 | REACT_APP_API_KEY=4fac1db88ab20673ac53a96d65a6fb7c
FAST_REFRESH=false
CHOKIDAR_USEPOLLING=true |
7859aeeda764607d20a25c01cebe4e3d5213daf3 | 60 | #!/usr/bin/env bash
brew install --cask visual-studio-code
|
50e7c47126c15d473e59fa0e9c0a79a5327ef6f6 | 366 | #!/bin/bash
# rotate wallpapers
setit (){
nitrogen --set-zoom-fill --set-color=#456 --random "$HOME/wallpapers"
}
# restart
restart() {
if pgrep -x "$1" > /dev/null
then
(echo "$1 running, restarting"
killall -w "$1"
"${1}" &) &
else
echo "$1 wasn't running"
fi
}
# main loop 4ever
while true
do
... |
69dba83444fc55a1fdab684c4ede9ba0e70df686 | 153 | #!/bin/bash
echo "-- cleaning docker images.."
docker rmi -f $(docker images -q --filter label=stage=build)
echo "-- completed cleaning docker images.." |
539615888875574d819e87abee96bf81eb8a056d | 330 | #!/bin/bash
# getopts-instead.sh
#
set -eu
usage="Use: $0 [-a ...] [-b ...] c"
a=
b=
function get_arg2 {
(( $# > 1 )) && echo "$2" || echo ""
}
while (( $# > 0 )); do
case "$1" in
-a) echo a=$(get_arg2 "$@"); shift;;
-b) echo b=$(get_arg2 "$@"); shift;;
c) echo "$1";;
*) echo $usage; exit 1;;
esac
s... |
0b32f40a3204bb0e45a70e4df4d201b7787799bd | 725 | #!/bin/bash
set -e
rm -r package
grunt package:angularBlockUI
grunt package:angularBlockUI --target=release
echo '/* Copyright (c) 2013-2014, Null McNull https://github.com/McNull, LICENSE: MIT */' | cat - package/angular-block-ui/angular-block-ui.js > tmp.js && mv tmp.js package/angular-block-ui/angular-block-ui.js
... |
328ec091e83eddcc5cd2661b0b8f38ebdad50c82 | 2,029 | #!/bin/bash
sudo pacman -S --noconfirm reflector
sudo reflector --latest 50 --protocol http,https --sort rate --save /etc/pacman.d/mirrorlist
sudo pacman -Syy --noconfirm
sudo pacman -Syu --noconfirm
sudo pacman -S --noconfirm nvidia nvidia-utils nvidia-settings xorg lightdm lightdm-gtk-greeter bspwm sxhkd dmenu nitro... |
d5cb842f3fd2f250b89a08f5faf806e5bfa631ac | 2,933 | set -e
cd .. && make -C ../phobos/ BUILD=debug -f posix.mak # recompile runtime if needed
cd benchmark
# compile small benchmark programs
for fp in $(ls aabench)
do
dmd -debug -L-L../../phobos/generated/linux/debug/64/ -I../../druntime/import/ -I../../phobos/ -g aabench/$fp -ofbin/$(basename $fp .d)
echo com... |
bd17d7d595a3d8e5aaa67a521b7d2c7a2e4fe7c1 | 1,047 | #!/bin/bash
watchdog() {
#WORKER_PID=$1
# Grace periode just to be sure Concourse have enough time during the
# First startup
sleep 120
RETRY=3
while(true); do
FAIL=0
curl --silent 127.0.0.1:8888 || FAIL=1
#if [[ $FAIL -eq 0 ]]; then
if [[ $FAIL -eq 1 ]]; the... |
dcca18e19dc0a4e7d0c0dc444aa15e76eeeedaf7 | 1,121 | #!/bin/sh
IDD=$1
if [ ! "$#" = "1" ]
then
echo "SINTAX: $0 <IDD>"
exit 1
fi
NAME="classification_dataset_${IDD}"
echo "Copying dataset $NAME to hadoop-primary:app"
sudo kubectl cp ./${NAME}.libsvm hadoop-primary:/app/classification_dataset.libsvm
sudo kubectl cp ./${NAME}.libsvm hadoop-primary:/app/regression_d... |
073f7cd9540a2d09decbb3341db16af635e224d0 | 624 | #!/bin/bash
docker run --name sonarqube \
-d \
--restart unless-stopped \
-p 9000:9000 \
-v $PWD/data/sonarqube/conf:/opt/data/sonarqube/conf \
-v $PWD/data/sonarqube/data:/opt/data/sonarqube/data \
-v $PWD/data/sonarqube/logs:/opt/data/sonarqube/logs \... |
39613d678886c61fc465ab4ace391da5ad76aa97 | 129 | if [ -z "$1" ]; then
echo "ERROR: One parameter is required. [COMMIT MESSAGE]"
exit
fi
git add .
git commit -m $1
git push
|
4607c5a996eaa182e2bda96588a592e378b0ffe3 | 1,760 | #!/bin/bash
domain="$1"
path="$2"
uuid="$3"
psname="v2ray-ws"
if [ ! "$uuid" ] ;then
if [ -f "/root/.v2ray/uuid" ]; then
uuid=`cat /root/.v2ray/uuid`
else
uuid=$(uuidgen)
echo "使用随机生成的UUID: ${uuid}"
fi
fi
mkdir -p /root/.v2ray
echo ${uuid} > /root/.v2ray/uuid
mkdir -p /etc/caddy
mkdir -p /etc/v2ra... |
79de5bdd118cc63fdf7c4085f876f8fd1a547108 | 70 | #!/bin/sh
export VAULT_ADDR='http://127.0.0.1:8200'
vault server -dev |
3cfdc9ea11f249cbe0f691f07c69e16f8fe020ee | 5,316 | #!/usr/bin/env bash
# bin/compile <build-dir> <cache-dir>
# fail fast
set -e
# debug
# set -x
# clean up leaking environment
unset GIT_DIR
# config
SCONS_VERSION="1.2.0"
S3_BUCKET="heroku-buildpack-nodejs"
# parse and derive params
BUILD_DIR=$1
CACHE_DIR=$2
LP_DIR=`cd $(dirname $0); cd ..; pwd`
function error() {... |
4dac43c23a509b68735ae0e8afeedf750a31a070 | 1,201 | nohup /home/andrzej/projects/sensoredweb/venv/bin/python /home/andrzej/projects/sensoredweb/manage.py runserver 0.0.0.0:8000 &
nohup /home/andrzej/venv/bin/python /home/andrzej/projects/realtime/rtweb/rtweb.py > /dev/null &
nohup /home/andrzej/venv/bin/python /home/andrzej/projects/ulog/server/ulogserver.py --port=8889... |
5bd3c4be5cb417218356ddfc80f400954b397a8e | 1,623 | #!/bin/bash
if [ -z "$1" ]
then
echo "serviceName (service name) not supplied"
exit 1
fi
if [ -z "$2" ]
then
echo "serviceVersion (desired version number) not supplied"
exit 1
fi
if [ -z "$3" ]
then
echo "teamAccountNumber (desired team account number) not supplied"
exit 1
fi
serviceName=... |
761fe7b8d86219666859a4e68001ab20f8cc61f0 | 1,156 | #used with Red Hat OSP 9 & 10
yum install openstack-tempest -y
mkdir -p ~/mytempest
cd ~/mytempest
#below does not seem to work anymore
/usr/share/openstack-tempest-*/tools/install_test_packages.py
#so do this instead
yum install -y python-glance-tests python-keystone-tests python-horizon-tests-tempest python-neutr... |
eacd7eae090f0a223c62576d6cf45da0f3dfdb76 | 142 | #!/bin/bash
set -e
unset AWS_ACCESS_KEY_ID
unset AWS_SECRET_ACCESS_KEY
export AWS_DEFAULT_PROFILE=baby-mobile
export AWS_REGION="us-west-2"
|
a25e8635b263ca30c2f97e4a38e6a56eb6439c0c | 323 | #!/bin/bash
#Script runs once to add hadoop-master to /etc/hosts
#Get script directory
DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi
. "$DIR/../../../scripts.d/utils.sh" || exit 1
. "$DIR/../resources/config" || exit 1
#Set master ip to /etc/hosts
echo "$MASTER_NODE hadoop_master" >> /etc/hos... |
460749cdfb7667c0e66b773b99b566b7c3034114 | 297 | latestv=$(curl -s https://api.github.com/repos/go-swagger/go-swagger/releases/latest | jq -r .tag_name)
curl -o /usr/local/bin/swagger -L'#' https://github.com/go-swagger/go-swagger/releases/download/$latestv/swagger_$(echo `uname`|tr '[:upper:]' '[:lower:]')_amd64
chmod +x /usr/local/bin/swagger |
00ba59859be3ca6e5aa2813af9e28e4d80bd4bef | 302 | #!/bin/bash
echo `date` "<%= spec.name %>:<%= spec.index %> start" >> /var/vcap/sys/log/lifecycle-job/out.log
/sbin/start-stop-daemon \
--pidfile "/var/vcap/sys/run/lifecycle-job/pid" \
--make-pidfile \
--chuid vcap:vcap \
--start \
--background \
--exec /usr/bin/tail \
-- -f /dev/null
|
5dd7973bd721841601701d1d66a116bc7b21e103 | 3,895 | #!/bin/bash
# This script will setup the Automated pipeline, IAM Roles, and a ServiceCatalog Portfolio using the
# reference architecture as example products. This will create resources in your currently active CLI account
# across three regions using CloudFormation StackSets. You will be responsible for any costs ... |
b3af6dd1db119d044b36e453f8b5c0544f153b4f | 43 | ssh pi@192.168.1.200 'bash -s' < piSetup.sh |
8edab5727c4d612748b7b54da9aabd01e032e9ad | 30 | ./dPDF ./config/dye886.ini $1
|
71058908f73017766e6f3c10260c43046d391501 | 1,197 | . /srv/login.sh
oc-login 1
rm workshop_id_rsa* -f
ssh-keygen -qP '' -C 'workshop-root' -f workshop_id_rsa
export $(cat secrets.env)
export size=5
export infra_nodes=3
export worker_nodes=3
export label='lab: ocp-cns'
for id in $(seq -w 01 $size); do
name=user$id
yaml=odf-cluster.$name.yaml
config=$(perl -pe "s/CL... |
0d45489581ed19e2bb1359b41957c6137e761f72 | 1,702 | #!/bin/bash -x
#Discription:Snake & Ladder as per usercases
#Author:Hrishikesh M Bodake
#Since:March 7 2020 / Saturday
diceCounter=0
termOfPlayer=1
startPosition=0
finishPosition=100
currentPosition=0
priviousPosition=0
player1Pos=0
player2Pos=0
winchecker=0
player=0
function rollDice(){
dicePos=$((RANDOM%6+1))
}
func... |
1abbc3be35b9ac1b9f626e3d3b326b8388a9f621 | 2,408 |
change_homebrew_default(){
echo "Changing the homebrew mirror to: Deafult ..."
git -C "$(brew --repo homebrew/core)" remote set-url origin https://github.com/Homebrew/homebrew-core.git
git -C "$(brew --repo homebrew/cask)" remote set-url origin https://github.com/Homebrew/homebrew-cask.git
echo "Change... |
e3a30c184433800424d1bd6c9918695b8a1e5f39 | 621 | #!/bin/sh
#Shell Script for Engagement Log
cd /var/www/html/kmis/services/hungamacare/sms_engmnt
echo "Start `date` " >> /var/www/html/kmis/services/hungamacare/sms_engmnt/automation_report_status_data.txt
/usr/bin/php /var/www/html/kmis/services/hungamacare/sms_engmnt/sms_engagementSendSms.php &
sleep 15m
/usr/bin... |
a19e1f40e0485d0da7e26722c91683145fe67235 | 263 | if [ -d "../contracts/build/contracts" ]
then
echo "Audius contracts repo is present"
cd ../contracts/
node_modules/.bin/truffle exec scripts/_contractsLocalSetup.js -run-audlib
else
echo "INCORRECT REPOSITORY STRUCTURE. PLEASE FOLLOW README"
exit 1
fi
|
b7a01469478b0db2d0d11d921f453e246c971cbf | 424 | #! /usr/bin/env bash
diff ~nimrodav/lint/.clang-format ./.clang-format
diff ~nimrodav/lint/.clang-tidy ./.clang-tidy
CLANG_TIDY=~nimrodav/clang+llvm-3.9.0-x86_64-linux-gnu-ubuntu-14.04/bin/clang-tidy
CLANG_FORMAT=~nimrodav/clang+llvm-3.9.0-x86_64-linux-gnu-ubuntu-14.04/bin/clang-format
#*.h
for f in *.c *.h ; do
... |
923a8177bc962548c40cf51b5619a8d441ef558e | 108 | #!/bin/bash
cd v8
git apply --cached ../7.1.302.32.patch
git checkout .
git commit -m "NativeScript patch"
|
c141efde423546b3ea143f0720f3d275b81876f7 | 285 | #! /bin/bash
date=`date`
git submodule foreach git checkout master
git submodule foreach git add -A
git submodule foreach git commit -am "dotfiles update on $date"
git submodule foreach git push origin master
git add -A
git commit -am "dotfiles update on $date"
git push origin master
|
1008bcb7c449b8dc4cae2e9496cd92e835965b9b | 224 | gcloud ai-platform versions create Xception_v1 --model=FireSage --origin=gs://fire-temple/FireSage-SqueezeNet-7 --framework=Tensorflow --python-version=3.7 --description="Xception based CNN model" --runtime-version=2.4
|
2f7ba4750c895a37e90364ff55d17c2e7a84acb8 | 136 | #!/bin/sh
if [ -e "/Applications/Postgres.app" ]; then
export PATH="$PATH:/Applications/Postgres.app/Contents/Versions/latest/bin"
fi
|
19a27dcd60b893d9ea1c7af2f66ed283ce9d9709 | 1,570 | #!/bin/bash
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Contains a path to this script, relative to the directory it was called from.
RELATIVE_PATH_TO_SCRIPT="${BASH_SOURCE[0]}"
# The directory tha... |
a5e762135919f2fefcaa8cc1d778c4527e0918f6 | 88 | #!/bin/bash
rm -r payload/lib
cp -r ../target/universal/stage/lib payload
ls payload/lib |
3c4a10c785589d1e536639ec85405e1846fd9d0e | 1,447 | #!/usr/bin/env bash
# Some loose inspiration: https://google.github.io/styleguide/shell.xml
ruby_install_version=0.5.0
ruby_version=2.2.3
gem_version=2.2.0
chruby_version=0.3.9
chruby_fish_version=0.6.0
mkdir -p "${HOME}/tmp"
pushd "${HOME}/tmp"
wget -O "chruby-${chruby_version}.tar.gz https://github.com/postmodern/... |
34ba8e106aba22427fb29fd8acd7cafad467d333 | 398 | #!/bin/bash
# Declare an array of string with type:
declare -a StringArray=("PHP" "Java" "C++" "VB.Net" "Python" "Perl")
# Print array values in lines:
echo "Print each element on a new line"
for val1 in ${StringArray[*]}
do
echo $val1
done
echo ""
# Print array values in one line:
echo "Print all elements on ... |
c6a9c38f878151ebc8062dec56f9305d86ca25e4 | 64 | #!/bin/bash
a=`uptime | awk -F " " '{printf $3 $4}'`
echo "$a"
|
9a6a9f493759cdd2da5adfa3ea3a65a631ae999e | 933 | #!/bin/bash
# Run ESMA ESEF conformance tests
TESTCASESROOT=/Users/hermf/Documents/mvsl/projects/ESMA/conf/esef_conformanceSuite_2020-03-06/index.xml
rm -f /users/hermf/temp/ESEF-conf-*
OUTPUTLOGFILE=/users/hermf/temp/ESEF-conf-log.txt
OUTPUTERRFILE=/users/hermf/temp/ESEF-conf-err.txt
OUTPUTCSVFILE=/users/hermf/temp... |
8733523f687aa97951f8abaf55f7779d3f8f8648 | 1,156 | #!/bin/sh
set -ev
cd "$(dirname "$0")"
mkdir -p build/
elm-make --yes --output build/test1.js Test.elm
echo "Elm.worker(Elm.Main);" >> build/test1.js
echo "exit" | node build/test1.js
elm-make --yes --output build/test2.js FileTest.elm
echo "Elm.worker(Elm.Main);" >> build/test2.js
node build/test2.js
elm-make --... |
18aaafff6a3e558df3ff6da4b6211b98593a0c78 | 89 | APP_ENV=development
DB_HOST=localhost
DB_NAME=blog_db
DB_USER=applicant
DB_PASS=temp123
|
2d95f2b43b071282e1bcbe25ebfc1b4a516d0a56 | 287 | #! /usr/bin/env bash
for i in ${@}; do
case ${i} in
cli)
echo go clean
go clean
echo go build ./examples/cli
go build ./examples/cli
;;
gin|srv)
echo go clean
go clean
echo go build ./examples/srv
go build ./examples/srv
;;
esac
done
|
bedbad605a94e9f7f4afeceba6d18619783cfa79 | 109 | PORT=9000
DATABASE_URI=postgres://gopher:gopher@127.0.0.1:5432/einatic?sslmode=disable
SIGNING_STRING=SECRET
|
367d51f7985a159c5afcf3148ffd8cbaea5ce455 | 468 | #!/bin/bash
# Turn off PC speaker (get rid of annoying system beep)
sudo /usr/local/bin/disable-pcspkr
# Set variable in systemd for dunst (notification deamon)
systemctl --user set-environment DISPLAY=:0
xrdb -merge .Xresources
slstatus &
# Setup toggling between US and PK (Urdu CRULP) keyboard layouts
setxkbmap -... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.