blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
739f8db9d1612330c760d4ac749f0c7be62daa1e
979
#!/usr/bin/env bash # Update and install Nginx. agt-get -y update apt-get -y install nginx # Install HAproxy v1.8 apt-get -y install software-properties-common add-apt-repository -y ppa:vbernat/haproxy-1.8 apt-get -y update apt-get -y install haproxy=1.8.\* # Enable HAproxy to start at boot sed -i '8iENABLED=1' /etc/...
f0080477a1e6e8ec5ab6652bf8df219f91545d95
280
#!/bin/bash # Invoke the Go cross compiler for panther. # Uses ../go_target to add PIE flags. # # This is just an example for an amd64 board. GOOS="linux" GOARCH="amd64" CGO_ENABLED="1" \ CC="x86_64-cros-linux-gnu-gcc" \ CXX="x86_64-cros-linux-gnu-g++" \ exec go_target "$@"
a64ad9b2c65a04319ff4d3d2db9314c53f026ef4
2,759
#!/bin/bash #/ Purpose: #/ Test the scm plugins list endpoints #/ DIR=$(cd `dirname $0` && pwd) export API_XML_NO_WRAPPER=1 source $DIR/include_scm_test.sh project="testscmlist" test_plugins_list_xml(){ local intname=$1 ENDPOINT="${APIURL}/project/$project/scm/$intname/plugins" test_begin "XML Response" AC...
504aa1a9b127dc73485de490d48f92ab186572b0
1,258
xcode-select --install /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew update brew install git brew install Caskroom/cask/java brew install go brew install maven brew install mono brew install ruby-build brew install rbenv rbenv install 2.3.0 rbenv global 2.3.0 ...
a3abdfdebc17c89e75b01994c43d044481ba3d26
43
SERVER_PORT = 1235 SERVER_HOST = 127.0.0.1
ab98915425289e040541f748e71d22275d4b68c7
32
#!/usr/bin/env bash nut install
2d00a9dfaafa0a5b487857463f2158101c6515cf
758
eval "$(docker-machine env default)" echo 'removing existing containers' docker stop server docker stop client docker rm server docker rm client docker network rm mynetwork # docker rmi dsuser/basic:v1 # docker rmi dsuser/datavolume:v1 echo 'build images' docker build -t dsuser/basic:v1 -f Dockerfile-basic . docker...
0e71c988429baea3d4c75430c1583f7bbd117657
655
TERMUX_PKG_HOMEPAGE=https://www.mars.org/home/rob/proj/hfs/ TERMUX_PKG_DESCRIPTION="Tool for manipulating HFS images" TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_VERSION=3.2.6 TERMUX_PKG_REVISION=1 TERMUX_PKG_SRCURL=ftp://ftp.mars.org/pub/hfs/hfsutils-${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_...
f546fb8c0534ca74843db59e1009fcab873d59a2
110
#!/bin/bash docker run -it -v /home/johnny/Videos:/mnt/media -p 8878:80 -p 8877:8081 homestream:1.0 /bin/bash
21ec4fde2ae55bac4cd2422ef79f48a28f1132fe
407
# Spotify API keys SPOTIFY_ID=7c50801920fd4ef08ee0460bf27753ef SPOTIFY_SECRET=20bdfc3769754cf79e0bfc1a4f965cd7 # Twitter API keys TWITTER_CONSUMER_KEY=MEPOMTWRln6YiwMGJkE9Y0j8O TWITTER_CONSUMER_SECRET=TQM24DXJOiCtZqUQ17vTXicsvAy0NuR8lVKeBNDlVgcCKRZUaO TWITTER_ACCESS_TOKEN_KEY=745496905-V0zkTAux7X3BXSG0E5K6hsLcc8cH...
a48f6d5c4e5ecd98928cec8637d6f65e84c916e9
104
#set -x export PATH=$HOME/bin:$PATH source $HOME/.bashrc.d/run_scripts run_scripts $HOME/.bashrc.d
72d85ea1eff20157f1952eda3bff3455a21c4296
69
#!/bin/bash sudo docker exec -it mongo-crawler mongo -p 10280 bread
a955df344040ca5ed75720c024c1f60f935e9159
519
echo STEP 1/4 : create python3.7 environnement... virtualenv -p python3.7 BigData_RK2 source BigData_RK2/bin/activate echo STEP 2/4 : install requirements.... pip install -r requirements.txt sleep 5 echo Done.... echo STEP 3/4 : executing main..... nohup python main.py & sleep 10 echo STEP 4/4 : Launching spark.....
1771b4a0ae3904556b2f1146720f49a9d545599f
458
#$ -S /bin/bash #$ -l h_rt=24:0:0 #$ -l h_vmem=128G,tmem=128G #$ -cwd #$ -j y #$ -N primary.analysis WD="/SAN/ugi/mdd/trans_ethnic_ma" /SAN/ugi/mdd/MR-MEGA/MR-MEGA -i $WD/scripts/mr_mega.in.txt --pc 3 -o $WD/results/AFR.EAS.SAS.HIS.MDD3SUM.MRMEGA #R --vanilla --slave --args $WD/scripts/RE2C.file.list.txt $WD/data/RE2C...
358b843597ec2f94e0ab8abe4586509bf482faf9
4,484
#!/bin/sh # # # Convenience script to run the Roundup outside of Docker or GitHub Action. # This assumes that the `roundup` executable is on your PATH. Run this inside of a # checked-out project directory, whether it's Python or Java. # # Typical usage: # # cd roundup-action # python3 -m venv venv # venv/bin/pip instal...
baf953ef83fe79a97148cf7e7b1b2934133a006a
226
#!/bin/bash olddir=$HOME/dotfiles_old # old dotfiles backup directory for i in `find . -name ".*" -type f`; do old=`echo $i | cut -d / -f 2` mkdir -p $olddir mv $HOME/$old $olddir/$old'.def' cp $i $HOME/ done
26957100aa7bbf1d3ff3cf2f4954a52dcfe20907
131
#!/bin/bash chown root backup chown root backup.pl cp backup /usr/bin cp backup.pl /usr/bin cp backup /etc/cron.daily/backup-daily
333d32b9bfd8d34b91d11d2542ee2e10ce2101e6
7,001
#!/bin/bash # Script for installation and setting fresh environment # on manjaro # Run symlinking.sh script first #First clone this #git clone https://github.com/Migacz85/dotfiles.git --recurse-submodules #Configure mirrors sudo pacman-mirrors --fasttrack #Upgrade system yes | sudo pacman -Syyu #Git config git con...
34218b46077481ed44a61ccc0036310280f897dc
276
#!/bin/bash osf=$(uname | tr '[:upper:]' '[:lower:]') version=v1.6.0 if [[ -n $1 ]] ; then version=$1 fi echo "downloading bbgo $version" curl -L -o bbgo https://github.com/c9s/bbgo/releases/download/$version/bbgo-$osf chmod +x bbgo echo "bbgo is downloaded at ./bbgo"
a300af0c0bad5fd110f2f0bcd857a97ebfa495bd
593
#!/usr/bin/env bash set -e cd `dirname $0` r=`pwd` echo $r function stop_service { echo "Stopping Service " $1 cd $r/$1 if [ -z $(cat pid.file) ] then echo "PDI not found for service " $1 else kill $(cat pid.file) && rm pid.file || echo "Could not kill process" $(cat pid.file) ...
f37290bdcefeb093af9bb7954c6a457b48ead033
1,796
#!/usr/bin/env bash #Delete contents of all ECR repo #Delete contents of the mythicalmysfits S3 bucket #Fill the role for nodegroup. looks like eksctl-mythicalmysfits-nodegroup-NodeInstanceRole-1TLRKSZC5S36X ROLE='YOUR_ROLENAME_FOR_EKS_NODEGROUP' aws iam delete-role-policy --role-name EKSDeepDiveCodeBuildKubectlRole -...
04d6d3da82850be854c3e23402a5c108b67e7b25
468
#!/bin/bash -x printf "Enter your choice 1.FeetToInch\n 2.InchToFeet\n 3.FeetToMeter\ 4.meterTofeet " read number case $number in 1) read -p "enetr feet" x echo "scale=3; $x*12"|bc ;; 2) read -p "Enter in inch :" x echo "scale=2; $x / 12" | bc ;; 3) read -p "Enter in feet one side" x result=$(...
1cd22d96496cae616140e1741e89eea14a2e3981
249
#!/usr/bin/env bash NEW_HOSTNAME=$1 echo $NEW_HOSTNAME > /proc/sys/kernel/hostname sed -i 's/127.0.1.1.*/127.0.1.1\t'"$NEW_HOSTNAME"'/g' /etc/hosts echo "$NEW_HOSTNAME" > /etc/hostname /etc/init.d/hostname.sh sysctl kernel.hostname="$NEW_HOSTNAME"
1a1617851fbaf9c8d16805f2f10c18abcf6e713c
1,086
#!/bin/sh # # Installation script # # 1) cp omim_hpoload.config.default omim_hpoload.config # 2) cp annotload.config.default annotload.config # 3) Install # Usage=Install # # Function called when the install fails. # installFailed () { echo "Installation Failed: `date`" exit 1 } # # Verify the arguments ...
e4367331fa24ac6602612eb17f17d243c7b5bd46
361
#!/bin/bash #ps aux | grep jsr2 shows all processes #can then get access to files on local machine using ssh://jsr2@localhost:2222 if [[ $(ps aux | grep ssh | grep gate ) ]] then # ssh -f jsr2@gate.mssl.ucl.ac.uk -L 8080:msslex:22 -N ssh -YC jsr2@gate.mssl.ucl.ac.uk -L 8080:msslex:22 -N fi #ssh -p 8080 -YC j...
367ad6fd6ff35f5e5ba79d6b93d9c9910690065e
150
#!/bin/bash ./translator-expect << ENDOFMESSAGE L(a,b) n L(b,c) y (Some x)(L(a,x)&L(x,c)) ENDOFMESSAGE chmod +x output_expect.txt ./output_expect.txt
8cb69662fa39998544ec2f48f708a794ce8d404c
902
# $Id: PKGBUILD 36633 2009-04-26 15:34:01Z andrea $ # Maintainer: Andrea Scarpino <andrea@archlinux.org> # Contributor: Kevin Piche <kevin@archlinux.org> # Contributor: Manolis Tzanidakis <manolis@archlinux.org> pkgname=cpufreqd pkgver=2.3.4 pkgrel=1 pkgdesc="A small daemon to adjust cpu speed (and indeed voltage)" ar...
82f5200d0551ddf5b19972a9c9a0e0be2b6b006a
230
#!/bin/bash #SBATCH --nodes=1 --ntasks-per-node=8 export GOMP_CPU_AFFINITY="0-7" #export OMP_NUM_THREADS=2 #./dgemm #export OMP_NUM_THREADS=4 #./dgemm #export OMP_NUM_THREADS=6 #./dgemm export OMP_NUM_THREADS=8 ./quicksort
80fd871c8be90a3d9f1fdec32d5dc8a379fb41c4
390
#!/bin/bash #author: Huang Jinhua #date: 01/05/2017 #description: To remove docker container and images #Step 1: Make sure docker has started if [ -z "$(ps -aux | grep docker | grep -v grep)" ] ; then echo "Docker is not running, so not necessary to remove docker images" exit 0 fi #Step 2: Delete mongodb con...
a83ae0de4e1eeb0f19a591c436d04296d00879fc
80
docker build -t novatec/technologyconsulting-showcase-orderdomain:latestlocal .
f775092f8dbf88ce321a1b8e9c416c57fbf1565f
124
#!/bin/bash for each in $(find $(pwd) -type d -name sbin); do echo cp $each/* $(echo $each|sed 's/sbin/bin/g'); done
4805db8edbd33c6a4a350d800c60df9543b1d933
162
#!/usr/bin/env bash if [ -f "$1" ]; then mysql -uroot -p"${MYSQL_ROOT_PASSWORD}" "${MYSQL_DATABASE}" -vvv < "$1"; else echo "Dump file does not found!." fi
b5f602d6db616fa8ae554a7bceb145135b2a2ace
796
set -e -u dir="data/local-lm" n_utts=50000 url="https://www.openslr.org/resources/11/librispeech-lm-norm.txt.gz" [ $n_utts -le 500 ] && { echo "#utterances must > 500 for spliting train & dev" >&2 exit 1 } mkdir -p $dir cd $dir if [ ! -f .completed ]; then # download and process data echo "Start down...
5195cf77986249d42538006a8b070322b40b02d2
2,610
#!/bin/bash cleanup() { rm -f "$TEMP_FILE_WITH_OUTPUT_STRINGS" } trap cleanup EXIT echo "Test case in which input array ends with 0 after 5" RANGE=20 MAX_NUM_OF_EL_IN_ARRAY=$RANDOM let "MAX_NUM_OF_EL_IN_ARRAY %= $RANGE" index_of_string_in_array=0 while [ $index_of_string_in_array -lt $MAX_NUM_OF_EL_IN_ARRAY ] do in...
022d0bc275164f05ccce8de00a7298cf72c31942
144
CREATE DATABASE IF NOT EXISTS payroll_development; CREATE DATABASE IF NOT EXISTS payroll_test; CREATE DATABASE IF NOT EXISTS payroll_production;
8d01f98b971bc331ac3b6c5436ecde354c7b1115
41
# Start the install on boot ./install.sh
1c0b2fa005272312124d8608f8c653fc69c7b2b1
634
#!/bin/sh id_cmd=${0%yatt-tag}"yatt-id -m" usage () { echo "\ Untags yatt's selected task. By default, 'fzf' is used, but you can change it by setting \ YATT_FZF environment variable value. USAGE: $0 [TAGS] ARGUMENTS: TAGS Comma separated tags list (will be prompted if omitted) FLAGS: -h, --help Sh...
2948d5b6bfdfb2a5e5fd07e2abcbe59f6e853491
651
#!/bin/sh # --- Copyright University of Sussex 1991. All rights reserved. ---------- # File: C.unix/com/mkv55 # Purpose: Make saved image with LIB * VEDVI55 loaded # Author: John Williams, Jan 24 1990 (see revisions) # Documentation: HELP * V55 # Related Files: LIB * MKIMAGE $popsy...
83e9a281fb033836b761d62ffdf7c8b87d24643d
306
#!/bin/sh case $BLOCK_BUTTON in 1) $TERMINAL -e htop ;; 3) notify-send "CPU module" "\- Shows CPU utilization. - Click to show process viewer." ;; esac echo `grep "cpu " /proc/stat` `sleep 0.1 && grep 'cpu ' /proc/stat` | awk -v RS="" '{printf " %.1f%\n", ($13-$2+$15-$4)*100/($13-$2+$15-$4+$16-$5)}'
41311195fb7b5ea9b61dd9f8c328866767c603c1
202
#!/bin/bash if [ $# -lt 1 ]; then echo "USAGE: $0 sub_dir" echo "e.g.: $0 test" exit -1 fi cd `dirname $0` CURRENT_DIR=`pwd` export GOPATH=${CURRENT_DIR} cd src/$1 #go build . go install .
24d21657afd6991311cf8e1cb30a7887c1c08fb4
112
#!/bin/bash { python3 create_tables.py; python3 etl.py; } 2>&1 | tee -a "logs/$(date +"%Y-%m-%d-%H:%M:%S").txt"
536ccfed7659b04ef46cc348fa7b3ae934d8da96
2,444
#!/bin/bash function fix_bam_header() { if [ -z "$1" -o -z "$2" -o -z "$3" ]; then echo "Usage: $0 <bamFiles> <extension> <outputDir> [ --run-opt <submit> ]" exit -1 fi local bamFiles=$1 local ext=$2 local outdir=$3 for i in {1..3} do shift; done local run_opt="local" while [ 1 -lt $# ]; do ...
bbf5a25b18549b949e13f7cf42cab7093d78ebf8
18,556
#!/bin/sh runname=$1 chrname=$2 results_dir=${SVN_BASE}/cnv/results/${chrname}/working.$1 echo Report for run $1 and chromosome $2 > report.txt echo "Figure 1: Size correlation between our calls and the Database of Genomic Variants (DGV)" >> report.txt cp ${results_dir}/val/${chrname}.cnvs.merged.cnvs-dgv_all.p2v.val....
e17a907d10e4a1a6068652875064eb1146645347
316
NAMEROOT=periodicpoints_SECg2 datfile=$NAMEROOT.dat resfile=$NAMEROOT.res errfile=$NAMEROOT.err echo "0.95387536e-3 SECg2 1" > $datfile # mu, sec, num of iterates # periodic point p (in Delaunay coords). cut -d ' ' -f 1-4 ../cardel/periodicorbits_del.res >> $datfile ./prtbpdel < $datfile > $resfile rm $datfile
359caa4a700ac3ed4e91c7caa05f467eb06523f6
94
#!/bin/bash python -m venv .venv source .venv/bin/activate pip install -r requirements.txt
fcedc8a2e8b80b9f7c8097de899646ef31271f0c
19
MONDO_DB=mongodb://
614eb1242a8dc8407bd4509eefc0bcdf01addd09
95
git pull git add --all git commit -m "$1" git push if $2 then git push heroku master fi
d050dea71d020014e619e465b08a352a9a9c660d
86
PERCONA_HOST=127.0.0.1 PERCONA_PORT=3380 DB_USER=root DB_PASSWORD=root DB_NAME=test
2ee60d5ab0d0c79ba999238922fcd7f15aad2015
167
#!/bin/bash pushd $(dirname "$0") protoc -I. -I./googleapis -I$GOPATH/src --go-grpc_out=.. googleapis/google/assistant/embedded/v1alpha2/embedded_assistant.proto popd
9ef2e9ac84481a1be6f92f3c2ae7ba8e5226a001
427
#!/bin/sh # be more verbose set -x # exit on wrong command and undefined variables set -e -u # find out own directory SCRIPTPATH=$(readlink -- "$0" || echo "$0") SCRIPTDIR=$(CDPATH= cd -- "$(dirname -- "$SCRIPTPATH")" && pwd) PREFIX="${SCRIPTDIR}/../../rtems/5" export PATH="${PREFIX}/bin:${PATH}" openocd -s "${PREFI...
0db9eabb7ce7e311e8ea940d580878fd58552b80
55
psql $DATABASE_URL < ./schema/create_vehicles_table.sql
03119ac2865dc70ed773e339ca346e458d572dff
1,147
######################################################################### # File Name: pc07-exome.sh # Author: Chun-Jie Liu # Mail: chunjie-sam-liu@foxmail.com # Created Time: Tue 03 Jul 2018 09:47:24 AM CST ######################################################################### #!/bin/bash # ! pipeline scripts wes=...
76a86ef8e9b2a869af020bddbb381956fc2133f1
2,493
#!/bin/sh show_help(){ echo " Why Hello there! You must be looking for help\n\ \n\ The Flags: \n\ r - run \n\ t - test \n\ d - deploy \n\ s - setup\n\ p - ci push\n\ c - clean\n\ m - manual deploy\n\ e - letsencrypt certificate\n\ \n\ Chain em together as you see...
0f0665c8574600add03852c852b3b50b7f6fecd7
71
MYSQL_PASSWORD=mysqlpswd MYSQL_DATABASE=nextcloud MYSQL_USER=nextcloud
7d567851e4942f673e45992af8a71aac5728218d
88
#!/bin/bash echo "0 0 0 * * sh /scripts/backup.sh" >/etc/crontabs/daily crond -f -l 8
6c3f6d7d952c5aeed73194813d7cdf53eeecc6f6
191
#! /bin/bash figlet "ScreenCAP" if [[ $1 == "" ]]; then adb shell screencap -p /sdcard/xx.png adb pull /sdcard/xx.png else adb shell screencap -p /sdcard/xx.png adb pull /sdcard/xx.png $1 fi
eec726607cf190b7bdbacbae5e3958c927be9cfd
158
#g++ test_utils.cpp --std=c++11 g++ test_utils.cpp --std=c++11 -lcblas `pkg-config --cflags` -o Test_O && ./Test_O #g++ test_utils.cpp --std=c++11 -lcblas
a2668d077d63f48e0febd871dd22b342adb39a04
676
#!/bin/bash PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin' #Author : Tareq #Date : 07-08-2020 #nokia_msc file transfer 253~239 server and move dump directory lock=/data02/script/process/bin/nokia_msc_new_1_transfer_lock export lock if [ -f $lock ] ; then exit 2 else to...
9604cedbe0f28c9575606379f553fdff1eb34980
4,030
#!/bin/bash #### ## Start Install Script ################################################################ ## # Functions ### set_colors() { red=''; lred='' green=''; lgreen='' yellow=''; lyellow='' blue=''; lblue='' purple=''; lpurple='[1...
9a6f5e288a8c101042c2dfe1c4dcdc9ba903ff42
807
#!/bin/sh # script directory SCRIPT_PATH=$(readlink -f $0) # bin directory, It's like /opt/appname/bin, also same with SCRIPT_PATH BIN_DIR=$(dirname $SCRIPT_PATH) # work directory WORK_DIR=$(dirname $BIN_DIR) # where is app root path in location APP_ROOT=$WORK_DIR # app mainclass MAINCLASS=com.lefu.cmdtools.client.CmdC...
7b8c6b3a01cd87af50ef14625d101d01e2429338
2,690
#!/bin/sh export CI=travis export FAST_FAIL=1 # The context should already have been activated at this point. #pip install pymongo pytest pytest-bdd pytest-cov #pip install mock --upgrade #pip install pytest pytest-timeout --upgrade pip list exit_code=0 # Break up the tests to work around the issue in #754. Break...
697fb53f70b05ae070bf142864d98ef7a4fb7767
407
#!/bin/bash export RPROMPT="%F{red}%(?..%?)%f" if [ -n "$BASH_VERSION" ]; then export PS1='\[\e[38;5;135m\]加油呀\u\[\e[0m\] \[\e[38;5;118m\]\w\[\e[0m\] > ' else if [ "$UID" -eq 0 ]; then export PROMPT="%F{135}%n%f@%F{166}%m%f %F{118}%~%f %# " else export PROMPT="%F{045}加油呀%n%f %F{118}%c%f > " ...
5bf831e7b0be53904f00209a48835148a850ae94
581
#!/bin/bash answer=$(($RANDOM%129)) declare -i guess guess=129 declare -i score score=0 until (($answer==$guess)) do read -p "Guess the number!(0-128) " guess score=score+1 if (($guess>$answer)) then echo "High guess" elif (($guess<$answer)) then echo "Low guess" fi done echo "Congratulations, you...
f61fdbbc166846feb884affb726c63189af6532b
216
#!/bin/bash script_dir="$(cd "$(dirname "$(readlink -f "$0")")" && pwd)" cd $script_dir/.. $script_dir/run_docker.sh run -v $script_dir/workdir:/kb/module/work -e "SDK_CALLBACK_URL=$1" test/compmolnwchem:latest test
7261797b8e08b2cfa6d1670fdcf977e545f81182
278
#! /bin/sh if [ $# -lt 2 ]; then return 1 fi #local gr=$1 gr=$1 #local ew=$2 ew=$2 add_r=$(echo " $ew*$gr" | bc -l) rmv_r=$(echo "$ew*(1-$gr)" | bc -l) inc_r=$(echo "(1 - $ew)*(1-$gr)" | bc -l) dec_r=$(echo "(1-$ew)*$gr" | bc -l) echo "$add_r $rmv_r $inc_r $dec_r" return 0
752f9c5537c1157f4ecd996e6c5ded601e2b3a5b
2,065
#!/bin/bash set -e export LC_NUMERIC=C SOURCE="${BASH_SOURCE[0]}" while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" SOURCE="$(readlink "$SOURCE")" [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, w...
8da24629430b6cbb50727e410c518c40fdd6fcf4
265
#! /bin/bash rm -f db.sqlite3 ./manage.py migrate ./manage.py shell <<EOF from person.models import Person x=Person(username="too", label="abc") x.save() EOF ./manage.py dumpdata --natural-foreign --natural-primary auth.user auth.group person.person -o person.json
bd68a07ed21d1701afb65ac6d071dcf260866f80
675
srcAccountName="<add your source account name>" srcAccountKey="<add your source account key>" srcContainerName="<add your soruce container name>" destAccountName="<add your destination account name>" destAccountKey="<add your destination account key>" destContainerName="<add your destination container name>" blobName=...
e8bdd4005e6a812c3db93356091230fdd3b4cb51
96
cp -fr ./* $HOME/GFrun echo "done" cd $HOME/GFrun && /bin/bash ./tools/GFrunGui/go_ExConsole.sh
d69c18a850b00f7b4ef06cd748242fd46d8ad1ea
665
###################################################################### # Copyright 2019. Yongxu Jin. # This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt. ###################################################################### #!/bin/sh # ...
e26d6198097981e0fab07d2edb6e256b6707d84b
3,679
#!/bin/sh # Install command-line tools using Homebrew # Usage: `brew bundle Brewfile` # Make sure we’re using the latest Homebrew brew update fancy_echo() { printf "\n%b\n" "$1" } brew tap caskroom/cask # Upgrade any already-installed formulae brew upgrade brew install brew-cask brew cask install dropbox brew ...
502ae22f9da7b906b610e1fbe6085a65d17dcf0a
228
#!/bin/bash cp /postgres.host.conf /var/lib/postgresql/data/postgres.conf chown postgres /var/lib/postgresql/data/postgres.conf if [[ $# -eq 0 ]] ; then exec docker-entrypoint.sh postgres fi exec docker-entrypoint.sh "$@"
10cac573eb6b396486cb4e97c9c16a45172a66dd
1,852
#!/bin/sh -u # # Test that citrun run on itself works and the resulting binaries run. # exit 0 if [ `uname` = "OpenBSD" ]; then rm -rf /usr/ports/devel/ccitrunrun cp -R distrib/openbsd/ccitrunrun /usr/ports/devel/ fi . tt/package.subr "devel/ccitrunrun" plan 13 enter_tmpdir export NO_CHECKSUM=1 pkg_check_deps pkg_...
704ff3965b88ecb5d704239e3f94b89b6413683a
527
#!/bin/sh catkin_dir=/home/workspace/catkin_ws catkin_src_dir=$catkin_dir/src xterm -e "roslaunch turtlebot_gazebo turtlebot_world.launch world_file:=$catkin_src_dir/world/myWorld.world" & sleep 5 xterm -e "roslaunch turtlebot_gazebo gmapping_demo.launch custom_gmapping_launch_file:=$catkin_src_dir/wall_follower/launch...
b49de2be33e15c89bb71682c41d845b56b73700b
292
#!/bin/sh # generate java code for the protobuff definition DIR=$(cd "$(dirname "$0")" ; pwd) cd "$DIR/../../../.." MSG_PATH=$DIR/../../../../messages echo "Generating .java classes in" $MSG_PATH protoc --java_out=proxy-robots-module/src/main/java/ --proto_path=$MSG_PATH $MSG_PATH/*.proto
60c8fda8500897b30c26435b01e0a8ec93342b1e
163
#!/bin/bash sum=0 for var in "$@" do if [ $var -gt 10 ] then if [ `expr $var % 2` -eq 0 ] then var=-$var fi sum=`expr $sum + $var` fi done echo $sum
28aadf399b2ebcbaf71e098cd22988eff6f68b2c
1,788
!/bin/bash # Usage: # From the system to register, as root # [root@somehost]# curl -s http://satellite.fqdn/pub/bootstrap-wrapper.sh | bash # ######## VARS ######## SATELLITE=satellite.local ORG_LABEL=Startx LOCATION="Europe/Paris" AK=AK_RHEL7 HG=HG_RHEL7 REX_USER=remote_user OS=$(cat /etc/redhat-release | grep -oE '[0...
d8331df02540167c27dc179dfb1cca1863383c8f
2,046
#!/bin/sh SSH_INFO_FILE="/var/tmp/ssh_info" SSH_INFO_FILE_OLD="/var/tmp/ssh_info.old" SSH_PRIVATEKEY_FILE="/var/tmp/private-key.pem" AUTOSSH_PIDFILE="/var/run/autossh.pid" # 自分のIMSIと該当するSSH情報を取得 IMSI=`curl -s http://metadata.soracom.io/v1/subscriber | jq .imsi` if [ $? -ne 0 ]; then echo "failed to get own imsi" ...
a89db3e35ea709999bedcc2ec54b2f8e8e4906b4
165
#!/bin/bash execute() { input="$1" ./9ccs "$input" > debug.s cc -o debug debug.s test_func.o ./debug echo "status: $?" } execute ./test/debug.c
e7d064620ffd1272083f26d5b2fa1f5582d40279
1,508
#!/bin/bash set -e # cd to app root CWD=$(dirname $0) if [ `basename $(pwd)` = 'scripts' ]; then cd ../ else cd `dirname $CWD` fi #BRANCH=$(echo $GIT_BRANCH | sed -e 's/^origin\///') #if [ "$BRANCH" = "HEAD" ]; then # BRANCH="master" #fi VERSION=$(cat package.json | grep version | cut -f4 -d'"' | sed 's/-/_/g')...
d2f232648d7559fb04e4bae6059b65b90b2a2917
328
#!/bin/sh dir=$(dirname $(realpath $0)) getDir() { cygpath -d $dir/$1 } export NODE_PATH="$(getDir lib);$(getDir src);$(getDir node_modules);$(getDir ../../../client);$(getDir ../../../lib)" echo -E $NODE_PATH #exec /cygdrive/c/Apps/nw-0-9-2/nw --stack-size=3000 $dir/nwRepl cd $dir exec /cygdrive/c/Apps/nw-0-9-2/nw...
d03471253f7645a624b56626f5134dab239228f6
896
#!/bin/bash NAS_IP=$1 MOUNT_ROOT=${2%/} CLEAN=${3:-'false'} ARGC=$# usage(){ SCRIPT=$(basename $0) printf "$SCRIPT IP MOUNT_DIR [CLEAN={false,true}]\n" } if [[ $ARGC -lt 2 ]];then usage exit 1; fi shares=$(showmount -e $NAS_IP | tail -n +2 | awk '{print $1}') shares_mount(){ for share in ${shares[@]};do ...
e31c8bd5da46cbf1a4903d7401d4f145a8932f13
3,735
#!/bin/bash -x # --- SGE options --- # #$ -V #$ -wd build/resources/integrationTest/output #$ -N DnaAmpliconVar_Fastq_alignment_for_GA5_1_analysis #$ -o build/resources/integrationTest/output/log_files/DnaAmpliconVar_Fastq_alignment_for_GA5_1_analysis.log #$ -e build/resources/integrationTest/output/err_files/DnaAmpl...
0c7c80f886d1b74b90b2320c992e470361ec9caa
1,177
#!/bin/bash NAME="template_library" # Name of the application APPDIR=/apps/template_library # Project directory SOCKFILE=/tmp/template_library.sock # we will communicte using this unix socket USER=cstech # the user to run as GROUP=cstech # the group to run as NUM_WO...
d84e8f68a1719b1504fd3790bae5ac224c6a7099
78
#!/bin/bash # Executing project mvn gauge:execute -DspecsDir=specs -Denv="$1"
3530b69030dc71084bb0ac0d7ce2d597d1d6ddee
520
#!/bin/bash -e . /home/tcj25/.virtualenvs/35/bin/activate log=../slurm-pipeline.log # Remove the marker file that indicates when a job is fully complete. rm -f ../slurm-pipeline.done echo "SLURM pipeline started at `date`" >> $log for fastq in "$@" do task=`echo $fastq | cut -f1 -d.` echo >> $log echo ...
fad1ad522fd3f77e8e2e376df5e75621384faade
798
#!/usr/bin/env bash if hash python 2>/dev/null ; then if hash pip 2>/dev/null ; then v=$(python --version 2>&1 |awk '{print$2}') a=( ${v//./ } ) ## replace points, split into array ((a[2]++)) ## increment revision (or other part) ## composed as new version chain if [ '2.7' = "${a[0]}...
ad7cc8924beb5d4f9a3ddd138b12a6c9b274eeaf
113
#! /usr/bin/env bash #tcpdump -i <interface> -s 65535 -w <file> tcpdump -i eth0 -s 65535 -w ../log/tcpdump.pcap
74d6863476f67650ab1d3e0d4b2e01f748eb921b
1,068
#!/bin/bash usage() { echo "Usage: hc.sh [-a account] [-u user] exp year1 year2 [user]" echo "Run hiresclim postprocessing of experiment exp in years year1 to year2 for a specific user (optional)" echo "Options are:" echo "-a account : specify a different special project for accounting (default: spnltun...
2fe55290d836f33675355e3b29bafee8b87af90d
873
#!/bin/bash samtools view -b -F 4 /u/scratch/t/tianhao/NovaSeq020821/KSHV/mapped/KSHV2K.sam > /u/scratch/t/tianhao/NovaSeq020821/KSHV/mapped/KSHV2K_unsorted.bam java -jar /u/local/apps/picard-tools/current/picard.jar AddOrReplaceReadGroups I=/u/scratch/t/tianhao/NovaSeq020821/KSHV/mapped/KSHV2K_unsorted.bam O=/u/scratc...
ec90fc41b65bc2797e1043d201d9a681a82ba4ec
9,840
#./05_plot_anchor_study.sh Sample_316-FR-clone11 LINE L1HS 3 82143860 82145867 L1HS yale retro_0520 /srv/gsfs0/projects/levinson/transfer/Project_VAC_11092_B01_GRM_WGS.2015-09-20/ /srv/gsfs0/projects/levinson/xwzhu/retromin/refTE/sequence/L1HS.fa png #./05_plot_anchor_study.sh Sample_316-FR-clone11 LINE L1HS 2 1080827...
2d274efc408fe6af8006e13fdd00a5fc220d5621
604
#!/bin/bash # # Silkroads # # Refs: # * http://www.gamerzplanet.net/forums/silkroad-online-general-discussion/36859-what-port-does-sro-use-to-connect.html # # Protocolo: TCP/IP # 15779 (Login) # 15881 (Patch) # 15883 (Play) CHAIN='game-silkroads' # clear chain iptables -F $CHAIN iptables -X $CHAIN # create chain ipt...
5b3d9ea16c428c14c91bd74d22f64115f44c8ec9
1,176
#!/usr/bin/env bash _clib_green() { coloredMessage "${1}" 2 } _clib_yellow() { coloredMessage "${1}" 3 } _clib_blue() { coloredMessage "${1}" 4 } _clib_command() { local arguments="" for ((i = 4; i <= $#; i++)); do arguments+=" `_clib_green "<${!i}>"`" done echo "`_clib_yellow "Command:"` `_cl...
1af40beaf6cc950290f4773a4af39a46ff941443
1,866
#!/bin/bash # This script is originally borrowed to pmorillo # Thanks to him ! # I've made some addition though :) # ARGS # $1: cpu demand # $2: mem demand # $3: net type {BRIDGE, NAT} # BRIDGE | NAT # $4 subnet_file | $left other net, drive options # $left net/drive options set -x function net_bridge() { SUBNET...
976aaa0a2933135c25667c46f8198511a9285869
928
#!/usr/bin/env bash # Packages Alfred workflows to ~/Desktop. readonly workflow_dir="${1}" readonly info_plist="${workflow_dir}/info.plist" readonly workflow_name="$(/usr/libexec/PlistBuddy -c 'print name' "${info_plist}")" readonly workflow_file="${HOME}/Desktop/${workflow_name}.alfredworkflow" if /usr/libexec/Plis...
d55f0d6e15fd5bb8111e9cae8322f186876a1825
147
# find factorial of a number echo "Enter a number" read num fact=1 for((i=1;i<=num;i++)) do fact=$((fact*i)) done echo "Factorial of $num is $fact"
b6b40192184c7b4bda9a5a4623202665a942272c
39
docker build --tag amazonlinux:nodejs .
ba12226bbf24294ab3452ee91dbff7843a9bac45
378
#!/usr/bin/env bash # # augment.sh # Copyright (C) 2019 LeonTao # # Distributed under terms of the MIT license. # python misc/augment.py \ --data_path ./data/ChnSentiCorp_htl_all.txt \ --save_path ./data/ChnSentiCorp_htl_all_augment.txt \ --syno_path ./data/merge_syno.txt \ --cilin_path ./data/cilin_e...
9eda763d14877b6de09b6c2534fec3182cecc36e
191
#Sum of Array Element echo "Enter No of Element" read length sum=0 echo "Enter elements:" for ((i=0;i<length;i++)) do read num[$i] sum=$(($sum+${num[i]})) echo "Sum = "$sum done
83e69c58ce8abf3d7f066b3d90922a66fa93a7ed
357
#!/bin/bash set -euo pipefail readonly BUILD_INFO_LOCATION="$(pwd)/artifactory-repo/build-info.json" readonly CONFIG_DIR="$(pwd)/git-repo/ci/config" java -jar /opt/concourse-release-scripts*.jar \ --spring.config.location="${CONFIG_DIR}/release-scripts.yml" \ publishToCentral 'RELEASE' "$BUILD_INFO_LOCATION" "art...