blob_id
stringlengths
40
40
language
stringclasses
1 value
repo_name
stringlengths
4
115
path
stringlengths
2
970
src_encoding
stringclasses
28 values
length_bytes
int64
31
5.38M
score
float64
2.52
5.28
int_score
int64
3
5
detected_licenses
listlengths
0
161
license_type
stringclasses
2 values
text
stringlengths
31
5.39M
download_success
bool
1 class
aa97f0f9584fb5f23b23f7faed9bd85ea68e0d30
Shell
bpei1989/MyCookbook
/Shell/6. 杂项.sh
UTF-8
7,036
3.234375
3
[]
no_license
1. tar tar -cf out.tar file1 file2... 文件名必须紧跟在f后面,即-cf不是-fc tar -rvf o.tar new_file # r已生成的tar中加文件,v或vv是现实详细信息 tar -xf a.tar #把归档内容提取到当前目录,-x是提取 tar -xvf file.tar file1 file3 #只提取file1 file3 tar -Af t1.tar t2.tar #把t2合并到t1中 tar -f a.tar --delete file1 file3 #把file1 file3从a中删除 tar -cf t.tar --exclude "*.txt" #不打包txt文...
true
27532ef030afea566185a5c1dcad0104a91dce68
Shell
BertrandKevin/Save-IMU-s-Data-Reach-RTK
/imu-bash
UTF-8
1,241
3.84375
4
[ "MIT" ]
permissive
#!/bin/sh # le nom du service SERVICE_NAME= ./reach # le répertoire où se trouvent les exécutables du service SERVICE_DIRECTORY= /home/root/Save-IMU-s-Data-Reach-RTK-master/./reach # le nom du script de démarrage du service SERVICE_STARTUP_SCRIPT=startup.sh # le nom du script d'arrêt du service SERVICE_SHUTDOWN_SCRIP...
true
2714512fe15f673a5e715baa12e88223783eca32
Shell
claudusd/docker-utils
/elasticsearch.sh
UTF-8
1,213
3.640625
4
[]
no_license
#/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" function run() { docker run -d -p 9200:9200 -p 9300:9300 --name="default_elasticsearch" -v "$DIR/config/elasticsearch":/usr/share/elasticsearch/config elasticsearch:2.1 2> /dev/null if [ $? -eq 1 ]; then restartContainer; fi } fun...
true
7912f0859da459515daf92253d6e4a06928fba2f
Shell
markom84/routerscripts
/mikrotik/export
UTF-8
1,394
3.390625
3
[]
no_license
#!/bin/bash read -p "Unesite korisnicko ime: " korisnik read -sp "Unesite lozinku: " lozinka SAD=$(date +%F) mkdir ~/backups/mikrotik/$SAD.exports COUNTER=0 POCETAK=$(date +%H:%M:%S) for i in $(cat ~/mikrotik-backup-script/tiks.txt); do COUNTER=$((COUNTER + 1)) echo -e $COUNTER"." "Export MikroTik-a \033[1m$i\033[0m"...
true
d082c0d519715bbac1050bf3a8584b4a4bda9da2
Shell
marc-hanheide/blackboard_tools
/extract-submission.sh
UTF-8
1,814
4.03125
4
[]
no_license
#!/bin/bash if [ -z "$1" ]; then echo "usage: $0 <zipfile>" fi function get_field() { grep "^$1:" "$f" | head -n1 | sed 's/^'"$1"': \(.*\)$'"/\1/" |tr -d "\r" } zipfile="$1" tempdir="/tmp/extract-submission-$$-$USER" ex1dir=$tempdir/ex1dir prefix="submissions" mkdir -p "$prefix" logfile="$prefix/extract.log" d...
true
030654775fd50ea4a2f18b3edec2801d08fe3196
Shell
bsaunder/docker-containers
/fuse_6.0.0/build.sh
UTF-8
377
3.46875
3
[]
no_license
#!/bin/sh if [ ! -e installs/jboss-fuse-full-6.0.0.redhat-024.zip ] then echo "You should get the required A-MQ binary before trying to build this image." exit 255 fi # Create containers echo "Creating Fuse 6.0.0 Container ..." docker build -q --rm -t bsaunder/fuse_6.0.0 . if [ $? -eq 0 ]; then echo "Conta...
true
aeeb8986139abfe0a9a239803234dd4b394504cc
Shell
andral/mondo-web
/lib/cronjob-rpm/mondo-cron.sh
UTF-8
1,577
3.5
4
[ "Apache-2.0" ]
permissive
#!/bin/bash export PATH=/sbin:/bin:/usr/sbin:/usr/bin # let's make sure we're not a vm if [ "`virt-what`" = "vmware" ]; then exit 0; fi CONFIG_FILE=/opt/fzag/etc/mondo-cron.conf if [[ -f $CONFIG_FILE ]]; then . $CONFIG_FILE else echo "config file $CONFIG_FILE not found! aborting.." exit 1; ...
true
a3ddef5186a09244e1ef4d1b77d0756a42018a24
Shell
zhuansun/some_scripts
/shell/auto_hexo/auto_dev.sh
UTF-8
2,862
4.28125
4
[]
no_license
#!/bin/bash # 自动发布博客文章 # 用户输入错误信息 function error(){ cat <<- _EOF_ 命令不对,输入 -h 或者 --help 查看帮助 _EOF_ } # connect_hexo直接连接到hexo中,避免输入ssh了 function connect_hexo(){ echo "#####################【正在打开连接】#####################" ssh blog@52youyong.xyz } # 帮助信息 function help(){ cat <<- _EOF_ -u upload 上传多个指定文件到hexo中 ...
true
6898452807293a1c9486500c4cbd06f91674a7fc
Shell
aviadshiber/236319-Programming-Languages
/HW4/compile_and_run
UTF-8
1,578
2.71875
3
[]
no_license
#!/bin/bash cat kings | ./readAndCreateAInPascal > A.pas fpc A.pas ./A rm A.o #rm A fpc B.pas ./B > output echo "after reading from A" >>output rm B.o cat readAndCreateAInPascal | sed -re 's/name/othername/g' | sed -re 's/startYear/otherStartYear/g' | sed -re 's/endYear/otherEndYear/g' > readAndCreateCInPascal chmod 7...
true
379665a1a5e37c1807acd4276da5cd74a3cd2283
Shell
bakercp/ofxTwitter
/scripts/ci/install.sh
UTF-8
1,160
3.953125
4
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
#!/usr/bin/env bash set -e OF_ROOT=$( cd "$(dirname "$0")/../../../.." ; pwd -P ) # Default addon github info. GH_USERNAME='bakercp' GH_BRANCH='master' GH_DEPTH=1 # An array of required addons that will be gathered below. REQUIRED_ADDONS=() # Extract ADDON_DEPENDENCIES from addon_config.mk file. if [ -f ${OF_ROOT}/...
true
274ab6b2235cba0587e5f35c96eda19c420e7440
Shell
gaspar44/Operativos
/Practica1/rec_restaurantes.sh
UTF-8
659
3.5
4
[]
no_license
#!/bin/bash configurationFile=$1 source ./defaultParameters.sh $configurationFile while [[ true ]]; do echo "1. Recomendación rápida de restaurante" echo "2. Recomendación detallada de restaurante" echo "3. Consultar parámetros de recomendación" echo "4. Ajustar parámetros recomendación" echo "5. Salir" echo "--...
true
328ef559e475ef4f759c76e442df00605d98076b
Shell
trondn/labrea
/labrea
UTF-8
692
3.484375
3
[]
no_license
#!/bin/sh owd=`pwd` cd `dirname $0` labreaso=`pwd -P`/labrea.so cd $owd case `uname -s` in Darwin) DYLD_FORCE_FLAT_NAMESPACE=YES DYLD_INSERT_LIBRARIES=$labreaso export DYLD_FORCE_FLAT_NAMESPACE export DYLD_INSERT_LIBRARIES ;; Linux) LD_PRELOAD=$labreaso ...
true
7812da5ff7386bb20967dda728fdcff4d01d95e2
Shell
corykey/vagrants
/configs/installs/debian/install_mysql.sh
UTF-8
398
3.125
3
[]
no_license
#!/bin/sh # Cory Kehoe # dev@corykey.com # 2016 echo "installing: MySQL SERVER + PhpMyAdmin" apt-get update apt-get install -y --force-yes mysql-server if apt-get -qq install mysql-server; then apt-get install -y --force-yes phpmyadmin ln -s /usr/share/phpmyadmin /usr/share/nginx/www php5enmod mcrypt ...
true
cf9ab5af14ff963b991d3317aed209d190ccfaf7
Shell
tdq45gj/mcg-portal
/standUpDB.bash
UTF-8
602
3.71875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash exitCode=1 iterations=0 # wait until we can successfully accept connections until [ $exitCode -eq 0 ] || [ $iterations -eq 20 ]; do sleep 3 echo "Waiting for DB to come online, attempt $((iterations + 1)) of 20" # Just attempt to do a dummy `SELECT 1;` to see if it succeeds docker exec -it pg-doc...
true
79218f4108f1f52639a7cd7b37408a3e2afffdac
Shell
czdsdo/chaintest-docker-script
/chaintest-yuelian/fabric/fabric_init.sh
UTF-8
1,208
2.671875
3
[]
no_license
#!/bin/sh # author:wang yi PEER_INDEX=$(cat /chain/PEER_INDEX) function initFabric(){ case $PEER_INDEX in 3) { curl 127.0.0.1:8080/api/users sleep 3s curl 127.0.0.1:8080/api/createChannel sleep 3s curl 127.0.0.1:8080/api/joinchannel ...
true
908ec01d37bbff7cb42ce1eddb7ba981ff95e129
Shell
htchepannou/kribi
/installer/javaapp/install.sh
UTF-8
1,747
3.453125
3
[]
no_license
#!/bin/sh # # Usage: ./install.sh # source ./service-profile yum -y remove java* yum -y install java-1.8.0-openjdk #------------------------------ # Download #------------------------------ echo "DOWNLOADING..." aws s3 cp s3://io.tchepannou.kribi/repository/$SERVICE_NAME/$SERVICE_VERSION/$SERVICE_NAME.jar . #-----...
true
8917e8d65d14f8b79f8f9d7e9157b86e3d14e756
Shell
yosugi/dotfiles
/.zshrc
UTF-8
4,015
3.265625
3
[]
no_license
PROMPT='[%n@%c]$ ' #LANG=C EDITOR=vim setopt autopushd alias gd='dirs -v; echo -n "select number: "; read newdir; cd -"$newdir"' alias V="bindkey -v" alias E="bindkey -e" alias la="ls -a" alias ll="ls -al" alias view='vim -R' # global alias alias -g @g="| grep" alias -g @l="| less" alias -g @x="| xargs" alias -g @v=...
true
0166a352cc0f1ca7d6166538c024dacb4c15ad97
Shell
dashu42332/Alcaltel-Pixi4-7-wifi-8063
/device/mediatek/build/build/tools/addMsgtoScater.sh
UTF-8
1,033
2.890625
3
[]
no_license
#!/bin/bash project=$1 scater=$2 buildprop="out/target/product/${project}/system/build.prop" scaterTxt="out/target/product/${project}/${scater}" if [ ! -f $buildprop ]; then echo "$buildprop not exist" exit 1 fi if [ ! -f $scaterTxt ]; then echo "$scaterTxt not exist" exit 1 fi buildnumber=$(awk -F= '/ro.b...
true
1605f0b58dccf6528ce7c13f2e1b7c400fce3c9b
Shell
Dnld/devtools
/old/bash_profile
UTF-8
5,326
2.90625
3
[]
no_license
################################################################################ # djs bash profile # updated February 28, 2016 # https://github.com/Dnld/devtools/ ################################################################################ # set paths export PATH=/usr/local/bin:/usr/local/sbin:/usr/local/msql/b...
true
2fc517239a709ceca62cc384a78ae497754671c9
Shell
AkihiroSuda/runrootless
/proot/PRoot/tests/test-11111111.sh
UTF-8
1,465
3.71875
4
[ "GPL-2.0-only", "Apache-2.0" ]
permissive
#!/bin/bash if [ -z `which cat` ] || [ -z `which readlink` ] || [ -z `which mcookie` ] || [ -z `which touch` ] || [ -z `which mkdir` ] || [ -z `which ln` ] || [ -z `which grep` ] || [ -z `which rm` ]; then exit 125; fi set +e x1="r1 d1 rl1 dl1" # root of the test tree. x2="r2 d2 rl2 dl2" # subtree of d1/dl1, eve...
true
715cc43c1ac2c1bf6f16ba5b9d6a62c6216094a7
Shell
MoldovanAlexandruVasile/Linux_OS
/44b.sh
UTF-8
1,702
4.40625
4
[]
no_license
#!/bin/sh #44b) Write a shell script that continously reads user names from keyboard #and for each of them outputs its full name, the number of processes #and the curent running command. #Until the name is not "exit" the program will run while true; do #We read the name read name #Check if the name is e...
true
e62673c8fbfa3306588968297ffc682dde864d41
Shell
RobotsAndPencils/poc-box-callcenter-skill
/BoxTranscriptionLamda/script/deploy.sh
UTF-8
1,698
3.640625
4
[]
no_license
existingFunction= updateConfig= if [ "$1" == "update" ]; then updateConfig=true elif [ "$1" == "" ]; then existingFunction=true fi # utility function abs_path { echo $(cd $1;pwd) } funcName=BoxTranscriptionTest zipName=BoxTranscriptionLambda.zip zipPath=../bin region="us-east-1" sourcePath=../bin/Debug/netco...
true
bad3eb232a6abb57975177fc84724869b8d72d13
Shell
Jazznight/elasticsearch_toolkit
/dump_elasticsearch.sh
UTF-8
947
3.71875
4
[]
no_license
#!/bin/sh if [ -z $1 ]; then echo "" echo " Usage:" echo " `basename $0` \$INDEX_NAME" echo "" echo "" echo "" exit fi MY_DIR=`pwd` TAR_FILE=dump_elasticsearch_`date +'%Y%m%d%H%M%S'`.tar cd /tmp rm -rf tmp_elasticsearch_snapshot > /dev/null 2>&1 curl -XPUT 'http://localhost:920...
true
17ccf665e55734253694d12ee83500d4ee396d91
Shell
martamoragues/BigData
/Launch/Sort_launch_E4_MeDebesUnaCena.sh
UTF-8
3,715
3.1875
3
[]
no_license
# Cambiamos el nombre del job #$ -N testhadoop # Indicamos el shell a usar: #$ -S /bin/bash # Indicamos las versiones a usar de hadoop (imprescindible): #$ -v JAVA_HOME=/usr,HADOOP_HOME=/Soft/hadoop/0.20.203.0,HADOOP_CONF=/scratch/nas/2/martam/conf # Indicamos que nos envie un correo cuando empieze el trabajo y cuando...
true
a3a92e354baf4c556729b24b4e6e3a582aef3c47
Shell
ken-smj/dotfiles
/.emacs.d/elisp/twittering-mode/update-cert.sh
UTF-8
1,026
3.359375
3
[]
no_license
#!/bin/sh START_DELIMITER=";; #BEGIN-CERTIFICATE" END_DELIMITER=";; #END-CERTIFICATE" BUNDLE_FILE=`mktemp` EMBEDDED_CERTS=`mktemp` curl https://curl.haxx.se/ca/cacert.pem > ${BUNDLE_FILE} (grep --before-context=1 '^=' ${BUNDLE_FILE} | sed -ne '/^[^-=]/p' \ | egrep -i '(verisign|geotrust global ca$|DigiCert High Assu...
true
9e88718a30d1e740fe87373403fda49bcb603fdb
Shell
cliffchristianson/dev-docker
/.docker/backend/init
UTF-8
1,483
3.515625
4
[]
no_license
#!/bin/bash # Install Composer dependencies composer install -d "/var/www/backend" echo "Initialize Script in Container" echo "Project Name = "${COMPOSE_PROJECT_NAME} echo "Front End Domain = "${FRONT_END_DOMAIN} echo "Back End Domain = "${BACK_END_DOMAIN} echo "Database Name = "$DATABASE_NAME echo "Database User = "...
true
5f78f35e25084989772102b7c59d677fbd84aa51
Shell
JonasRSV/polinfo
/build
UTF-8
1,860
4.03125
4
[]
no_license
#!/bin/bash set -e fg_black="$(tput setaf 0)" fg_red="$(tput setaf 1)" fg_green="$(tput setaf 2)" fg_yellow="$(tput setaf 3)" fg_blue="$(tput setaf 4)" fg_magenta="$(tput setaf 5)" fg_cyan="$(tput setaf 6)" fg_white="$(tput setaf 7)" reset="$(tput sgr0)" if ! command -v cargo then echo "${fg_red}cargo not found...
true
8d3c3f051721b608156b3b9f3fb544c7af9ced0a
Shell
cjhillbrand/websocket-sandbox
/resources/FastFixSimpleLab.sh
UTF-8
4,683
3.890625
4
[]
no_license
#!/bin/bash # This script assumes that the IAM Role for API Gateway has already been made function removeQuotes() { retval=$1 retval=${retval#\"} retval=${retval%\"} echo "$retval" } function createWebSocket() { envName=$1 region=$2 accountId=$3 # If this API Role does not exist than ...
true
4494827e591c41fcd7de664a21eb86abb51b8a06
Shell
Aparicio99/scripts
/clipcp
UTF-8
590
3.71875
4
[]
no_license
#!/bin/sh # Helps "transfering" a file between shells by X selection COLOR1="\033[1;31m" # RED COLOR2="\033[1;32m" # GREEN RESET="\033[0m" echo -e " > ${COLOR1}Command${RESET} copied to clipboard." \ "Middle-click on the destination and press ${COLOR1}Enter${RESET}." # This blocks until the selection is past...
true
cf8948a313d1e7beb464d4a6079dba5dfd944c97
Shell
mzym/thesis
/pargres/runinis.sh
UTF-8
358
3
3
[ "MIT" ]
permissive
#!/bin/bash set -e source ./config.sh nodelist=$(IFS=,; echo "${nodes[*]:0:n}") # join the node list on comma into a string echo "Starting message passing subsystem on $nodelist" nohup mpirun -H $nodelist "$prefix/bin/par_inis_daemon" < /dev/null &> ./inis.log & #mpirun -H $nodelist "$prefix/bin/par_inis_daemon" echo...
true
6f5607120bb4a8d17c27931676cd2d8bec6bdeb9
Shell
aalin/pinebook-config
/bin/set-brightness
UTF-8
356
3.71875
4
[]
no_license
#!/bin/bash curr=$(brightnessctl get) max=$(brightnessctl max) step=$(echo "$curr $max" | awk '{ printf "%d\n", (1 + (10 - 1) * sin($1 / $2 * 1.57079632)) }') case $1 in up) brightnessctl set +$step% ;; down) brightnessctl set $step%- ;; *) echo "Adjust brightness according to a ramp" echo ...
true
0f82c4c7d866777cf87ff431dcd269a1521785d9
Shell
snoplus/SNOPlusSlowControl
/cronjobs/ios/diskUsage.sh
UTF-8
828
3.71875
4
[]
no_license
#!/bin/sh # This script checks the current disk usage, # then writes it to diskUsage.txt. It then # checks that the usage is not above a # maximum value (like 70%), and if it is, # it sends an email. #TODO: Write this in a python script and add the ability to send an alarm to the # shifting GUI? HOMEDIR=/home/slowc...
true
553b1d9ffe3516c73c8af752630d07a8ccb7d868
Shell
jmdarr/scripts
/transmission/transmission_killswitch.sh
UTF-8
1,898
4.1875
4
[]
no_license
#!/bin/env bash wanted_country='Canada' svc='transmission-daemon' function check_for_running_transmission() { pscount=$(ps aux | grep -i transmission | grep -v grep | grep -v killswitch | wc -l) rval=1 if [ ${pscount} -gt 0 ]; then rval=0; fi return ${rval} } function start_transmission() { rval=-1 echo ...
true
8196d2a35b06e92a8c6455f710ddcdff523c4579
Shell
Rtshaw/CrawlerPractice
/ruten/script.sh
UTF-8
331
2.703125
3
[]
no_license
#!/bin/sh cd /home/ec2-user/CrawlerPractice/ruten yesterday=$(date -d '-1 day' '+%Y%m%d') today=$(date '+%Y%m%d') now=$(date '+%H%M') if [ -d "./$yesterday" ] then rm -r $(date -d '-1 day' '+%Y%m%d') fi if [ ! -d "./$today" ] then mkdir $(date '+%Y%m%d') fi source venv/bin/activate python fee.py > ./"$today"/...
true
3552616356543746463d84b111901548ec7640ff
Shell
CodeAsm/ghidra-xbe
/build.sh
UTF-8
2,161
3.40625
3
[]
no_license
#!/bin/bash -e pushd /tmp echo "[*] Downloading files..." cat <<EOF > urls.txt https://corretto.aws/downloads/latest/amazon-corretto-11-x64-linux-jdk.tar.gz https://services.gradle.org/distributions/gradle-5.0-bin.zip https://ghidra-sre.org/ghidra_9.1.2_PUBLIC_20200212.zip https://github.com/mborgerson/XbSymbolDatabas...
true
527f58696f5546c8d4609d8bcd39b9b33efeed29
Shell
jonaselan/setup-my-pc
/bin/helpers.sh
UTF-8
1,676
3.9375
4
[]
no_license
#!/bin/bash update_dotfiles() { # clone dotifles git clone https://github.com/jonaselan/dotfiles.git ~/.smpc # Setup folders mkdir ~/.config/terminator/ mkdir ~/.config/sxhkd/ mkdir ~/.config/fusuma/ # src:dest link_files=( "$HOME/.smpc/.zshrc:$HOME/.zshrc" "$HOME/.smpc/.vimrc:$HOME/.vimrc" "$HOME/.smp...
true
b0cd9973e76e050a9bd3db19942f565284c78673
Shell
toomanycats/Bash
/resample_book_cover.sh
UTF-8
165
2.546875
3
[]
no_license
#!/bin/bash NEW_XDIM=$1 NEW_YDIM=$2 infile=$3 outfile=$4 convert -antialias -resample ${NEW_XDIM}x${NEW_YDIM} -interpolate nearest -median 11 ${infile} ${outfile}
true
06809ff2322827400f71a9d95d0eb063b94a11e7
Shell
xg-wang/dotfiles
/setup.sh
UTF-8
932
2.765625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash mkdir $HOME/Code ## Mac # First setup system preferences: http://sourabhbajaj.com/mac-setup/SystemPreferences/ xcode-select --install # Homebrew /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" if [[ $(uname -m) == 'arm64' ]]; then echo 'eval "$(/...
true
b5f0fa3754bfb5ed48445fe70b0c74557d34cb63
Shell
tilljoel/dotfiles
/.zshrc
UTF-8
5,989
3.09375
3
[]
no_license
# Path to your oh-my-zsh configuration. ZSH=$HOME/.oh-my-zsh # Look in ~/.oh-my-zsh/themes/ # ZSH_THEME="robbyrussell" #ZSH_THEME="superjarin" ZSH_THEME="tilljoel" # Uncomment following line if you want to disable autosetting terminal title. # DISABLE_AUTO_TITLE="true" # Which plugins would you like to load? (plugin...
true
cb9948a44b040e5a5cf14ae705140fc85a6bd233
Shell
ReedOei/dt-fixing-tools
/scripts/gather-results.sh
UTF-8
702
4.0625
4
[]
no_license
#!/bin/bash if [[ $1 == "" ]] || [[ $2 == "" ]]; then echo "Usage: ./gather-results.sh <path> <output path>" exit fi path=$1 outputpath=$2 modulekey() { projroot=$1 moduledir=$2 # In case it is not a subdirectory, handle it so does not use the . relpath=$(realpath $(dirname ${moduledir}) --r...
true
c17ec51f9f1aeeac74c00ca1fb5a47df083f886d
Shell
plugnburn/Asgard
/airootfs/etc/skel/.config/dwb/userscripts/bb
UTF-8
320
2.734375
3
[]
no_license
#!/bin/bash #Asgard bytebeat player F=${DWB_ARGUMENT} [ -z "$F" ] && RES="Stopping all instances of wave player" || RES="Playing bytebeat expression $F" echo 'eval io.notify("'"$RES"'")' > ${DWB_FIFO} [ -z "$F" ] && killall aplay || echo "main(){unsigned int t=0;for(;;t++)putchar($F);}"|tcc -run -|aplay>/dev/null 2>&1
true
b0ac7646a6fc18c0429bf4eb76330c8173ad9677
Shell
ryewen/BacklightSet
/Backlight_Set.sh
UTF-8
530
3.4375
3
[]
no_license
#!/bin/bash index="/sys/class/backlight/intel_backlight" nowIndex=${index}/brightness maxIndex=${index}/max_brightness printf "Current Brightness is " cat $nowIndex echo "Input New Brightness" read newBrightness maxBrightness=`cat $maxIndex` minBrightness=1 if [ $newBrightness -gt $maxBrightness ] then newBright...
true
19229fcb7bd75d735dd96731759be72a44c13aca
Shell
toulousain79/MySB
/install/NextCloud
UTF-8
21,364
2.96875
3
[ "MIT" ]
permissive
#!/bin/bash # ---------------------------------- # shellcheck source=inc/includes_before source "$(dirname "$0")"/../inc/includes_before # ---------------------------------- # __/\\\\____________/\\\\___________________/\\\\\\\\\\\____/\\\\\\\\\\\\\___ # _\/\\\\\\________/\\\\\\_________________/\\\/////////\\\_\/\\...
true
6462456d0a4385af65c5bc722a29bf250ee19765
Shell
j0sephmerheb/bash
/to_be_cleaned/array-add-into.sh
UTF-8
179
2.515625
3
[]
no_license
# edit array arr=(bb cc ee ff) # add at the begining arr=("aa" "${arr[*]}") # add at the end arr[${#arr[*]}]=gg # add in the middle arr=("${arr[*]:0:3}" "dd" "${arr[*]:3:3}" )
true
8f4f68a94e5979097cfa87108a454c7b74737010
Shell
qixin5/debloating_study
/expt/debaug/benchmark/date-8.21/testscript/I2/9
UTF-8
153
2.796875
3
[ "MIT" ]
permissive
#!/bin/bash BIN=$1 OUTDIR=$2 TIMEOUT=$3 INDIR=$4 timeout -k 9 ${TIMEOUT}s $BIN -d @1234567890 &>$OUTDIR/o9 exit_val=$? echo ${exit_val} >>$OUTDIR/o9
true
6848df8412584b8d21658552fa719ae3b214fbc6
Shell
dimoreira/server-bootstrap
/src/bash.sh
UTF-8
543
3.90625
4
[]
no_license
#!/usr/bin/env bash # bash_color_prompt() { # # Remove the comment from force_color_prompt on .bashrc # function bash_color_prompt() { bashrc="$HOME/.bashrc" sed -i "s/#force_color_prompt=yes/force_color_prompt=yes/g" $bashrc source $bashrc } # bash_run() # # Function that runs Bash helpers # function bash_run() {...
true
f87c32d6be2e52da9540c2e69a7914bd5d865510
Shell
cceh/ntg
/scripts/cceh/backup_active_databases.sh
UTF-8
335
3.78125
4
[]
no_license
#!/bin/bash # # Backup all active Postgres databases on the VM. # # Usage: ./backup_active_databases.sh # . `dirname "$0"`/active_databases DATE=`date -I` for i in $ACTIVE_DATABASES do FILE="/backup/saved_databases/backup_db_${i}_${DATE}.gz" echo "Backing up database $i to $FILE ..." pg_dump "$i" | gzip ...
true
da60c857324dbc92cefa0a6d10a64fe6c017951d
Shell
filips123/Tokenizer
/bindings/python/tools/build_wheel.sh
UTF-8
1,366
3.15625
3
[ "MIT" ]
permissive
#! /bin/bash # Script to build Python wheels in the manylinux1 Docker environment. set -e set -x ROOT_DIR=$PWD SENTENCEPIECE_VERSION=${SENTENCEPIECE_VERSION:-0.1.8} PYBIND11_VERSION=${PYBIND11_VERSION:-2.4.3} ICU_VERSION=${ICU_VERSION:-64.2} PATH=/opt/python/cp37-cp37m/bin:$PATH # Install ICU. curl -L -O https://gi...
true
e4e470f93fbbb7d5c555bf6686f9009b341e3943
Shell
medined/accumulo_stackscript
/stop_accumulo.sh
UTF-8
629
2.671875
3
[]
no_license
# # shutdown accumulo # if [ -d $HOME/bin/accumulo ]; then $HOME/bin/accumulo/bin/stop-all.sh else su accumulo -c "/usr/local/accumulo/bin/stop-all.sh" fi # # shutdown zookeeer # if [ -d $HOME/software/zookeeper ]; then pushd $HOME/software/zookeeper; ./bin/zkServer.sh stop; popd else su zookeeper -c "pushd /...
true
42ff56146511a8b477594a6ffddf8d1ace5fb81c
Shell
skagedal/xcode-simulator-cert
/Tools/full-test.sh
UTF-8
2,009
3.953125
4
[ "MIT" ]
permissive
#!/bin/bash if ! hash jq 2>/dev/null; then echo "This script requires jq. Do brew install jq." fi DEVICE_TYPE=`xcrun simctl list devicetypes "iPhone 8" --json | jq '.devicetypes[0].identifier' --raw-output` RUNTIME=`xcrun simctl list runtimes "iOS" --json | jq '.runtimes[0].identifier' --raw-output` LOGO="🧪 " ...
true
de263de79b690dbe8d5f2fa00bbedbfb7e4d05f7
Shell
mzadel/gof
/gofci
UTF-8
2,078
3.90625
4
[]
no_license
#!/bin/bash # # gofci # # # basic steps to create the commit: # BLOBHASH=$(git hash-object -w "$FILENAME") # TREEHASH=$(echo -e "100644 blob $BLOBHASH\t$FILENAME" | git mktree) # COMMITHASH=$(echo commitmsg | git commit-tree $TREEHASH -p master) # git update-ref refs/heads/master $COMMITHASH # FILENAME="$1" if [...
true
b453af83a0ffbb9327496a6c7d9cfa9e7f51adf6
Shell
freebsd/freebsd-ports
/net/ntpd-rs/files/ntp_daemon.in
UTF-8
1,240
3.625
4
[ "BSD-2-Clause" ]
permissive
#!/bin/sh # PROVIDE: ntp_daemon # REQUIRE: DAEMON FILESYSTEMS devfs # BEFORE: LOGIN # KEYWORD: nojail resume shutdown # . /etc/rc.subr name=ntp_daemon rcvar=ntp_daemon_enable load_rc_config $name ntp_daemon_enable=${ntp_daemon_enable-"NO"} ntp_daemon_config=${ntp_daemon_config-"%%ETCDIR%%/ntp.toml"} ntp_daemon_soc...
true
90e905e70f4fe9747df565e8c96cfc5021fb1e8b
Shell
lululeta2014/mihaib
/lethe/linux-setup/programs/postgresql/setup.sh
UTF-8
975
3.671875
4
[]
no_license
#! /usr/bin/env bash set -u # exit if using uninitialised variable set -e # exit if some command in this script fails trap "echo $0 failed because a command in the script failed" ERR SCRIPT=`readlink -f "$0"` SCRIPT_DIR=`dirname "$SCRIPT"` source "$SCRIPT_DIR/../../sourceme.bash" echo '--- PostgreSQL' echo -n "Comp...
true
5e5a8964d0e04da521d62136fcb3cc5a37ae084f
Shell
petronny/aur3-mirror
/keepassx-autoopen/PKGBUILD
UTF-8
907
3.125
3
[]
no_license
# Maintainer: Etienne Perot <etienne[at]perot[dot]me> pkgname=keepassx-autoopen pkgver=20120430 pkgrel=2 pkgdesc="KeePassX with additional command-line switches to automatically open .kdb files." url="http://www.keepassx.org/" arch=('x86_64' 'i686') license=('GPL') depends=('qt4') makedepends=('git' 'intltool' 'cmake')...
true
c877aa0586a5e9d8774d0c005b4e90b1879c1f15
Shell
kr/doozer
/bin/light
UTF-8
192
2.671875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/sh set -e exec 2>&1 n=$1 test $# -eq 0 && n=1 p=`expr 8040 + $n` w=`expr 8080 + $n` test $n -ne 1 && args="-a 127.0.0.1:8041" exec doozerd -l 127.0.0.1:$p -w :$w -timeout 5 $args
true
83151b1d577d56ccb63de766f27c349e05b9c8ad
Shell
ZzeErrO/Shell-Programming
/Sequence-Statement/RandomforDice.sh
UTF-8
66
2.5625
3
[]
no_license
#!/bin/bash -x singleDigit=$(( RANDOM%6 + 1 )) echo $singleDigit
true
1ed179d9b9938931f7eaa7584fb1445bb0e0ada0
Shell
vadivelmurugank/source
/scripts/sys/system.sh
UTF-8
16,933
2.953125
3
[]
no_license
# Collect System info # # # - processes and pmap # # - kernel version # - kernel bootline # - device nodes # # - kernel modules # - kernel config # # - pci list # - network interfaces # # - loader and libs # # - hardware info # - disk # - ram # ##### ## Perf ######## pstree -Aa -st -l...
true
23c9405dd94c0bc4dc9f5e7605ac1e4ebf24f1a3
Shell
hofmannedv/training-shell
/io/block.sh
UTF-8
481
3.40625
3
[]
no_license
#!/bin/bash # ----------------------------------------------------------- # input data for a code block # # (C) 2017 Frank Hofmann, Berlin, Germany # Released under GNU Public License (GPL) # email frank.hofmann@efho.de # ----------------------------------------------------------- # define data file dataFile=/etc/fst...
true
7251b2ff92a85391c9f9489410594268bf219f11
Shell
torgaja/openclopenbenchmark
/utils/splitter
UTF-8
4,604
3.40625
3
[]
no_license
#!/bin/bash if [ -e $1 ]; then true; else echo "Cannot open file: $1"; exit 1; fi tmpfile="splitter_$$.tmp" cat $1 > $tmpfile if grep "//Gold" $tmpfile > /dev/null; then num=`grep -m 1 -b "//Gold" $tmpfile | cut -d ':' -f 1` else echo "Error: cannot find \"//Gold\" marker inside input file" ...
true
333dadb9a55e66a4f9e994e717eb034c58ab9d64
Shell
Hasinur2020/CodingClub
/day8/checkDictionary.sh
UTF-8
973
3.890625
4
[]
no_license
#!/bin/bash -x declare -A face_value read -p "Enter how many times you want to roll a dice: " rollDiceTimes isRoll=0; #roll=$(( RANDOM%6+1 )) FACE_ONE=1 FACE_TWO=2 FACE_THREE=3 FACE_FOUR=4 FAE_FIVE=5 FACE_SIX=6 while [[ isRoll -lt rollDiceTimes ]] do roll=$(( RANDOM%6+1 )) case $roll in $FACE_ONE) face="One" ...
true
bad20f7a2e075638c556c9f5515bd75bb4648dfb
Shell
mlaky88/BinaryReal
/bin-real-mergeConvergePlots.sh
UTF-8
1,450
3.203125
3
[]
no_license
if [ $# -lt 2 ]; then echo "EXAMPLE: ./bin-real-mergeConvergePlots.sh [dataset] [type]" exit 1 fi dataset=$1 type=$2 #tu lahko delam samo za 1 cls, ker na obj nima vpliva izbira klasifickatorja cls="knn" path="drawData" touch drawobj.dat drawfeats.dat #converge-feats-abc-bin-adult-svm-processed.dat for codi...
true
b08891701ca365ebaa290dc8bfd03854f3dafe4d
Shell
paryl-light/puppykit
/system/update.sh
UTF-8
828
2.921875
3
[ "CC-BY-NC-SA-4.0", "CC-BY-SA-4.0", "Apache-2.0" ]
permissive
#!/usr/bin/env bash # Make sure we're on master, with the latest changes, and all local changes have been discarded. git reset --hard HEAD git checkout master git pull # Sync our nginx config cp system/puppykit.org.uk /etc/nginx/sites-available/puppykit.org.uk test -f /etc/nginx/sites-enabled/puppykit.org.uk || ln -s...
true
30392b74fee58cdd8b1ce01a2a8bdcbda668ef54
Shell
cybertec-postgresql/layman
/entrypoint.sh
UTF-8
658
3.625
4
[ "MIT" ]
permissive
#!/usr/bin/env bash set -e YELLOW="\033[0;33m" COLOR_OFF="\033[0m" PATH_TO_BASE="/layman/" BASE_DIRECTORY="lower/" function warning { echo -e "${YELLOW}${1}${COLOR_OFF}" } cd "${PATH_TO_BASE}" mkdir -p lower upper work merged cd "${BASE_DIRECTORY}" lowerdir="" while read line; do if [[ "${line}" =~ ^[0-9]*$ ]]...
true
a1e57a9708b0d5f4088a81d8a8e3953e749cd168
Shell
easement/dotfiles
/bin/git-done
UTF-8
439
3.03125
3
[ "MIT" ]
permissive
#!/usr/bin/env zsh set -e successfully() { $* || (echo "failed" 1>&2 && exit 1) } branch=`git current` successfully git fetch successfully git rebase -i origin/master git diff master --check || successfully git diff master --check successfully git push -f successfully git checkout master successfully git merge $b...
true
9b3bcf7358dcb987540354c4e710cc16c02dedac
Shell
ColquhounAudio/AxiomBuild
/step_1_multistrap.sh
UTF-8
290
2.546875
3
[]
no_license
#!/bin/sh BUILD="arm" ARCH="armhf" CONF="multistrap-axiomair-pi3.conf" if [ -f ./Volumio.sqsh ]; then mv ./Volumio.sqsh ./Volumio.sqsh.old fi mkdir -p "build/$BUILD" mkdir -p "build/$BUILD/root" multistrap -a "$ARCH" -f "$CONF" cp /usr/bin/qemu-arm-static "build/$BUILD/root/usr/bin/"
true
7dec974bd598c6c856b96c93a7cfa4f62ae5e519
Shell
munkm/thesiscode
/submission_scripts/runhybrid.pbs
UTF-8
719
2.953125
3
[ "CC-BY-4.0" ]
permissive
#!/bin/sh # Problem: maze2 # PID: 2017-2-14 # #PBS -N cad_demo #PBS -o cadis.pbs.out #PBS -j oe #PBS -M munkm@ornl.gov #PBS -l walltime=4:00:00 #PBS -l nodes=1:ppn=16 LAUNCHER=/opt/openmpi-1.6.5-gcc/bin/mpiexec LAUNCHER_ARGS="" ADVANTG=/home/m15/install/advantg/bin/advantg INPUTS=( maze1 maze2 maze1_up maze2_up prob_1 ...
true
9895e81ae8cbcd51c2c77b5096c5680c63ecf97a
Shell
durantschoon/dot_files
/.aliases
UTF-8
7,713
3.34375
3
[]
no_license
# -*- mode: sh; -*- # NOTES: # # Idea to check a file by Paul Merrill (July 10, 2015) # # if on home computer, # echo See ~/.aliases for the use of this file >> ~/.HOME # # if on work computer, # echo See ~/.aliases for the use of this file >> ~/.WORK ##############################################################...
true
3173af81bf8c8eaa1636397b4c950b400c61eac9
Shell
bofhbug/pxe-server
/start.sh
UTF-8
830
2.578125
3
[]
no_license
#!/bin/bash set -e if [ $? -ne 0 ]; then echo "ERROR: Unable to build container" exit 1 fi sudo service nfs-kernel-server stop sudo service rpcbind stop docker run --rm --name pxeserver --privileged \ -p 111:111/tcp -p 2049:2049/tcp -p 8000:8000/tcp \ -p 627:627/tcp -p 627:627/udp -p 875:875/tcp -p 875:...
true
c4c568d508f3c1e8c99e6e37694ee917a79859f0
Shell
AshishGL/jms
/wmq-installer/functions.sh
UTF-8
4,363
3.828125
4
[]
no_license
#!/bin/bash # Shell functions for unix. This file is intended to be sourced by other scripts. # Courtesy of the IBM Hursley Lab. ECHON=${ECHON-echo} me=$(basename $0) ############################################################################## # regexify ############################################################...
true
f31ad960ffae6e3d1d24d5431770b08b311ea1f2
Shell
didactic-drunk/sodium.cr
/build/pkg-libs.sh
UTF-8
270
2.890625
3
[ "MIT" ]
permissive
#!/bin/bash set -e # Shard directory passed as first argument when called from lib_sodium.cr [ ! -z "$1" ] && cd "$1" ./build/libsodium_install.sh > libsodium_install.out 2>&1 || (cat libsodium_install.out >&2 ; exit 2) . ./build/env.sh pkg-config libsodium --libs
true
bf0394dd38a77c3671d0fbac59deca6edaa2bede
Shell
ninoc/JWSTUserTraining2016
/install_pandeia
UTF-8
843
3.765625
4
[]
no_license
#!/bin/bash # specify path to USB drive or directory comtaining its contents data_path=$1 data_path=${data_path##* } if [[ -z "${data_path// }" ]]; then echo "No path specified." else tarball="$data_path/pandeia.tgz" cdbs="$data_path/cdbs.tgz" if [ -f $tarball ] && [ -f $cdbs ]; then echo "U...
true
91c765a341a32416b51acf9b298ce4cd735c6426
Shell
Arau/arau.github.io
/build/remove-aliases.sh
UTF-8
1,438
4.40625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # Check input argument supplied if [ -z "$1" ]; then echo "Remove aliases from metadata section of files in previous docs release" echo "Usage: $(basename $0) release-dir" echo "Example:" echo -e "\t $(basename $0) v2.4" exit 1 fi bin_dir="$(dirname "$0")" previous_release="$bin_dir/../content/$...
true
ea68aa71feaa4c651d063513d682377480ea9fde
Shell
boywert/SussexBigRun2013
/L-Galaxies_Hen12/batch_apollo_nore.pbs
UTF-8
2,100
3.515625
4
[]
no_license
#!/bin/bash # Tell SGE that we are using the bash shell #$ -S /bin/bash # Example file to create a task-farm of identical jobs on Apollo # Do not lmit the stacksize (the maximum memory a job can use) #ulimit -s unlimited # Do not limit the number of open files a job can have #ulimit -n unlimited # Run the job from t...
true
03f31cf35b32a2386482e036e483d1e8984ab48a
Shell
DesaiLab/Ameriflux
/metobs_scripts/lcclean.bash
UTF-8
222
3.1875
3
[]
no_license
#!/usr/bin/env bash DATE=201406 echo $DATE WORKINGDIR=/mnt/data/ingest/LostCreek echo $WORKINGDIR cd $WORKINGDIR pwd for fn in $(tar -tvf LostCreek_${DATE}*.gz | awk '{print $6}'); do echo "removing $fn" rm -f $fn done
true
7b261f945eade1b5b8d79059fca5528b2d197202
Shell
as3mbus/dotfiles
/scripts/battery.sh
UTF-8
172
2.875
3
[]
no_license
#!/bin/bash Battery() { local capacity=$(\ cat /sys/class/power_supply/BAT0/capacity|\ awk '{printf "%3.0f %", $1}') echo -en "$capacity" } Battery
true
1d7b7720156f312e7014f48ba7e526f30a26b53d
Shell
jairrf/525-infraagil
/devops/lib/dpkg/info/cloud-init.prerm
UTF-8
727
2.84375
3
[]
no_license
#!/bin/sh set -e rm -f /etc/cron.d/cloudinit-updates # Automatically added by dh_systemd_start if [ -d /run/systemd/system ] && [ "$1" = remove ]; then deb-systemd-invoke stop cloud-config.service cloud-config.target cloud-final.service cloud-init-local.service cloud-init.service cloud-init.target >/dev/null fi # En...
true
87bc83eccd186df27b9d6936f5652474de2fad0f
Shell
alphacomm/alpharpc
/bin/start-handlers
UTF-8
1,186
3.53125
4
[ "BSD-3-Clause" ]
permissive
#!/bin/sh setupScreen() { TRUE=`which true` SCREEN_NAME=${SCREEN_NAME:-alpharpc} screen -d -m -S $SCREEN_NAME -t shell -s /bin/bash sleep 1 if [ -z "$SCREEN_HARDSTATUS" ]; then SCREEN_HARDSTATUS='%{= .} %-Lw%{= .}%> %n%f %t*%{= .}%+Lw%< %-=%{g}(%{d}%H/%l%{g})' fi screen -r $SCREEN...
true
072ae440186ad8b5e256d9fff3b619f87e166b09
Shell
learning-chip/SpLLT
/scripts/create_cases_files.sh
UTF-8
3,203
4.1875
4
[ "BSD-3-Clause" ]
permissive
#!/bin/bash NCASE=10 preprocess=0 generate=0 err=0 OUTPUTPATH="../src/include" OMPDECLPATH="../src/include" file_suffixe='' #print in bold text function bold(){ echo -e "\033[1m$1\033[0m" } function print_chelp(){ echo -e "\t\t\t\tGeneral Commands Manual\t\t\t\t" bold "NAME" echo -e "\t$0 - Creates Fort...
true
dcb76732b45eadbd7d37a29d719c1445f89127e6
Shell
benhager/di
/di-handbrake-nightly.sh
UTF-8
2,216
3.5625
4
[]
no_license
#!/bin/zsh # Purpose: download and install HandBrake nightly # # From: Tj Luo.ma # Mail: luomat at gmail dot com # Web: http://RhymesWithDiploma.com # Date: 2014-08-18 ## HandBrake has a Sparkle feed, but it seems vastly out of date # XML_FEED='https://handbrake.fr/appcast_unstable.x86_64.xml' NAME="$0:t:r" die (...
true
cb925d2fd58b9385b6a45fba2a4e6760e61d3f11
Shell
krnvi/shell-scripts
/wpp1.sh
UTF-8
6,446
3.203125
3
[]
no_license
#!/bin/ksh # set -x # August 2005: Hui-Ya Chuang, NCEP: This script uses # NCEP's WRF-POSTPROC to post processes WRF native model # output, and uses copygb to horizontally interpolate posted # output from native A-E to a regular projection grid. # # July 2006: Meral Demirtas, NCAR/DTC: Added new "copygb" # option...
true
accf893a1be13a4b4ff115b95a569e24c1980067
Shell
iajzenszmi/CodeCode
/766.sh
UTF-8
139,546
3.125
3
[ "MIT" ]
permissive
#! /bin/sh # This is a shell archive, meaning: # 1. Remove everything above the #! /bin/sh line. # 2. Save the resulting text in a file. # 3. Execute the file with /bin/sh (not csh) to create the files: # Doc # Drivers # Src # This archive created: Sat Apr 19 22:33:37 1997 export PATH; PATH=/bin:$PATH if test ! -d 'Doc...
true
0a7418f8edfdc1df6f68586a72d3ed9c6ed2a804
Shell
mahendranjayavel/deploy-to-k8s
/build.sh
UTF-8
1,086
3.21875
3
[]
no_license
#!/usr/bin/env bash export CLI_VERSION="10.0.0" TAG="$(git rev-parse --short HEAD)" #export VERSION="3.1.1" if [ -z "${TAG}" ] then echo "VERSION not set" exit -1 fi echo "Version = ${TAG}" IMAGE="${REPO}:${TAG}" echo "docker build -t ${IMAGE} -f Dockerfile ." docker build -t ${IMAGE} -f Dockerfile . docker login...
true
1f3707930e4faeb62621f3b4371363c237a23e08
Shell
mgonblan/kubernetes-cluster
/init-master.sh
UTF-8
2,838
2.75
3
[]
no_license
# !/bin/bash # This script implements a kubernetes cluster using rancher # First of all Install Docker as README.md # Run as root apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y apt-get install apt-transport-https \ ca-certificates \ curl \ gnupg-agent \ software-properties-common -y (cu...
true
b0952d4f74220b780b802276b52986358a445410
Shell
epatpol/wc3_toggle_shortcuts
/toggleCustomKeys.sh
UTF-8
231
3.046875
3
[]
no_license
#!/bin/bash validHotkeys=./CustomKeys.txt invalidHotkeys=./CustomKeys.txt.off if [ -e "$validHotkeys" ] then mv "$validHotkeys" "$invalidHotkeys" elif [ -e "$invalidHotkeys" ] then mv "$invalidHotkeys" "$validHotkeys" fi
true
fbf982e9a82369790cb21975aac6cd0bc1285742
Shell
Pratar/RU41
/radiofid-openwrt-14.07-899484766f7b/files/root/scripts/L2-down.sh
UTF-8
383
2.734375
3
[]
no_license
#!/bin/sh L2TPCMD=/usr/bin/l2tpv3tun NUM=2 TUN_ID=`uci get network.@tun[$NUM].tunid` TUN_REMOTE_IP=`uci get network.@tun[$NUM].server|awk -F "/" '{print $1}'` TUN_NAME=L2 TUN_LOCAL_IP=`uci get network.@ospf[0].id` logger "Remove l2tp $TUN_NAME tun_id:$TUN_ID remote: $TUN_REMOTE_IP" $L2TPCMD del session tunnel_id $TU...
true
77463c07e57fdeec571c5498052d4bb2110c4d8a
Shell
martin-g/dotfiles
/.bashrc
UTF-8
4,509
3.03125
3
[]
no_license
# System-wide .bashrc file for interactive bash(1) shells. # To enable the settings / commands in this file for login shells as well, # this file has to be sourced in /etc/profile. # If not running interactively, don't do anything [ -z "$PS1" ] && return # check the window size after each command and, if necessary, ...
true
bdcd3e735dd3c97ace2cf275b50a6a35945579ba
Shell
CoreyGumbs/NetworkAndServerStructures
/bash_Assignment_Gumbs_Corey/scripts/functions.sh
UTF-8
279
3.203125
3
[]
no_license
#!/usr/local/bin/bash # THis is a basic bash script. function greet { echo "Hi $1!" } echo "And now a greeting!" greet Scott #with an array function numberthings { i=1 for f in $@; do echo $i: $f ((i+=1)) done } numberthings $(ls) numberthings pine birch maple spruce
true
df0fa8cecc718f10e0c87e0e2f61c80e19cfbfd1
Shell
bwinhwang/lfs-ci
/lib/artifacts.sh
UTF-8
11,257
3.9375
4
[]
no_license
#!/bin/bash ## @file artifacts.sh # @brief handling of artifacts of a build # @details There is/was a problem in jenkins with artifacts handling. # Espesally if we handling very big artifacts bigger than a few hundert MB. # So we doing the handling of artifacts by yourself within the scriptin...
true
20adb9227c25f82fb317093297aca53f3052d816
Shell
edu-rinaldi/MBTI-Predictor
/scraper/setup_scraper.sh
UTF-8
850
3.765625
4
[ "MIT" ]
permissive
#!/bin/bash # Simple script for creating your personal .env file function print_usage { echo -e "Error, command expect:" echo -e "\tsetup_scraper CLIENT_ID CLIENT_SECRET USER_AGENT REDDIT_USERNAME PASSWORD"; } # few arguments --> print_usage if [ "$#" -le 4 ] ; then print_usage fi # if file already...
true
1fe7fc81bd1da182b78ced0b25d109e9b24b118a
Shell
Bastiaanspanjaard/WES-analysis
/Pipeline_WES_ZNB_2.sh
UTF-8
4,589
3.0625
3
[]
no_license
#!/bin/bash # SNVs calling of dbh:MYCN zebrafish (neuroblastoma model). # Reading configuration file source ReadConfig.sh $1 # Samples and chromosomes counting number_samples=`wc -l ${WORKDIR}/${SAMPLELIST} | awk '{print $1}'` # Total number of samples number_fastqs=`wc -l ${WORKDIR}/${SAMPLELIST}Full | awk '{prin...
true
843681e1e214dd0b0c9f695401f0e6cef09ecb04
Shell
Rajas1312/stage3
/Sequences/leapYear.sh
UTF-8
290
3.0625
3
[]
no_license
#!/bin/bash -x read -p "Enter a Year" userInput if [ $((userInput % 4)) -eq 0 ] then if [ $((userInput % 100)) -eq 0 ] then if [ $((userInput % 400)) -eq 0 ] then echo "Leap year" else echo "not Leap year" fi else echo "leap year" fi else echo "not leap year" fi
true
c00b1e83d31b68b2d31a100cebcde13ea278f512
Shell
bojieli/mirrors-log
/plot/req-ipv4-0
UTF-8
1,007
3.0625
3
[]
no_license
#!/bin/bash FILENAME=`basename $0` TMPDIR="tmp" PSDIR="ps" MYSQL="/home/boj/infobright/mysql-ib" COUNT=`$MYSQL --column-names=0 -u root mirrors -e "SELECT COUNT(*) FROM log"` LENGTH=`$MYSQL --column-names=0 -u root mirrors -e "SELECT SUM(length) FROM log"` $MYSQL --column-names=0 -u root mirrors << EOF > "$TMPDIR/$FIL...
true
11791dfc3270dd07562ed0f1d3d0bddd7372ce1a
Shell
shiv-rajawat/testing-packer
/scripts/deploy.sh
UTF-8
933
2.640625
3
[]
no_license
#!/bin/bash cd $PWD/terraform-aws vpcname=${ELK_VPC_NAME} echo "$vpcname" vpcid=$(aws ec2 describe-vpcs --query "Vpcs[?Tags[?Key=='Name']|[?Value=='$vpcname']].VpcId" --region ${AWS_REGION} --output text) size=${#vpcid} echo "$size" echo "$vpcid" terraform init -backend-config="region=${AWS_REGION}" #terraform plan -v...
true
8ec14a62087692ca9dd5c6369ff39bc93115553a
Shell
squiter/linux-setup
/bin/update_gems
UTF-8
2,691
4.34375
4
[]
no_license
#!/usr/bin/env bash # Usage: update_gems # set -euo pipefail __green_echo() { local green="$(tput setaf 2)" local reset="$(tput sgr0)" local message=$1 # First argument local function_callee=${FUNCNAME[ 1 ]} echo -e `# Enable interpretation of backslash scapes` \ "${green} ==> " \ "[FUNCTION: ...
true
83f90c911d2d4650c79c29d2e465abe10d5e9abf
Shell
congto/akshai-repo
/automount-share.sh
UTF-8
2,840
3.765625
4
[]
no_license
#!/bin/bash set -x # ------------------------------------------------------------------------------------------------------- # # This script calls manila manage on an existing share and auto-mounts it on a tenant. It will have to be # run on the Manila Controller, and the admin account on the controller has to be abl...
true
59e931b8ab07b7d15a8d83e89cd72fac775263df
Shell
delkyd/alfheim_linux-PKGBUILDS
/trimage-git/PKGBUILD
UTF-8
819
2.578125
3
[]
no_license
# Contributor: Kyle Keen <keenerd@gmail.com> pkgname=trimage-git pkgver=20110928 pkgrel=1 pkgdesc="A GUI based lossless image compressor." url="http://trimage.org" arch=('any') license=('MIT') depends=("python2-pyqt" "optipng" "advancecomp" "jpegoptim" "pngcrush") makedepends=("git") conflicts=("trimage") provides=("t...
true
2c3132caa1815b0732e331df12541833c9d2407d
Shell
patrickchin/dotfiles
/i3blocks/scripts/volume
UTF-8
429
3.65625
4
[]
no_license
#!/bin/bash volume() { vol=$(pulsemixer --get-volume | cut -d " " -f1); if [ $(pulsemixer --get-mute) == 1 ]; then printf "MUTE%3d%%" $vol else printf "VOL %3d%%" $vol fi } case $BLOCK_BUTTON in 3) pulsemixer --toggle-mute ;; # right click, mute/unmute 4) pulsemixer --change-v...
true
1f41d5a2abb2120ceedbe3da1b8e09820946a2bc
Shell
ShuangLI59/person_search
/experiments/scripts/eval_test_with_gt.sh
UTF-8
644
3.0625
3
[ "LicenseRef-scancode-generic-cla", "MIT", "BSD-2-Clause" ]
permissive
#!/usr/bin/env bash if [[ $# -ne 3 ]]; then echo "$(basename $0) NET ITER EXP_DIR" exit fi NET=$1 ITER=$2 EXP_DIR=$3 mkdir -p experiments/logs/${EXP_DIR} mpirun -n 8 python2 tools/eval_test.py \ --gpu 0,1,2,3,4,5,6,7 \ --gallery_def models/psdb/${NET}/eval_gallery.prototxt \ --probe_def models/psdb/${NET}...
true
c1ec59f86d70970b940ed61e33acb774258726e4
Shell
Pandinosaurus/OTB
/Packaging/Files/otbenv.profile
UTF-8
1,772
3.09375
3
[ "BSL-1.0", "Apache-2.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "AGPL-3.0-only", "GPL-3.0-only", "MIT", "LGPL-3.0-only", "Zlib", "BSD-3-Clause", "CECILL-B", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/sh # # Copyright (C) 2005-2022 Centre National d'Etudes Spatiales (CNES) # # This file is part of Orfeo Toolbox # # https://www.orfeo-toolbox.org/ # # 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 ...
true
2ba3ee2f14361114d7ead6b9a84af041db4442a8
Shell
ricardojosegomezulmke/az-use-case-perf-tests
/uc-non-persistent/infrastructure/azure/log-analytics/deploy.sh
UTF-8
8,837
4.125
4
[ "MIT" ]
permissive
#!/bin/bash # Variables resourceGroupName="SolaceRG" location="WestEurope" workspaceName="MandalorianLogAnalytics" workspaceSku="PerGB2018" # ARM template and parameters files template="./azuredeploy.json" parameters="./azuredeploy.parameters.json" # Virtual machines virtualMachines=("TestVM1" "TestVM2") # Read sub...
true