blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
68355246c4b81cc2d75937f94177cc98a6f2a7cf
3,832
#$ -S /bin/sh #$ -pe serial 3 #$ -l h_vmem=6G module load STAR/x86_64/2.5.2b #Mapping the GSE54153 dataset reads (due to some samples undergone 'quality trimming' the code is messy, as the correct #files need to be collected). for i in {886..903} do gunzip /group/biocomp/users/cadav/Thesis/Transcriptome/RNA-Seq/GSE...
761041be56b3f983341ec2876f425341581dd5e6
2,513
#!/bin/bash -x echo "welcome to adress book" declare -A address echo "maximum slots is 10" for ((i=0;i<10;i++)) do address[$i,0]=" " done function Address(){ read -p "Enter First name:" Firstname address[$1,0]=$Firstname read -p "Enter Last name:" Lastname address[$1,1]=$Lastname ...
704d9cdaac2c536a37298c9953468747e4791865
3,686
#!/bin/bash # Default acpi script that takes an entry for all actions case "$1" in cd/play) case "$2" in CDPLAY) logger 'PlayPauseButton pressed' # /usr/bin/sudo -u carlb playerctl play-pause #/usr/bin/amixer set Speaker on #/usr/b...
40b70de422a201b98e69643c5497155a5edee67e
715
#!/bin/bash EXPNAME="ENSrcjs" UF="20" for seed in 1 #{1..30} do for nsize in 4 do for npc in 2 do for bc in 8 do for tw in 50 do for pi in RCJS_1_3_50_40.txt do for nr in 1 do for ntg in 1 do for sip in 5 do for mt in 36000 do for ps in 2000 do FILE=EXP${EXPNAME}NS${nsize}NPC${npc}BC${bc}TW${tw}PI${pi}NR${nr}NTG${ntg}S...
75214a208455af1c8e8a534619c3c89b34a7a00d
956
#!/bin/bash #shellcheck disable=SC1091 set -a -e -x [[ $(command -v http) ]] || { echo "http and jq are required" exit 1 } THIS_FILE=$(readlink -f "${BASH_SOURCE[0]}") THIS_DIR=$(dirname "${THIS_FILE}") source "${THIS_DIR}/../env.sh" docker-compose -f "${THIS_DIR}/docker-compose.yml" up -d sleep 10s http -...
f3c6e852925d6dab5aefa744df918d3434087f0d
1,277
#!/usr/bin/env bash # unofficial "bash strict mode" # http://redsymbol.net/articles/unofficial-bash-strict-mode/ # Commented out 'u' because the `activate` script has some unassignment issues set -u set -eo pipefail IFS=$'\n\t' build_type="opt" DIR=$(dirname $(realpath $0)) process_args() { case "$#" in 0) ...
d60ac05c74b6ee2aec9e52b5425964e5fb0a61f2
107
BIN=./goclitem @test "Can run the application" { run ${BIN} echo $output [ $status -eq 0 ] }
6d9da592a7876a2a346a060e31a5a01cd414d1f3
617
#!/bin/bash getch(){ stty -icanon -echo dd if=$(tty) bs=8 count=1 2> /dev/null stty icanon echo } move(){ if [ "$1"x = "j"x -o "$1"x = ""x ];then echo -en "\033[B" elif [ "$1"x = "k"x -o "$1"x = ""x ];then echo -en "\033[A" elif [ "$1"x = "h"x -o "$1"x = ""x ];then echo -en "\033[D"...
4465571cb13edc17c3ef06191d4f167f0c6860ea
1,848
#!/bin/bash set -e # # UMASK # umask u+rxw,g+rwx,o-rwx # # USER # RUNAS=$(whoami) echo "DOCKER-ENTRYPOINT >> running as user: ${RUNAS}" # # IMPORT KUBERNETES ca.crt (OPTIONAL) # if [ -n "$KUBERNETES_CA_BASE64" ] then echo $KUBERNETES_CA_BASE64 | base64 --decode > /tmp/kube-ca.crt echo "DOCKER-ENTRYPOINT >> KUBE...
5dcb05457a84d020e10134bef944201b9b077324
406
# ex. myDate = 1231_2359_2014 myDate=$(echo $(date +%m%d_%H%M_%Y)) if [ $# -ge 1 ] && [ $(echo $0 | tail -c 17) == "filename_date.sh" ]; then cp -a $1 $(echo $1 | cut -d '.' -f 1)_$myDate.$(echo $1 | cut -d '.' -f 2) echo $(echo $1 | cut -d '.' -f 1)_$myDate.$(echo $1 | cut -d '.' -f 2) fi # (cut can be replaced ...
bd228cb43f9631f8f34b65210d4c46331565d3b6
347
#! /bin/bash -e # directory this script is located in SCRIPTS=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) # some convenient aliases COMMONER="$SCRIPTS/commoner" ROOT="$SCRIPTS/.." BUILD="$ROOT/build" # for now build everything into the build directory /usr/bin/env node "$COMMONER" --relativize --use-provides-m...
add41695d2410a1be73650fdb51847c708465933
327
#! /bin/sh RETRY_COUNT="0" RETRY_MAX="$1" shift 1 CMD="$@" RES="999" while [ "$RETRY_COUNT" -lt "$RETRY_MAX" ]; do $CMD RES="$?" RETRY_COUNT=`expr $RETRY_COUNT + 1` if [ "$RES" -eq 0 ]; then grep -r '<error' */target/test-reports/ grep -r '<failure' */target/test-reports/ exit 0 fi done exi...
9130cb892a1b7239224e5fb752ec4f1295712d29
480
#!/usr/bin/env bash sudo yum install -y epel-release yum provides '*/applydeltarpm' yum -y install deltarpm wget --directory-prefix="/home/vagrant/dev/tools/" https://packages.chef.io/stable/el/7/chef-12.8.1-1.el7.x86_64.rpm wget --directory-prefix="/home/vagrant/dev/tools/" https://packages.chef.io/stable/el/7/che...
85e1b9eaaecce92e5d3d8064bafedc2759f58b22
72
#!/bin/bash docker build -t felipederodrigues/redmine_cluster:latest .
7da580b00323510a76e57177452f5f3c816909ee
491
#!/bin/sh DEVOPS="$HOME/.devops" if [ ! -z "$HOST_COLOR" ]; then echo "$HOST_COLOR" > "$HOME/.host_color" fi curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim mkdir -p "$HOME/.vim/backup" if [ ! -d "$DEVOPS" ]; then git clone https://...
283463853e452fe893edccb7f4d3ba5de9d88d5a
456
#!/usr/bin/env bash cloc --out=cloc.driver.txt --exclude-lang=make driver r2.sh cloc --out=cloc.master.txt --exclude-dir=bin master/src cloc --out=cloc.analysis.txt master/src/bin uberenv.sh work/*.{sh,plt} cloc --sum-reports --out=uberfuzz cloc.{master,driver}.txt cloc --sum-reports --out=uberfuzz.all cloc.*.txt for...
38f812d3171675d997d93b17153e2c5080c33e06
63
#!/bin/sh /usr/bin/java -jar /usr/share/java/yed/yed.jar "$@"
178c8dc2a6120e6fa5529389b7c0ea27a2319765
898
#!/bin/bash -x isPartTime=1; isFullTime=2; maxHrsInMonth=100; totalSalary=0; empRatePerHr=20; numWorkingDays=20; totalEmpHrs=0; totalWorkingDays=0; function getWorkingHours(){ case $1 in $isFullTime) workingHours=8 ;; $isPartTime) workingHours=4 ;; *) w...
8509aceff324c89dde75d47e253326b4f16e47fe
3,784
#!/usr/bin/env bash # # Shell Response Text/Colors/Helpers # # This file contains text/color effects and # text-response helper functions for Shell scripts. # # shellcheck disable=SC1090,SC1091 # Color Switch export SWITCH='\033[' # Clear whole line and hard-line-return export ClearLine="${SWITCH}2K" export ClearLine...
ae2946774fb538da96ac9a8ec0ff0a440bded6e4
1,533
#!/bin/bash # SCRIPT: digclock.sh # USAGE: ./digiclock & # PURPOSE: Displays time and date in the top right corner of the # screen using tput command. # To stop this digclock use command "kill pid" ################################################################ ####################### VARIABLE DECLARATION ###########...
52f01b824dafa81620832ce44a900a7fc9b5bf72
1,580
#!/bin/sh # run in docker #if [ ! -d "boost" ]; then # cp /usr/include/boost boost -R #fi if [ ! -d "LuaJIT" ]; then if [ ! -f "LuaJIT-2.0.5.tar.gz" ]; then curl http://luajit.org/download/LuaJIT-2.0.5.tar.gz -o LuaJIT-2.0.5.tar.gz fi tar -xzvf LuaJIT-2.0.5.tar.gz mv LuaJIT-2.0.5 LuaJIT fi if [ ! -d "LuaBrid...
c06b398f861ac3b76de22ca9aea6f3d8dd30edb8
1,215
#!/bin/bash # 149 max for i in `seq 1 149`; do wget \ --post-data="searchType=Suburb&noRefine=&lawyerName=&distanceCalc=&searchWithin=10&list_state=NSW&list_state2=&lawyer_id=&txtSuburb=2000&search=true&pageNum=$i&searchType=Suburb&type=&typeRefine=&level=&lawarea=&lawareaRefine=&flashfile=&feature=&list_region...
84e6f0f9b54afb65749fd238bc722a37172994f8
755
#!/bin/sh # https://git-scm.com/docs/githooks PRE="`date` post-commit-msg:" LOG=~/githook.log echo === $PRE $0 entered ========================= >> $LOG echo $PRE LOGNAME: $LOGNAME USER: $USER HOME: $HOME >> $LOG echo $PRE PWD: $PWD >> $LOG echo $PRE EDITOR: $EDITOR >> $LOG echo $PRE PATH: $PATH >> $LOG echo $PRE GIT_D...
b811e44aabfc5e13a873dcd58b7a5cdb102f7d31
137
alias egrep='egrep --color=auto' alias fgrep='fgrep --color=auto' alias grep='grep -n --color=auto' alias ll="ls -lah" export CLICOLOR=1
1166280275abe119cd66737db2f0b577a8b19758
225
#!/bin/bash for ((x=1;x<379;x++)) do convert -resize 500% ~/Documents/ac94/images/page$x.png -type Grayscale ~/Documents/ac94/images/page$x.tiff tesseract ~/Documents/ac94/images/page$x.tiff ~/Documents/ac94/text$x done
647e0ca4395bd5dd3c64b265dd9449d07e91c805
48
PUBLIC_VALUE=i am public SERVER_ONLY=big secret
54c25fc9e4f8282e30a142eeed15452c08cfae2c
536
#!/bin/bash quarks=../../.. # Runs IBM Watson IoT Plaform sample. # # runiotfsensors.sh path/device.cfg # # e.g. runiotfsensors.sh $HOME/device.cfg # # This connectors to your IBM Watson IoT Platform service # as the device defined in the device.cfg. # The format of device.cfg is the standard one for # IBM Watson IoT...
a6a144aa007670a2533838915efa802e4a3c59c8
65
#!/bin/bash service kea-dhcp4-server start service bind9 restart
de075e27958a79a4a1b5e7779eb162a68f224496
132
DB_CONNECT = "mongodb+srv://madrigal1:gokz@acmwebintro-oi8yk.mongodb.net/test?retryWrites=true&w=majority" TOKEN_SECRECT = "dfssfdg"
a159ae05f75f9da0503c2db2d5d18b7ac0a301f2
3,433
#!/bin/sh #================================================================================ # (C)2013 dMajo # Title : ad-blocker.sh # Version : V1.02.0018 # Author : dMajo (http://forum.synology.com/enu/memberlist.php?mode=viewprofile&u=69661) # Description : Script to block add-banner servers, dns based...
2d9a9178637e0f98451236a755136c35d2cc542c
12,649
#!/usr/bin/bash if [ ! -d /data/zaworaca/data/CZ/150603_1723_utah ]; then mkdir -p -m 777 /data/zaworaca/data/CZ/150603_1723_utah fi if [ ! -d /data/zaworaca/data/CZ/150603_1823_utah ]; then mkdir -p -m 777 /data/zaworaca/data/CZ/150603_1823_utah fi if [ ! -d /data/zaworaca/data/CZ/150603_1924_utah ]; then mkdir -p -m...
1489aaaa2f716f70f222f2e26197e0fa907caed7
3,699
#!/usr/bin/env bash ################DOCUMENTATION ONLY################### # PURPOSE: Automate ripping of disc media via HandbrakeCLI # USAGE: Automatic Setup: ./hbcli-batchenc.sh # Manual Setup: ./hbcli-batchenc.sh <preset> <title> # INPUT: Automatic Setup: NONE # Manual Setup: Handbrake pr...
f7dda43e409a8e536036fd8beb6a6aa2f7c4c0bf
2,357
#!/bin/bash function die () { echo 2>&1 "${1}" exit 1 } if [ $(whoami) != "root" ] ; then sudo $0 $@ || die "Not run as root or cannot sudo to root" exit $? fi apt-get install -y memcached redis-server postgresql daemon unzip npm # Create dev/test databases and users, set passwords for user in $(whoami) clo...
35875a29f48d098bb2e27b3f2f0e53248312c149
1,097
#!/bin/bash docker rm ubuntu-essential-multilayer 2>/dev/null set -ve docker build -t textlab/ubuntu-essential-multilayer - <<'EOF' FROM ubuntu:14.04 # Make an exception for apt: it gets deselected, even though it probably shouldn't. RUN dpkg --clear-selections && echo apt install |dpkg --set-selections && \ SUDO_...
61c61fc299ab899d7b94e2ebf4d50bd0f889b9ed
83
cat /sys/kernel/debug/kernel_page_tables cat /proc/pagetypeinfo cat /proc/buddyinfo
bee9883903222b62f10dcbc08eab3dc1717c9ed6
127
#!/bin/bash echo "install dependencies..." npm install echo "" echo "start built-in server in mode ssl..." npm run serve-ssl
83c426177ad8782668066c0351eb434c797fbbdc
56
#!/bin/bash cd /home/ubuntu pm2 -f start server.js
4a1e36823ed30ed811fa0d2d9887d016cc426a20
979
K_EY = SAqlsgqtNQK+CUFZUkx08BK6Jys8Hc3e AL_G = aes-256-ctr WO_RD = d6F3Efeq AZURE_QUEUE_CONNECTION_STRING = Endpoint=sb://bluesecures.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=4nQ1RLtYZDTatVMsoiY7IvGvh1fA9t9xRw3b56hROsk= MESSAGES_QUEUE_NAME = bluesecures AZURE_STORAGE_ACCO...
dcfec9d850b91958a58fc733ab4ea5e8622f9c65
75
#!/bin/bash -ue exec docker build -f Dockerfile -t fbthrift_perf:latest .
0107f5bc869315edcbeb086991c09bb35244c1cf
6,175
#!/bin/bash #set -e ############################################################################### # Author : Erik Dubois # Website : https://www.erikdubois.be # Website : https://www.arcolinux.info # Website : https://www.arcolinux.com # Website : https://www.arcolinuxd.com # Website : https://www.arcolinuxb.com # We...
2e21b621e34870d73f45469550132b890208dbb9
77
#!/bin/sh prefix=../.. echo cflags -I$prefix echo libs -L$prefix/llib -lllib
c27167600df6d1dfc56ffc40d43934dd7bc46a8f
113
#!/bin/bash export RGLOCATION=$1 ./log-output.sh "Resource group location for project is '$RGLOCATION'"
71f8334ee6e65fdc2dac9a1af2abc8582959603d
530
#!/bin/bash dir=/home/anton/Doc/Documents/SequenceData/DamID_IBprot/export_not_combine/141110 bzip_files=$dir/*.fastq.bz2 cd $dir for fq in $bzip_files; do fq_base=`basename ${fq}` bzcat ${fq_base} > ${fq_base%.bz2} gzip -c ${fq_base%.bz2} > ${fq_base%.bz2}.gz rm $fq_base ${fq_base%.bz2} done #i=10 #while [ $i -le ...
3ce0532b6fb153bc52ffd4978a7d2ded970f9b85
2,257
#!/bin/bash MYDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # RPIENV SETUP (BASH) if [ -e "${MYDIR}/.rpienv" ] then source "${MYDIR}/.rpienv" "-s" > /dev/null # check one var from rpienv - check the path if [ ! -f "$CONFIGHANDLER" ] then echo -e "[ ENV ERROR ] \$CONFIGHANDLER path no...
ec539ee6f4713864931c87fe201d97f86450ea29
49
dbmcli -d DBT3 -u dbm,dbm -uSQL dbt,dbt -i 3.sql
ecac250f6e38a19a2a8dbe727c74ee12069f0765
1,359
# Path to your oh-my-zsh installation export ZSH="$HOME/.oh-my-zsh" export PATH="/usr/local/opt/ruby/bin:/usr/local/lib/ruby/gems/2.6.0/bin:$GOPATH/bin:$PATH" export EDITOR="nvim" export GOPATH=$HOME/go ZSH_THEME="spaceship" SPACESHIP_DOCKER_SHOW=false SPACESHIP_KUBECONTEXT_SYMBOL=" " SPACESHIP_KUBECONTEXT_PREFIX="...
bc4820b580dc08b3a271868a0ded46eec752116d
46
MONGO_URI= API_URI=https://viacep.com.br/ws/
3c3a1203bc042f94134fdff76fcc12ec59f0e679
623
#!/bin/bash tstdir=$(dirname $(realpath $BASH_SOURCE)) topdir=$(dirname $tstdir) blddir=$topdir/build dyndir=$blddir/test/dynamo # set -x rm -rf $topdir/build/liba.so LD_LIBRARY_PATH=$blddir $dyndir/testa-nolink && exit 1 echo "expect assertion in the above" LD_LIBRARY_PATH=$blddir:$dyndir $dyndir/testa-nolink || ...
c2ab1455f711ec36bed71bc27a09c1d313cc9f5b
298
REACT_APP_API_KEY="AIzaSyD3sJpPWgfmdR3gzJCfZvuYZffGMtJvicU" REACT_APP_AUTH_DOMAIN="test-1835f.firebaseapp.com" REACT_APP_DATABASE_URL="https://test-1835f.firebaseio.com" REACT_APP_PROJECT_ID="test-1835f" REACT_APP_STORAGE_BUCKET="test-1835f.appspot.com" REACT_APP_MESSAGING_SENDER_ID="730833347188"
a2782b218cabded99701a069936254f2cb617cb7
216
#!/usr/bin/env bash composer require olegkoval/magento2-regenerate-url-rewrites php bin/magento module:enable OlegKoval_RegenerateUrlRewrites php bin/magento setup:upgrade php bin/magento setup:static-content:deploy
13982a8eeeca71cd771be0e750df97eae644b6a9
4,779
killall -9 ls_router; ps; perl make_topology.pl grid_topology/topogrid.txt; ./ls_router 0 grid_topology/test2initcosts0 grid_topology/test2log0 & ./ls_router 1 grid_topology/test2initcosts1 grid_topology/test2log1 & ./ls_router 2 grid_topology/test2initcosts2 grid_topology/test2log2 & ./ls_router 3 grid_topology/tes...
6baa8dd9ecb3119ecdaca91e8ae26ed0e6a6e74b
2,044
iptables -P INPUT DROP iptables -P OUTPUT DROP iptables -P FORWARD DROP iptables -F iptables -t nat -F iptables -t nat -A POSTROUTING -s 10.18.0.0/16 -d 18.0.0.0/8 -j MASQUERADE iptables -t nat -A POSTROUTING -s 10.28.0.0/16 -d 18.0.0.0/8 -j MASQUERADE iptables -t nat -A PREROUTING -s 18.0.0.0/8 -d 18.0.0.1 -p tcp --...
dd74921bbd5bc2b24ad05b9bd1afc55b7186add5
427
source ~/venvs/mturk/bin/activate ROOT=$PWD S1=$1 S2=$2 SOURCE=$3 cd ~/Chatbot_evaluation/amt_eval/ python3.6 launch_2choice.py \ -n 10 \ -t "${ROOT}/${S1}" "${ROOT}/${S2}" \ -s "${ROOT}/${SOURCE}" \ -m 1 \ python3.6 launch_2choice.py \ -n 10 \ -t "${ROOT}/${S1}" "${ROOT}/${S2}" \ -s "${ROOT}/${SOURCE}" \ -m 1 \ p...
0b48cbc2c9a23a7e766854394493dbd671ba9b0a
120
#!/bin/bash # This should be run from a folder created # with create_watcher_config java -jar Watcher.jar watcher.cfg
1944352f5eaab977e0e66e78587755994ade83ff
393
#!/bin/sh VERSION=2.6.3 tar --files-from=file.list -xjvf ../freetype-$VERSION.tar.bz2 mv freetype-$VERSION freetype-$VERSION-orig cp -rf ./freetype-$VERSION-new ./freetype-$VERSION diff -b --unified -Nr freetype-$VERSION-orig freetype-$VERSION > freetype-$VERSION-subpixel.patch mv freetype-$VERSION-subpixel.patc...
3d27820f736757d89469c565cd82079a457b6dea
59
#!/bin/sh tail -f /home/WebEngine/tomcat/logs/catalina.out
78d218929b8762d3b04341436d63a0be22c074c3
411
#!/bin/sh rpm -Uvh http://ftp-srv2.kddilabs.jp/Linux/distributions/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm echo "include_only=.jp" | sudo tee -a /...
c961153eddac942a3519e61c5254d29f9cb22f9d
1,780
#!/bin/bash #read in entries from the sm_config file task=$(cat config/sm_config.json | jq -r ".task[]") ses=$(cat config/sm_config.json | jq -r ".ses[]") acq=$(cat config/sm_config.json | jq -r ".acq[]") run=$(cat config/sm_config.json | jq -r ".run[]") bidsDir=$(cat config/sm_config.json | jq -r ".bids_dir") #initi...
e67be459674cce01785ff8eeb635b6e027534dfd
56
#!/bin/bash kubectl apply -f $pwd/conf/all-in-one.yaml
de706ccefb4acb8344deca5f2c833607d77b72af
186
Extracting the `public key` from the `private key` Disable SSH password authentication Block IPs using `Fail2ban` Disabling **USB** storage devices Private key encryption with `OpenSSL`
69e022a8df55425b2560f584c52677f61bcf844d
61
TELEGRAM_BOT_TOKEN=anc REDIS_HOST=127.0.0.1 REDIS_PORT=6379
d32644df6d1e0ce3096371a363c85e8076aaee86
699
# python3 Simple_KD_DomainNet.py --gpu_id 0 --dset domain_net --net resnet101 --s 0 --batch_size 320 --epoch 9 --interval 3 --suffix simple_domainnet --save_weights MTDA_weights/resnet101 --wandb 1 --txt_folder test_target/no_grad # CUDA_VISIBLE_DEVICES=1 python3 test_MixUp_KD_DomainNet.py --dset domain_net --net vit -...
e1f0aae3c6651b583fa358d0d8b87fe7b7c10b79
1,361
on_reith () { [ "BBC On Network" = "$(/usr/sbin/scselect 2>&1 | grep '^ \*' | sed 's/.*(\(.*\))/\1/')" ] } if on_reith; then echo "On Reith" export http_proxy="http://www-cache.reith.bbc.co.uk:80" export https_proxy="$http_proxy" export HTTP_PROXY="$http_proxy" export HTTPS_PROXY="$http_proxy" export ALL_...
e2f6aadfb3ea9b572e54b06a9926186dbcb10019
493
#!/bin/bash sudo apt update -y sudo apt install g++ -y sudo apt install automake -y sudo apt install pkg-config -y sudo apt install cmake -y sudo apt install uuid-dev -y sudo apt install openssl libssl-dev -y sudo apt install libprotobuf-dev -y sudo apt install protobuf-compiler -y sudo apt install cmake libgtest-dev...
7e5f1cfc84899d4290d6c7729b4b064e85241a03
508
#!/usr/bin/env bash trap 'kill ${!}; term_handler' SIGHUP SIGINT SIGQUIT SIGTERM pid=0 term_handler() { echo "term_handler" service ntp stop if [ $pid -ne 0 ]; then kill -SIGTERM "$pid" wait "$pid" fi exit 143; # 128 + 15 -- SIGTERM } service ntp start service apache2 start echo -n "Starting node...
cb18f7b13251a51df7d796874f92e85d65a9f1df
199
#!/bin/sh case "$2" in ACTIVATE) echo "AT+QGPS=1" | atinout - /dev/EG25.AT - ;; DEACTIVATE) echo "AT+QGPSEND" | atinout - /dev/EG25.AT - ;; ""|*) echo "Unhandled argument: $2" exit 1 ;; esac
f3dcaab98414434a5ca063ad3a833f5a305db54d
1,979
#!/usr/bin/env bash c="0.0,0.0001,0.0005,0.001,0.005,0.01,0.05,0.1,0.5,1.0,10.0,100.0" device=0 dataset=cifar10 root=data/cifar10-py net=vgg16 defense=rse # model_in=./${net}/brelu_0.05.pth # model_in=./${net}/rse_0.1_0.0_ady.pth-test-accuracy-0.8504 model_in=./${net}/rse_0.0_0.0_ady.pth-test-accuracy-0.8523 # c=0,0....
6efcfcf211507d7c4c1846a24243a0ba2c21298a
94
DB_USERNAME=nikita DB_DEVELOPMENT=easygo_development DB_TEST=easygo_test DB_HOSTNAME=localhost
bff5809b6cb167b0d4f611db4833bd9ae9d44f1d
1,599
# Maintainer: Martin C. Doege <mdoege at compuserve dot com> pkgname=craft-fogleman-git _gitname=Craft pkgver=736.fe3e7b3 pkgrel=6 pkgdesc="A Minecraft clone in C and Python with multiplayer support" arch=('i686' 'x86_64') url="http://www.michaelfogleman.com/craft/" license=('MIT') depends=('glew' 'curl' 'python2-req...
d8c330981b4b0f051081ee430449ec3f6603b8f5
299
docker build -t registry.cn-hangzhou.aliyuncs.com/rdc-incubator/kt-connect-shadow -f docker/shadow/Dockerfile . docker push registry.cn-hangzhou.aliyuncs.com/rdc-incubator/kt-connect-shadow docker build -t registry.cn-hangzhou.aliyuncs.com/rdc-incubator/kt-connect -f docker/kt-connect/Dockerfile .
569c307166d98fae919da9e604009ea2375a56da
86
#!/bin/bash ANSIBLE_HOST_KEY_CHECKING=False ansible-playbook -i hosts start-ngrok.yml
46ac7aee3dab998140176065bcff0373ef1b533a
419
#!/bin/sh # Aliases for navigation sharing alias cdw='cd $(cat "${HOME}/pwd-working")' alias cds='cd $(cat "${HOME}/pwd-share")' # Aliases for apt alias sau='sudo apt update' alias saug='sudo apt upgrade' alias sai='sudo apt install' alias ali='apt list --installed' alias alu='apt list --upgradable' # Alias for opti...
0a345ac98a8fb2085252b6fb595f2b1c0d099521
275
g++ commandLineArgs_Example_mul2add3.cpp -o mul2Add3.out echo running without arguments ./mul2Add3.out echo echo running with one argument ./mul2Add3.out 1 echo echo running with 3 args: 1, 2, 4 ./mul2Add3.out 1 2 4 echo echo running with 2 args: 15, 20 ./mul2Add3.out 15 20
f3af9dcaec6d290dbbc2b96621e365f8e87385c4
294
echo Ensuring that dir 'bin' exists mkdir -p ./bin/ echo Assembling files cd src nasm boot_sector.asm -f bin -o ../bin/boot_sector.bin nasm adventure.asm -f bin -o ../bin/adventure.bin cd .. echo Mooshing binary objects together... cd bin cat boot_sector.bin adventure.bin > image.bin cd ..
6470f33d96b7c9528d411d6145e6f59fc822d43f
1,211
clear password="im learning" read -p "enter the code here:" pass if [ "$pass" != "$password" ] then exit fi clear echo toilet -f big -F gay "welcome to kevin's tools!" echo "here are the options:" echo "1.install python" echo "2.install python2" echo "3.install python3" echo "4.ping to wifi" echo "5.exit..." echo "6.c...
4ccd27a4943c5cead6f88fd61ca164784631d1b7
706
#!/bin/sh usage() { echo "It takes two arguments to run. First argument: Monitored file name Second argument: command executed when the monitored file is updated ex: ./entrypoint.sh a.cpp 'g++ a.cpp && ./a.cpp'" } update() { if [ -e $1 ]; then echo `openssl sha256 -r $1 | awk '{print $1}'` fi } if [ $# ...
1ff55f260ab639a547abce5ad2037dc18c220168
8,894
#!/bin/bash # # Script to import latest EVE static data from Fuzzworks and import it to a mysql database # It's part of skŸlizer but it might be usefull for other applications too. # # @author: chrRtg # contact EVE ingame "Rtg Quack" # @see: https://github.com/chrRtg/eve-skylizer # # some basic code from https://git...
41007fcba33b0272627270cf075be2166586543a
26
docker build -t checkup .
85430e098f5141deeb9ab1800ed2dd40cae7bc63
91
#!/bin/bash start=1914 end=1940 for (( i=$start; i<=$end; i++ )) do echo $i done
25d732ffba6c7faa56af238591f14185580afaae
8,727
#!/bin/sh echo -------------------------------------------------------------------------------------------- echo THERE ARE 10 PAUSES IS THIS SCRIPT SO LOOK FOR PROMTS FOR YOU TO HIT ENTER echo -------------------------------------------------------------------------------------------- echo [*] BEFORE WE BEGIN THE SCRI...
6dedfc1909f344bf0438d218a20e74a1bc1a6365
1,097
#!/bin/bash API_URL='https://cod19-situation-dev.herokuapp.com/situations/' http POST $API_URL countryName='Spain' timeStamp='4/18/2020, 10:00:00 AM' activeCase:=188068 newCase:=5252 totalDeaths:=19478 newDeaths:=348 http POST $API_URL countryName='The United Kingdom' timeStamp='4/18/2020, 10:00:00 AM' activeCase:=108...
c1dc5d3001b192fca202a0021da0134270a9beed
3,141
#!/usr/bin/env bash # ------------------------------------ # @description # 镜像工作维护脚本 # # @usage # ./work.sh [action] # # @params # action - action表示工作脚本任务,目前有 ‘build’, ‘push’, ‘run’,‘clean’,‘demo’ # # @author # gejiawen<806717031@qq.com> # ------------------------------------ docker_registry="<YOUR_DOCKER_REG...
c6d9b2317debeda3762d0b3e985a4799f4467244
3,022
#!/bin/bash # # Program: Upload shell script # Purpose: Upload the all the normal files under the publish_dir # Author : Sucha <suchaaa@gmail.com> # Version: 2.00 # Usage : Fill in your PUBLISH_DIR and FTP information blow , then # run it anywhere. # # History: v2.00 - 2014.01.04 # * Using ftp...
9ceecbd24c81c37f3c97fbb82c1cbfe56e93c4d7
201
MYSQL_ROOT_PASSWORD=tester MYSQL_ROOT_HOST=% MYSQL_USER=tester MYSQL_PASSWORD=tester MYSQL_ALLOW_EMPTY_PASSWORD=no REMOTE_USER=\\tester SMTP_PORT=25 APP_USER=tester APP_PASSWORD=tester BUILD_UID=1000
63234244743e873bed98eaa126c01f4f6fd8acd0
371
# Hash secret SECRET=secret # Site settings DOMAIN=localhost PORT=8081 HTTPS=FALSE DATABASE=FILE # FILE | SQL | MONGO_DB LOG_REQUESTS=FILE # FILE | CONSOLE | NULL LOG_ERRORS=FILE # FILE | CONSOLE | NULL # Email EMAIL_PROVIDER=NONE EMAIL_SENDER_ADDRESS=hello@mailer # Add for AWS SES Email sending AWS_ACCESS_KEY_ID=12...
2a5571b2044f323eb896921a24a4e6fd63dfa246
517
#!/bin/bash set -eo pipefail rm -f output.yml output.json function/*.pyc rm -rf package function/__pycache__ ARTIFACT_BUCKET=$(cat bucket-name.txt) aws s3 rb --force s3://$ARTIFACT_BUCKET rm bucket-name.txt STACK=aws-s3-lifecycle FUNCTION=$(aws cloudformation describe-stack-resource --stack-name $STACK --logical-resour...
e1a340289307a857b2da758ce414fa1c67148dea
66
#!/bin/sh set -e cd .mage exec go run mage.go -compile ../mage
e99c6cf76fbccac3568c90939fd96a99597ad80f
1,290
#!/bin/sh -u usage() { cat >&2 <<EOF usage: add-profile-picture [--github | --gitlab] ORGANISATION_NAME Add the organisation ORGANISATION in git-forge GITFORGE to ocaml-ci. Known git-forges are "github" and "gitlab" Example: add-organisation --github ocurrent EOF exit 1 } if [ $# -ne 2 ] ; then usage ...
a0c52a95003ce3d4c7d4445d031128a779c3f2ad
9,665
#!/usr/bin/env bash # to dawnload this script # curl -L http://bit.ly/2x0Wons >x72alinstall.sh # ------------------------------------------------------------------------------ # safeExit # ----------------------------------- # Non destructive exit for when script exits naturally. # Usage: Add this function at the end...
9494ea11916f169ddfa6d18efc6095cc96f4f4dc
157
#!/bin/sh cd $1 \ && sed -e "1,/urn:mozilla:install-manifest/d" install.rdf \ | grep -m1 -o -e "em:id\(>\|=\"\)[^<\"]\+" \ | sed -e "s/em:id\(>\|=\"\)//"
89e4da19e94b9eba9849d21b253e32e77cc3d1fd
1,514
#!/bin/bash # ANNOTATE_PROTEIN_FASTA.sh # # written by Richard Wolfe # # $1 = protein sequence fasta file to annotate # $2 = IPER or NO_IPER or PFAM # # makes a directory annotate_IPER or annotate_NO_IPER or annotate_PFAM with the results #make sure 1 attribute #check if varialble 2 is empty if [ -z $2...
f8fcff919ec735d93b8ffa64f8f9ad9370545774
351
#!/bin/bash SCRIPTS_REPO=scripts DOTFILES_REPO=dotfiles # Quick install # curl -L http://bit.ly/boris-setup | sh # curl https://raw.githubusercontent.com/borisjoffe/scripts/master/setup.sh | sh git clone https://github.com/borisjoffe/$DOTFILES_REPO.git dotfiles cp -R ./dotfiles/.* . git clone https://github.com/bo...
8a5bb4b50366ffbc6cee653d945ff38210a337c5
132
#!/usr/bin/env bash heroku config:set DISABLE_COLLECTSTATIC=0 git push heroku video:master heroku config:unset DISABLE_COLLECTSTATIC
56c183a4a2702ad2ff52788744117b8266e3a871
153
#!/bin/sh lineNum=$1 if ! echo "$lineNum" | grep -qE '^-[0-9]+$'; then echo "provide a line number" exit 1 fi shift head "$lineNum" "$@" | tail -1
d6858f6a87b897966bea8dd82b059a3a5b2c65f3
148
#alias gnr="grep -nr" alias g=grep #function grep_recursive_case_insensitive() { grep -nri $1 } #alias gv="grep -v" #alias gvc="grep -v '\/\/\|\#'"
6f04f6cfcb81eb7cb245d8d68ba38373bb31011e
514
#!/bin/bash # #busybox app # readonly -a list_reboot_0=( smonitord stimerd ) # #custom app # readonly -a list_reboot_1=( nginx ) # #last app # readonly -a list_reboot_2=( syslogd jlogd ) # #$@:list # killapp() { local list="$@" killall ${list} killall ${list} } main() { echo "System will reboot after 3s....
d10267e9212b09e07db3de9e69816bf7c219ded2
793
# the format or list file # imagepath label # /ab/cd/image.jpg a:b:c:d # for mnt #python data/create_mnt_list.txt #CUDA_VISIBLE_DEVICES=1 nohup python main.py --trainlist=data/train_list.txt --vallist=data/test_list.txt --cuda --adam --lr=0.001 --niter=1000 --saveInterval=10000 > log.txt & # for octave # python dat...
e1b2ac7054059354c8c7c35a1260204d28f90106
3,282
#!/bin/bash # Copyright 2019 Simon Vandieken set -e -o pipefail stage=0 nj=32 train_set=all_mfcc_hires mix_set=mixed test_set=summa_mfcc_hires gmm=tri3b # This specifies a GMM-dir from the features of the type you're training the system on; # it should contain alignments for 't...
4af20f9a1b9b238bf4e35d7b1bd62b608b4b12d4
998
#!/bin/bash # Opens your browser to the github pull request creation page for the current # commit against the source branch. # abort if not in git directory if ! git rev-parse --git-dir > /dev/null 2>&1; then echo "Aborting. Not in a git repository." exit 1 fi # specify the root url root="https://github.com" #...
f8594a2cb01a01d7c8d02566b24d115234783985
3,978
#!/usr/bin/env bash source test/init plan tests 27 source _common client_output='' mock-client() { client_output+="client_call $@"$'\n' } client_call=(mock-client "${client_call[@]}") logfile1=$dir/data/01-os-autoinst.txt.1 logfile2=$dir/data/01-os-autoinst.txt.2 logfile3=$dir/data/01-os-autoinst.txt.3 try-cl...