blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
69c45687e4129061825dfef86297012aa554964d
443
#!/bin/sh # (c) Copyright 2013 Hewlett-Packard Development Company, L.P. UTIL=rbsureset DIR="/tmp/sstk" if [ ! -f "$DIR/$UTIL" ]; then echo "$DIR/$UTIL can not be found" 1>&2 exit 1 fi chmod +x "$DIR/$UTIL" # Run Utility "$DIR/$UTIL" rc=$? case $rc in 0 ) echo "$UTIL successful";; 127 ) ec...
5700494850a53f8e8a7b9ccce3a2c1fd5c883ac8
24
iperf -s -u -i 1 -p 5001
32caef05088621ab32a2c389585d7314f6cdca5d
176
HTTP_RECEIVER_URL=http://localhost:3000 TCP_RECEIVER_HOST=localhost TCP_RECEIVER_PORT=3001 SCP_HOST=localhost SCP_USER=user SCP_PWD=pwd SCP_RECEIVER_PATH=/path/to/destination
732511d0371eb0755162acf3ec4e08948da8a2f7
92
systemctl restart shadowsocksvpn.service sleep 3 systemctl status shadowsocksvpn.service -l
39ce4d69f549c2c0d4bde60471df9133e5f8ef6e
1,112
#!/bin/bash set -eu datasets_path="/root/datasets" batch_size=1 mmdetection_path="/home" for para in $* do if [[ $para == --datasets_path* ]]; then datasets_path=`echo ${para#*=}` fi if [[ $para == --batch_size* ]]; then batch_size=`echo ${para#*=}` fi if [[ $para == --mmdetection_...
a29a75d2047e36a9f649dff062ae9e9a4ccd2c23
102
#!/bin/sh jxv8 package test.js -add -native ./test --one=1 --two 2 --three -abc -d 1 str1 str2 str3
6983fcf0e4f2219370407c29f46faca1f1267296
4,262
#!/bin/bash ############################################################### #File Name : configure_rsyslog_for_server.sh #Arthor : kylin #Created Time : Tue 22 Sep 2015 03:47:57 PM CST #Update Time : Fri Nov 20 22:49:39 CST 2015 #Email : kylinlingh@foxmail.com #Github : ht...
bbc5dfc42cdd3767ca02cdd520a2b6728a8998f0
356
#!/bin/sh empty -L /root/empty.log -f -i in -o out squirrelmail-configure empty -w -i out -o in "Command >>" "D\n" empty -w -i out -o in "Command >>" "dovecot\n" empty -w -i out -o in "Press enter to continue" "\n" empty -w -i out -o in "Command >>" "S\n" empty -w -i out -o in "Press enter to continue" "\n" empty -w -i...
b9c19c47d6a03cfe9869e233c6a37e44bb1ca615
46
ifconfig -a |sed -rf ~/bin/ifconfig_parse.sed
dc6ba2d23a89201a0c6319a616ed3c808fde1747
126
#!/bin/bash day= date +"%u" C_ALL=es_ES #C echo "$day" if [[ $day -gt 5 ]]; then echo "dwudzionek" else echo "pracka" fi
788b7c7d233b63f8a27f1ec7dc7c98340ff52dea
1,936
#!/bin/bash #SBATCH -n 1 #SBATCH --mem=4000 #SBATCH -t 24:00:00 #SBATCH -p standard #SBATCH -A cphg_cz3d #SBATCH -o slurm_recall_peak/del_TPR_UTX_with_Vector_ctrl.out macs2 callpeak --SPMR -B -q 0.2 --keep-dup 1 -g hs -t \ /nv/vol190/zanglab/zw5j/since2019_projects/UTX_HaoJiang/f0_data_process/chip_seq/data_1st_submi...
0107c41d08bd4fe09705ce897f4c1bf476f43942
262
#! /bin/zsh # Ubuntu # sudo apt-get install vim tmux nvim # sudo snap install nvim # Arch # sudo pacman -S vim tmux nvim for file in .vimrc .zshrc .tmux.conf do ln -s $file "~/${file}" done for folder in nvim do ln -s $folder "~/.config/${folder}" done
77c87e7a4e644c16f4611a9138f9dc672958ac07
314
# Twilio credentials and phone number TWILIO_ACCOUNT_SID='AC803f4d5bcef1ad59a96501703eaf8f3f' # obtained from twilio.com/console TWILIO_AUTH_TOKEN='610297f40abbb78c37b6f000858b5b66' # also obtained from twilio.com/console TWILIO_NUMBER='9106016105' # use the number you received when signing up or buy a new number
36729213456757a514b33501d050d593550ea19d
2,215
#!/bin/sh ip6tables -F ip6tables -P INPUT DROP #dropuim pachetele invalide de pe orice interfata #ip6tables -A INPUT -m state --state INVALID -j ULOG --ulog-prefix "INVALID" ip6tables -A INPUT -m state --state INVALID -j DROP #acceptam conexiuni deja formate #ip6tables -A INPUT -i enxb827eb78db48 -m state --state ES...
68a2461d5d49f01d717fd7f78ed584833373c067
98
#!/bin/bash rosbag record -o mapping --split --size=1024 /tf /scan /mobile_base_controller/odom
0e0123c289808bedd1420c41c64574ffc787833b
235
#!/bin/bash docker network create -d overlay cluster-network # docker network create --driver=overlay --subnet=10.10.0.0/16 cluster-network docker stack deploy --compose-file docker-compose.yml rmq sleep 3 sh ./status.sh
825fdb61703fe5c4a2f5a2cba9246b08f750c6a0
166
for thres in {10..90..10} do DIR='/home/sven/Documents/mmdetection/demo/predict/IOU' DATA_DIR_Predict="${DIR}${thres}" echo $DATA_DIR_Predict done
a707b7d1ecf011689ca38dd469dce04183e245b1
130
STRIPE_PUBLISHABLE_KEY=your_test_key_here STRIPE_SECRET_KEY=your_test_key_here HTTP_BASIC_USER="Jungle" HTTP_BASIC_PASSWORD="book"
9838d478d6ac11e95c3cba2e3b78168f281564c1
157
# To start the application duplicate or rename this file to .env MONGODB_URI = mongodb://localhost:27017/bursary-management-system JWT_SECRET = secret key
78ac83ec68e9a8343f77975bb62850d02b66425c
2,395
#!/bin/bash red='\e[1;31m' green='\e[0;32m' NC='\e[0m' cyan='\x1b[96m' white='\x1b[37m' bold='\033[1m' off='\x1b[m' clear ssl="$(cat /etc/stunnel/stunnel.conf | grep -i accept | head -n 2 | cut -d= -f2 | sed 's/ //g' | tr '\n' ' ' | awk '{print $1}')" ssl2="$(cat /etc/stunnel/stunnel.conf | grep -i accept | head -n 2 ...
8034d8c55910dbc6e1bfeab8fd2c30b94b468c03
433
#!/bin/bash # Configuration Path from RKE Provider config_path="$(pwd)/kube_config_cluster.yml" # Install Cert Manager kubectl --kubeconfig="$config_path" create namespace cert-manager kubectl --kubeconfig="$config_path" label namespace cert-manager certmanager.k8s.io/disable-validation=true kubectl --kubeconfig="$co...
5f912f7e4be08976aa1a0a10a79613cbaea69d06
75
#!/bin/bash cmd=$(dirname $(realpath $0))/dockercmd exec $cmd latexmk $@
5fb44c8fd60457af733d39e0c94af9c621c85097
2,669
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). # See COPYING for license details. pkgname=yeti pkgver=2388.fcd3ee3d pkgrel=2 pkgdesc='A platform meant to organize observables, indicators of compromise, TTPs, and knowledge on threats in a single, unified repository.' groups=('blackarch' 'blackar...
60a4462eb6fd4ffd5c38b19db9452659ca0e0d5d
275
#!/bin/sh export containerId=$(docker ps -l -q) xhost +local:`docker inspect --format='{{ .Config.Hostname }}' $containerId` docker run -it \ --env="DISPLAY" \ --env="QT_X11_NO_MITSHM=1" \ --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \ rosjoy \ terminator
0abafea17069f5cbd40fae5b2cca9623167edb33
524
if [ -f ~/.bashrc ]; then source ~/.bashrc fi [[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* export NVM_DIR="/Users/sking/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM...
f9cdceb5eeef6748efcc4e03f9de7ff093ae9e0c
2,630
#!/bin/sh usage() { echo "Usage: $0 [-o][org1,org2...] [-u] [-p] [-e]" ; exit 1; } if [ "$#" -ne "8" ]; then usage exit 1 fi echo "****************** Cleanup script started at `TZ=":US/Pacific" date` by user at `echo $SSH_CLIENT | cut -d ' ' -f 1` ****************** " MGMT_URL="https://api.e2e.apigee.net" DEVELOP...
a55183e1d40cd0d5216e60ae776097c81c17504a
1,391
#!/usr/bin/env bash # Filename: favorite-wallpaper # Description: Marks/unmarks wallpapers as favorite. # Maintainer: Jeremy Cantrell <jmcantrell@gmail.com> # Last Modified: Sun 2010-10-03 02:57:01 (-0400) # I wrote this script as a helper for my wallpaper manager, Wally, but I # suppose it could be useful ...
d6f673b30ea78b56821f18e14f1abf79bbedd51d
1,098
#!/usr/bin/env bash # a wrapper around grep which make it easy to only search within a folder with # "grex src" or only Haskell files with "grex .hs" declare -a DIR declare -a FIND_OPTIONS while [ -d "$1" ]; do DIR[${#DIR[@]}]="$1"; shift done if [ "${#DIR[@]}" -eq 0 ]; then DIR="." fi if [ "$(basename "$0")" = "...
4894bbee3ab7e9611d8684bb4608530ac623c5e9
339
#!/bin/bash export LANG='fr_FR.UTF-8' . /etc/fdh/fdh.sh LOCKFILE="$TMPDIR/flickr_generate_thumbs.cron.lock" if [ -f "$LOCKFILE" ]; then exit fi touch "$LOCKFILE" DATE=`date +%Y%m%d` if [ "x$DISABLE" == "x" ] && [ -d "$NEWS_DIR" ] && [ -d "$THUMBDIR" ]; then /usr/bin/flickr_create_news_thumbnail.sh $DATE fi ...
0210772748c1c33069828e44ae72bd4a29b17bcd
45
#!/bin/sh java com.wanci.dmerce.cli.Whois $*
d47be353cd5d7f801bfaad288c5c4b991c57415f
206
#!/bin/bash sudo chown -R ubuntu:ubuntu /tmp/go-to-sample sudo supervisorctl stop go-to-sample cp /tmp/go-to-sample/go-to-sample.bin /opt/go-to-sample/go-to-sample.bin sudo supervisorctl start go-to-sample
268ae9f9464196c2c523e5fcdb123592769c6322
180
#!/bin/bash PID=`lsof -t -i:80` PID2=`lsof -t -i:443` git pull kill -9 $PID kill -9 $PID2 echo "killed http:80 $PID and killed https:443 $PID2" nohup npm run build & echo "started"
b4f65365f0cdea14d745754e56d049c8e9f5e9f1
116
#!/usr/bin/env bash root=$(git rev-parse --show-toplevel) flake8 "$root" py.test --cov IPoFB "$root/tests" exit $?
eabfce0b0ae0815f2b63bc8b874e6fda9eef77cd
347
# -*- mode: sh -*- # vim: set ft=sh: function zpwrKeySender(){ if (( $ZPWR_SEND_KEYS_PANE != -1 )); then local pane mywords # tmux send-keys -t learn:0.0 $1 for pane in ${(Az)${(s@,@)ZPWR_SEND_KEYS_PANE}}; do tmux send-keys -t $pane "C-u" "$BUFFER" #&>/dev/null done ...
378e0544a4e91062d5d95c7fb400d2a68c22de50
108
#!/bin/sh sudo java -jar /home/backend/seidlserver_main_backend/seidlserver_main_backend/target/backend.jar
4d2aafc9bfad7e36aa77617ca007dbba38da3f6b
390
#!/bin/bash DIB_RELEASE="focal" ARCH="arm64" # baremetal \ # dynamic-login \ # cleanup-kernel-initrd \ docker run --privileged --rm -it \ -v diskimage_builder:/opt/output \ -e DIB_RELEASE=$DIB_RELEASE \ -e ARCH=$ARCH \ diskimage_build:debian \ -a arm64 \ -o /opt/output/ubuntu2004-a...
093cee2bf118deb78e413312637c9a67ce440f82
1,611
#!/bin/bash cd $(dirname "$0") WORKDIR=`pwd` SPIDERDIR=${WORKDIR}/spider MAPREDDIR=${WORKDIR}/mapred KMEANSDIR=${WORKDIR}/kmeans CHARTDIR=${WORKDIR}/chart function q { echo "ERROR!" $1 exit 1 } function c { if [ $? != 0 ]; then q $1 fi } function cf { if [ ! -f $1 ]; then q "file ...
4a15e6d25593473451c97960acda417d1e8984cd
123
#!/bin/bash echo "Script que crea un directorio con el nombre que introduzcas" mkdir "$1" echo "El nombre elegido es: $1"
210d8b02e0cb6d93afa01f58a32229643dda6144
496
if test -f ".env"; then . ./.env fi FOLDER_NAME=$ONEDRIVE_FOLDER_NAME cd onedeath lua main.lua $ONEDRIVE_FOLDER_LINK find . -type f -name '*.exf' -delete rm -rf ../content* ../insertions* ../static/*.pdf ../static/images/profilepics/ mv $FOLDER_NAME/config.yaml ../ mv $FOLDER_NAME/content ../content_base mv $FOLD...
f3aaeff2714df80d51220c99f91d2c221d768b02
960
#!/bin/bash echo "welcome to employee wage calculation problem" isPresent=1; randomCheck=$((RANDOM%2)); if [ $isPresent -eq $randomCheck ] then echo "Employee is present" else echo "Employee is absent" fi IS_PART_TIME=1; IS_FULL_TIME=2; MAX_HRS_IN_MONTH=100; EMP_RATE_PER_HR=20; NUM_WORKING_DAYS=20; totalEmpHrs=...
61c789d8609a7175f1caaa324abbd16918874b6e
5,296
<?xml version="1.0" encoding="UTF-8"?> <project version="4"> <component name="AndroidLayouts"> <shared> <config /> </shared> </component> <component name="AndroidLogFilters"> <option name="TOOL_WINDOW_CONFIGURED_FILTER" value="Show only selected application" /> </component> <component name="...
2689056da76f673d2523cbdfd47a81909194dd46
5,017
#!/bin/bash # D=`date +%F@%R` #BASIC CONFIGURE RESET_MODE="" #TRUE:enable RESET,other:disable HARD_RESET_MODE="" #TRUE:enable RESET,other:disable WIRED_MODE="TRUE" #TRUE:enable wired,other:wireless VERBOSE_MODE="" #TRUE:enable debug mode MOBILE_MODE="" #TRUE:enable mobile network INTRANET_MODE="TRUE" #TRUE means e...
bd9e0ca940768cf5996eed5f4d7a2f056b14961f
382
sudo wget -O /etc/filebeat/filebeat.yml "https://raw.githubusercontent.com/shubhamagrawal100/filebeatconfig/master/filebeat.yml" echo "Files added. Will now start filebeat. If you want to stop use \"sudo service filebeat stop\" " echo "Restarting...." sudo service filebeat restart echo "File beat restarted, please che...
4dfb2260bb6f47aa4af02da5fb5b29ae51a63bc9
1,061
#!/bin/bash ##For More Information:http://blog.shvetsov.com/2013/02/access-android-app-data-without-root.html ##Script is Written By udit7395 ##HOW TO USE: ./getDataWithoutRoot.sh <packagename> #NOTE: This method doesn't work if application developer has explicitly disabled ability #to backup his app by setting andr...
be26b97e23c2f6afdf561d6f0b5ddd52055a5cc7
593
#!/bin/bash rm /etc/localtime ln -s /usr/share/zoneinfo/Europe/London /etc/localtime setenforce 0 sed -i "s/SELINUX=enforcing/SELINUX=permissive/g" /etc/sysconfig/selinux yum update -y && yum clean all yum install -y tcpdump krb5-workstation ntp vim systemctl stop firewalld systemctl disable firewalld systemctl enab...
5788c40795e489b97a84aa085e6b96a98dd2bcd5
348
#!/usr/bin/env bash pg_dump --format custom --no-tablespaces --file ~/Dropbox/pg_backup/filings_filings.backup \ --table 'filings.filings' # pg_restore --host localhost --username "igow" --dbname "crsp" --verbose --no-tablespaces \ # --clean ~/Dropbox/pg_backup/filings_filings.backup psql -c "GRANT SELECT ON fi...
39da074d5a335659952f64b9f14aa29e7253758c
2,165
#!/bin/sh #=============================================================================# # Vonng's Bash Profile Setup script # Author: vonng (fengruohang@outlook.com) # Run this script to setup configurations #=============================================================================# #————————————————————————...
4a2091d6ee3874cf3d2e32734f4e7f7d6851a215
805
python UnivariateFeatureSelection.py --jet_type LCTopo --etaLow 0.0 --etaHigh 0.2 python UnivariateFeatureSelection.py --jet_type LCTopo --etaLow 0.2 --etaHigh 0.7 python UnivariateFeatureSelection.py --jet_type LCTopo --etaLow 0.7 --etaHigh 1.3 python UnivariateFeatureSelection.py --jet_type LCTopo --etaLow 1.3 --etaH...
4dae4ed9359ea16d93076d25231248492c3a91c0
898
#!/bin/bash # Clone pinned Kuberay commit to temporary directory, copy the CRD definitions # into the autoscaler folder. KUBERAY_SHA="ce84f0441c991eb4b0f52ee2cd85c0a5ac048d11" OPERATOR_TAG=${KUBERAY_SHA:0:7} # Requires Kustomize (dependency to be removed after KubeRay 0.3.0 cut) if ! command -v kustomize &> /dev/nul...
e69ad1dde9f0d4698d5647b9f6dc6f6ade519072
55
#!/bin/bash avconv -i $1 -c:v libx264 -c:a copy $1.mkv
c73d5bd750396beb2e0679cdb9057933f4c57a37
1,630
#!/bin/bash # Script fot update and install the packages and programs # Included script DIR_PACKAGES=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) source "$DIR_PACKAGES/utils/color.sh" source "$DIR_PACKAGES/include/resize.sh" ################################################################################ functi...
0dc57dae5c02108a3571cbedc79033e56736d33b
368
#!/bin/bash minavailableRamPercent=$1 memavailable=`free -m | grep Mem | awk '{print $7}'`; memtotal=`free -m | grep Mem | awk '{print $2}'`; memavailablepercent="$(($memavailable * 100 / $memtotal))" echo "$memavailable mb ist verfuegbar von $memtotal mb" echo "/ $memavailablepercent % /" if [[ $memavailableper...
7b1ee23eb5853812a0b3fbcd6370acc62e679309
177
git config --global user.email "kirill@kamakepar.ru" git config --global user.name "Kama Kepar" git add * git commit -m "New Version" git branch -M main git push -u origin main
ee50c5050c6622d0412652b38d2062cea874d1d2
154
DEFAULT_HOST=botnoigroup.com VIRTUAL_HOST=botnoigroup.com LETSENCRYPT_HOST=botnoigroup.com LETSENCRYPT_EMAIL=admin@botnoigroup.com HTTPS_METHOD=noredirect
086520cc7f8533777fad8a72587afdb9583e2bec
956
#!/bin/bash if [ ! -d "../cor" ] then echo "cor folder is missing" exit fi GREEN='\033[0;32m' RED='\033[0;31m' NC='\033[0m' arr=(../cor/*) error=0 nb=1 if [ $# -gt 0 ] then if [ $1 -gt $nb ] then nb=$1 fi fi if [ $# -gt 1 ] then if [ $2 -gt $nb ] then nb=$2 fi fi for (( n=0; n<$nb; n++ )) do p1=$((RAND...
5cf026011d9f305fa97b50d6de9377a9e147f696
429
#!/bin/bash sed -i 's|server unix:.*/FrameworkBenchmarks/web-simple|server unix:'"${TROOT}"'|g' nginx.conf fw_depends perl nginx cpanm --notest --no-man-page \ Web::Simple@0.033 \ DBI@1.637 \ DBD::mysql@4.043 \ Plack@1.0044 \ Starman@0.4014 \ JSON::XS@3.04 nginx -c $TROOT/nginx.conf pl...
6e6874272c153174ec30da0d6832736d4313c287
7,300
#!/usr/bin/env bash set -e # functions apitest () { info "Install hurl for testing glaber" [ -d ".tmp/hurl-$HURL_VERSION" ] || \ curl -sL https://github.com/Orange-OpenSource/hurl/releases/download/\ $HURL_VERSION/hurl-$HURL_VERSION-x86_64-linux.tar.gz | \ tar xvz -C .tmp/ 1>/dev/null info "Testing that glab...
c102ac787ac5949d8563a16e5ff86c9c98930fd9
530
#!/bin/bash chown www-data:www-data /app -R usermod -u 1000 www-data if [ "$ALLOW_OVERRIDE" = "**False**" ]; then unset ALLOW_OVERRIDE else sed -i "s/AllowOverride None/AllowOverride All/g" /etc/apache2/apache2.conf a2enmod rewrite fi if [ "$DOCUMENT_ROOT" = "**False**" ]; then unset DOCUMENT_ROOT els...
3a480b0e62c5537b888c5d4a93b41080dd2373e7
29
#!/bin/sh java -cp bin Main
03ea0305ea7f5613477069e4b268f06b50dd3327
225
PATH=/usr/local/bin:$PATH source ~/.git-completion.sh export PS1="\w\$(__git_ps1)\$ " [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" [[ -s "$HOME/.bash_profile.local" ]] && . "$HOME/.bash_profile.local"
70c7f4af03e96d9d6646069d4b714b0718d7ed47
122
python ./auto-cite/auto-cite.py bundle exec jekyll serve --open-url --livereload --trace ssh-add -K ~/.ssh/dnaase-GitHub
5ef43e3dbcf4657281d02f32177cee3963eaaec4
1,592
#!/bin/bash ##include <stdio.h> #Only if usefull, for instance if this location is RAM cp ./SFFDataMgmt /data/tmp/ cp ./ProjSFF /data/tmp/ ### The actual program run_command() { prog_param="/data/tmp/SFFDataMgmt -M " prog_sff="/data/tmp/ProjSFF -optf "$2" -D " linecode=$prog_param""$1" -f "$3 e...
10b0f0e604a122ab82224bcc8f172ba6bc89168d
1,776
#!/bin/bash # server.sh # Server Program for Sunfish # 繰り返し回数 steps=5000 # ホスト名, ログイン名, パスワード . hosts # クライアントの総数 cnum=${#CLIENT[*]} # ログファイル log="server.log" # clean rm -rf ~/.sunfish_s # make directory mkdir ~/.sunfish_s # host name hostname=`hostname` echo $hostname # number of clients echo "Clients : $cnum...
1620d6d03b33f94c3eb38bf10f9568c4c44aba74
145
#!/bin/bash npm install -g anyproxy mkdir -p ~/.fcli cp ./.config.yaml ~/.fcli/config.yaml anyproxy --rule ./hack/integrity-test/rule.js &
8165b2479d0e3ad59283153aedddb8cfe7cf2383
2,733
#!/bin/bash # take input for desired username/repo # git clone desired repo # find all .java files in cloned directory # output list of java files to a .txt file # run TodoReader java tool on the file of results to: # write all TODO tasks to a .txt file (name based on commit #, new file for every commit, new folder for...
5aa855f5e09fbcbd65e4561695f4bf6b85e470f5
472
#!/bin/bash LOG_PATH=$1 TIMESTAMP=$(date -u '+%s%N'); RAND=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1); SHA=$(echo $RAND | sha256sum); NEW_FILE_NAME=${TIMESTAMP}_${SHA%" -"}.log #Rename and move log file mv $LOG_PATH/access.log $LOG_PATH/nginx_logs_archive/${NEW_FILE_NAME} #Re-run logs docke...
b88bc39e093e50031458821247ac8a4843bac4ea
1,114
#!/bin/bash cat $1 | awk -F'\t' ' BEGIN { printf "INSERT INTO drug (id, commonName, sourceDb, sourceName, status, dss, pubChemId) VALUES" } NR>2 { printf ","; } NR>1 { status = toupper($10); if(status == "APPROVED") { status = 0; } else if(status == "EXPERIMENTAL") { status = 1; } else if(sta...
0d435ede8a6603806d55d1200b7fd1d5c2d15cfc
97
#!/bin/sh echo "Enter the expression" read exp result=`echo $exp|bc` echo "result: $result"
4ad548919f42e5c0945a6bb037c60f0a7a3e2b2d
128
#!/bin/sh /installed/directory/crawl_openvpn_status.py -s your_vpn_1 /installed/directory/crawl_openvpn_status.py -s your_vpn_2
16425e37b7efc7c562a3ad64d1e40f7a7b3ce665
102
#!/usr/bin/env bash if [[ -n "$HEROKU_API_KEY" ]]; then heroku keys:remove "$USER@$(hostname)" fi
a63ecee36eb055bb7b073e7f07418ee2f280d8b1
54
#!/bin/sh export LC_CTYPE=en_US.UTF-8 exec snavigator
b0269228bb98cbe24f089931f4c864e5571d2b7e
1,762
#!/bin/bash sudo bash /mnt/mmetsp/Polarella_glacialis/SRR1300519/trinity/SRR1300519.trinityfile.sh sudo bash /mnt/mmetsp/Heterocapsa_arctica/SRR1300520/trinity/SRR1300520.trinityfile.sh sudo bash /mnt/mmetsp/Vitrella_brassicaformis/SRR1300530/trinity/SRR1300530.trinityfile.sh sudo bash /mnt/mmetsp/Mantoniella/SRR130053...
5035e47e39dbdc80794974da4d2ab102a4b9a870
3,373
#!/bin/sh set -e # This script does: # Setup the BIOS to whatever network card we want to PXE boot from RACADM=racadm usage() { echo "Usage: $0 --pxe-boot-card-num <card number> --lom-card-num <card number>" echo "Example of card numbers: 1, 2, 3, 4, 5, 6, 1g1, 1g2, 1g3, 1g4, 10g1, 10g2, 10g3, 10g4" ...
3ce88dada6113744dd85378cf81bf6a2680187c7
2,581
#!/bin/bash USAGE="Usage:\n\t$0 [-e] [action] required_strings files Here is: -e Process considering file extensions, optional. Actions can be: -a|--add string add string at the end of filenames -p|--prefix string add string at the begining of filenames -d|--delete string delete string from filename -r|--repl...
19c744b3bf296a2e6be150ece2dd703c5403b247
2,317
# $Id: PKGBUILD 158661 2012-05-05 22:14:03Z eric $ # Maintainer: Eric Bélanger <eric@archlinux.org> pkgname=sysklogd pkgver=1.5 pkgrel=4 pkgdesc="System and kernel log daemons" arch=('i686' 'x86_64') url="http://www.infodrom.org/projects/sysklogd/" license=('GPL' 'BSD') depends=('glibc' 'bash') provides=('logger') bac...
fe508dfeea164de221c93f54216972f0c338b468
152
echo "building" CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build main.go echo "build finished" scp -r -P 2226 $GOPATH/src/Cloud root@al.sijia.ooo:~/Cloud1
aa28de43826d2c95fad74d3a5d45bf04398fc074
288
#!/bin/bash # Array of file names file_names=("003.png" "006.png" "009.png" "025.png" "151.png" "813.png" "831.png") # Loop over the file names for filename in "${file_names[@]}" do # Run the command with the current filename poetry run python mask_from_img.py "$filename" done
a76f9e6100e4caa6e979769bc22ce155ed0b545d
172
until ! read curLine do desc=`echo "$curLine" | cut -d"|" -f1` url=`echo "$curLine" | cut -d"|" -f2` echo "<a href=\"${url}\">${desc}</a>" # >> output.txt done
32f3ce8c267c2d4d1da4a8f4ada6aa030d2c8653
172
#!/bin/sh #openssl genrsa -des3 -out private-key.pem 2048 openssl genrsa -out private-key.pem 2048 openssl rsa -in private-key.pem -out public-key.pem -outform PEM -pubout
00db296c4f8d2201bd65145eee3da62af5cf4d0b
1,134
#!/bin/sh set -e if test -z "$bintray_api_key"; then echo 'bintray_api_key must be set' exit 2 fi upload() { path="$1" file="$2" repo=pycurl package=pycurl version=`dirname $path` curl -sfIL https://api.bintray.com/packages/pycurl/$repo/$package || ( data=$(cat <<-EOT {"name":"$package", ...
7233cc3389104114cbed13168f352ed44ef7fcd6
64
export DABBOTTCOVID=$PWD source $DABBOTTCOVID/source/update.sh
7f1d337a42e401e293d55ef1a6566d2757a5344b
350
#!/bin/sh file="./old_ip.txt" if [ ! -f $file ] then echo Create file to store IP: $file wget -q -O - ifconfig.me > $file; fi OLD_IP=`head -n 1 $file` echo Old IP is: $OLD_IP PUBLIC_IP=`wget -q -O - ifconfig.me` echo New IP is: $PUBLIC_IP if [ "$OLD_IP" != "$PUBLIC_IP" ] then echo Update $file ...
ebddf74d5d18d0af373dbeebc8232728caf3bfb9
92
counter=0 while [ $counter -le 100 ] do echo "hello" counter=`expr $counter + 1` done
829f6f87c6e7d0fa3e0375342192a5ed489f7f44
23
HTML_ROOT=/var/www/html
7c8e0276e1566a3774f37a1f9ef9b2b75a3b3b00
3,316
#!/sbin/sh set_perm() { chown $1.$2 $4 chown $1:$2 $4 chmod $3 $4 } ch_con() { /system/bin/toolbox chcon u:object_r:system_file:s0 $1 chcon u:object_r:system_file:s0 $1 } ch_con_ext() { /system/bin/toolbox chcon $2 $1 chcon $2 $1 } /sbin/busybox mount /system /sbin/busybox mount -o rw,remount /system /syste...
f65995a3d10a3d7ad66f2a0992fdbbf223e03a95
272
# Environment Config # This should not be committed to your repo # Place the following in your starter js file or bin file # require('dotenv').config({path:'variables.env'}); # Access variables using process.env.VARIABLE_NAME AIRTABLE_BASE_ID= AIRTABLE_API_KEY= PORT=
5676f7d473c703ebc8995a475580f5103d28e902
74
read -p "Enter the name of the directories -> " a b c mkdir -p $a/$b/$c
104b0b0816190893d640353b34dd026dcee44b0a
467
#!/bin/sh baseDir=$(dirname `readlink -f "$0"`) $baseDir/build.sh docker rm -f cleanpath-ui docker rm -f cleanpath-service docker rm -f cleanpath-cleaner docker network rm cleanPath docker network create cleanPath docker run -d --name cleanpath-cleaner --network cleanPath cleanpath-cleaner:1.0.0 docker run -d --nam...
e3ea30ae832b43bbe48dd2a59e4790c46b2e7200
406
DJANGO_SETTINGS_MODULE=settings.prod SECRET_KEY=$x(q9w<!(t@xo%ln*&n*ktium9s83ukhw@f*18_*q&igzothw6 DJANGO_ALLOWED_HOSTS=localhost 127.0.0.1 [::1] discog-sandbox.exiverprojects.com SQL_ENGINE=django.db.backends.postgresql SQL_DATABASE=discog_prod SQL_USER=postgres SQL_PASSWORD=postgres SQL_HOST=db SQL_PORT=5432 PLATFORM...
eae323ada7188a528bf54c886b9e59dc637307a0
11,311
#!/bin/bash -ex # Copyright 2015 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
f4377d6d0b02c6b3f6e19e2544cfd1d6e1146b69
456
#!/bin/bash SRCDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" HEREDIR=`basename $SRCDIR` OUTDIR="$SRCDIR/../../images/$HEREDIR" function process { version=$1 outpath="$OUTDIR/$version" mkdir -p "$outpath" sed \ -e "s|APP_VERSION|$version|" \ Dockerfile > "$outpath/Dockerfile" cp $SRCDIR...
7ad4c0011f664bf8913fa6d1c37672e808be3f3d
15,929
#!/bin/bash # Copyright 2018 Istio Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
e9a7769428aa965d0cb9253ee4fcfa978cbbb94b
254
ALPACA_API_KEY = 'PKMPV6H1KICRX5RE3FSZ' ALPACA_SECRET_KEY = 'ZAz2LV7kxv1l3v0DBLzeFpyxWqO0zRE7i99ibZCc' QUANDL_API_KEY = '5D8j7BCbrVcsf74zhnWy' MAPBOX_API_KEY = 'pk.eyJ1IjoiY2pvaG5zNTI1IiwiYSI6ImNrZ2hhNHhqMTAyYXMydW42bTRwMzRoNTUifQ.dmcpPIJ5pBtpIgX_tmcMbw'
493cd621fe7d15b92b110f7e1e73b346df90fd9a
250
[[ -s "$HOME/.bash-rc.sh" ]] && source "$HOME/.bash-rc.sh" [[ -s "$HOME/.aliases-rc.sh" ]] && source "$HOME/.aliases-rc.sh" [[ -s "$HOME/.history-rc.sh" ]] && source "$HOME/.history-rc.sh" [[ -s "$HOME/.bash-org.sh" ]] && source "$HOME/.bash-org.sh"
b3568dce0aa74325e8302bb0ef0c45cc1f72db9c
1,435
#!/bin/bash # source this from your bashrc. ### CUSTOMIZABLE VARIABLES PATH_TO_JJ=~/git/hub/jj PATH_TO_ANTLR4=/usr/local/lib/antlr-4.5-complete.jar PATH_TO_ANDROID_SDK=~/git/pkg/android-sdk-linux ### END CUSTOMIZATIONS capitalize() { echo $(tr '[:lower:]' '[:upper:]' <<< ${1:0:1})${1:1} } lowercase() { echo $1 ...
9b9340e9fd4e3f63dff91ce66c10576e3d73d2ec
1,681
#!/usr/bin/env bash set -euo pipefail IFS=$'\n\t' readonly DOTFILES_HOME="${HOME}/dotfiles" readonly DOTFILES_CONFIG="${DOTFILES_HOME}/config" # shellcheck source=../lib/functions.bash source "${DOTFILES_HOME}/lib/functions.bash" set +e command -v brew >/dev/null 2>&1 brew_installed=$? set -e if [[ ${brew_install...
264a94d51d026509d634a9f446e9a0e093659cd6
328
CLOUDINARY_CLOUD_NAME=dw9eocpsf CLOUDINARY_KEY=973865999185828 CLOUDINARY_SECRET=4thLovnhIEKsgD3ZbvHtv1334ig MAPBOX_TOKEN=pk.eyJ1IjoiZy1yYW04NCIsImEiOiJja2xoNGlka2MwaWVoMm5xcGJiZWE4dXYxIn0.q73Kkc8cLkS3ZyH5lg1cZw DB_URL=mongodb+srv://g_ram84:G1w2bea4QT2AAJG9@cluster0.fdzje.mongodb.net/myFirstDatabase?retryWrites=true&w=...
d89938578450e903d532128fbe48017a788f710e
838
BAhvOhlSdWJ5V2Fycmlvcjo6UHJvZmlsZRE6E0BhdmVyYWdlX2dyYWRlZhsw Ljk2Njc2MzQzNDIyOTc5Njk0AIo9OgtAc2NvcmVpAgUCOhdAbGFzdF9sZXZl bF9udW1iZXJpDDoQQGVwaWNfc2NvcmVpAp8COhJAd2Fycmlvcl9uYW1lIgpK YW1lczoSQGxldmVsX251bWJlcmkAOgpAZXBpY1Q6GUBjdXJyZW50X2VwaWNf Z3JhZGVzewxpCmYbMC44ODc4NTA0NjcyODk3MTk2MQDs3GkLZhswLjk4MTQ4 MTQ4MTQ4MTQ4MTU...
ee6cb632ad27ba13078d747f99facad24156c739
1,713
#!/bin/bash #SBATCH -n 1 #SBATCH --mem=20000 #SBATCH -t 24:00:00 #SBATCH -p standard #SBATCH -A cphg_cz3d #SBATCH -o run_get_RPKM_slurms/slurm_Vector_HA.out python get_RPKM_and_count_on_regions_readcount.py -i /nv/vol190/zanglab/zw5j/since2019_projects/UTX_HaoJiang/f3_differential_chip_binding/data/macs2_peaks_merged/...
432d50540ee5389240f8a93bb32b81c8794e4392
353
#!/bin/bash # Source function library. . /etc/rc.d/init.d/functions #sent dsa for ip in $* do sshpass -p123456 ssh-copy-id -i /root/.ssh/id_dsa.pub "-o StrictHostKeyChecking=no root@$ip" &>/dev/null if [ $? -eq 0 ] then action "$(ssh $ip hostname)" /bin/true else action "$(ssh $ip ...