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
08c2245d10891da893f461f1cd1ef301cf2c059a
Shell
just-john/prototype
/build.sh
UTF-8
268
2.59375
3
[]
no_license
#!/bin/bash source ./profile mkdir -p ${PROJECT_ROOT}/bld mkdir -p ${PROJECT_BIN_DIR}/lib mkdir -p "${PROJECT_BUILD_DIR}" cd "${PROJECT_BUILD_DIR}" cmake -G Ninja \ -DCMAKE_INSTALL_PREFIX=${PROJECT_BIN_DIR} \ ../ ninja ninja install cd "${PROJECT_ROOT}"
true
a83fe8447f323c11c3df4854ed0a7945979a70c6
Shell
5l1v3r1/flytrap
/rc/flytrap.init.in
UTF-8
2,057
3.578125
4
[ "BSD-3-Clause" ]
permissive
#!/bin/sh # chkconfig: 2345 20 80 # description: Network scanning detector and mitigator # processname: flytrap # config: /etc/sysconfig/flytrap ### BEGIN INIT INFO # Provides: flytrap # Required-Start: $syslog $time $remote_fs # Required-Stop: $syslog $time $remote_fs # D...
true
72f6b4caf99ed782e3fb7320dc16af119142b18a
Shell
nallagondu/scripts-for-linux
/process.sh
UTF-8
291
3.0625
3
[]
no_license
### cat process.sh #!/bin/bash PROCESS=httpd COUNTER=0 while ps aux | grep $PROCESS | grep -v grep > /dev/null do COUNTER=$((COUNTER+1)) sleep 1 echo COUNTER is $COUNTER done logger PROCESSMONITOR: $PROCESS stopped at `date` service $PROCESS start mail -s "$PROCESS stopped" root
true
404704472c48cbc84d8350da847288c9a53f7eb4
Shell
rbray89/hassos
/buildroot/support/scripts/hardlink-or-copy
UTF-8
924
4.375
4
[ "GPL-2.0-only", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later", "Apache-2.0" ]
permissive
#!/usr/bin/env bash # Try to hardlink a file into a directory, fallback to copy on failure. # # Hardlink-or-copy the source file in the first argument into the # destination directory in the second argument, using the basename in # the third argument as basename for the destination file. If the third # argument is mis...
true
ab433209062e2991e01009c9fe134d8321b49d23
Shell
Dwyane-Xu/dotfiles
/scripts/install.sh
UTF-8
4,233
3.828125
4
[ "MIT" ]
permissive
#!/bin/sh # # 安装 source $PWD/lib/echo.sh source $PWD/lib/prompt.sh source $PWD/lib/mac_version.sh cat $PWD/assets/ascii.txt system_type=$(uname -s) if [ $system_type != "Darwin" ]; then error "仅适应于 macOS 系统。" exit; fi if [ $CODENAME != "Catalina" ]; then warn "此配置需要 macOS Catalina,你的版本部分配置有兼容性问题。" fi if [ $...
true
3030e212675a262f0b34c8f949abd94be6f58641
Shell
straywithsmile/work_conf
/bin/gen_create_str.sh
UTF-8
2,508
3.390625
3
[]
no_license
#!/usr/bin/env bash date_str=`date "+%Y_%m_%d"` svn_head="https://svn-dhxy2.gz.netease.com/products/xy2/develop/server/" create_env="env|release|simulate" create_branch="branch|release|test|shiwan|other" help() { echo "./gen_create_str.sh create_env create_branch logic release [date]" } #if [ $# -eq 1 ];then # date...
true
1754f0a1ef8711112d5e7e526c5b2fe67fcfb3ea
Shell
nabiuddin6/scripts-1
/GTD/wtoggle
UTF-8
893
3.640625
4
[]
no_license
#!/bin/bash ##################################################################### # Toggle watson tracking. # ##################################################################### function notify() { notify-send -t 3000 "Watson" "$1" } if [[ "$(uname -a)" == *"Debian"* ]...
true
4c7d7acb86af899417a9ea225d118a0632aaa212
Shell
e-COSI/docker-nginx-certbot
/scripts/entrypoint.sh
UTF-8
790
3.59375
4
[ "MIT" ]
permissive
#!/bin/sh # When we get killed, kill all our children trap "exit" INT TERM trap "kill 0" EXIT # Source in util.sh so we can have our nice tools . $(cd $(dirname $0); pwd)/util.sh # Immediately run auto_enable_configs so that nginx is in a runnable state auto_enable_configs # Start up nginx nginx -g "daemon off;" & ...
true
b9cd58707043878438128808ba9b81cfe6cd3e57
Shell
brki/drifter
/install.sh
UTF-8
1,874
4.34375
4
[ "WTFPL" ]
permissive
#!/bin/bash # this script is used to install the virtualization capabilities in a new project # Modify with care as the README tells users to run the latest version of the script # but we checkout the latest tag, so you might run in issues when you try to copy # or use files that are not yet tagged. BASE=$(pwd) VIRTD...
true
af39e1c53111bdabaadc9b9d29c796dabd9d4b1c
Shell
conjuring/conjuring
/src/conda.sh
UTF-8
379
3.65625
4
[]
no_license
#!/usr/bin/env bash ## Usage: conda.sh <cmd> ... # Where <cmd> is any valid conda command, or `path_exec` (which will prefix # the base conda bin path before running the remaining command) if [ ${#} -gt 1 -a "$1" = path_exec ]; then PATH="$($0 info --base)/bin:$PATH" "${@:2}" else which conda if [ $? -eq 0 ]; th...
true
734346ad7de93fb12c65b4b77a1504f7eb1a2537
Shell
cvignal/aur
/marktext/PKGBUILD
UTF-8
1,879
2.625
3
[]
no_license
# Maintainer: Gabriel Saillard (GitSquared) <gabriel@saillard.dev> # Maintainer: Caleb Maclennan <caleb@alerque.com> # Contributor: David Birks <david@tellus.space> # Contributor: Simon Doppler (dopsi) <dop.simon@gmail.com> # Contributor: dpeukert pkgname=marktext pkgver=0.16.1 pkgrel=3 pkgdesc='A simple and elegant o...
true
0f069fbbb10f9b978f16b0c5e1acdb1c0fd1bab0
Shell
sruizcarmona/scripts
/BIOINFORMATICS/CBDD/DOCKING/VINA/vina_screen_local.sh
UTF-8
211
2.828125
3
[]
no_license
#! /bin/bash for f in ligs_pdbqt/*lig*.pdbqt; do b=`basename $f .pdbqt` echo Processing ligand $b vina --config vina_conf.txt --ligand $f --out results/$b\_out.pdbqt > results/logs/$b\_log.txt done
true
5cba8e519443f1b6f48e5b2f7d83d6b255618c2d
Shell
mastarink/masbash
/path_util/set_path
UTF-8
2,811
3.5
4
[]
no_license
function mas_set_path ( ) { local s p show opath order px rest first tempf saved_trap result rpath show='no' #PATH= opath=$PATH # echo "opath: $PATH" >&2 tempf="/dev/shm/$$.path.tmp" #NO: trap "rm $tempf" EXIT saved_trap=$(trap -p RETURN) # if [ -n "$saved_trap" ] ; then # saved_trap="$saved_trap ; if...
true
3075b30d502d20f35d8a263d3599c6e55c239d06
Shell
sidereux/vimrc
/install.sh
UTF-8
1,559
3.75
4
[]
no_license
#!/bin/bash # cp vrapperrc ~/.vrapperrc # install pathogen mkdir -p ~/.vim/{autoload,bundle} wget https://raw.githubusercontent.com/tpope/vim-pathogen/master/autoload/pathogen.vim -O ~/.vim/autoload/pathogen.vim # install gtags function install_gtags { local readonly GTAT='/usr/local/share/gtags/gtags.vim' ...
true
f06df51bce2424502b4e6b6a27d874bc19ad0018
Shell
mvala/zmq_strela
/scripts/install.sh
UTF-8
647
3.296875
3
[]
no_license
#!/bin/bash MYZMQ_DIR="$(dirname $(dirname $(readlink -m $0)))" [ -d $MYZMQ_DIR/etc ] || mkdir -p $YZMQ_DIR/etc export PATH="$MYZMQ_DIR/bin:$PATH" export LD_LIBRARY_PATH="$MYZMQ_DIR/lib:$LD_LIBRARY_PATH" function MyMake() { git reset --hard git pull ./autogen.sh ./configure --prefix=$MYZMQ_DIR $* || exit 1 ...
true
1fa31cfef0ab062f052169df232a5106130b41a4
Shell
tkyashiro/pi-scripts
/ir/living.sh
UTF-8
515
3.78125
4
[ "MIT" ]
permissive
#!/bin/sh if [ $# -ne 1 ]; then echo "living.sh <on|off|max>" exit 1 fi command=$1 base=$(dirname $(realpath "$0")) if [ $command = "on" ]; then echo "Turning ON the living light" python3 ${base}/irrp.py -p -g12 -f ${base}/codes living:on elif [ $command = "off" ]; then echo "Turning OFF the living light" pyt...
true
8dd6ba9a6b57f1796542c58e0d8e0603825f6ffd
Shell
LISHUAI0000/Processor-Simulator
/Version 1/simulate.sh
UTF-8
347
2.671875
3
[]
no_license
#!/bin/sh # Script to simulate input assembly given in $1 # Change to binary directory cd bin # Convert assembly to binary IR cat <&0 >input java PreProcess > binary_prog rm input # Load binary IR and simulate execution ./ProcessorSimulator.o binary_prog ../data_dump rm -f binary_prog # Output the me...
true
b2419a87ed5882d7eb5e983c56590ee24ae23127
Shell
jbro885/dd-utility
/source/ddutility-osx-1.0.sh
UTF-8
9,881
3.65625
4
[]
no_license
#!/bin/bash # # dd Utility version 1.0 - Mac OSX # # By The Fan Club 2015 # http://www.thefanclub.co.za # ### BEGIN LICENSE # Copyright (c) 2015, The Fan Club <info@thefanclub.co.za> # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License version 3,...
true
f20fbe0eee95a870b152aab69710e1c24d7e1878
Shell
ksyasuda/dotfiles
/.config/polybar/sblocks/scripts/music-controls.sh
UTF-8
430
3.625
4
[]
no_license
#!/usr/bin/env bash set -euo pipefail NEXT=0 PREV=0 TOGGLE=0 VERBOSE='-q' while getopts nptv options do case $options in n) NEXT=1 ;; p) PREV=1 ;; t) TOGGLE=1 ;; v) VERBOSE='-v' ;; ?) echo 'something went wrong' exit 1 ;; esac done if [[ $NEXT -eq 1 ]]; then mpc next $VE...
true
147761d356e0235f3b4f1401ee1d631592506c84
Shell
mk-fg/systemd-password-agent
/systemd_password_cache_cleanup.sh
UTF-8
3,565
3.75
4
[]
no_license
#!/bin/bash umask 077 chmod 700 /run/initramfs || exit 2 pw_cache=/run/initramfs/.password.cache pw_seed=/run/initramfs/.password.seed rsa_info=$(grep -o 'rd.rsa=[^[:space:]]\+' /proc/cmdline) rsa_info=${rsa_info#*=} rsa_src=${rsa_info%/*} rsa_dev=${rsa_src%-*} rsa_offset=${rsa_src#*-} rsa_key=${rsa_info#*/} key_fi...
true
b2cec9fc2e453d8c1e46affad0d59ee818ae14bf
Shell
devops-workflow/jenkins-tools
/bin/static-analysis-docker-image-clair.sh
UTF-8
5,474
3.828125
4
[]
no_license
#!/bin/bash # # Docker image testing # tmpdir=tmp #dockerDir=. #dockerFile=${dockerDir}/Dockerfile imageDir=output-images reportsDir=reports versionFile=${tmpdir}/version GIT_URL="${GIT_URL%.git}" mkdir -p ${tmpdir} ${reportsDir} ### ### Clair ### # Install # use docker-compose or manual and can have central Clair ...
true
4c95afacd2b38e86e33b203db8f44df09f05b62e
Shell
mdkcore0/dotbins
/show-ansi-colors.sh
UTF-8
412
3.75
4
[]
no_license
#!/usr/bin/env sh #original: https://gist.github.com/eliranmal/b373abbe1c21e991b394bdffb0c8a6cf usage() { echo "show-ansi-colors <n>" exit 0 } (( $# < 1 )) && usage show_ansi_colors() { local colors=$1 echo "showing $colors ansi colors:" for (( n=-0; n < $colors; n++ )) do printf " [%d]\...
true
2bc3418db93e81ad95b695cce83fc18b70890c8b
Shell
kchodnicki/.zshrc
/.zshrc
UTF-8
9,390
2.75
3
[]
no_license
# If you come from bash you might have to change your $PATH. # export PATH=$HOME/bin:/usr/local/bin:$PATH # Path to your oh-my-zsh installation. export ZSH="/Users/chodnicki/.oh-my-zsh" # Set name of the theme to load. Optionally, if you set this to "random" # it'll load a random theme each time that oh-my-zsh is loa...
true
6fa2489de917607501f0801f9d438050590dfa3a
Shell
myArchivedProjects/special-octo-sniffle
/cloud_init_LVM_on_ephemeral_disks.sh
UTF-8
2,602
4.3125
4
[]
no_license
#!/bin/bash # Adapted from: # https://gist.githubusercontent.com/joemiller/6049831/raw/f2a458c3afcb3b57cb7a6d9cb3d9534482982086/raid_ephemeral.sh # # this script will attempt to detect any ephemeral drives on an EC2 node and create a LVM mounted /opt # It should be run early on the first boot of the system. # # Beware...
true
64a0b539c98ea68c05855b2e915e15fa2338af45
Shell
bivkarki/ShellScripting-Practice
/greater_num.sh
UTF-8
469
3.828125
4
[]
no_license
#!/bin/bash echo "Enter any 3 Numbers: " read -a nums #reads array #nums = ($@) echo You entered ${#nums[*]} numbers #to read length of element ${#nums[1]} echo "The three number are: "${nums[0]},${nums[1]},${nums[2]} num1=${nums[0]} num2=${nums[1]} num3=${nums[2]} if [ $num1 -ge $num2 ] && [ $num1 -ge $num3 ] then ...
true
301fb6646fb8425173af01c069ec001cf74e658e
Shell
thalesfsp/insanehash
/test.sh
UTF-8
3,918
2.65625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash ### Tests for the CLI version of insanehash # Author: Thales Pinheiro # Since: 07/28/2015 # Basic usage: # sh test # ./test # # Copyright (c) 2015 # Thales Pinheiro. All rights reserved. # # Copyright terms: # Redistribution and use in source and binary forms, with or without # modification, are...
true
371fc809d3457a75c5358fd47f1b09cd9fbb8688
Shell
Etersoft/anyservice
/test/start-stop-tests/test_process_exec
UTF-8
240
3
3
[ "MIT" ]
permissive
#!/bin/sh mkdir $1 cd $1 myuser="my.user" mypid="my.pid" mydir="my.dir" myhome="my.home" echo "Started" echo $USER > $myuser echo $$ > $mypid echo $(pwd) > $mydir echo $HOME > $myhome exec sleep 10 #rm -f $myuser $mypid $mydir $myhome
true
ef32f97388b52fb0ea8f76e200cec7f35378d1c7
Shell
RUGSoftEng/CloudVisualizer
/cloudwatch/runcrawler.sh
UTF-8
876
2.734375
3
[]
no_license
npm install if ! grep -Fxq "172.17.0.1 cwdev.nl" /etc/hosts then sudo -- sh -c "echo 172.17.0.1 cwdev.nl >> /etc/hosts" fi sudo docker run -d -v $PWD:/host -p 8000:3000 -it rvanbuijtenen/cloudwatch:compressed /bin/bash IP=$(sudo docker inspect --format '{{ .NetworkSettings.IPAddress }}' $(sudo docker ps -q)) sudo...
true
422a3cf658b48a91a4d2fe87725252e41cb74a35
Shell
danikron/dotfiles
/sysscripts/scratchtoggle.sh
UTF-8
361
3.25
3
[]
no_license
#! /bin/sh ID=$(cat /tmp/scratchid) # Check for proper scratchpad [[ $(xprop -id $ID WM_CLASS | cut -d'"' -f2) = "scratchpad" ]] || exit 1 # Make sure scratchpad is on the focused monitor [[ $(bspc query -m focused -N | grep "$ID") ]] || bspc node $ID --flag sticky=off -m focused --flag sticky=on # Show and focus s...
true
d75a826290baf54a41130f0f22d31aafcb87ad11
Shell
dan-kruk/scrap
/flib
UTF-8
266
3.390625
3
[]
no_license
#!/bin/bash thread () { local i; date; while ((++i)); do sleep $((5-$(date +%s)%5)); echo "$BASHPID $i $(date)"; done } jkill () { local jx for j in $(jobs|sed 's/^\[\([0-9]*\).*/\1/g') do jx+="%$j " done kill $jx }
true
d5aaee96501fa0b184cdb2dd763e19c898a49d9b
Shell
FauxFaux/debian-control
/o/oss4/oss4-dev_4.2-build2010-5_all/postrm
UTF-8
199
2.828125
3
[]
no_license
#!/bin/sh set -e case "$1" in remove|purge|disappear) dpkg-divert --package oss4-dev --rename --remove "/usr/include/linux/soundcard.h" ;; *) exit 0 ;; esac
true
262cfc9c57da13d76a4cf2a9e07b142f41b9c90b
Shell
sidhant-gupta-004/OS-tuhdo
/.legacy/run_bootloader.sh
UTF-8
470
3.234375
3
[]
no_license
#!/bin/sh gdb="-gdb" if test "$1" = "$gdb" then qemu-system-i386 -machine q35 -drive file=disk.img,format=raw,index=0,if=floppy -gdb tcp::4444 -S # This option allows for debugging the QEMU VM through gdb as you run it. The connection is establised # on your localhost at port 4444. The -S option stops the VM from...
true
5aca9f1c907937c967ad45b1c3e7beeb4061fc9c
Shell
epsiro/timelog-core
/scripts/timelog-core-uninstall.bash
UTF-8
1,614
3.953125
4
[ "ISC" ]
permissive
#!/usr/bin/env bash if [ "$#" -eq "1" ] && [ "$1" == "--drop" ] ; then drop=true elif [ "$#" -ne "0" ] ; then echo "Usage: $0 [--drop]" 1>&2 exit 1 else unset drop fi if [ "$( id -u )" -ne "0" ] ; then echo "Need root privileges to run." 1>&2 exit 2 fi sudo -u nobody bash $( cd "$( dirname "${BASH_SOURCE...
true
68e8d7a7c87613f395758a695c0377d1a9afe7d8
Shell
TedHaley/TraderBot
/web_app/run.sh
UTF-8
254
2.515625
3
[]
no_license
#!/bin/bash #export SECRETS=/deploy/secrets.env COMPOSE="docker-compose.yml" NETWORK="trader-network" docker network create "$NETWORK" || echo "network already exists: $NETWORK" echo "starting compose: $COMPOSE" docker-compose -f "$COMPOSE" up --build
true
960b3d0a51ed6a3828043e3ba9df02101d8237e8
Shell
jacob-brown/EquSeq
/scripts/listErrors.sh
UTF-8
295
3.375
3
[]
no_license
# usage # list errors in file with specific grep string # sh listErrors.sh fastqDownload.sh closed FILENAME=$1 files=($(ls $FILENAME.e*)) errorGrep="$2" echo "printing problem files with grep: " $errorGrep for i in "${files[@]}" do if grep -q $errorGrep $i; then echo $i fi done
true
a4c122994a9ad6f1f078808b6ff55890142b3cf0
Shell
abdulghanimohammed/comcast-test
/Task1.sh
UTF-8
337
3.4375
3
[]
no_license
#!/bin/bash #Usuage bash key.sh key.pem #FIle variable contain pem key" FILE="$1" LOCATION="/home/user/.ssh/authorized_keys" check() { if [ -f $FILE ] then echo "Key File found,preparing to transfer" else echo "File not found " exit 0 fi } while read server; do echo $server #scp -p $FILE $server:$LOCATION ...
true
9713a1365cc711ddf956905f1e62eb71788caa1b
Shell
tom-haines/schemaspy-mssql-github-pages
/task_serve.sh
UTF-8
416
3.4375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash source task_config.sh REQUIRED_TOOLS=( "python" ) HOST="127.0.0.1" PORT="8000" for tool in ${REQUIRED_TOOLS[@]}; do if ! command -v ${tool} >/dev/null; then echo "${tool} is required ..." exit 1 fi done echo "Preview dir ${DIR} at http://${HOST}:${PORT}" # See https://docs.python...
true
09377f4d61770a37427429700e704025c5b832f3
Shell
jason-work/system-config
/bin/update-android-mirror
UTF-8
1,400
2.875
3
[]
no_license
#!/bin/bash set -ex . ~/system-config/.bashrc . ~/system-config/bin/set-ssh-agent ( cd ~/src/android-mirror/linux-2.6.git || exit 0 git fetch https://github.com/mirrors/linux ) ( cd ~/src/android-mirror/ || exit 0 ( repo init -u s:qualcomm/platform/manifest.git -b sanfrancisco -m sfo-rom.xml ...
true
f0e9fa73c7f0ac1337f03cfb65e34e1cf8694378
Shell
divine-dotfiles/divine-dotfiles
/lib/helpers/link-queue.hlp.sh
UTF-8
8,760
3.03125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash #:title: Divine Bash deployment helpers: link-queue #:author: Grove Pyree #:email: grayarea@protonmail.ch #:revdate: 2019.12.11 #:revremark: Re-arrange dependencies in spec queue helpers #:created_at: 2019.04.02 ## Part of Divine.dotfiles <https://github.com/divine-dot...
true
88ccb42c6d5fa03eb60b83ab696e1e67fa7566b2
Shell
SofiMarcos/recovering_host_genomes
/1_pipeline/2_variant_calling-reference_samples.sh
UTF-8
4,732
2.984375
3
[]
no_license
#!/bin/bash #### # Custom reference panel design #### # paths workdir='path/to/directory' # directories mkdir "${workdir}"/RefPanel/{06_Variants,07_PanelDesign,08_Phased} mkdir "${workdir}"/RefPanel/06_Variants/"${dataset}" mkdir "${workdir}"/RefPanel/07_PanelDesign/"${panel}" mkdir "${workdir}"/RefPanel/...
true
17d7db32f35260d146d74eb67bda7b4aed660914
Shell
DanielGunna/OkSSE-Poc
/Server/workload_test.sh
UTF-8
144
3.015625
3
[]
no_license
chmod +x ./send_data.sh total=$1; for ((n=0;n<total;n++)); do ./send_data.sh $n; if [[ $2 -ne 0 ]] ; then sleep $2; fi done
true
45caa2ed2a8d131ef0f8ff87e7414587b93aabca
Shell
mutsys/node-performance-analysis
/run-with-no-tuning.sh
UTF-8
320
2.609375
3
[]
no_license
#!/bin/sh ps -aef | grep grunt | grep -v grep | tr -s " " | cut -d " " -f 3 | while read pid do kill $pid done ps -aef | grep collect-node-process-data | grep -v grep | tr -s " " | cut -d " " -f 3 | while read pid do kill $pid done rm *csv nohup ./collect-node-process-data.sh & NODE_ENV=production node app.js
true
eb8a0b13812e36af311fa8bd2bd7c94ee045a63d
Shell
pgohier/Windshaft-cartodb
/tools/show_style
UTF-8
368
3.296875
3
[ "BSD-2-Clause" ]
permissive
#!/bin/sh # TODO: port to node, if you really need it REDIS_PORT=6379 # default port if test -z "$2"; then echo "Usage: $0 <username> <tablename>" >&2 exit 1 fi username="$1" tabname="$2" dbname=`redis-cli -p ${REDIS_PORT} -n 5 hget "rails:users:${username}" "database_name"` redis-cli get "map_style|${dbname}...
true
9481f0775f31cdfcbb97cf92f050d0e44df28857
Shell
awschef-code/Docker-setup
/images/mysql-backup/healthcheck
UTF-8
663
3.109375
3
[]
no_license
#!/bin/bash hostname=$(mysql -u${MYSQL_USER:-admin} -p${MYSQL_PASSWORD:-x0cloud} --socket=${MYSQL_VOLUME:-/var/lib/mysql}/mysql.sock -e "show variables like 'report_host'\G" 2>/dev/null | tail -n 1 | sed -e"s/.*Value: //") state=$(mysql -u${MYSQL_USER:-admin} -p${MYSQL_PASSWORD:-x0cloud} --socket=${MYSQL_VOLUME:-/var...
true
9a27e5c10d1e46d5099299505d733347d0a6db01
Shell
tanobar/S.O.L.-project
/analisi.sh
UTF-8
207
2.9375
3
[]
no_license
#!/bin/bash while pgrep -x supermercato >/dev/null; do sleep 1s; done if [ -s "resoconto.log" ]; then exec 3<resoconto.log while read -u 3 linea ; do echo $linea done else echo "Errore in $0" 1>&2 fi
true
87d249c533a2ddd0046ed4c60391e132d0d2fec2
Shell
hm1365166/opencsw
/csw/mgar/pkg/cswclassutils/trunk/files/CSWcswclassutils.i.cswtexhash
UTF-8
640
3.65625
4
[]
no_license
#!/bin/sh # # i.cswtexhash - Class action script # for registration of TeX packages # # Written and maintained by Peter Felecan # # 2012-06-25 Initial release echo "Installing class <cswtexhash> ..." while read src dest; do echo $dest /usr/bin/cp $src $dest || exit 2 done if [ -x ${PKG_INSTALL_ROOT}/opt/csw/b...
true
aaea05812ca73dfdbcd7167a39b2b55457e159a1
Shell
akpotter/bin
/._versionning-utils/github-issues
UTF-8
708
3.703125
4
[]
no_license
#!/bin/sh # List open github repo issues from url set -e # -- Prepare things... url="https://api.github.com/repos/$(github-repo-from-url "${1?missing url argument}")/issues?state=open&sort=created&direction=asc" pages=$(curl -I "$url" | grep '^Link' | grep -oP '(?<=page=)[0-9]+' | sort -nr | head -1) [ -z "$pages" ] &...
true
48371fdacc6a1450f29f7ea3428aa7ca0e3ae9f3
Shell
Warbo/chriswarbo-net
/tests/have_readmes
UTF-8
724
3.859375
4
[]
no_license
#!/usr/bin/env bash shopt -s nullglob # Make sure READMEs get included into repo pages ERR=0 # shellcheck disable=SC2154 for REPO in "$rendered"/projects/repos/*.html do NAME=$(basename "$REPO" .html) [[ "x$NAME" = "xindex" ]] && continue if grep "No README found" "$REPO" > /dev/null then for...
true
48eb0b29f9392a908b41fb1943d3edc84953602b
Shell
XSWgrzh/i5gmc_install
/i5gmc_config.sh
UTF-8
863
2.65625
3
[]
no_license
#!/bin/bash export HOST_USER=test export HOST_PASS=test export DOCKER_LOCAL_REGISTRY=p1:5000 export DOCKER_REMOTE_REGISTRY=docker.com:5000 export HOST_LEADER=p1 export HOST_ARRAY=( "p1:172.16.169.153" "p2:172.16.169.154" "p3:172.16.169.155" ) export DOCKER_MIDWARE_ARRAY=( #"i5gmc_nginx:1.19.7.1" "i5gmc_mongo:4.4....
true
81131a8a13f9667576d22cbe0b44a1d3ffc4475e
Shell
abdullahnegm/Database---Bash-Script
/del_Table
UTF-8
493
3.796875
4
[]
no_license
#!/bin/bash while true do clear >$(tty) # Check if Database is empty if [[ $(ls $1) ]]; then tput setaf 6; read -p "Name of Table to be Deleted ? " name # Check if Table name exists if [ -f $1/"$name" ]; then rm $1/"$name" echo $name has been deleted! sleep 1.5 break ...
true
96dd8cb93b5e22910790d10716bb0073da807453
Shell
MaxOsef/Docker_Perso
/webdev_tmux.sh
UTF-8
1,905
3.328125
3
[]
no_license
#!/bin/sh session="Webdev" project=$1 # set up tmux tmux start-server # create a new tmux session and windows. tmux new-session -d -s $session -n logs # default window #1 tmux new-window -t $session:2 -n vim tmux new-window -t $session:3 -n "$project" tmux new-window -t $session:4 -n mysql # Window 1 tmux select...
true
794b720c26fe6ed5ee01bd4b65930f10b1043abb
Shell
samisalkosuo/udpipe-server-baltic-sea
/scripts/get_conllu.sh
UTF-8
403
2.875
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
#!/usr/bin/env bash #parse given text file if [[ -z $1 || -z $2 ]]; then echo 'Usage ' $0 ' <LANG_ID> <FILE_NAME>' exit 1 fi __model=$1 __file=$2 __udpipe_server=127.0.0.1:8080 curl -F data=@${__file} -F model=${__model} -F tokenizer= -F tagger= -F parser= http://${__udpipe_server}/process | PYTHONIOENCODING=u...
true
287f662137a2c15dbe618c65575919f47ad479a1
Shell
rolfn/relayServer
/install
UTF-8
668
3.390625
3
[]
no_license
#! /bin/bash # Rolf Niepraschk (Rolf.Niepraschk@ptb.de), 2020-05-26 # Preparation and start of the relayServer process. R_PATH=/usr/local/share/relayServer/ # Path to relayServer installation dist=$(lsb_release -is | cut -d " " -f 1 | tr '[A-Z]' '[a-z]') case "$dist" in opensuse) chown -R nobody:nobody ${...
true
417005d4a5434465578f47b59ea936c677ccc51b
Shell
roverdotcom/django-haystack
/tests/run_all_tests.sh
UTF-8
1,583
3.359375
3
[ "BSD-3-Clause", "MIT" ]
permissive
#!/bin/bash set -e if [ "$1" == "--help" ]; then echo "Runs the test suite for all backends" echo echo "See docs/running_tests.rst for instructions on installing test" echo "search engine instances" echo echo "Use $0 --with-coverage to execute tests using coverage.py" echo exit 0 elif ...
true
f841b721d60d28d16303d1eabc499f66a36ba886
Shell
sosobiao/IRMP_STM32
/STM32F103/scripts/prepare.sh
UTF-8
5,438
2.890625
3
[]
no_license
#!/bin/bash mkdir -p ext_src [[ -e ./ext_src/prepared ]] && exit 0 cd ./ext_src for i in 32010 32121; do if [[ ! -s stsw-stm$i.zip ]]; then wget "http://www.st.com/st-web-ui/static/active/en/st_prod_software_internet/resource/technical/software/firmware/stsw-stm$i.zip" fi done if [[ ! -s irmp.tar.gz ]]; then wget ...
true
38f2dfa409fff6ca15add961a61245e5f01b93be
Shell
av-maramzin/LLVM
/debug-build.sh
UTF-8
875
3.65625
4
[]
no_license
#!/bin/bash SCRIPT_DIR="$(dirname "$(realpath $0)")" LLVM_PROJECT_DIR="$SCRIPT_DIR/llvm-project/llvm" BUILD_DIR="$SCRIPT_DIR/build" DEBUG_BUILD_DIR="$SCRIPT_DIR/debug-build" if [ ! -d "$LLVM_PROJECT_DIR" ]; then echo "Error: LLVM git repository has not been found!" exit 1 fi echo "LLVM folder: $SCRIPT_DIR" e...
true
f387cec66337aa9bc86911d228b953ad9da67a2e
Shell
cloudfoundry-incubator/kubecf-tools
/top/memory-max.sh
UTF-8
601
4.0625
4
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
#!/bin/bash ## Given the path to a file generated by `top-iterated.sh` it ## determines the max memory usage per job and returns the relevant ## information to stdout. log="${1}" ; shift if test -z "${log}" then echo 1>&2 "Usage: $0 log" exit 1 fi # Split the report across group+jobs. while read epoch group...
true
4c03ee7e0dce22f2a6ba72f58b421a9c40ca2d5b
Shell
ShakingCode/Shareplex
/shared_scripts/shareplex_install_postgres_config.sh
UTF-8
3,987
2.71875
3
[]
no_license
#mkdir -p /u01/app/quest #rm -fR /u01/app/quest/shareplex9.2/ ; rm -fR /u01/app/quest/vardir/ mkdir -p /u01/app/quest/shareplex9.2/ ; mkdir -p /u01/app/quest/vardir/2100/ echo "******************************************************************************" echo "Shareplex installation." `date` echo "****************...
true
04e420118d0769b61f475eac35eab7febebaced1
Shell
tw-hygieia/hygieia-deploy-teamcity-collector
/docker/properties-builder.sh
UTF-8
4,679
3.546875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash if [ "$SKIP_PROPERTIES_BUILDER" = true ]; then echo "Skipping properties builder" exit 0 fi # mongo container provides the HOST/PORT # api container provided DB Name, ID & PWD if [ "$TEST_SCRIPT" != "" ] then #for testing locally PROP_FILE=application.properties else PROP_FILE=/hygie...
true
10862f225b1a393bc46595590625253e45225a09
Shell
entn-at/LCLDA
/egs/sre10/v1/local/lcplda_plda_scoring.sh
UTF-8
4,732
3.1875
3
[]
no_license
#!/bin/bash # Copyright 2015 David Snyder # Apache 2.0. # # This script trains an LDA transform, applies it to the enroll and # test i-vectors and does cosine scoring. use_existing_models=false simple_length_norm=false # If true, replace the default length normalization # performed in PLDA ...
true
c6caf63ebe70b016e80206b6fa4d38ccacfada2a
Shell
sixteenmillimeter/mcopy
/scripts/branch_name.sh
UTF-8
145
2.78125
3
[ "MIT" ]
permissive
#!/bin/bash branch_name=$(git symbolic-ref -q HEAD) branch_name=${branch_name##refs/heads/} branch_name=${branch_name:-HEAD} echo $branch_name
true
b69c862666885f3fd53d8388562131c44b79afa6
Shell
scelesticsiva/classification_of_fashion_category
/train.sh
UTF-8
665
3.21875
3
[]
no_license
#!/bin/bash # # Author - Sivaramakrishnan # #The main script to test the pre trained model VGG_PRETRAINED_WEIGHTS="https://www.dropbox.com/s/o0t8wuqbu64eazh/vgg16.npy?dl=1" VGG_FILE="vgg16.npy" echo "Downloading VGG16 weights file" curl -L -o vgg16.npy $VGG_PRETRAINED_WEIGHTS echo "Running the training script" #tail ...
true
be5ad9810713e03c02aa3581ec3ff7a218fd9149
Shell
kjsubbu/dockerprojects
/arap-workflow-prescan/multiJvmRun.sh
UTF-8
284
2.9375
3
[]
no_license
#!/bin/bash # Run 4 PreScan JVMs # TODO: Modify to support N JVMS for any N. PSbucket=$1 PSWFC=`expr $PSbucket - 1` for i in `seq 0 $PSWFC`; do echo "Starting JVM $i" ./run.sh $i $PSbucket & done #for ind in 0 1 2 3 #do # echo "Starting JVM $ind" # ./run.sh $ind 4 & #done
true
5907027ce3a3d66f05e4f7edd2fb6d55d91fac78
Shell
ivanpierre/makes
/src/args/make-ssl-certificate/builder.sh
UTF-8
436
3.03125
3
[ "MIT" ]
permissive
# shellcheck shell=bash function main { source "${envOptions}"/template local options mkdir "${out}" \ && openssl req \ -days "${envDays}" \ -keyout "${out}/cert.key" \ -new \ -newkey "${envKeyType}" \ -nodes \ -out "${out}/cert.crt" \ "${options[@]}" \ -x509 \ ...
true
1d77fd4a9b2231061dd687bdce5e59df2d9f2b8c
Shell
atul-ram/step10
/roles/zabbix/files/script/hardening.sh
UTF-8
7,045
3.28125
3
[]
no_license
###### Maximum password Days ################## maxdayspass=`cat /etc/login.defs |grep "PASS_MAX_DAYS 30" |wc -l` if [ $maxdayspass == 1 ] ; then echo "PASSWORD Max days is OK" else echo "PASSWORD Max days PROBLEM" fi ###### Minimum Password days ################# mindayspass=`cat /etc/login.defs |grep "PASS_MIN_DAYS ...
true
7669c1c621858f59fbb1c3fe9e24cb598d400478
Shell
Dumstruck/zen-securenode-docker
/secnodetracker/entrypoint.sh
UTF-8
552
3.453125
3
[]
no_license
#!/bin/sh # link the secure node tracker config, bail if not present #if [ -f "/mnt/zen/secnode/stakeaddr" ]; then #echo "Secure node config found OK - linking..." #ln -s /mnt/zen/secnode /home/node/secnodetracker/config > /dev/null 2>&1 || true #else #echo "No secure node config found. exiting" #exit 1 #fi c...
true
d872b712f0255a2d209e7b881f09f41ba515c075
Shell
bitmap/dotfiles.archive
/macos/bootstrap.sh
UTF-8
1,126
3.5625
4
[]
no_license
#!/bin/zsh local DOTS="$HOME/.dotfiles" if [[ "$PWD" != "$HOME/.dotfiles" ]]; then print -P "%F{1}Error!%f Run script %F{4}./setup-macos%f from %F{3}$DOTS%f" exit 1 fi sudo -v # Keep-alive sudo while true; do sudo -n true sleep 60 kill -0 "$$" || exit done 2>/dev/null & echo "\nInstalling Xcode command lin...
true
be6671132b1b903b79a408655002420a3b80ecd9
Shell
softcake/softcake.gradle-java-template
/travis-build.sh
UTF-8
3,208
3.421875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # This script will build the project. git fsck --full EXIT_STATUS=0 function strongEcho { echo "" echo "================ $1 =================" } if [ "$TRAVIS_SECURE_ENV_VARS" == "true" ]; then strongEcho 'Decrypt secret key file' openssl aes-256-cbc -pass pass:$SIGNING_PASSPHRASE -in secring.g...
true
64fe6354f83edbf129646c5d0c24431aab2e9329
Shell
h4ck3rm1k3/awips2
/tools/devAutoDeploy/devCave/qpid-auto-shutdown.sh
UTF-8
894
3.421875
3
[]
no_license
#!/bin/sh #---------------------------------------------------------------------- # Auto shutdown script for a qpid server. #---------------------------------------------------------------------- PAUSE=3 PID=`/sbin/pidof qpidd` DATE=`date` echo "***********************************************************************...
true
5a15ddf4c61f2d372603079929833d966cceb08c
Shell
OpenVnmrJ/OpenVnmrJ
/src/scripts/ovjcraft.sh
UTF-8
1,969
3.390625
3
[ "Apache-2.0", "GPL-3.0-only" ]
permissive
#!/bin/bash # Looks for sendMessage macro in systemdir or userdir if [ x$vnmrsystem = "x" ] then vnmrsystem=/vnmr fi if [ x$vnmruser = "x" ] then source $vnmrsystem/user_templates/.vnmrenvsh fi export DISPLAY=:0.0 if [ $# -lt 1 ]; then Arg="help" else Arg="$1" fi if [ "x$Arg" = "xhelp" ]; then # We ...
true
fb28f44749da889ca0ea64b24991601ca8944e5d
Shell
conormag94/xkcd-downloader
/xkcd.sh
UTF-8
651
3.984375
4
[]
no_license
#!/bin/bash # Pull XKCD's most recent comic, saving JSON result to temp file echo "Searching XKCD..." curl -G -s http://xkcd.com/info.0.json | json_pp > res.json # Extract latest comic number from json file (a number followed by a comma) grep -E -o '\d+,' res.json > num.txt TEMP=`cat num.txt` # Remove comma found b...
true
be2f12e880ad1bf248327c2d042a4a5c1d0f850a
Shell
toddmcbrearty/myvagrant2
/welcome.sh
UTF-8
1,880
2.84375
3
[]
no_license
echo "" echo "" echo "" echo "" echo " __ __ .__ ___________ __ " echo " / \ / \ ____ | | ____ ____ _____ ____ \_ _____/__ __ ____ _____/ |______ ___ _______ ___________ ______" echo " \ \...
true
ad1cbd9167cf4008e022a84cad008ec78123c07d
Shell
ICP-Foundation/sdk
/e2e/tests-replica/deploy.bash
UTF-8
2,523
3.140625
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bats load ../utils/_ setup() { standard_setup } teardown() { dfx_stop standard_teardown } @test "deploy from a fresh project" { dfx_new hello dfx_start install_asset greet assert_command dfx deploy assert_command dfx canister call hello greet '("Banzai")' assert_...
true
e64d34ec18b687ffcec0426c7e5beb7fc889b7fe
Shell
souvik-de/azhpc-images
/centos/common/hpc-tuning.sh
UTF-8
1,652
3.234375
3
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
#!/bin/bash # Disable some unneeded services by default (administrators can re-enable if desired) systemctl disable firewalld # Update memory limits cat << EOF >> /etc/security/limits.conf * hard memlock unlimited * soft memlock unlimited * hard nofil...
true
b1ed9a9590c05ae42dff767bc44892a166570160
Shell
Mullefa/tech-time-talk
/0-setup/execute_command.sh
UTF-8
350
3.609375
4
[]
no_license
#!/usr/bin/env bash # Utility function for making it transparent commands that are getting executed in bash scripts. green='\033[0;32m' blue='\033[01;36m' reset='\033[0m' # No Color COMMAND="$@" read -p "$(echo -e "${green}executing command: ${blue} ${COMMAND} ${reset}")" eval ${COMMAND} read -p "$(echo -e "${green...
true
a97c6ddec7468f66f52be76d6eb963e94023df22
Shell
itspriddle/bash-project-template
/bin/APP
UTF-8
902
4.1875
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # Usage: APP # # NAME # APP -- FIXME # # SYNOPSIS # APP # # DESCRIPTION # FIXME # # OPTIONS # FIXME # # EXAMPLES # FIXME # # SEE ALSO # FIXME # Call this script with DEBUG=1 to add some debugging output if [[ "$DEBUG" ]]; then export PS4='+ [${BASH_SOURCE##*/}:${LINENO}] ' set -x fi...
true
fb4c8bde122fb75af2d8ac0f7d5e8a571bed91b6
Shell
tompipen/aubit4gl_code
/aubit4gltest/branches/AubitStable/incl/multiple_test_inc.sh
UTF-8
5,667
3.5625
4
[]
no_license
############################################################################## # Runing multiple configuration of tests (-alltests) ############################################################################## if test "$ALL_TESTS_NONDB" = "1" || test "$ALL_TESTS_DB" = "1"; then #Running all tests - in...
true
03bdd7cb9db0eadab339ea461b22421f5056af95
Shell
snprpc/shadowsocket-manager-script
/check_dir.sh
UTF-8
1,577
4.0625
4
[]
no_license
#!/bin/bash root_directory="/mnt/nfs-data/ShadowSocket/NetStatus" ip_address="0.0.0.0" function get_ip () { curl ip.6655.com/ip.aspx } function sh_init () { get_ip > /root/ip.txt if [ -d "$root_directory" ]; then #echo "The root_directory is exist" return 0 else echo "The root_directory is not exi...
true
f10c88c32c0cbd6f0b3b14d1da1664dfd0261dfd
Shell
aswinsegu/edge-trg-demo
/deploy.sh
UTF-8
241
2.96875
3
[ "MIT" ]
permissive
#!/bin/bash BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" USAGE="Usage: deploy [proxy name]" ORG="org" ENV="test" set -eu cd $BASEDIR apigeetool deployproxy -u $EDGE_USERNAME -p $EDGE_PASSWORD -o $ORG -e $ENV -n $1 -d ./$1
true
3964612d1da3103cf8360814e0a40cbf70c9f15b
Shell
cha63506/holist
/holist-api-server/install.sh
UTF-8
1,079
3.46875
3
[]
no_license
#! /bin/sh # Constants readonly SCRIPT=$(cd "$(dirname "$0")"; pwd) readonly USERNAME=holist # Stop and remove the holist-nodejs container. docker stop holistNodejs holistMongodb docker rm holistNodejs holistMongodb # Create a new directory to save and persist the data outside the MongoDB container. sudo mkdir -p /v...
true
182d02d3676d6dca94f09ef0854c3f2985394998
Shell
sakuyacatcat/django-unit-and-gui-test
/scripts/entrypoint.sh
UTF-8
1,046
3.109375
3
[]
no_license
#!/bin/bash # Set setting env, please exchange the comment out line to switch for the other env export DJANGO_SETTINGS_MODULE="config.settings.dev" # export DJANGO_SETTINGS_MODULE="config.settings.prod" # Install packages for dev or prod, about which packages will be installed, please decide by changing above env val...
true
5f813c4071f7599b7570ad60aa41156aa8773ea7
Shell
onceknown/ledger-graph
/bin/prep-gcloud
UTF-8
403
2.9375
3
[]
no_license
#!/usr/bin/env bash # add gcloud and kubectl to PATH so its available with sudo on circleci if [ -z "$CIRCLECI" ]; then echo "export PATH=$PATH:/opt/google-cloud-sdk/bin $(cat /root/.bashrc)" > /root/.bashrc source /root/.bashrc fi gcloud config set compute/zone us-central1-a gcloud config set project $GCLOUD_P...
true
26d9a8dc62e5a6e1097982fa3de2cebdee8ee314
Shell
h3abionet/refpanels
/v4/03_filter.sh
UTF-8
1,038
3.34375
3
[ "MIT" ]
permissive
#!/bin/bash #SBATCH --job-name='03_filter.sh' #SBATCH --cpus-per-task=32 #SBATCH --mem=232GB #SBATCH --output=./logs/out.log #SBATCH --error=./logs/err.log #SBATCH --time=96:00:00 JOBLOG="./logs/03_filter.log" INPATTERN="~/scratch/v4/02_rsids/v4.chr{}.rs.vcf.gz" OUTPATTERN="~/scratch/v4/03_filtered/v4.chr{}.sn.vcf.gz"...
true
290ebdc605f4b402db836a6a24a0cd300a56ec83
Shell
quickbooks2018/aws
/kubernetes-kind
UTF-8
2,365
2.6875
3
[]
no_license
#!/bin/bash # Purpose: Kafka Cluster In Kubernetes # Maintainer DevOps <Muhammad Asim <quickbooks2018@gmail.com> # Kubectl Installation curl -# -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl" chmod +...
true
18fb4a4d05ab5a604ca91a9f7c6a7e09a6d4da7e
Shell
kumar130/shellscripts
/evalbuild.sh
UTF-8
3,628
3.28125
3
[]
no_license
#!/bin/bash # Evaluate which build needs to be triggered function script_usage { # echo " Usage : $0 <$TAG> <"$MAJ_MIN"_"$SP"PatchScript> <Radia_"$MAJ_MIN"_"$SP"> " echo " Usage : $0 <TAG> <"MAJ_MIN"_"SP"PatchScript> <"Radia_MAJ_MIN"_"SP"> " echo " Example : $0 HPCA7_90_7_AGENT_PATCH 7_90_9PatchS...
true
71be1262e33a3abb942688130c83fedc88ac2946
Shell
ccho-mongodb/miscellaneous-tools
/php_docs_deploy.sh
UTF-8
827
3.8125
4
[]
no_license
#!/bin/sh # version branch names in descending order VERSIONS=(master v1.15 v1.13 v1.12 v1.11 v1.10 v1.9 v1.8 v1.7 v1.6 v1.5 v1.4 v1.3 v1.2 v1.1) # clean git checkout master TODEPLOY=() for i in "${VERSIONS[@]}" do read -p "add branch [$i]? [y/n] " REPLY if [[ $REPLY =~ ^[Yy]$ ]]; then TODEPLOY+=($i)...
true
51ba11f51cee0bc0baaa0cae5f9eacea3c90f838
Shell
victoria168/gezi-blood-pressure-django
/install_db.sh
UTF-8
1,340
3.625
4
[]
no_license
#!/bin/bash # Install PostgreSQL for MMS on Ubuntu 18.04 LTS and configure MMS database, create user for Django, and update connection parameters # Instructions: # 1. Configure the database's name and setup a username and password below # 2. Run this shell script with './install_db.sh' # 3. If everything ran succ...
true
4a8541a0bc8a8344955328ca8434a71ffc1c8280
Shell
imarin2/FlatCAM2FABtotum
/post_process.sh
UTF-8
438
2.640625
3
[]
no_license
#!/bin/bash # $1 => file_in # $2 => rpm feed_rapids='F10000' feed_tool=`cat $1 | grep '^F'` cat $1 | sed "/^G00/ s/$/ $feed_rapids/" | sed "/^G01/ s/$/ $feed_tool/" | sed "/^G21/ d" | sed "/^G94/ d" | sed "/^F/ d" | sed "/^G04 P1/ d" | sed "s/M03/M03 S$2\nG4 S3/g" | sed "s/M05/G4 S5\nM05/g" | sed 's|Y| Y|g' | sed 's|...
true
6b663cffa24e24ec1a7c9720e312d0f2216e2018
Shell
alloy-d/dotfiles
/.gnupg/switch-gpg-smart-card.sh
UTF-8
1,596
4.0625
4
[]
no_license
#!/bin/bash set -uexo pipefail GNUPGHOME=${GNUPGHOME-"${HOME}/.gnupg"} OPERATION="${1-}" CARD="${2-NFC}" KEYGRIPS="AA834B25B3B0F86AE7D7AD04C17C60EBA883461B 8DF7BE7931EB269AD310EBD70817BA7DC310ABFD 8F001E2055E5D202AB32A7D3216499FF133331AE" KEY_DIR="${GNUPGHOME}/private-keys-v1.d" usage() { set +x echo "This is a ...
true
b9504eb8618e1fa00c7719991eb1229046ce6d9b
Shell
toxicafunk/s2i-scala-container
/2.12.10/s2i/bin/run
UTF-8
737
3.765625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash source /opt/app-root/etc/generate_container_user set -e application_jar_file="$APP_FILE" if [ -z "$application_jar_file" ] then # if no app file has been specified, look to see if there is a single # jar file in the app root. if there is a single jar file, it gets run # otherwise raise an erro...
true
ac9436d4a7297e2c9816ef6997ecdab049bf78a4
Shell
thomasgransden/ml4pg
/test/runner.sh
UTF-8
338
3.15625
3
[]
no_license
#!/bin/sh if [ -z "$TESTS" ] then TESTS="coq ssreflect" fi cd "$ML4PG_HOME" || { echo "Couldn't cd to '$ML4PG_HOME'" >> /dev/stderr exit 1 } for TEST_SUITE in $TESTS do export TEST_SUITE echo "Running $TEST_SUITE tests" emacs --quick --debug-init --script test/runner.el 2>&1 | grep -v "^Loadi...
true
a72f04cab7ee9c783766edbe09f0f33810c55a8b
Shell
millerlogic/cluster-deploy
/roles/hosts/service.sh
UTF-8
571
3.546875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash #ROLE_USAGE: auto # Adds your cluster's config/hosts file to the remote /etc/hosts file. SDIR=$(readlink -f `dirname "${BASH_SOURCE[0]}"`) if [ x"$1" == x"install" ]; then ( fgrep -v '#auto#' /etc/hosts echo "# BEGIN - Do not edit this block of hosts or the #auto# comments" while read line; do ...
true
dfbfee383cc1a7e32dcceb5c29abc800356b3abf
Shell
lasanjin/dotfiles
/.scripts/gs
UTF-8
336
3.59375
4
[]
no_license
#!/bin/bash #git status -$@ for all repositories in $repdir gs() { if [ -z "$1" ]; then echo "gs [-s|-v|...]" return 0 fi find $repdir -maxdepth 2 -name ".git" \ -execdir sh -c '(echo "\033[94m"${PWD##*/}"\033[0m")' \; \ -execdir git status $@ \; \ -exec echo \;...
true
fb48446b86b7fbd53fd8694cb0b76142ebcb28e8
Shell
cms-sw/cmssw
/CondCore/SiPixelPlugins/test/testSiPixelTemplateDBObject.sh
UTF-8
3,391
2.734375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # Save current working dir so img can be outputted there later W_DIR=$(pwd); # Set SCRAM architecture var SCRAM_ARCH=slc7_amd64_gcc900; export SCRAM_ARCH; source /afs/cern.ch/cms/cmsset_default.sh; eval `scram run -sh`; # Go back to original working directory cd $W_DIR; # Run get payload data script if [ -d...
true
0b6092aa0a077e09f21bc6a46a3259c06c7d89b9
Shell
abahturin/rsha
/mysql-server_install.sh
UTF-8
316
3.015625
3
[]
no_license
#!/bin/bash mysql_server=$(dpkg-query -W -f='${Status}' 'mysql-server' 2>/dev/null | grep -c "ok installed") if [ $mysql_server -eq 0 ]; then echo "Paigaldame mysql-serveri" apt-get install -y mysql-server; elif [ $mysql_server -eq 1 ]; then echo "mysql-server on paigaldatud" # service mysql-server status fi
true
59ead21ebf28c15f84d094a59b69751381af7933
Shell
Confucius-Mencius/third_party
/build/build_aws_sdk_cpp.sh
UTF-8
1,881
3.0625
3
[]
no_license
#!/bin/bash ############################################################################### # author: BrentHuang (guang11cheng@qq.com) ############################################################################### SCRIPT_PATH=$(cd `dirname $0`; pwd) . ${SCRIPT_PATH}/build_type.sh . ${SCRIPT_PATH}/common.sh echo "b...
true
0d25fc757820f746a4b2e40f19dc90bf7070802e
Shell
miroslavvidovic/tmux-configuration
/setup-tmux.sh
UTF-8
1,826
4.0625
4
[]
no_license
#!/usr/bin/env bash # ----------------------------------------------------------------------------- # Info: # author: Miroslav Vidovic # file: setup-tmux.sh # created: 01.04.2016.-11:45:17 # revision: 20.08.2017. # version: 1.3 # ------------------------------------------------------------------...
true
dd9500baddf0018202af6a3f8c3ad1c73afafc42
Shell
priestd09/linuxScripts
/postgresql/postgreBackup.sh
UTF-8
800
4.125
4
[]
no_license
#!/bin/bash backupDir="/backup/postgresql" numberOfDaysToKeep=90 function main() { databases=`su --login --command "psql -l -t | cut -d'|' -f1 | sed -e 's/ //g' -e '/^$/d'" postgres` for database in $databases; do if [ "$database" != "template0" ] && [ "$database" != "template1" ]; then makeFil...
true
ea971ce368d74d98292545ba4656848ba70b8153
Shell
NealSCarffery/repo
/pypy-hg-beaker/PKGBUILD
UTF-8
1,547
2.734375
3
[]
no_license
# Maintainer: Yichao Yu <yyc1992@gmail.com> _pypyname=pypy-hg _pypyabi=26 _pypy3name=pypy3-hg _pypy3abi=25 pkgbase=${_pypyname}-beaker pkgname=(${_pypy3name}-beaker ${_pypyname}-beaker) pkgver=1.6.4 pkgrel=7 arch=('any') license=('custom') pkgdesc="Caching and sessions WSGI middleware for use with web applications an...
true
944fea73d717cff0a7814cbc2c7d32fa146fb5c4
Shell
VietHTran/BashLibrary
/QuickTest.sh
UTF-8
344
3.359375
3
[]
no_license
#!/bin/bash #Quick way to compile and check error of simple C program if [[ -z "$1" ]]; then echo "Please provide filename as argument in order to perform test" exit fi rm test gcc "$1" -o test if [[ $(ls "test") ]]; then echo "Compile Successfully" ./test valgrind --tool=memcheck ./test else ec...
true