blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
840de1e164d273ab354c8fa701d00b8983b8e63d
499
#!/bin/bash #first we install nvm for manageing node versions curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_C...
cc5372e1a84c8f24833a0621a0c87d6be2653f20
263
yum install -y nfs-utils systemctl enable firewalld systemctl start firewalld mount.nfs -vv 192.168.50.10:/export/shared /mnt -o nfsvers=3,proto=udp,soft echo '192.168.50.10:/export/shared /mnt nfs rsize=8192,wsize=8192,timeo=14,intr,udp' >> /etc/fstab
0bb97da51a60b9b16bf63e23adbfbf927fcabd25
593
#!/usr/bin/env bash function start () { if [ -z $1 ]; then host=0.0.0.0; else host=$1; fi if [ -z $2 ]; then port=5000; else port=$2; fi gunicorn -b $host:$port start:app } function stop () { ps aux | grep gunicorn | awk '{print $2}' | xargs kill -9 } function unittest () { # python -m unittest ...
cc464f9d31bb7bcaf73a023b2a7a1ea398f2a7c6
1,811
#!/bin/bash # Maximum number of cores to use MAX_CORES=36 # AWS Bucket to store results AWS_BUCKET="s3://cytof-vary-kmcmc-n1000" # STAGGER_TIME in seconds. To avoid mass dumping to disk simultaneously. STAGGER_TIME=100 # Experiment settings MCMC_ITER=1000 BURN=10000 I=3 J=32 N_factor="100 1000 10000" K=8 L=4 K_MCM...
402a8378e5626c03f9efaee7c8194bb8ff6c51bb
1,352
#!/bin/bash printf "\nInput is in the format:\nargv[1]={r | {w | s} }\n" printf "if read: tuples of\t<channel, filename> ......<channel, filename>\n" printf "if write: triples of\t<channel, msg, filename> ...... <channel, msg, filename>\n" p="/dev/msd" # message slot device path c=0 i=1 channels=4 while [ $c -lt $ch...
b10186c3e68b4595fd218ca39672f55a6bcd32ee
160
cd lastpage dotnet build -c release dotnet pack -c release -o nupkg dotnet tool uninstall -g lastpage dotnet tool install --add-source ./nupkg -g lastpage cd ..
21562f400d58bcb8c127b09000df0288f4934d74
403
#!/bin/bash set -e if [ -z "$1" ]; then echo "usage: $0 <branch>" else git stash save --quiet --include-untracked "$(date)" git checkout $@ branch=$(git rev-parse --abbrev-ref HEAD) list=$(git stash list | grep "On ${branch}:") if [ $(git stash list | grep -c "On ${branch}:") -eq 1 ]; then git stash p...
e8fa1d1868dbf234f7d9bac1c75a3730966d2816
82
#!/bin/bash echo "Testing with an local curl command" >> /var/log/setup/setup.log
2d41d6664acb98c3705945a1518bfef4d5dbfd7b
355
#!/bin/bash usage() { echo "Image resize" echo "Usage: $0 FILE" exit -1 } if [ $# -eq 0 ] ; then usage fi # Name of resize file will append .jpg. It can't prepend because # it false if filename contain dir resizefile="$1.jpg" if [[ -f "$resizefile" ]]; then echo "Ready resize! Ignore." else convert "$1" -resize...
437526fc35804cc1d2a883236d828fd212e6217b
3,538
# !/bin/sh WORKING_DIR=$(pwd) export PROJECT_ID=<your-project-id> # Create GKE CLUSTER_NAME=cloud-1-cluster gcloud beta container --project $PROJECT_ID \ clusters create $CLUSTER_NAME --region "europe-central2" \ --no-enable-basic-auth --cluster-version "1.18.17-gke.100" \ --release-channel "regular" --m...
13038d5d9547ae886d85605f3995cbb8c1b3a65f
425
#!/bin/zsh platform="unknown" if [[ "$(uname)" == "Darwin" ]]; then platform="macos" elif [[ "$(expr substr $(uname -s) 1 5)" == "Linux" ]]; then platform="linux" elif [[ "$(expr substr $(uname -s) 1 5)" == 'FreeBSD' ]]; then platform='freebsd' elif [[ "$(expr substr $(uname -s) 1 10)" == "MINGW32_NT" ]]; then ...
9891e77268b27c31d9390cf52b79928fce501291
1,320
#!/usr/bin/env bash #删除正在运行的其他容器,redis,rabbitmq,mysql容器不动,因为里面保存了数据 #是否包含 contains(){ str=$1 array=$2 result=0 for item in $array; do if [ $str == "$item" ]; then #判断字符串是否相等,注意前后要有空格,否则变为赋值语句 result=1 break fi done return $result } #停止容器 removeContainers()...
808b8f16af3e4c638e0049fbb7a0f808e0aa3edf
629
#!/bin/sh if [ "$2" != "POST-DEINSTALL" ]; then exit 0 fi POLIPOUSER=%%USER%% POLIPOGROUP=%%GROUP%% PCONFIGDIR=%%PCONFIGDIR%% PPIDDIR=%%PPIDDIR%% POLIPOCACHE=%%PCACHEDIR%% POLIPOLOG=%%PLOGFILE%% POLIPOPID=%%PPIDFILE%% POLIPODATA=%%DATADIR%% if pw usershow "${POLIPOUSER}" 2>/dev/null 1>&2; then echo "---> To del...
efeb6de1348d79725447469a80b32f03cb62466f
5,128
#!/bin/bash # Set the Android SDK root path for gradle. export ANDROID_SDK_ROOT=~/android/sdk # We need 1 command line parameters to work. if [ ! $# -eq 1 ]; then echo "Incorrect usage: add-pwa-app.sh <app.json>" exit 1 fi if [ ! -f $1 ]; then echo "ERROR: Application JSON file does not exists!" exit 1 fi ...
3b9a8ad69a18de71b71f9fe50a68c2df31bdb321
1,748
for dataset in cora flowers102 ESC-50 do for nn in 0 5 10 20 30 40 50 100 200 500 1000 do for normalization in None BothSides do for graph_type in Cosine RBF Covariance do time python generate_graph.py --dataset $dataset --normalization $normalization --gr...
6db13fb8b26bb974799192c8298c6abb8bc3b2a8
42
#!/bin/sh cd /home/engtv python engtv.py
72ecc4fbc6018168abb0488474f0f12bd583462e
94
KERAS_BACKEND=tensorflow THEANO_FLAGS=mode=FAST_RUN,device=gpu,floatX=float32 python main.py
1bd0eb797830c3c065c4843cb1dc79901c0a3a8b
95
cfy local init --install-plugins -p image.yaml cfy local execute -w install --task-retries 50
fc7f09839bc4ac7b84851ff849bbf6a187b9d268
6,612
#PBS -l walltime=10:00:00 #PBS -l nodes=1:ppn=4 #PBS -l mem=100gb cd /gpfs/home/gzx103/scratch/dream/final_0110 ### CTCF PC-3 paste CTCF.PC-3.y_pred.classification_y_conv_result.txt /gpfs/home/gzx103/scratch/dream/dnase_pass/DNASE.PC-3.conservative.narrowPeak.reg | awk '{print $1*$3,$2}' > CTCF.PC-3.y_pred.classificat...
de90a7adc8dba9adbb534e5e2e4ae6f657878904
887
#!/bin/bash if [ -s LTS-INFO_PID ]; then INFO_PID=`cat LTS-INFO_PID` kill -9 $INFO_PID fi sleep 5 #JAVA_OPTS="-Dcom.sun.management.jmxremote -Djava.rmi.server.hostname=10.0.0.51 -Dcom.sun.management.jmxremote.port=1234 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false" JAVA_...
a2f62f5b45a5e6907c437d9b633366b8830f84d5
226
source $HOME/.profile SAVEHIST=$HISTSIZE setopt HIST_IGNORE_DUPS autoload -Uz compinit compinit zstyle ":completion:*:*:make:*" tag-order targets source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
b1aadc7c511646009309ee1745205a9998d87702
866
# Maintainer: Lars Haalck pkgname=karl-git pkgver=r19.d15e061 pkgrel=1 pkgdesc='A clipboard manager' arch=('i686' 'x86_64') url='https://github.com/LarsHaalck/karl' license=('MIT') makedepends=('git' 'cargo') provides=('karl') conflicts=('karl') source=("$pkgname::git+$url") sha256sums=('SKIP') pkgver() { cd "$pkgna...
d7be899c38c90609cd8106f053bdd9d694b33d0a
392
#!/bin/sh # java8.sh # # # Created by Andrea Guarise on 7/1/15. # yum install -y java-1.8.0 &> /tmp/java8.log java8=`alternatives --display java | grep -v slave | grep 1.8 | cut -d ' ' -f1` alternatives --set java $java8 alternatives --display java | grep "points to" | grep 1.8.0 if [ $? = 0 ]; then echo "...
39f0b23f85e01a6143ed4aaa34d15f12afa5dcbb
278
#!/bin/sh for alph in a0 a2 a5 do for var in 1 2 3 4 5 do cat datasets/train.seed$var.$alph.txt datasets/valid.seed$var.$alph.txt | testKenLMV2/kenlm/build/bin/lmplz -o 9 --limit_vocab_file datasets/vocab.$alph.txt --discount_fallback>models/seed$var.$alph.arpa done done
a09a5684c57ac3eaa5b99fa8b477f2ad313891eb
1,049
#!/bin/bash counter=0 while [ $counter -le 9 ] do echo Processing training shard $counter ... python -m language.question_answering.bert_joint.prepare_nq_data \ --logtostderr \ --input_jsonl /root/data/v1.0/train/nq-train-0$counter.jsonl.gz \ --output_tfrecord ~/output_dir/nq-train.tfrecords-0000$c...
be9ca51f230f625c25fa1e18c2f8dea10415c805
453
#!/bin/bash # This file process unweighted edge list and run the specified clustering # method. (slashburn, louvain) # # input: # name of edge list file # input edgelist=$1 clusmeth=$2 intedges=$edgelist.int input=$intedges.minput # convert str to int python str_to_int.py $edgelist $intedges # convert to formatted i...
dc0b1d907602ee7cf20c6753a23aa2e1ed5326f0
2,157
#!/bin/bash GH_BASE_URL=$OCTOKIT_API_ENDPOINT # Check if GHE url is set, if not fall back to public GH if [ -z $OCTOKIT_API_ENDPOINT ]; then #If we are running in travis, try using OCTOKIT_API_ENDPOINT instead GH_BASE_URL="https://api.github.com/" echo "No GitHub url specified, using: $GH_BASE_URL" fi #Get the ...
9ff5c4e6a360bcd794e77576f749606b0b4f55c3
8,115
_install_mysql_depend(){ _info "Starting to install dependencies packages for MySQL..." if [ "${PM}" = "yum" ];then local yum_depends=(ncurses*-libs ncurses-devel cmake m4 bison libaio libaio-devel numactl-devel libevent) for depend in ${yum_depends[@]} do InstallPack "yum -y...
12bae540d39b03226e2c76285d157164cd9823c4
441
#!/usr/bin/env bash docker push jkulak/socketorior ssh -oStrictHostKeyChecking=no deploy@$DEPLOY_HOST << EOF docker pull jkulak/socketorior:latest docker stop socketorior || true docker rm socketorior || true docker rmi jkulak/socketorior:current || true docker tag jkulak/socketorior:latest jkula...
fffb6a340800402c7531af1257499df218f6e8a4
2,454
#!/bin/bash # Copyright (c) The Diem Core Contributors # SPDX-License-Identifier: Apache-2.0 # Check that the test directory and report path arguments are provided if [ $# -lt 2 ] || ! [ -d "$1" ]; then echo "Usage: $0 <testdir> <outdir> [--batch]" echo "All tests in <testdir> and its subdirectories will be run to...
21970df497c544c2d045625cccbc3f8efacd0fbd
1,377
#!/bin/sh # data vbug # code warna blue='\033[34;1m' green='\033[32;1m' purple='\033[35;1m' cyan='\033[36;1m' red='\033[31;1m' white='\033[37;1m' yellow='\033[33;1m' # penghapus clear # tampilan figlet virus vbug | lolcat echo "===============================================" | lolcat echo "[+] Project By Mr Viru...
a5be0a0c3d39aab6b74144f424a1d5b5e6384e52
540
#!/bin/sh set -eu export PATH=$(pwd)/models/cg3/src:$PATH # Clean up the test data and save it to data/preprocessed python preprocess_data.py # Predict lemmas and POS tags using all models. # Writes results under results/predictions/*/ python predict.py # Evaluate by comparing the predictions with the gold standar...
c558a7db3336a1147c4b0c7f53969ac137f969ff
1,052
#!/bin/bash NAMESPACE=${NAMESPACE:-'openstack'} SCALE_SERVICES=${SCALE_SERVICES:-'true'} OS_SERVICES="glance-api keystone-api neutron-server nova-api-metadata nova-api-osapi" REPLICATION_COUNT=${REPLICATION_COUNT:-''} if [ -z "${REPLICATION_COUNT}" ]; then REPLICATION_COUNT=$(kubectl get nodes --no-headers | wc -...
8a0eeab57ea24f775b4db3fafbde7ad85d25afdb
1,234
#!/bin/bash # Options: --only-static: only build the static framework target if [[ $# -gt 0 ]] then ONLY_STATIC=1 else ONLY_STATIC=0 fi PROJECTDIR="$(cd $(dirname $0)/..; pwd)" BUILDDIR="${PROJECTDIR}/build" CARTHAGEDIR="${PROJECTDIR}/Carthage/Build/iOS" rm -rf $BUILDDIR mkdir $BUILDDIR cd $PROJECTDIR # Dynamic fr...
62ad271f74fd59d7a1cd98e4495908409e22cc47
420
#!/usr/bin/env bash set -Eeuo pipefail sort_versions() { sed 'h; s/[+-]/./g; s/.p\([[:digit:]]\)/.z\1/; s/$/.z/; G; s/\n/ /' | LC_ALL=C sort -t. -k 1,1 -k 2,2n -k 3,3n -k 4,4n -k 5,5n | awk '{print $2}' } list_all_versions() { git ls-remote --tags --refs https://github.com/direnv/direnv.git | grep -o 're...
a29e6133e560035c3cff94b780eb26244aff2c90
23
./Inspector ./Insp.py
3e37622fe67fa13fb004d4673156d8d42bf2aa55
5,549
#!/bin/bash function llegeixConfig() { if [ -f "$CONFIG/$rol" ] #si no esta configuracio, entorn no existeix i cal crearlo then i=0 while read -r line; do case "$i" in 0) IFS=',' read -r -a arrayProgrames <<< "$line" ;; ...
9ee0e89a328db05ee18e6bae741b2e27fe61b769
382
#!/bin/bash mysqldump -uroot -pAdmin12345 csinla | gzip > /var/backups/csinla/db/csinla_$(date +%Y%m%d_%H%M%S).sql.gz tar zcvf /var/backups/csinla/media/media_`date +%Y%m%d_%H%M%S`.tar.gz /var/www/csinla/csinla/media/ tar zcvf /var/backups/csinla/servermedia/servermedia_`date +%Y%m%d_%H%M%S`.tar.gz /var/www/csinla/c...
08fc7cb0d4c4d187aede8593fa872598ee03743f
100
tar zcvf genimgs.tar.gz genimgs/ rclone sync genimgs.tar.gz google: rclone sync targets.csv google:
9da49ea7787c0b4ac904291500d328e9a5051959
495
# Our running program shows the 9 jobs being executed by # various workers. The program only takes about 3 seconds # despite doing about 9 seconds of total work because # there are 3 workers operating concurrently. $ time go run worker-pools.go worker 1 processing job 1 worker 2 processing job 2 worker 3 processing jo...
f1cb51d3edb4c6dd1a76717a03cee0f5c53dc5ef
1,857
# Maintainer: hmsy <heimoshuiyu at gmail dot com> pkgname=caddy-webdav-git pkgver=20211012.c4790d7f pkgrel=1 pkgdesc='HTTP/2 Web Server with Automatic HTTPS and webdav plugin' arch=('x86_64') url="https://giteub.com/caddyserver/caddy" license=('Apache') depends=() makedepends=('git' 'go') provides=("caddy") conflicts=...
18ab8379c59b620b949f1af8a29c07b371498847
1,011
#!/bin/bash # author : Alucky4423 # Laradock の相対パス LARADOCK_PATH=".laradock/" up () { docker-compose up -d nginx phpmyadmin } down () { docker-compose down } exeCommand () { docker-compose exec workspace $* } showHelp () { cat << EOS Usage: laradock [option] <command_name> Option: -h, --help このhelp...
41c3e7409e1edebedebb98bbde18d0a262589560
2,485
#!/bin/bash # shellcheck disable=SC2034 # Color Palette RESET='\033[0m' BOLD='\033[1m' ## Foreground BLACK='\033[38;5;0m' RED='\033[38;5;1m' GREEN='\033[38;5;2m' YELLOW='\033[38;5;3m' BLUE='\033[38;5;4m' MAGENTA='\033[38;5;5m' CYAN='\033[38;5;6m' WHITE='\033[38;5;7m' ## Background ON_BLACK='\033[48;5;0m' ON_RED='\033[4...
a19b6b8c20f7e8e43fb77487e359e1c74224bf5f
43
#!/bin/bash docker build -t=bigstream:dev .
bc3fd5004fcb1d5bdb3f8e0189ade73281b6ad68
406
curl -sSL https://get.daocloud.io/docker | sh # install docker-compose curl -L https://get.daocloud.io/docker/compose/releases/download/1.13.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose # install daocloud speeder curl -sSL https://get.daocloud.io/daoto...
ff70b3ee95ffae02841b7978921a62299657c3a4
36
CHOKIDAR_USEPOLLING=true ENV CI=true
ac54ccf18025604281e2ceefc3b5c9abc8e35005
290
#!/bin/bash target="/home/www/htdocs/avss/cgi-bin/" rm $target/avssmain.m3u rm $target/avssmain.mp3 rm $target/avssmain.ogg rm $target/avssmain.mpitria cp mp3.m3u $target/avssmain.m3u cp mp3.m3u $target/avssmain.mp3 cp mp3.m3u $target/avssmain.ogg cp mp3.m3u $target/avssmain.mpitria
cc0cd13feb788ee690d3474b3d384dcf26b729bd
370
#!/bin/bash # https://github.com/aws/copilot-cli set -e brew install aws/tap/copilot-cli brew upgrade aws/tap/copilot-cli # OR # Check version here https://github.com/aws/copilot-cli/tags # # sudo curl -Lo /usr/local/bin/copilot https://github.com/aws/copilot-cli/releases/download/v0.4.0/copilot-linux-v0.4.0 && sudo ...
e3a4980151b683bd77211acf53ad094e5d62ea64
502
#!/bin/bash source ../../utils/common.sh source ./config.sh oc delete -n ${MODELMESH_TEST_NS} -f ${MANIFESTS_DIR}/openvino-inference-service.yaml oc delete -f ${MANIFESTS_DIR}/openvino-serving-runtime.yaml -n ${MODELMESH_TEST_NS} oc delete -f kfdef-odh-modelmesh.yaml -n ${ODH_NS} oc delete ns ${ODH_NS} oc delete -f...
fa432027fb1a30ef45249ac43fc61ba12d23fc06
3,296
#Zero Label CUDA_VISIBLE_DEVICES=$1 python train.py --config config/cocostuff/ZLSS.yaml --experimentid myexp --imagedataset cocostuff CUDA_VISIBLE_DEVICES=$1 python eval.py --config config/cocostuff/ZLSS.yaml --imagedataset cocostuff --model-path logs/cocostuff/myexp/checkpoint_20000.pth.tar -r zlss CUDA_VISIBLE_DEVICE...
9a70e1ccd2f3d48ce959f01ee6edc8ac356bd3cb
798
pkg_origin= pkg_name=msgpack-c _pkg_name=msgpack pkg_version=2.1.3 pkg_description="Efficient binary serialization format, which lets you exchange data among multiple languages like JSON" pkg_upstream_url="https://github.com/msgpack/msgpack-c" pkg_license=('GPL3') pkg_deps=('gnutls' 'readline' 'python3-cython') pkg_bu...
c7de6be3988f23942f39749e3cce40d0ae40b2e1
110
# export MOVIE_API_KEY='7854ce99b646526f11604daf32dc1202' export SECRET_KEY='12345' python3.6 manage.py server
17b4a3e5c1a2bfda20bee6776794c2821510955b
301
#!/bin/bash # Add local user # Either use the LOCAL_USER_ID if passed in at runtime or # fallback # if [ "$LOCAL_USER_ID" != "" ]; then USER_ID=${LOCAL_USER_ID:-9001} echo "Starting with UID : $USER_ID" adduser -D -h /home/user -s /bin/sh -u $USER_ID user export HOME=/home/user fi exec "$@"
1ebe5d9df1e9414ff0ba09266d68f1fb29bcf274
1,889
#!/bin/sh if [ -z "${LIB_COMMON_INCLUDED}" ]; then LIB_COMMON_INCLUDED=1 zf_usage() { local msg=$1 [ ! -z "${msg}" ] && echo "Error: ${msg}" >&2 cat >&2 << EOT Usage: zfsync [-dhiPq] [-U target_user] [-I identity_file] [-k retention] [-K retention] -H target_host -T target_zfs ...
4bd5d9c0c32abcef879adcfceca35c472ce7dce5
724
#!/bin/bash username=$1 password=$2 useradd -m $username -p $password -U usermod -s /bin/bash $username echo -e "${password}\n${password}\n" | passwd $username cp -a /home/zed/Desktop /home/$username/Desktop cp -a /home/zed/Documents /home/$username/Documents cp -a /home/zed/Downloads /home/$username/Downloads cp -a ...
3d3c5bc0701501c59f2e71aa0585b7ad1e678ad6
3,157
echo "npx lerna run start --scope server --stream & " | bash - cd react-app-agreement/react-ui-agreement && echo "yarn start &" | bash - ############################################################################################### ##! /bin/bash # #sudo apt update -y #sudo apt install apt-transport-https ca-...
9c68b779490d142ca683554dcb3caff2634faf62
1,564
#!/bin/bash echo "This script will install Canonical MicroK8s on an existing Ubuntu." # Install the required packages for SystemD apt install -yqq fontconfig daemonize # Creates a default user and adds it to the sudo group #useradd -m -s /bin/bash -G sudo mk8s # Reset the password of the default user #passwd mk8s # E...
57dc220d9b85429e7bddc03774139922c22fe6f1
82
#!/bin/sh # Test a CP1252 locale. ./test-mbrtowc-w32${EXEEXT} French_France 1252
9464e9987c24abe3018a4fec0b073b46a071e6f2
513
#!/bin/sh set -eu if [ ! -f package.json ]; then echo 'This must be run from the source root of the project' exit 1 fi if [ ! -d node_modules ]; then echo 'The NPM package dependencies must have been installed' exit 1 fi rm -rf ./dist ./lib for env in development production; do echo "Compiling ...
c0e3d89780be4b8f6044778ee4dfc1eeb1951d61
285
#!/usr/bin/zsh () { local minutes (( \ minutes = $(cat /sys/class/power_supply/BAT0/energy_now) \ * 60 / $(cat /sys/class/power_supply/BAT0/power_now) \ )) printf '%02d%% (%02d:%02d)\n' \ $(cat /sys/class/power_supply/BAT0/capacity) \ $(( minutes / 60 )) \ $(( minutes % 60 )) }
a59f9a52b1cb28ec7c14330700f57c1e3e6978f9
417
#!/bin/bash #SBATCH --job-name=scenario4a_rep3_process_output #SBATCH --output=scenario4a_rep3_process_output.out #SBATCH --error=scenario4a_rep3_process_output.err #SBATCH --time=3:00:00 #SBATCH --partition=cobey #SBATCH --nodes=1 #SBATCH --ntasks-per-node=1 #SBATCH --mem-per-cpu=10000 module load java cd /project/co...
8aa9bbdf803366918210a1d1c7c77e6ea666b576
7,837
# The channel prunning can be donwloaded via: # wget https://github.com/yihui-he/channel-pruning/releases/download/channel_pruning_5x/channel_pruning.caffemodel # wget https://github.com/yihui-he/channel-pruning/releases/download/channel_pruning_5x/channel_pruning.prototxt # Or you can get the PyTorch model from: htt...
de4aa3ec291218acbb83ec80baf898660510e8c5
63
#!/bin/bash -xe trsync/mos_symlink.py "${SYMLINK}" "${TARGET}"
9104aa76f19fa2ccbd9e5b525f3e65a1c4f023a1
331
#!/bin/sh #SBATCH --partition=broadwl #SBATCH --job-name=county_to_MSA #SBATCH --output=slurmlogs/county_to_MSA_%j.out #SBATCH --error=slurmlogs/county_to_MSA_%j.err #SBATCH --time=0:30:00 #SBATCH --nodes=1 #SBATCH --ntasks-per-node=1 #SBATCH --mem-per-cpu=10g #SBATCH --mail-type=END,FAIL module load stata stata-se -...
104a2337c2ee5c9101da94e469a882647dfd5e6f
694
#!/bin/bash # kops_3_create_s3_tfstate_store.sh # Ref: https://github.com/kubernetes/kops/blob/master/docs/getting_started/aws.md export AWS_PROFILE=garyttt8 DOMAIN="learn-devops.online" SUBDOMAIN="kops.${DOMAIN}" REGION="ap-southeast-1" BUCKET="${SUBDOMAIN}-tfstate-store" aws s3api create-bucket \ --region $REG...
5ac313d7329963ece2aa4bab946f3126e370b8f0
176
#!/bin/bash # export SOURCE_POD=$(kubectl get pod -l app=sleep -o jsonpath={.items..metadata.name}) echo $(kubectl get pod -l app=sleep -o jsonpath={.items..metadata.name})
89cbed910bc085f3bfbc71e900b01debf33d096f
460
#!/bin/sh # Bash "strict mode" # Exit if any return value is non zero (-e), any variables are not reclared (-u) # and do not mask errors in pipelines (using |) (-o pipefail) set -euo pipefail # Set the permissions of the container echo -n 'Settings permissions for the Nextcloud config/data folders...' chown -R nginx ...
5ce83abb6b811bec6db29b07b36ea4e37c59a71b
109
#!/bin/bash if [ "$1" = "clean" ]; then rm demo_list exit 0 else gcc list_demo.c -o demo_list exit 1 fi
9669237efaf82b72ed7e25e24d903ae9ac4bb36f
3,088
cd ~/jsdemonsimonline/jsdemonsimonline echo "" >> ~/jsdemonsimonline/jsdemonsimonline/fohresults/results.txt echo "" >> ~/jsdemonsimonline/jsdemonsimonline/fohresults/results.txt echo "<b>destiny</b>" >> ~/jsdemonsimonline/jsdemonsimonline/fohresults/results.txt echo "" >> ~/jsdemonsimonline/jsdemonsimonline/fohresults...
3c553faadeb422921bafb9ce1146bfc0c100761b
1,515
#/usr/bin/bash # this is any box specific test/simulation if [ -z $1 ] then echo "No IP address, exiting" else echo "Assuming arduino with IP " "${1}" echo "Ask for arduino details:" echo -n "Avduino Box Fish" | nc -4u -w0 ${1} 8888 BOXID=`nc -4u -l -w1 8889` echo "Looking for a BOXID response, got: ${BOXID}" i...
abdd1d62a0f835caf408117e5e19779947e91e5c
29
COOKIE_SECRET = cookiesecret;
3f62d2164820f62f7e386bd33dceb403f402886b
2,035
#!/bin/bash #----------------------------------------------------------------------------------------------------------------------- # Copyright (C) 2021 Fabrizio Maj # # This file is part of the cpp_libs_build_scripts project, which is distributed under the MIT license. # Refer to the licenses of the managed libraries...
4aee03b49f4661bd45846e41a7ab13b72a656df0
96
REACT_APP_GITHUB_API_URL=https://api.github.com REACT_APP_ORG=facebook # REACT_APP_ORG=rxhealth
0978182428336476298d9d4a9ef8704139596249
139
STRIPE_PUBLISHABLE_KEY=your_test_key_here STRIPE_SECRET_KEY=your_test_key_here HTTP_BASIC_AUTH_USER=username HTTP_BASIC_AUTH_PASS=password
736751887a22dfd865c8fcf67c8fe25013adb7d2
290
#!/bin/bash # if [ "$1" != "" ]; then echo "Dir is $1" else echo "Positional parameter 1 is empty" exit; fi for map in $( find $1/_maps -type f -name '*.dmm'); do echo $map cp -f $map $map.backup done echo -en "0-3,5-122\n\n" | python3 $1/tools/mapmerge/mapmerger.py $1/_maps 0;
6a66fd1895c57e553060316b6cd73d810fbc9097
1,553
bsub -n 1 openmpi-mpirun dark_arts ../inputs/Marshak_Wave/P4_Lobatto/Refine_1_Cells_4_Time.xml sleep 2 bsub -n 1 openmpi-mpirun dark_arts ../inputs/Marshak_Wave/P4_Lobatto/Refine_1_Cells_16_Time.xml sleep 2 bsub -n 1 openmpi-mpirun dark_arts ../inputs/Marshak_Wave/P4_Lobatto/Refine_1_Cells_64_Time.xml sleep 2 bsub -n 1...
e9ce9711e31ab8d111efaa56bc9ea33ce1888e98
178
#!/bin/sh cd build/nodes for i in GIC Bank AAA BBB ; do cp ../../diamond-contracts/build/libs/*.jar $i/cordapps cp ../../diamond-flows/build/libs/*.jar $i/cordapps done
ed01b3318195e6f28dd5b6b8c9057e14bc975a85
68
#!/bin/bash echo "hallo gebruiker, het is nu:" date '+%m-%d-%y'
77f4bff488a5799a04f6a897452802008d35ac9f
624
#install docker sudo apt-get update sudo apt-get install -y curl sudo curl -sSL https://get.docker.com/ | sh #pull 1c servers image docker pull altf13/1c_server #pull and run posrtres container. password: ** docker run -d -p 5432:5432 --restart=always -v /volume1/docker/1c/pg_sql:/var/lib/postgresql/data -e POSTGRES_PA...
7498ac6a7bc7b8482c0b80d4a775bd645feb3766
27
head -n 5 popular-names.txt
b45ff6ff9d1b4775167b6d51138aa5c563d4a074
581
# !/bin/bash #install oh my zsh sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended # install zsh theme (2) brew install nodejs npm install --global pure-prompt # zsh-syntax-highlightinggit git clone https://github.com/zsh-users/zsh-syntax-highlighting.g...
c49614a404c00c081d0f70c66841740427f29a32
55
find /var/www/gnusocial/file -mtime +60 -exec rm {} \;
06fc0fb03d6151042685e77d30cada6845e1d8f9
67
#!/bin/bash print "Hello World" print "sbsbsbb" print 'sbsbsbsbsb'
4ca2506e8c216fb10e46ab89025285f58d2b7657
71
#!/bin/bash while true : do /usr/bin/python /home/pi/do_ins.pyc done
5c9a3b355693daf1e4c32c714fbef4f9992df7c1
192
#!/usr/bin/env bash # -v "$(pwd)"/script/runtime:/opt/teleport/runtime docker run --cap-add=NET_ADMIN \ -it -p 1194:1194/udp -p 80:8080/tcp \ -e HOST_ADDR=localhost alekslitvinenk/openvpn "$@"
2e6cdb19d3eb00e5b5e3518284ed62ecade2c533
2,494
#!/bin/bash echo "\033[0;33mChecking required libraries...\033[0m" if brew ls --versions sfml > /dev/null; then echo "\033[0;36mSFML is already installed\033[0m" else echo "\033[0;31mSFML is required in order to start the game. Please wait until it is installed\033[0m" brew install sfml echo "\033[0;32mSFML in...
ca360ffbe7498bee215e9166cfcee62e6fda5499
139
#!/bin/bash BIN=$1 OUTDIR=$2 TIMEOUT=$3 INDIR=$4 timeout -k 9 ${TIMEOUT}s $BIN 934 1 1 2743 366 5463 2 739 399 0 1 1 &> $OUTDIR/o116
54ba3c46af26c4528703212103be7689b0c7bd54
105
POSTGRES_PASSWORD=password POSTGRES_USER=user POSTGRES_DB=db POSTGRES_HOST=localhost POSTGRES_PORT=5555
fbf20c3becf4e2235b42400d436d113ad62e05f3
5,678
#!/bin/bash # MODIFIED BY T.WANG twang.work@gmail.com 10.16.18 to normalise and smoothin in FSL # Usage: >./emodif 'imdif_study_epi_17' # # subject number # SUBNO=101 #MIDRUN = name of the middle run (include localizer, preview and study together) #read in middle run (reference run) from the second argument in the sc...
2edd5f178b35854ea0bb27ae73d271be2822040d
295
#!/bin/bash qsub -j y -o ${PWD}/logfiles/complex1.log ./script/test.job \ ${PWD}/data/complex/read_complex1.fa \ ${PWD}/result/complex1 qsub -j y -o ${PWD}/logfiles/complex2.log ./script/test.job \ ${PWD}/data/complex/read_complex2.fa \ ${PWD}/result/complex2
7825ece12954b0fd34c980288ca4a30e577a62b9
10,973
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com> # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> # Contributor: Thomas Baechler <thomas@archlinux.org> # Contributor: Jaroslaw Swierczynski <swiergot@juvepoland.com> # Contributor: Michal Hybner <dta081@gmail.com> # Contributor: Andrea S...
350139252832cf95029b9483cade83270c71d966
84
export PYTHONDONTWRITEBYTECODE=1 export ENVIRONMENT=local python3 manage.py migrate
f338ec7a66d2e33a3ed4922b36a92c41d1111f1c
483
#!/bin/bash set -e export AWS_PROFILE=transitmatters export AWS_REGION=us-east-1 pushd server/ > /dev/null chalice package --merge-template frontend-cfn.json cfn/ aws cloudformation package --template-file cfn/sam.json --s3-bucket datadashboard-backend --output-template-file cfn/packaged.yaml aws cloudformation deplo...
38bedef5b47f6420d557b45e9c6680c79db767ed
216
#!/usr/bin/env sh set -o errexit set -o nounset set -o pipefail NODE_MODULES_DIR="${NODE_MODULES_DIR:-/opt/node_modules}" GRUNT_TASK="${GRUNT_TASK:-default}" ${NODE_MODULES_DIR}/grunt-cli/bin/grunt "${GRUNT_TASK}"
002490d83af364751976087066e4c332bff5acbe
2,249
#!/bin/bash -l # Batch script to run a serial job on Legion with the upgraded # software stack under SGE. # 1. Force bash as the executing shell. #$ -S /bin/bash # 2. Request 6 hours of wallclock time (format hours:minutes:seconds). #$ -l h_rt=6:00:0 #$ -l mem=24G # 4. Request 40 gigabyte of TMPDIR space (default is 10...
a274c5fcc4576c1253a458d781b623959dacc30d
180
#!/bin/bash # SCRIPT: count.sh # USAGE : ./count.sh # PURPOSE: To count the number of lines and words in a file echo "Enter the file name " read a echo `wc -l $a` echo `wc -w $a`
7c96f4940b2aae961d1aafae359772885e0e785e
2,716
#! /bin/bash -e # # # if [ -z $1 ]; then # echo "empty parameter" # exit 1 # fi # # mkdir -p alert # touch alert/$1 # sleep 18 # rm alert/$1 # # find alert/ -empty -exec rm alert.jpg \; # if [ $# -ne 1 ]; then ...
18384af3c58cc69079a26d5205a6d385cfa59455
681
#!/bin/sh # # devenv # # Script that sets up a specific layout with gvim, a mini ranger browser, and a # shell. This is designed around the gvim instance being used as a singleton; # the ranger browser is also configured with this setup in mind. You can open # files with the singleton gvim instance by using the 'gvim1'...
64a56d00c29a0f763bdb4e5718927a375e132338
504
#!/bin/sh # Convert a .wma to an .ogg using ‘mplayer’ and ‘oggenc’. # # Public Domain set -e IN=$1 shift if [ -z "${IN}" ]; then IN=- WAV=audio.wav else WAV=$(basename ${IN} .wma).wav fi mplayer -vc dummy -vo null -ao pcm:waveheader:file=${WAV} ${IN} FILEDAT=$(file ${WAV}) BITS=$(echo ${FILEDAT} | sed -e...
7d4809ea86e29e566c1297c495faf27afc80888c
360
#!/bin/bash function _changelogsh_release { if [ ! -d "changelog/unreleased/" ]; then printf "Nothing to release.\n" return fi if [ "$#" -lt 1 ]; then echo "Version is required" return fi version=$1 expanded=$(_changelogsh_raw_to_expanded $version) mv 'changelog/unreleased' "changelog...