blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
4226c5a89a90604c662db14d3a617c17b5bde96f
254
#!/usr/bin/env bash if ! command -v n > /dev/null 2>&1; then return fi export N_PREFIX="${HOME}/opt/n/node" if ! command -v n > /dev/null 2>&1; then return fi export PATH="${HOME}/opt/n/node/bin:${PATH}" alias npmi="npm install --ignore-scripts"
be811398d8e1b0db6405e2f075111ae973cf4ff5
2,387
#!/bin/bash introduction() # Displays the command options { clear echo "" echo "Command Action: Command number:" echo "Disk Free 1" echo "Disk Usage 2" echo "List Files 3" echo "Process Status 4" echo "Examine Volume 5" echo "Shell Escape 6" echo "Current Date 7" echo "Exit 8" } prompt() # Prin...
6a66d516f7cf6114bcf9e2503b0efae2056dc52b
486
#!/usr/bin/env bash apt-get update apt-get remove docker docker-engine docker.io apt-get install \ apt-transport-https \ ca-certificates \ curl \ software-properties-common \ -y curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - add-apt-repository \ "deb [arch=a...
fd94211483826183c01c6e0af4169bd766570907
178
#!/bin/bash # load version strings . VERSION # load all scripts for i in library/S*sh; do . $i; done # run this script as sudo elevate_privileges echo "do something" exit 0
8b9a2393b2e7d612dc4c3510a8210616421f81fe
205
#!/bin/bash read -p "Enter Your Name: " username echo "Welcome $username!" sleep 5 # Waits 5 seconds. echo "Hello World!" python /home/pi/Desktop/PIR_input/pir_loopingVideo_unmuteSound_muteAtTheEnd.py
b10e7f8d5950111d43559a1769853501de640a90
1,186
In this lesson, we will finish off the networking module by creating the variables and outputs Terraform files. Finally we will test the module before integrating it into the root module. Edit variables.tf: vi variables.tf variables.tf: #----networking/variables.tf---- variable "vpc_cidr" {} variable "public_ci...
29f965c2d3073f972f8c26c5fd1e71966225c3c5
2,434
#!/bin/bash echo "Si ce n'est pas déjà fait, n'oubliez pas d'ajouter les lignes suivantes dans votre .bashrc" echo "alias php7.1='sudo a2dismod php7.2 && sudo a2dismod php7.3 && sudo a2enmod php7.1 && sudo update-alternatives --set php /usr/bin/php7.1 && sudo systemctl restart apache2'" echo "alias php7.2='sudo a2dismo...
6ffa178837cac45b66d3cf7e46713910c97cbf96
1,041
#!/bin/bash # Nom du job #SBATCH -J 26_NonStationary_b4_fe25_en_rk50_ll0_l40_HFalse_c2 # # Partition visee #SBATCH --partition=SMP-medium # # Nombre de noeuds #SBATCH --nodes=1 # Nombre de processus MPI par noeud #SBATCH --ntasks-per-node=1 #SBATCH --mem 40000 # # Temps de presence du job #SBATCH --time=40:00:00 # # Ad...
e2ce4b3531fb484c7bc416946c5da1be502c54e2
140
python test_segment.py --output_file timeLabel.json --video_file $1 --weight pretrain/model_42.pth.tar --arch InceptionV3 --dataset moments
82d52511950325f624991aaa887c6aa98364c1cb
882
#!/bin/bash -eu # When you add a boolean parameter to a Jenkins job, the two values the # param will contain are the strings "true" or "false". # # So when using a boolean param value configured with these settings: # # Name: SAVE_VIDEO_ON_SUCCESS # Default value: [ ] # # In a bash script build step, you can use t...
fa7f88d2649768819fd8010fde169b285bfef363
2,747
#!/bin/sh set -e echo "定义定时任务合并处理用到的文件路径..." defaultListFile="/pss/AutoSignMachine/$DEFAULT_LIST_FILE" echo "默认文件定时任务文件路径为 ${defaultListFile}" if [ $CUSTOM_LIST_FILE ]; then customListFile="/pss/AutoSignMachine/$CUSTOM_LIST_FILE" echo "自定义定时任务文件路径为 ${customListFile}" fi mergedListFile="/pss/AutoSignMachine/mer...
948d69cb570ebf239812da023a7b8d134c46cce4
3,719
#!/usr/bin/env bash cd ../tools/DeblurGAN/ echo "method:$1" if [ $1 == 'mbAdv' ] then for kernelsize in `seq $2 5 $3` do for translation in `seq $4 0.1 $5` do # parameter: $1 sbAdv_bim, bim, fgsm, gblur dataroot=/path of project/results/dev/inceptionv3_inceptionv3_mbAdv_...
411388953198100dd574a5cb4a9e3810ad9b8d61
217
#!/bin/bash #PBS -l nodes=4:ppn=12 #PBS -l walltime=0:00:10 #PBS -q batch #PBS -N MPI_Integrate #PBS -j oe cd /home/arrowoode/class060419 mpiexec -np 4 --map-by ppr:1:node --hostfile $PBS_NODEFILE ./mpi-integrate.x
888e83d0656b53994250b99b740a9d5a79fea9c4
142
CONF_DIR=/home/kartavyy/benchmark/mysql expect_file=$CONF_DIR/expect.tcl test_file=$CONF_DIR/queries.sql etc_init_d_service=/etc/init.d/mysql
da5591fbd48d846183a868312b65aa5ce81b4e7d
782
#!/bin/bash filepath=$(cd "$(dirname "$0")"; pwd) USER=`whoami` folder="/tmp/${USER}_ufile/" here=`pwd` mkdir $folder echo "mkdir $folder" path=$1 path_0=${path:0:1} if [ $path_0 == "/" ]; then echo "$path" else path="${here}/${path}" echo "$path" fi ln -s ${path} ${folder}/${USER}_data_$2 echo "ln -s ${path} ${f...
4651fa63bc5f536488844030f02f9821a0b488e6
198
#!/bin/bash gcc -fPIC -c -o socket_interceptor.o socket_interceptor.c gcc -shared -o socket_interceptor.so socket_interceptor.o -ldl -lpcap -lpthread LD_PRELOAD="./socket_interceptor.so" ./client
b1f54b4b78356c54d7bfc3a3ee38df4f090ad3e7
1,437
# Source: https://gist.github.com/3dd5592dc5d582ceeb68fb3c1cc59233 ##################### # Install Jenkins X # ##################### # Replace `[...]` with the IP of the load balancer created when you installed the NGINX Ingress controller` LB_IP=[...] # Replace `[...]` with the domain that will be used to access J...
7fe5a002ae06374d13a4162479fa43bd8b2127b4
391
dir=/home/jajpark/niehs/results/180123_refseqind_salmcounts cd $dir for i in `ls */quant.sf` ; do sed -i "s/|/_/; s/lcl_NW_012224401.1_mrna_//; s/_[0-9]//g" $i; done for i in `ls */quant.sf` ; do sed -i.bu "s/XM12/XM_012/; s/lcl.*rna_//" $i; done for i in `ls */quant.sf` ; do sed -i "s/XM12/XM_012/; s/lcl_NW...
3f97b40cfa0fc5a2a4e29b22187baf28b510e684
136
#!/bin/bash cd /home/jwelch4/cse520/research/macsim module load gcc/4.4.7 module load python/2.7.5 export CXX=g++44 ./build.py -d
6c44459b8206345761bccb6008d6d3ee8495648a
133
#!/usr/bin/env bash set -e cd chatbot_website python3 manage.py makemigrations python3 manage.py migrate ./manage.py "$@" cd ../
7d0c19da43ed98f8c336be3d832e8b92da0f886a
1,264
#!/bin/bash git clone --recursive https://github.com/jiveui/lime ../lime haxelib dev lime ../lime git clone https://github.com/jiveui/openfl ../openfl haxelib dev openfl ../openfl git clone https://github.com/jiveui/jive-chart ../jive-chart haxelib dev jive-chart ../jive-chart/src git clone https://github.com/jiveu...
ce04496b5630b31b64fd32366819040072ba82e0
70
#! /bin/bash cd ../fastText ./fasttext supervised -input $1 -output $2
d8ff8362ee2a53f822a966ee5be547e01b5da17a
1,057
#!/usr/bin/env bash tomcat_home=/root/docs/apache-tomcat-7.0.73 mall_home=/home/wwwroot/mall.d4smarter.com echo "===========进入git项目mall目录=============" cd ${mall_home} echo "==================git fetch======================" git fetch echo "==================git pull======================" git pull echo "========...
e0be1ef2fee4b8851be9a0bc818bb159be99caf7
253
#!/bin/bash [[ $# -ne 2 ]] && echo "Usage: $0 input_file output_file" && exit 1 sed -n '/Time/d;/^$/d;s/ *[0-9]* \([\.0-9]*\) *host.*/[\1]/p;s/\(00[4-9]0 [ 0-9a-f]* \).*/\1/p' $1 | awk '{$1=$1};1' | sed ':t;$!N;/\n00[567]0/s///;tt;s/^0040 //;P;D' > $2
3e3c13477c371e98954d770100469e5d97097950
1,325
#!/bin/bash echo "------------------\nWe are not using heroku, \nTry 'sh ec2-staging.sh' to deploy on EC2 staging \n------------------\n" exit 1 # ========================================================== set -e if [ `git branch --list deploy` ] then # Delete current deploy branch git branch -D deploy fi # Swi...
b4ce01439591a304911eb570415cca09f7180aad
560
#!/usr/bin/env bash wget -q https://raw.githubusercontent.com/jonmosco/kube-ps1/master/kube-ps1.sh -P ~/ cat <<EOT >> ~/.bashrc source <(kubectl completion bash) alias k=kubectl alias kn='kubectl config set-context --current --namespace ' alias kdr='k --dry-run=client -o=yaml ' alias kbb='kubectl run busybox-test --i...
4ada102b202b643dd01a1edb738357d24a17e68c
287
#!/bin/bash for (( i=1; i<=60; i++ )) do for (( j=1; j<i+10; j++ )) do echo "">result1 echo "">result2 ./7 >result1 <<<"$j $i" ./7.1 >result2 <<<"$j $i" echo "$i a $j" lol=$(cat result2 | grep -f result1) #echo "$lol abz to bolo dobre" if [ "$lol" = "" ]; then echo "OK" fi done done
ed25f45ba6531ab3144ba300408016f4d492af7c
152
#!/usr/bin/env bash # jq -e causes jq to exit non-zero if it doesn't produce output. eslint --fix-dry-run --stdin --format=json | jq -er '.[0].output'
90441e22bcf9ce6278494a3ab2dea030cf3839ca
113
DB_NAME='blog_db' DB_USER='root' DB_PW='the best password ever' ES_KEY='pull the trigger and the nightmare stops'
d9e5436608c91e07aad6afc6446221c69d31f1c5
527
#!/usr/bin/env bash # Save as /etc/NetworkManager/dispatcher.d/pkill_hup_openvpn and make # executable to send SIGHUP to OpenVPN upon reconnection to the underlying # network. # Only tested with OpenVPN started manually, or via systemd. For VPN # connections configured via NetworkManager something else may be needed. ...
3a65cbd363ff13776d12d2c3d5b70fa5d07d1e1b
527
#!/bin/bash #SBATCH --partition=batch #SBATCH --job-name=guppy #SBATCH --ntasks=10 #SBATCH --mem=10G #SBATCH --time=15:00:00 #SBATCH --output=%j_%x.out #SBATCH --error=%j_%x.err #SBATCH --mail-user=stephen.bush@ndcls.ox.ac.uk #SBATCH --mail-type=end,fail /home/s/sbush/programs/ont-guppy-cpu/bin/guppy_basecaller -i /t1...
1f907fde6fae060ec914ae29bd04bee79e7cc733
362
#!/bin/sh IAM=`basename "$0"` case "${IAM}" in xincluder-sax) MAIN_CLASS=SAXXIncluder ;; xincluder-dom) MAIN_CLASS=DOMXIncluder ;; xincluder-jdom) MAIN_CLASS=JDOMXIncluder ;; xincluder) MAIN_CLASS=SAXXIncluder ;; *) echo "ERROR!" ; false ;; esac "%%LOCALBASE%%/bin/java" -cp "`"%%LOCALBASE%%/bin/classpath"`" "co...
5dc0db45a77a5cf494edd0f667d28aa0c1cbe6e5
649
#!/bin/bash b(){ echo " @@@@@ @@@@@ @@@@@@@ @@@@@@@ @@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@ @@@@@@@@@@ @@@@@@ @@ @@@@@@ @@@@@@ @@@@@@@@@@@@@@@@ @@@@@@@@@@@@...
396b59189f7294b3bb1074d4c10db88623360598
68
/opt/t32/bin/pc_linux64/t32marm-qt -c /opt/t32/config-sim.t32, $@ &
507b71f895f98ee90144ee536dc3601e673283e7
1,034
# Using self trained model to dehazing. # echo python3 script/resize_crop_shift.py \ # && python3 script/resize_crop_shift.py \ # --inputDir ./test_images/NTIRE2020_RAW/test/Hazy \ # --outputDir ./test_images/NTIRE2020_RAW/test/Hazy_Patch \ # --resize 1024 \ # --segment 5 #...
404b6c2acdd4ee7017f554fd5dbf763b882a1e70
167
#!/bin/bash set -e TEMP_DIR="$(mktemp -d)" trap "rm -rf ${TEMP_DIR}" exit cp ${TSH_OUT} ${TELE_OUT} install.sh ${TEMP_DIR} tar -C ${TEMP_DIR} -zcvf ${RELEASE_OUT} .
188d01a37f1a6044455120959c6ec69b34cac44b
430
#!/bin/sh -v brew install lua python brew cask install macvim brew tap homebrew/cask-fonts brew cask install font-meslo-lg-nerd-font brew install the_silver_searcher mkdir -p ~/bin ln -sf /Applications/MacVim.app/Contents/bin/view ~/bin/view ln -sf /Applications/MacVim.app/Contents/bin/vim ~/bin/vi ln -sf /Applicat...
994ec3b54768f9701c6ec5c09da32ea21bf26e79
394
#!/bin/bash #--- VladVons@gmail.com, oster.com.ua cPkgName="collectd" cPkgDepends="collectd-utils rrdtool hddtemp mbmon liboping0 lm-sensors" cDescr="system monitoring tool" cTag="system,monitoring" ScripInstall() { _PkgInstall "git" ExecM "git clone git://github.com/pommi/CGP.git /var/www/app/cgp" ExecM "ln...
5e71e035bef165fb769a3cabdceb0f6427fc51ec
1,425
sshpass -p "megdc" scp -o StrictHostKeyChecking=no /home/megdc/.ssh/id_rsa.pub megdc@master:/home/megdc/.ssh/authorized_keys ceph-deploy install master ceph-deploy disk list master i didnot meet this error for master only even there wasn't exist /etc/ceph/ceph.conf file{ #[ERROR ] ConfigError: Cannot load config: [E...
32303410dd1c7f50ecf857c1659f0c69d84ad68d
68
#!/bin/bash echo "deleteme test2 of a paste with the oauth token"
de6ed3d826ac96e6ad37da0c0879915ef4acd5ee
6,482
{"changed":true,"filter":false,"title":".bashrc","tooltip":"~/.bashrc","value":"# .bashrc\n\nexport PATH=$PATH:$HOME/.local/bin:$HOME/bin\n\n# load nvm\nexport NVM_DIR=\"$HOME/.nvm\"\n[ \"$BASH_VERSION\" ] && npm() { \n # hack: avoid slow npm sanity check in nvm\n if [ \"$*\" == \"config get prefix\" ]; then whic...
489bc7db73feeae48f2a04591d80e683796240ab
22
source ~/.zsh_profile
b535aff4b2a4f540c2c23fb3e63d997d526a1c25
104
# Kill the running puma server # Start the benchmarking pkill -9 -f puma ruby ./bench/summary_speed.rb
0973190aa813cae4ba82aacd389cecffb149a8f7
1,837
#!/bin/zsh setopt extendedglob gpg_cmd=$(which gpg) gpg_args+=( --quiet --no-tty ) me=$0 function output() { [ "$debug" ] && return [[ "$1" =~ -. ]] && (arg=$1; shift) echo $arg $@ } function print_help() { echo "$me -e|-d <dir>" echo "an exit value of 127 means that <dir> doesn't exist" } function chec...
49f91fee820ea25f44b5838c8d7f11a1e25caef8
75
#!/bin/bash nodemon --ignore 'node_modules/*' --ignore 'logs/*' ./bin/www
f57f62a85bb756f2e9c163e5f34c01088478de3a
437
#!/bin/bash rm $0 . /srv/http/addonstitle.sh title -l '=' "$bar Change notification duration ..." file=/srv/http/assets/js/enhancebanner.js if [[ -e $file ]]; then sed -i "s/.000/${1}000/" $file else sed -i "s/[0-9]\+\( : notify.delay\)/${1}000 ))\1/" /srv/http/assets/js/runeui.js sed -i "s/[0-9]\+e3\(:notify.de...
50a9857d5fd2315921db73cb13dffbea553dea23
500
#!/usr/bin/env bash if [ x"$#" == x"0" ];then echo "Usage : $0 program" exit fi PROGRAM=$1 shift RUN_PATH=`cd $(dirname $0)/..;pwd` export RUN_PATH echo "program home : $RUN_PATH" mkdir -p "$RUN_PATH/tmp" mkdir -p "$RUN_PATH/log" mkdir -p "$RUN_PATH/data" mkdir -p "$RUN_PATH/status" if [ ! -f "${RUN_PATH}/...
cc416a3d3f7a859585bbf5219c8f14a68474126c
9,899
#!/bin/bash #credits to @BasRaayman and @inchenzo INTERFACE="tun0" DEFAULT_NET="10.8.0.0/24" RED='\033[0;31m' GREEN='\033[0;32m' BLUE='\033[0;34m' NC='\033[0m' while getopts "a:" opt; do case $opt in a) action=$OPTARG ;; *) echo 'Not a valid command' >&2 exit 1 esac done reset_ip_tables () { sud...
0604e64c376ec28d6119f7f4132a21903dbf866c
3,748
#!/usr/bin/env bash # Copyright (C) 2019 Parth Bhatia (TheStrix) <parthbhatia98@gmail.com> # source functions source ~/.dotfiles/functions usage() { cat <<USAGE Usage: bash $0 <FILE_OR_DIR_PATH_TO_UPLOAD>/<LINK_TO_DOWNLOAD> [OPTIONS] OPTIONS: -h, --help Display this help message -d, --dir Specify download...
fd42b9e289b57e0a9c09af0198b898d8d454ea0a
1,855
#! /bin/shell # Copyright 2019-2029 geekidea(https://github.com/geekidea) # # 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 requir...
74e591f51b1456f05eb6171dd950b458d44df315
4,382
#!/bin/bash set -e releasever=38 basearch=x86_64 DISTRO=fedora${releasever} ROOTFS=/root/${DISTRO}.img MIRROR=http://distrib-coffee.ipsl.jussieu.fr/pub/linux/fedora/linux FEDORA_MAIN=${MIRROR}/releases/${releasever}/Everything/${basearch}/os FEDORA_MODULAR=${MIRROR}/releases/${releasever}/Modular/${basearch}/os FEDORA_...
c2bd73dd6b18d6b83f48a4bb64e05324dcaa15e2
258
#!/bin/bash cp -r /usr/local/zhiliangku/zhiliangku-front/front /tmp cp -r /tmp/front/static /usr/local/openresty/nginx/html/templates/ rm -rf /tmp/front/static cp -r /tmp/front/* /usr/local/openresty/nginx/html/templates/ rm -rf /tmp/front
b91bd62f78b6c528ede3a91955bc4cefc0cf6abb
155
DB_CONNECTION = mongodb+srv://dbUdaya:Deurne2100@cluster0.esyyg.gcp.mongodb.net/Auth?retryWrites=true&w=majority TOKEN_SECRET = hrbfifbizjknznjjjccjjcjncdj
c681b96c61d1686641dce85a029fc17f6f86de6e
3,833
###################################################################### # functions ###################################################################### # load the functions as common settings for bash/zsh . "$HOME/.shrc_common" load_default_settings() { # Load settings from the default file # Globals: # N...
4d63c6f61edaa92f2557ae58eadfa93f13df16dc
243
sudo apt-get install -y gdal-bin sudo apt-get install -y python-gdal sudo apt-get install -y python3-gdal sudo apt-get install -y libgdal-dev export CPLUS_INCLUDE_PATH=/usr/include/gdal export C_INCLUDE_PATH=/usr/include/gdal pip3 install GDAL
e238998c30eec182c2b6703c96c0365f0fbe565e
165
Quick `bash` shortcuts Useful aliasing in bash Adding directories to your `$PATH` Sequential execution using the `;` statement separator Retrieve previous arguments
7044eb22907dccaae15baec78377026fffb2e97f
164
#!/bin/sh WALLET_NAME="wallet.json" NODE_WS_PORT="9881" NODE_WS_ADDRESS="ws://localhost:$NODE_WS_PORT" ./cli_wallet --wallet "$WALLET_NAME" -s "$NODE_WS_ADDRESS"
da40a4d9d0564a2d71d7068a15c61dad218b381c
60
rm -R ./docs; apidoc -i ./application/controllers -o ./docs
6893afe701585d20dbaffc999a849787912391aa
228
#!/bin/sh # for debuginfo-install yum install -y yum-utils debuginfo-install python-2.7.5-39.el7_2.x86_64 gdb python 5940 # display backtrace for python py-bt # https://fedoraproject.org/wiki/Features/EasierPythonDebugging
dcc79713008283fae2c489dede791a05e4dc2d9b
90
#!/bin/sh # List all projects with their full path (excludes files) ls -d1F $HOME/Code/*
5061fb013aff753748bc7b94e9b80e100c22d528
329
#!/bin/sh # deploy.sh - deploys all functions and workflows in this directory set -xe # Deploy workflows fission fn create --name inputs --env workflow --src ./inputs.wf.yaml fission fn create --name fibonacci --env workflow --src ./fibonacci.wf.yaml fission fn create --name sleepalot --env workflow --src ./sleepalo...
2973e978bc2ab8c9dfc6689831c02393b59f9bd2
1,081
#!/usr/bin/env bash # Copyright 2020 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. set -e usage() { cat <<EOUSAGE Usage: $0 [--sudo] Run standard CI (tests and linters) using local docker. If --sudo is set, run docker with...
7caf93847760da9deeedf0d4381f594d84a2c86e
403
#! /bin/bash export TAG_NAME="monte-carlo-clojure" function build-docker() { docker build -f Dockerfile -t $TAG_NAME . $@ } function dock() { docker run \ -v $PWD:"/root/simulation_methods" \ -w "/root/simulation_methods" \ -p 10666:10666 \ --rm -it $TAG_NAME $@ } function re...
7eee7075ca76f6ffca2e1ec317d2285aa30979dd
112
#!/bin/bash rm -rf out mkdir out FILES=*.pgm for f in $FILES do mkdir out/$f ./main.m $f mv *.pbm out/$f/ done
1d28141af6eb36d916d02b5526cbffcebac96b4d
15,401
#!/usr/bin/env bash # This is just a Proof of Concept, don't put passwords or ssh-keys on github :) # Include file echo "### hosts file" cat <<EOF > /etc/hosts 127.0.1.1 $(hostname) # vagrant environment nodes 192.168.123.10 mgmt 192.168.123.11 lb 192.168.123.21 wp1 192.168.123.22 wp2 192.168.123.31 be E...
f6f2fbdb6c603290c4d0c2f36b516d3836799991
1,117
#!/usr/bin/expect -f # Drop all the system caches so that we can reserve huge pages exec echo 3 | sudo tee /proc/sys/vm/drop_caches # Setup the dpdk spawn "tools/dpdk-setup.sh" # Compile the kernel module expect "Option:" send "15\r" expect "Press enter to continue ..." send "\r" # Reset everything expect "Option:"...
a25f989bfa11680d1c89a4d098266ec6501cbe3b
479
#!/bin/bash defaultColor="#F1F1F1" color="$1" [[ ! -z "$color" ]] && defaultColor=\#"$color" function repl { template="<span font='FontAwesome'>{label}</span> <span color='{color}'>{text}</span>" echo -n "$template" | awk '{gsub("{color}", "'$1'"); gsub("{label}", "'$2'"); gsub("{text}", "'$3'"); print}' | a...
41d8989acf06f40369f30b551c4c891c6e23052c
384
#!/bin/bash echo -n "Enter file name: " read filename ranges="" echo -n "Enter 2 parameters in the format num1-num2: " while read range; do ranges="$ranges $range" echo -n "Enter 2 parameters in the format num1-num2: " done echo while read line; do str="" for range in $ranges; do str="$str$(echo...
dcc9b0a856bd5de97a2a0aa528c3c99069bb649c
38
#!/bin/bash qmake make ./bin/qfaktury
fded01d7d4b587bfc2c65b1d49726aab5ffe88c2
134
#!/bin/sh WORD=$1 curl "https://en.wikipedia.org/wiki/$WORD" > "$WORD.wikipedia.html" 2> /dev/null ./plang.pl "$WORD.wikipedia.html"
889f747946c673adc65e8cffe0274cd7a7f0ea1a
145
#!/bin/sh rm -rf ../java/cn/edu/thssdb/rpc rm -rf gen-java thrift -r --gen java rpc.thrift mv gen-java/cn/edu/thssdb/rpc/ ../java/cn/edu/thssdb/
2b32dda6454e1b0e3759b05396c3636cb388c4c8
1,900
#docker save dineshpillai/mu_zookeeper > mu_zookeeper.tar #scp -i ~/.minikube/machines/minikube/id_rsa ~/git/innovation/mu_zookeeper.tar docker@192.168.64.4:~/ docker load < mu_zookeeper.tar #docker save innovation_hazelcast > mu_hazelcast.tar #scp -i ~/.minikube/machines/minikube/id_rsa ~/git/innovation/mu_hazelcast....
dad098c165171955f1101afa7bc8d60d6f5f1772
1,434
if [ ! "$_ansible_INCLUDED_" = "1" ]; then _ansible_INCLUDED_=1 # https://github.com/ansible/ansible # https://stackoverflow.com/questions/41535915/python-pip-install-from-local-dir feature_ansible() { FEAT_NAME=ansible FEAT_LIST_SCHEMA="2_4_0_0:source" FEAT_DEFAULT_ARCH= FEAT_DEFAULT_FLAVOUR="source" } feat...
6b470fa12f3a2150c339b1b9fdeeb8bfd9d169ed
2,364
#!/bin/bash -x # Author: Paolo Cumani, Tarek Hassan, Abelardo Moralejo # Macro to install MARS in Grid, in a single tarball with ROOT and the .rootrc # A tarball with an uncompiled version of Mars have to be already saved in Grid # ATTENTION: VALUES TO CHANGE!!! CHANGE ALSO THE PATH TO THE DIFFERENT FILES!!! MarsTar...
e1acda1b0d6e3094ab808f526a9d61c9ec04c7c3
158
#!/bin/bash set -e sudo apt update # tested on ubuntu 16.04 sudo apt -y install genisoimage qemu virtinst qemu-kvm libvirt-dev libguestfs-tools virt-manager
ebfdbbc463b52669806679a0dc34061002f37527
154
#!/bin/bash -xe tools_file=$1 tools=$(grep "_" $tools_file | sed 's/.*_ *"//' | sed 's/"//g') for tool in $tools; do $GO install ./vendor/$tool done
294ee37ce5b72c50ae14ab01b461166658b03a4a
2,313
#!/bin/bash # File Name: test.sh if [ $# -eq 0 ]; then echo "Please provide parameter along with file name" exit 1 fi rm -rf $filename $filename_log filename=<Directory>/output.log filename_log=<Directory>/output_data.log file=`basename $1` echo "Starting the process ..." >& $filename echo "Cleaning ...
9a36261ebb5367e3e48a4f0d7fc367ee3ef6ac1a
2,034
#!/bin/sh # Copyright 2016-2023 Brazil Ltd. # # 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 ...
7575401448da713b96e6799de6ba8f12f82cbf06
34
beefy download.js:bundle.js --open
16789021efc8b01949796bf4e8242139830cc80b
2,064
#!/bin/bash -ex if [ -n "${OPENSHIFT_CI}" ]; then echo "Running functest on OpenshiftCI" export CLUSTER_COMMAND="oc" OPERATOR_NS="default" else # We are not on OpenshiftCI if [ -z "$KUBEVIRTCI_PATH" ]; then KUBEVIRTCI_PATH="$( cd "$(dirname "$BASH_SOURCE[0]")/" readl...
cfe535936bf0fffc2bb9dc123c707a5cc593e7dc
1,483
#!/bin/bash vga_device=/sys/class/drm/card0/device pwm=$vga_device/hwmon/hwmon1/pwm1 perf_level=$vga_device/power_dpm_force_performance_level gpu_clock=$vga_device/pp_sclk_od vram_clock=$vga_device/pp_mclk_od help=$(cat /Users/lionelpedro/Git/GamingPerformanceEnhancer/help.v56) current_cpu_clock=$(cat $gpu_clock) print...
3fb539eddf89b19410f3fc98a2f019b5e1f1cfe6
1,926
#!/bin/bash set -x test -d ${icp_install_path} || sudo mkdir -p ${icp_install_path} cd ${icp_install_path} if [[ ${icp_binary} == http* ]]; then echo "HTTP binary found" hostname=$(echo ${icp_binary}|awk -F/ '{print $3}') filename=$(echo ${icp_binary}|awk -F$${hostname} '{print $2}') basename=$(basena...
e8851e40b60eb46208d16b8ea9e10f473175f51f
1,190
#!/bin/sh PROJECT=<% .Name %> AWS_DEFAULT_REGION=<% index .Params `region` %> RANDOM_SEED="<% index .Params `randomSeed` %>" ENVIRONMENT=stage # only apply to Staging environment DEV_DB_LIST=$(aws iam get-group --group-name ${PROJECT}-developer-${ENVIRONMENT} | jq -r '"dev" + .Users[].UserName' | tr '\n' ' ') if [[ ...
54987269fbdcf8c93b1ad3f6868f9cf3e4a6a637
543
#! /bin/bash OWASP_ZAP_URL="http://$1:$2/" OWASP_ZAP_URL+="JSON/pscan/view/recordsToScan/?" OWASP_ZAP_URL+="zapapiformat=JSON&" OWASP_ZAP_URL+="formMethod=GET&" echo "OWASP URL check -> $OWASP_ZAP_URL" CHECK_PASSIVE_SCANNER=0 until [ $CHECK_PASSIVE_SCANNER -eq 0 ]; do sleep 10 OWASP_SCANNER_STATUS=$(curl -s $O...
b145b51eb74db08a23121c6365afe29f9b341ed0
197
#!/usr/bin/env bash docker build -t py-markets-monitor . open http://localhost:8889 docker run -it -p 8889:8889 -v $(pwd):/home/ --name=monitor_dev --rm py-markets-monitor bash /home/nb-start.sh
7b30d832cbc71c0b27aea670933532225953ff47
712
#!/bin/sh for monitor in $(bspc query -M --names); do monitors+=("$monitor") done #echo ${#monitors[@]} # Number of coonnected Monitors if [ ${#monitors[@]} == 1 ]; then # Single Monitor Setup # xrandr --output ${monitors[0]} --primary --mode 1920x1080 --pos 0x0 bspc monitor ${monitors[0]} -d 1 2 3 4 5 6 7 8 9 10 e...
451521fdcc955b99498c0d51d7f6f5291ca3be75
615
#compdef pipes.sh local arguments arguments=( '-p[1-\] number of pipes (D=1)]' '-t[0-9\] pipe type (D=0)]' '-t[16 chars\] custom pipe type]' '-c[0-256\] pipe color INDEX (TERM=xterm-256color), can be]' '-f[20-100\] framerate (D=75)]' '-s[5-15\] going straight probability, 1 in (D=13)]' '-r[0-\] reset af...
7ea1f879a08e87fd33f83d840f4119bcbf98519c
352
#!/bin/bash if [ -z $1 ];then echo "used: $0 file" else DATE=`date +%F` printf "#!/usr/bin/env python # -*- coding: utf-8 -*- \"\"\" =========================================== FileName: $1 Desc: $2 Author: ruizhong.li Version: CreateTime: ${DATE} =============================...
7f0f7d551ec82b9b8726878e736cccef785c337f
52
#!/bin/bash . ~/scripts/lab2_1.sh less /tmp/run.log
26fb8b145890c9904764db9899a408f9010755c5
141
#! /bin/bash mkdir pep-sep; cd pep-sep; for i in ../pep-dupli/*; do b=`basename $i` c=${b%.fas} mkdir -p $c/pep cp $i $c/pep done cd -
a763f49a91f3c311fdff6ccf7b4218fcc56569b6
40
#!/bin/bash python3 prettyprint.py < $1
269065b818d72bf6f7a1d082f16c7b90a097b531
9,436
# -*-Shell-script-*- echo "Starting Kickstart Post" PATH=/sbin:/usr/sbin:/bin:/usr/bin export PATH # cleanup rpmdb to allow non-matching host and chroot RPM versions echo "Removing yumdb data" rm -f /var/lib/rpm/__db* echo "Creating shadow files" # because we aren't installing authconfig, we aren't setting up shadow ...
5c13540b612d7fd2a6250d3bc90e4c23ca8d0945
821
#!/bin/bash # troll script # @author Karol Górecki COUNT=0 # init troll script rm troll.sh touch troll.sh # init repo rm README.md echo "TROLL repo" >> README.md git add README.md # create commits while IFS='' read -r line do # inc COUNT COUNT=`expr $COUNT + 1` name=$line # get back to th...
bea62d327461f9e4e06f79291e28f22c2b839968
298
#!/usr/bin/env bash test=('/CONDA-ENVS/env0.yml' '/CONDA-ENVS/env1.yml' '/CONDA-ENVS/env2.yml' '/CONDA-ENVS/env3.yml' '/CONDA-ENVS/env4.yml') for yml in ${test[@]}; do if [ ! -f "$yml" ]; then echo "$yml does not exist. Make sure all files got downloaded correctly." return 0 fi done
49dbdf493a63e1447760f6cc6494457107ebbe0d
318
#!/bin/bash let njobs=$(bjobs -u all -w | grep -i "log/agconrul6_sas" | wc -l ) if [ $njobs -gt 0 ]; then for jobid in $(bjobs -u all -w | grep -i "matlab" | cut -d " " -f 1 ) do echo bkill $jobid done fi exit echo njobs= $njobs if [ "$njobs" == "" ]; then echo njobs is missing fi
e9d62dea14a8dcdbfebcb617586f12b3084137eb
144
JWT_SECRET= DB_HOST=localhost DB_PORT=27017 DB_NAME=habittracker SERVER_PORT=8000 # only if db has username and password DB_USER= DB_PASSWORD=
e2b994584de8c9f5a6e8eb6241fd953e6c163189
170
# Pantheon Project UUID. UUID=9c57991e-d34c-46f8-9ced-99a0c9fe9959 SITE_CODE=default # If false, pantheon will deploy to dev. If true it will get the Live tag. LIVE=true
96bf7bc382298de5bf1bd3fe1d717ba68a1c179a
110
POSTGRES_HOST=database POSTGRES_DB=books POSTGRES_USER=postgres POSTGRES_PORT=5432 POSTGRES_PASSWORD=postgres
1ecb0dd5bafb9d33edc30e4fc76bec954bd50a16
1,684
#!/usr/bin/bash set -Eeuo pipefail declare -r GAME_ROOT=/opt/factorio if ! [[ "${DIST_TAG-}" ]]; then declare -xr DIST_TAG="stable" fi declare -r GAME_INST="$GAME_ROOT/$DIST_TAG" declare -r SAVE_FILE="/data/map.zip" declare -r GAME_BIN="$GAME_INST/bin/x64/factorio" if ! [[ -e $SAVE_FILE ]]; then echo "map file ($S...
0771ce806236f2534432c2739cf413885bed557d
5,008
#!/bin/bash # # assumes that openstack credentails are set in this file source ~/openrc source .network >& /dev/null function sleep_count () { # pass in a time (usually in seconds) and a message ( in "") echo -n $2 count=1 while [ $count -le $1 ] do echo -n '. ' sleep 1 (( count ++ )) done } # se...