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
b44053faa4f053302aa93b2e8579347a7ffbe002
Shell
TT-F/CS111
/Lab_2B/test4.sh~
UTF-8
291
2.546875
3
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
#!/bin/sh rm -f lab2_list.csv for i in 1 4 8 12 16 do for j in 10 20 40 80 do ./lab2_list --yield=id --threads=$i --iterations=$j --sync=s --list=4 >> lab2_list.csv ./lab2_list --yield=id --threads=$i --iterations=$j --sync=m --list=4 >> lab2_list.csv done done
true
1caf3cf007448c488a0b2f9799cdbaa97bd96fc7
Shell
volkerschmidts/titania
/scripts/helper/extract_trajectory.sh
UTF-8
2,839
3.984375
4
[ "MIT" ]
permissive
#!/bin/bash function print_help { echo "extract_trajectory.sh needs a titania output file" echo "usage: extract_trajectory.sh output.out [-fgnu_format] [-cconfig]" echo "gnuformat: pdf (default)" echo " png" echo " svg" echo "config: file containing chirals centers for plot" e...
true
bed3290f44dbd13961af6a9407fe57a3ac4fda45
Shell
kirihar2/sample-aws-project-hello-world
/run.sh
UTF-8
442
3.296875
3
[ "Apache-2.0" ]
permissive
if [ -f Dockerfile]; then echo "local extension already removed from Dockerfile!" else mv Dockerfile.local Dockerfile echo "Removing local extension from Dockerfile..." fi docker build -t my-app-image . docker run -it --rm -p 3000:8080 my-app-image trap ctrl_c INT declare -r output=my-app.zip function ctrl_c() {...
true
e04b36f5fc18bf243df7c505a2a9c25c2b8d573b
Shell
jackweinbender/dotfiles
/osx/of.zsh
UTF-8
571
2.640625
3
[]
no_license
# Core (Don't use Apple's version) brew install git brew install watchman brew install docker brew install kubectl brew install act # Cask brew install --cask visual-studio-code brew install --cask tuple # Other function init_nvm() { curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash } ...
true
9c8ede7458e9d8e71b9f1491229853b1f26f8776
Shell
cash2one/cherish
/deploy/marathon/manage.sh
UTF-8
1,319
3.828125
4
[]
no_license
#!/usr/bin/env bash set -e ACTION=$1 PLATFORM=$2 SINGLE_APP=$3 ACTION_LIST="list put delete" PLATFORM_LIST="inner online" if ([[ "$ACTION" =~ "$ACTION_LIST" ]] && [[ "$PLATFORM" =~ "$PLATFORM_LIST" ]]) ; then echo "USAGE: $0 <[list|put|delete]> <platform> [<app>]" exit 1 fi source $PLATFORM/config.sh run_sin...
true
c692aa0c7abce7fa45e4d29289144c5237b5f6f8
Shell
liu67224657/besl-scripts
/bin/rotfiles
UTF-8
485
3.796875
4
[]
no_license
#!/bin/ksh # rotfiles - Rotates files # # usage: rotfiles src_file_dir NGINX_LOG_DIR=${1} TAG=`date +%y%m%d.%H%M%S.archives` TAG2=`date -d yesterday +%Y%m%d` # MOVE LOGFILES for NGINXLOG in `/bin/ls ${NGINX_LOG_DIR}/*.log` do mv ${NGINXLOG} ${NGINXLOG}.${TAG}.${TAG2} done #create archives dir if [ ! -d ${NGINX...
true
2da4e8b9c1f78c2a1d8f173f5ad8be8ca86a1971
Shell
zanhsieh/vagrant-salt-master-minion
/install-salt-master.sh
UTF-8
1,220
3.390625
3
[]
no_license
#!/bin/bash if [ ! `grep -q '4505\|4506' /etc/sysconfig/iptables` ]; then echo "Open port 4505, 4506, 5000" sed -i 's|--dport 22 -j ACCEPT|--dport 22 -j ACCEPT\n-A INPUT -p tcp -m state --state NEW -m tcp --dport 4505 -j ACCEPT\n-A INPUT -p tcp -m state --state NEW -m tcp --dport 4506 -j ACCEPT\n-A INPUT -p tcp -m...
true
7bb79f20693af54e2d74cce6cba8b2d7d9dced32
Shell
arnaudsteen/HGCALMarlinProcessor
/script/runDisplayProcessor.sh
UTF-8
3,320
2.71875
3
[]
no_license
#!/bin/bash source /Users/arnaudsteen/ilcsoft/init_ilcsoft.sh export MARLIN_DLL=/Users/arnaudsteen/HGCAL/HGCALMarlinProcessor/lib/libhgcalMarlin.dylib echo " .... Marlin process HGCAL display" path="/data/lcio/calorimeterhit" particle=$1 energy=$2 nevent=$3 seed=$4 inputPath="/Users/arnaudsteen/HGCAL/SiWDigitizer"...
true
4da95285069fd683604352cba3256d6a492b7082
Shell
GuyTeichman/calc_md5_checksum
/md5_folder.sh
UTF-8
98
2.734375
3
[]
no_license
#! /bin/bash # Run MD5 on all files in current folder for file in * do md5sum $file done
true
0109e6653c64168c29574022980936d8802d652d
Shell
decassidy/LPIC-1-OREILLY
/hello-int.sh
UTF-8
89
2.828125
3
[]
no_license
#!/bin/bash # Assign a number to the variable hello_int=1 echo $(( ${hello_int} + 1 ))
true
b220daca2a44e3140a4e32e855eba793711e977f
Shell
gianlucalodo/WEBLOGIC_TOOLS
/server-app_monitor.sh
UTF-8
589
3.1875
3
[ "MIT" ]
permissive
#!/usr/bin/ksh # simple script that monitor Weblogic server status and applications status # this script launch WLST server-app_monitor.pj WORKDIR="<set here workdir>" BANNER="WARNING... Weblogic connection problem !" clear print "\nWLS server and app check\n" . ${WORKDIR}/setWLSTEnv.sh ${JAVA_OPT} -cp ${CLASSPA...
true
4c88d137c93804e44125151466e0d920e5638f9a
Shell
joseph-iussa/colour-picker
/deploy.sh
UTF-8
529
3.359375
3
[ "MIT" ]
permissive
#!/bin/bash set -o errexit -o nounset if [ "$TRAVIS_BRANCH" != "master" ] then echo "This commit was made against the $TRAVIS_BRANCH and not the master! No deploy!" exit 0 fi msg=$(git show -s --oneline HEAD) cd dist git init git config user.name "Joseph Iussa" git config user.email "jiussa@internode.on.net" ...
true
c2e3cc6da460f273f781cabbac0da4140b34dc30
Shell
jamesgoodhouse/Homebrew-Install-Scripts
/brew_cask.sh
UTF-8
936
2.734375
3
[]
no_license
#!/bin/bash apps=( adium adobe-reader alfred android-file-transfer android-studio arduino boxer caffeine charles disk-inventory-x dropbox firefox flux garmin-communicator garmin-express gas-mask gitx google-chrome google-earth inkscape iterm2 karabiner keka limechat lo...
true
a76fe7a8e3258d4598fc3d57c2744b4f22567dcd
Shell
nowlena/dotfiles
/backup.sh
UTF-8
900
3.1875
3
[]
no_license
#!/bin/bash echo "Backing up local files to this repo..." # backup ZSH settings mkdir -p backups/zsh cp ~/.zshrc backups/zsh/.zshrc # backup windows terminal settings mkdir -p backups/windows-terminal WINDOWS_USERNAME=$(/mnt/c/Windows/system32/cmd.exe /c "echo %USERNAME%" | tr -d '\r\n') WINDOWS_TERMINAL_SETTINGS_PA...
true
cc21c00c031884ace275faf0686cdebabeb04eb7
Shell
gawells/ariadne
/ariadne.zsh
UTF-8
7,101
3.640625
4
[]
no_license
masterlog_global='' _ariadne() { # was _loghistory :) # Modified for zsh - Gordon Wells 2014/08 # Detailed history log of shell activities, including time stamps, working directory etc. # # # Based on 'hcmnt' by Dennis Williamson - 2009-06-05 - updated 2009-06-19 # (http://stackoverflow.com/questions/945288/saving-cu...
true
e5ab5c1f1efd472798a47a99b0dadf65517f89f9
Shell
kchillar/apps
/deployusersrvcs/startDockers.sh
UTF-8
1,998
3.265625
3
[ "Apache-2.0" ]
permissive
export DBFILES=/home/kalyanc/Personal/CodeRepos/apps/deployusersrvcs/dbfiles # 1) # Create a network that acts like a LAN # When we create a network, the docker assigns a network id and CIDR or subnet mask to the this network # Each container within the network are assigned IP based on the network id and CIDR of the ...
true
a323ac7f31f70fe4cd085f2a82a5ab03c56e763e
Shell
mshuler/sitewhere-k8s
/utils/restore-zookeeper.sh
UTF-8
2,743
4.1875
4
[]
no_license
# Copyright 2019, SiteWhere LLC. # This script restores a backup of SiteWhere 2.2 Apache Zookeeper # running on a Kubernetes cluster from and backup directory. # usage: restore-zookeeper.sh <BACKUP_DIR> <REPLICAS> export SW_K8S_HOME=$(cd `dirname $0` && pwd) # # Creates Dummy Pods for mounting Apache Zookeeper PVC an...
true
16b09ee4b14b68928a1afb0f4423be3f8d077930
Shell
si3/shenlab-cnvs
/cnv.exome.lib.sh
UTF-8
4,452
3.40625
3
[]
no_license
#Library of functions that will be used in CNV exome pipeline # Function to set target file location when given a target file funcGetTargetFile (){ if [[ "$TGTCODES" == *"$TgtBed"* ]];then eval TgtBed=\$$TgtBed fi } # Function to get input file name from a list of files in an array job funcFilfromLis...
true
7b5ac832b4ad3302609e9925d023d435c78e02fd
Shell
mickmill54/setup-infra
/scripts/importPipelines.sh
UTF-8
2,853
3.578125
4
[ "Apache-2.0" ]
permissive
LOG_LOCATION=./logs exec > >(tee -i $LOG_LOCATION/importPipelines.log) exec 2>&1 YLW='\033[1;33m' NC='\033[0m' if [ -z $1 ] then echo "Please provide the target GitHub organization as parameter:" echo "" echo " e.g.: ./importPipelines.sh <lastname>-dt-kube-demo" echo "" exit 1 else ORG=$1 fi ...
true
958466bc304a95f8218d7d70760cd3f9da626010
Shell
paulau/RHTCO2
/src/conf/rc.local
UTF-8
875
2.84375
3
[]
no_license
#!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. #sudo ntpd -q -g su...
true
de4cab773b212e006415c33d101fd87598c1ac4d
Shell
WhiteCoatAcademy/clindesk.org
/.attic/scripts/run_gunicorn_wca-prod.sh
UTF-8
347
2.625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e LOGFILE=/var/log/gunicorn/wca-prod.log LOGDIR=$(dirname $LOGFILE) NUM_WORKERS=3 USER=prod GROUP=prod WORKER_CLASS="gevent" BIND="127.0.0.1:8002" cd /home/prod/clindesk/ exec gunicorn --bind $BIND --workers $NUM_WORKERS --worker-class $WORKER_CLASS \ --user=$USER --group=$GROUP \ --log-file=$L...
true
bdf972efc3e86da27b9831799f8cb5278b80f6e4
Shell
xorob0/dotfiles
/.config/yadm/test.sh
UTF-8
577
3.515625
4
[]
no_license
#! /bin/bash if [[ "$OSTYPE" =~ ^darwin.* ]]; then if hash brew 2>/dev/null;then echo "✅ brew is installed" else echo "❌ brew is not installed" exit 1 fi fi if [[ "$OSTYPE" =~ ^linux.* ]]; then if [ "$(xdg-settings get default-web-browser)" = "org.qutebrowser.qutebrowser.desktop" ] || [ "$(xdg-settings get ...
true
80bb8b36c236b45051f85136872d8eb1b26b3b0e
Shell
nihalsoans91/Tools
/shell/file-reorder.sh
UTF-8
182
3.15625
3
[]
no_license
#!/bin/bash curdir=${PWD##*/} i=1; temp=$(mktemp -p .); for file in image* do mv "$file" $temp; mv $temp $(printf "img_%s_%0.3d.jpg" $curdir $i) i=$((i + 1)) done rm file-reorder.sh
true
9ddb06f2b711c3b6cc193e5abcfeb2218fd7398f
Shell
omsehgal19/Operating-Systems
/Shell Programs/EvenOdd.sh
UTF-8
156
3.265625
3
[]
no_license
#!/bin/sh echo -n "Enter numnber : " read n rem=$(( $n % 2 )) if [ $rem -eq 0 ] then echo "$n is even number" else echo "$n is odd number"
true
7b7ee8ee213408be185998dba4d9348171e09810
Shell
jmerkow/useful_scripts
/old/check_logs_old.sh
UTF-8
263
3.390625
3
[]
no_license
if [ -z "${1}" ]; then re="*.log" find . -name "$re" for f in $(find . -name "$re"); do echo $f; grep -i iteration $f | tail -2; done else for re in "$@" do for f in $(find . -name "$re"); do echo $f; grep -i iteration $f | tail -2; done done fi
true
cb449dda827c7a6cc6fcd657449945b54103100e
Shell
pirres/dotfiles-5
/.old-stuff/home/afronski/scripts/gssall
UTF-8
181
3.234375
3
[ "MIT" ]
permissive
#!/bin/sh for D in `find . -maxdepth 1 -type d` do pushd $D > /dev/null if [ -e ".git" ]; then echo "$D" git status --short fi popd > /dev/null done
true
7c1fc5057041b35b25b581cfc9d25e00353fea1e
Shell
syq0633/bash-it
/test/lib/search.bats
UTF-8
2,214
2.9375
3
[]
no_license
#!/usr/bin/env bats load ../../lib/composure load ../../plugins/available/base.plugin cite _about _param _example _group _author _version load ../../lib/helpers load ../../lib/search NO_COLOR=true @test "helpers search aliases" { run _bash-it-search-component 'plugins' 'base' [[ "${lines[0]}" =~ 'plugins' && "...
true
a036581b099bdb96bb80eb067157ebfe32cb8ef0
Shell
pinktrink/dotfiles
/.bashrc
UTF-8
2,511
2.765625
3
[]
no_license
#!/usr/bin/env bash ssh-add source $HOME/.dotfiles/all.sh/rc for inc in $HOME/.dotfiles/bash/funcs/*; do if [[ -f $inc ]]; then source $inc fi done # Attempt to correct mistyped dirs shopt -s cdspell # Do not attempt to show possibilities for empty lines shopt -s no_empty_cmd_completion # Ignore c...
true
efae51c7e302cb85821c0ee4085bf2d62b4b9423
Shell
marcelmeulemans/dotfiles
/dotfiles/scripts/screenshot.sh
UTF-8
129
2.6875
3
[]
no_license
#!/bin/bash set -euf -o pipefail FILE="${HOME}/Pictures/screenshot_$(date +%Y%m%d_%H%M%S).png" grim "${FILE}" display "${FILE}"
true
4060d2cb9a33fb5f4329441a0b1572c3094329e8
Shell
indranilpradhan/How-s-The-weather
/q1.sh
UTF-8
815
3.21875
3
[]
no_license
#!/bin/bash if [[ "$#" -eq 1 ]] ; then cityname=$1 #curl wttr.in/"$cityname" latitude=`grep -E -w -i "$cityname" worldcities.csv | cut -d "," -f3 | sed 's/["]*//g'` longitude=`grep -E -w -i "$cityname" worldcities.csv | cut -d "," -f4 | sed 's/["]*//g'` wget -o log.txt -O temp.txt https://darksky.net/forecast/"$l...
true
10b54d9fe5325bb803e1a3c736ea78b5669cd64e
Shell
jqk6/generic_simd
/tools/allgroupspower7.sh
UTF-8
140
2.625
3
[ "BSD-3-Clause" ]
permissive
#/bin/bash LOG=$1_pmc.log echo "run $1 to get pmc" | tee $LOG for group in {0..260} do ./grouppower7.sh $group $1 2>&1 | tee -a $LOG done
true
2c7926c8925578ccf16147e50bedf008f30b9175
Shell
hausgold/ejabberd-read-markers
/exe/compile-xmpp-specs
UTF-8
1,058
2.71875
3
[ "MIT" ]
permissive
#!/bin/bash # # See: http://bit.ly/2LHKFoq # See: http://bit.ly/2M8sgNM set -e rm -rf tmp mkdir -p tmp cd tmp git clone https://github.com/processone/xmpp.git cd xmpp # See: http://bit.ly/2KrucQ0 git checkout 1.2.2 # make all make spec cat ../../specs/mod_read_markers.spec >> specs/xmpp_codec.spec cp include/xmpp_c...
true
32b8b08ebbe032a92e65c520a034880f972ef68f
Shell
clarewest/scripts
/calculate_ssprecision.sh
UTF-8
1,144
3.515625
4
[]
no_license
#!/usr/bin/bash ##### Check to see if PDB file exists if [ ! -f "$1".pdb ] then echo "$1.pdb file not found. Please, make sure the PDB file is the current directory"; exit; fi ##### Calculate the secondary structure using DSSP: /users/oliveira/dssp-2.2.1/mkdssp -i "$1".pdb -o "$1".dssp ##### Parse the second...
true
d1741ebb765ebb4c749830c4de6521d09bbb2ef1
Shell
dpasacrita/tomcat_health_check
/tomcat_restart.sh
UTF-8
2,354
4.0625
4
[]
no_license
#!/bin/bash # Tomcat Restart # This script is used by the tomcat_health_checker script to restart tomcat when it has crashed. # Load bash profile . ~/.bash_profile # Determine PWD, and time. WORK_DIRECTORY="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/" TOMCAT_DIRECTORY="/opt/tomcat/" LOG_DIRECTORY="/var/log/" L...
true
5679ece0579680d97388b9a034fe9c44f3cd9080
Shell
pihizi/mariadb-10.1
/bin/run
UTF-8
344
3.171875
3
[]
no_license
#!/bin/sh [ -d /run/mysqld ] || mkdir -p /run/mysqld [ -d /run/mysqld ] || mkdir -p /var/lib/mysql chown -R mysql:mysql /run/mysqld chown -R mysql:mysql /var/lib/mysql chmod 0700 /var/lib/mysql chmod 2750 /var/log/mysql param=$1 if [ "-${param}-" = "--" ]; then exec /usr/bin/mysqld_safe else exec /usr/bin/mys...
true
435be7a4da128ed0a5793f16b5ac28d385c4f789
Shell
raalkml/build-container
/tests/common.sh
UTF-8
118
2.578125
3
[ "Unlicense" ]
permissive
#!/bin/sh test -n "$TEST_PATH" && PATH="$TEST_PATH" case "$TEST_VERBOSE" in [YyTt1]*) ;; *) exec >/dev/null ;; esac
true
4f4479f470b6222af710f1557e9b87450052feb5
Shell
UNIVERSAL-IT-SYSTEMS/tmux-tests
/tests/colours.test
UTF-8
2,968
2.640625
3
[]
no_license
#!/bin/sh $TMUX_L new -d "$TMUX_L wait never" try_colour() { echo $1 $TMUX_L set -g status-style "bg=$1,fg=$1"\; show -gv status-style 2>&1 } read colours <<EOF black \ 0 \ red \ 1 \ green \ 2 \ yellow \ 3 \ blue \ 4 \ magenta \ 5 \ cyan \ 6 \ white \ 7 \ default \ 8 \ brightblack \ 90 \ brightred \ 91 \ brightgre...
true
625f7e14e467e7357b7b5dbc883a94e0e5aab55d
Shell
alopezmb/vcpe_residentialnw
/init.sh
UTF-8
1,335
3.0625
3
[]
no_license
#!/bin/bash echo "[*] Initialising..." echo "--" echo "--[1/5] Creating AccessNet and ExtNet..." sudo ovs-vsctl --if-exists del-br AccessNet sudo ovs-vsctl --if-exists del-br ExtNet sudo ovs-vsctl add-br AccessNet sudo ovs-vsctl add-br ExtNet echo "--" echo "--[2/5] Starting Residental + (Server + Public) Network ...
true
e1c7568bc2ca3408ff732c698606857de27609b2
Shell
jessegonzalez/meniscus
/util/tenant.sh
UTF-8
1,313
3.859375
4
[]
no_license
#!/bin/bash TARGET_HOST="127.0.0.1" TARGET_PORT="8080" function add_tenant { curl -vv -H "Accept: application/json" -H "Content-type: application/json" -X POST -d "{\"tenant_id\":\"${1}\"}" "http://${TARGET_HOST}:${TARGET_PORT}/v1/tenant"; } function remove_tenant { curl -v -H "Accept: application/json" -H "...
true
b21faf4bb8dd0acc2b540e0da7eab7e17b517bad
Shell
Alex-Aralis/CSCI40300
/project2/procgen
UTF-8
1,112
3.53125
4
[]
no_license
#!/bin/bash if [ -z $1 ] then PROCS=100 else if [ $1 == '-h' ] then echo echo usage: $0 '[PROCS [MAXARRIVAL [MAXEXECUTE [MAXIOEVENTS [MAXPRIORITY]]]]] |' echo " "$0 -h echo exit 0 fi PROCS=$1 fi if [ -z $2 ] then MAXARRIVAL=10000 else...
true
66ccac8a030ef32f437a564123028d70368b38a3
Shell
task3r/mumak
/artifact-evaluation/run_witcher.sh
UTF-8
780
3
3
[ "Apache-2.0" ]
permissive
#!/bin/bash mkdir -p witcher for target in btree rbtree; do #for iter in {1..3}; do for iter in {1..1}; do prefix="witcher-${target}_spt-$iter" echo "$prefix" mkdir -p witcher/"$prefix"-tmp docker run -it \ -v /mnt/pmem0:/mnt/pmem0 \ -v /mnt/ramdisk:/mnt/...
true
ec1f94828f74f9da3f50c9079ebdff3b334f485f
Shell
blanet/sourcegraph
/.buildkite/hooks/post-command
UTF-8
1,694
3.59375
4
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/usr/bin/env bash ( exit_code="$BUILDKITE_COMMAND_EXIT_STATUS" BUILDEVENT_APIKEY="$CI_HONEYCOMB_API_KEY" BUILDEVENT_DATASET="$CI_BUILDEVENT_DATASET" export BUILDEVENT_DATASET export BUILDEVENT_APIKEY buildevents step "$BUILDKITE_BUILD_ID" "$BUILDKITE_STEP_ID" "$STEP_START" "$BUILDKITE_STEP_K...
true
2d90d375e06c34a584cecdec2d4512bc8a3607dd
Shell
mylanconnolly/dotfiles
/install.sh
UTF-8
604
3.015625
3
[]
no_license
#!/bin/bash DOTFILES_DIR="$(dirname -- $(readlink -f "$0"))" CONFIG_DIR="$HOME/.config" NEOVIM_DIR="$CONFIG_DIR/nvim" # Install neovim configuration mkdir -p "$NEOVIM_DIR" [ -f "$NEOVIM_DIR/init.lua" ] || ln -s "$DOTFILES_DIR/config/nvim/init.lua" "$NEOVIM_DIR/init.lua" [ -d "$NEOVIM_DIR/snippets" ] || ln -s "$DOTFIL...
true
b1fe2ec526209337d2ac4f24f8e6dc551e95c0d5
Shell
jd1100/Compilers-COP4620
/prj3/a.out
UTF-8
20,292
3.625
4
[]
no_license
#!/bin/sh # This is a shell archive (produced by GNU sharutils 4.7). # To extract the files from this archive, save it to some FILE, remove # everything before the `#!/bin/sh' line above, then type `sh FILE'. # lock_dir=_sh11243 # Made on 2020-02-27 21:36 EST by <n01177471@osprey.unfcsd.unf.edu>. # Source directory was...
true
d05e48a3f0772d73d4a7ea0fb928b80ddc4b9061
Shell
tyehle/stack-interactive
/stack-interactive
UTF-8
395
3.046875
3
[]
no_license
#!/bin/bash runLine="\n--------------------- RUN ---------------------\n\n" doneLine="\n--------------------- DONE --------------------\n\n" args=("${@/#/\"}") args=("${args[@]/%/\"}") cmd="stack build && printf '$runLine' && stack ${args[@]} && printf '$doneLine'" while true; do find -regextype posix-extended ...
true
102a7641060f0a99643e5cfb0ee3658a7a6b066f
Shell
xlin/Motiw
/all_base_backup.sh
UTF-8
395
3.1875
3
[]
no_license
#!/bin/bash BASE_DIR="/home/xlin/base" mysqlshow -u root > base.txt cat base.txt | grep -v "+" | tr '|' ' ' | while read line do echo -e "${line}" if ! [[ $line == "Databases" || $line == "information_schema" || $line == "performance_schema" ]]; then mysqldump -u root -f $line > ${BAS...
true
1a3c7357685a17e670b757d03b75cdb951e1e3cc
Shell
cmme7/autoxmrigCC
/auto.sh
UTF-8
1,349
2.921875
3
[]
no_license
#!/bin/bash # go to root cd # adding gcc repository add-apt-repository -y ppa:jonathonf/gcc-7.1; # reupdate source apt-get -y update; # server update & requesting apps install sudo apt-get -y install git build-essential cmake libuv1-dev libmicrohttpd-dev libssl-dev wget; # install cmake sudo apt-get install cmak...
true
c5c6b3c63e64988626bec3651603e993fe122ca2
Shell
midipix/crosware
/recipes/ncurses/ncurses.sh
UTF-8
1,440
3.109375
3
[]
no_license
# # XXX - need to maintain version symlinks for hard-coded paths to termcap/terminfo files # XXX - i.e., 6.1 -> 6.2, 6.2 -> ... # rname="ncurses" rver="6.1" rdir="${rname}-${rver}" rfile="${rdir}.tar.gz" rurl="https://ftp.gnu.org/gnu/${rname}/${rfile}" rsha256="aa057eeeb4a14d470101eff4597d5833dcef5965331be3528c08d99ce...
true
22ce38aa250dabbf3f23dc5f381c41d9b638c887
Shell
joaopedrotaveira/Skywave-Linux
/files/scripts/cjdns-controller.sh
UTF-8
2,698
3.34375
3
[]
no_license
#!/bin/sh Encoding=UTF-8 stopcjdns(){ /etc/init.d/cjdns stop sleep 2 systemctl stop cjdns } startcjdns(){ systemctl start cjdns sleep 2 /etc/init.d/cjdns start } restartcjdns(){ /etc/init.d/cjdns restart } updatecjdns(){ /etc/init.d/cjdns update } copyfile(){ systemctl stop cjdns cp $ans /etc/cjdroute.conf sleep 2...
true
8a46c943d92eb38c9a6f0800ff72c8f3fcd98dfe
Shell
Staff-d/hydrafy-gitlab
/copy-nix-store.sh
UTF-8
484
3.484375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash if [ -z $1 ]; then echo "Please provide a image digest as the first parameter..."; exit 1; fi set -eu DOCKERCONTAINER="$1" SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" BACKUPDIR="$SCRIPTDIR/nix-backup" HELPERDIR="$SCRIPTDIR/helper" rm -rf "$BACKUPDIR" || true...
true
44d37db816531328752a6af964ce758d45e27b0a
Shell
bdesham/cu-busboard
/routes/list_new_routes
UTF-8
412
3.59375
4
[ "LicenseRef-scancode-public-domain", "Unlicense" ]
permissive
#!/bin/sh # list_new_routes # Given an old formats.txt and a new routes list, show which routes are new. # If applicable, routes that were removed are listed afterward. # # usage: list_new_routes formats.txt routes.txt temp=`mktemp` || exit 1 cut -f1 -d, $1 > $temp comm -13 $temp $2 removed=`comm -23 $temp $2` if [ ...
true
517dd9c1f3d0556f96c321c1c7dde7894722fabb
Shell
YanMengxiao/HPA
/src/split_bam.sh
UTF-8
942
3.53125
4
[]
no_license
#!/bin/bash ### ### Syntenic haplotype blocks extraction for polyploid and its wild relative ### ### Usage: ### split_bam.sh <Reference> <Wild relative> <Chromosome> <Params> ### ### Options: ### <Reference> The reference accession name ### <Wild relative> The wild relative name ### <Params> Path of par...
true
e96a7fdf844a5c2c17da87e3fd28ebaffa973d87
Shell
ssardina-agts/BLAK
/src/distfiles/scripts/resultSummary.sh
UTF-8
812
3.90625
4
[]
no_license
#!/bin/bash #--- Parse arguments if [ "$2" == "" ]; then echo "usage: $0 <path-to-results-root-dir> <output-dir>" exit fi path=$1 outpath=$2 #--- Helper function getTreeInfo() { infile=$1 tail -10000 $infile | egrep "number of instances|Number of Leaves|Size of the tree|Outcomes for" } getTries() { infile=$1 tmpfil...
true
adfc697783117dd626fe598e0869479dc09176b2
Shell
divVerent/divTrololo
/mount.sh
UTF-8
320
3.140625
3
[]
no_license
#!/bin/sh root="$HOME/.local/share/supertux2" if ! [ -d "$root" ]; then echo >&2 "SuperTux hasn't run yet. Please start and quit SuperTux first" echo >&2 "to confirm the data location!" exit 1 fi set -ex mkdir -p "$root/levels/divTrololo" bindfs --no-allow-other "$PWD/levels/divTrololo" "$root/levels/divTrololo"
true
c18ca07549ff2a553d3ed16856a28ad4d69b5196
Shell
anmolnagpal/noddy
/toyland/plugins/general
UTF-8
9,595
3.3125
3
[]
no_license
#!/bin/sh #-------------------------------------------------------------------- # General Variables #-------------------------------------------------------------------- _W_DEVICE=${_W_DEVICE:-en0} #-------------------------------------------------------------------- # General Utilities #----------------------------...
true
2af02f0a55a17924211124532eb3d0e981fb8895
Shell
SchildiChat/SchildiChat-android
/correct_strings_de.sh
UTF-8
9,284
3.078125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # Don't call this script directly, but from correct_strings.sh! # It is a separated file for easier dynamic patching # Replace known forms with easier grep-able ones: sed -i 's|!nnen|wolpertinger|g' "$strings_de" sed -i 's|[/:*]innen|wolpertinger|g' "$strings_de" sed -i 's|!n|schlumpfwesen|g' "$strings_de...
true
e03cc196c7608b909baa84a4c2dd88b0059dbd7c
Shell
Log-Loss/neo4j-cluster
/create.sh
UTF-8
902
3.015625
3
[]
no_license
#!/bin/bash # start neo4j container i=1 while [ $i -lt 3 ] do docker rm -f core$i &> /dev/null docker rm -f replica$i &> /dev/null echo "start core$i container..." docker run -itd --net=neo4j \ -p $(( $i ))7474:7474 \ -p $(( $i ))7687:7687 \ --name core$i --hostna...
true
73d6f3546a0e892a4b75313b1492ac6c432e2cb8
Shell
TitanNit/tdt
/tdt/flash/nor_flash/scripts/flash_part_w_fw.sh
UTF-8
6,489
3.265625
3
[]
no_license
#!/bin/bash CURDIR=$1 TUFSBOXDIR=$2 OUTDIR=$3 TMPKERNELDIR=$4 TMPROOTDIR=$5 TMPVARDIR=$6 echo "CURDIR = $CURDIR" echo "TUFSBOXDIR = $TUFSBOXDIR" echo "OUTDIR = $OUTDIR" echo "TMPKERNELDIR = $TMPKERNELDIR" echo "TMPROOTDIR = $TMPROOTDIR" echo "TMPVARDIR = $TMPVARDIR" MKFSJFFS2=$TUFSBOXDIR/host/bin/...
true
f0dbbb28273353d46b166de05327ce0880e9e557
Shell
geometryolife/LCLaSSB
/Chapter11/e5_userVar.sh
UTF-8
629
3.609375
4
[ "MIT" ]
permissive
#!/bin/bash # 用户变量 # 长度不超20个,且区分大小写 # 变量、等号、值之间不能出现空格 var1=10 var2=-57 var3=testing var4="still more testing" # testing variable days=10 guest="Katie" echo "$guest checked in $days days ago" days=5 guest="Jessica" echo "$guest checked in $days days ago" # assigning a variable value to another variable value1=10 val...
true
e657efd6dcbd7c87113eb6bd7f05478e5c6c94e2
Shell
funollet/dotfiles
/bash/.bash.d/fasd.bash
UTF-8
706
3.515625
4
[]
no_license
#!/bin/bash eval "$(fasd --init auto)" unalias d unalias z unalias f function d() { fasd -dRl "$1" | fzf -1 -0 --no-sort +m } # fasd & fzf change directory - jump using `fasd` if given argument, # filter output of `fasd` using `fzf` else function z() { [ $# -gt 0 ] && fasd_cd -d "$*" && return local dir...
true
b5435507554e2c3bb7de95f333c3d8d913a25e20
Shell
exploit-inters/LinuxBackupBot
/simple-backup.sh
UTF-8
1,947
3.6875
4
[ "MIT" ]
permissive
#!/bin/bash ### CONFIGURATION ### backupSource=/media/storage backupTarget=/media/storage-backup ### END OF CONFIG ### currentDTime=`date +%F-%T` startTs=$(date +"%s"); logDirectory=/var/log/backup logFile=$logDirectory/storage-$currentDTime mountpoint -q $backupSource if [ $? -ne 0 ] then echo $backupSource is not...
true
fbeb3a4099adffaa7d2c5aebfb944b91451ece36
Shell
rainaarya/Refresher_Module_OS
/Assignment3/a3q2.sh
UTF-8
1,553
4.28125
4
[]
no_license
#!/bin/bash add() { sum=0 for number in "$@"; do #loop over all arguments passed ((sum += number)) done echo Sum is $sum } sub() { subval=$1 for number in "${@:2}"; do #loop over all arguments passed after the 1st argument passed ((subval -= number)) done echo Subtrac...
true
4bfa159d62f6da636047251717a71822d89af8c0
Shell
erickeller/etckeeper-repomir
/etckeeper/uninit.d/50vcs-uninit
UTF-8
464
3.40625
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
#!/bin/sh set -e if [ "$VCS" = git ]; then rm -rf .git file=.gitignore elif [ "$VCS" = hg ]; then rm -rf .hg file=.hgignore elif [ "$VCS" = bzr ]; then rm -rf .bzr file=.bzrignore elif [ "$VCS" = darcs ]; then rm -rf _darcs file=.darcsignore fi managed_by_etckeeper="managed by etckeeper" if ! grep -q "$manag...
true
de28d5263c518cd9df71bc5854f770c8e053da1c
Shell
actimeo/var
/update.sh
UTF-8
1,676
2.984375
3
[]
no_license
#! /bin/bash . config.sh if [ "$DBNAME" = "" ]; then echo "ERR: DBNAME non défini dans inc/config.sh"; exit; fi if [ "$DBPASS" = "" ]; then echo "ERR: DBPASS non défini dans inc/config.sh"; exit; fi if [ "$DBUSER" = "" ]; then echo "ERR: DBUSER non défini dans inc/config.sh"; exit; fi FILES= FI...
true
20db16e9afdcab808fe97b67fad8cd05bf80c124
Shell
GusW/shell_main
/projects/controlM/remove_ajob.sh
UTF-8
805
2.703125
3
[]
no_license
#!/bin/bash export PGHOME=/opt/postgres/9.1 export PGDATA=/opt/postgres/9.1/data export PATH=/opt/postgres/9.1/bin:$PATH export LD_LIBRARY_PATH=/opt/postgres/9.1/lib:$LD_LIBRARY_PATH export PGUSER=postgres export PGDATABASE=postgres export PGPORT=5432 DATE=$(date +%y%m%d) DATE_3=$(date -d "-3 days" +%y%m%d) USUARIO=...
true
c5b07b6a42b9e34855e364a3c3cda142a98aec68
Shell
sounz/SOUNZ-Online
/sounz-1.62.0/sounz/vendor/plugins/acts_as_solr/test/solr/solr/bin/readercycle
UTF-8
2,843
3.796875
4
[ "MIT" ]
permissive
#!/bin/bash # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); yo...
true
a9ec4e45d31b4ec7ec95154222cf1c7069e2f301
Shell
eliezio/vagrant-trusty64-cvs2git
/install-pkgs.sh
UTF-8
784
3.84375
4
[]
no_license
#!/usr/bin/env bash set -e -x sudo apt-get -qq update REQUIRED_PKGS="git bison flex cmake wget bsdtar g++" # Check for missing packages MISSING_PKGS="" for pkg in $REQUIRED_PKGS; do if ! dpkg -s $pkg &> /dev/null; then MISSING_PKGS="$MISSING_PKGS $pkg" fi done if [ "$MISSING_PKGS" ]; then sudo ...
true
ee35f207836424ee26d6ac1a5657455639b22a35
Shell
renovate-bot/gke-application-security-demo
/terraform/modules/instance/scripts/deploy.sh
UTF-8
2,261
2.953125
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # Copyright 2018 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
true
f2edbabbc8a86f31db9d5031c66b4fcdabb52efb
Shell
arturokkboss33/haar_classifier_pipeline
/programs/.compile_opencv_boost.sh
UTF-8
554
3.59375
4
[]
no_license
#!/bin/bash echo "compiling $1 in $2 mode" cmode=none if [[ $2 == debug ]] then cmode=ggdb elif [[ $2 == release ]] then cmode=O2 else cmode=ggdb fi if [[ $1 == *.c ]] then gcc -$cmode `pkg-config --cflags opencv` -o `basename $1 .c` $1 `pkg-config --libs opencv` -lboost_filesystem -lboost_system; elif [[ $1 =...
true
ad5b6e4d13f6b0fe82ee6abf00dbcf1468ad87db
Shell
unknowndevQwQ/trojan-go_deploy.sh
/trojan-go deploy.sh
UTF-8
4,909
3.453125
3
[]
no_license
#!/bin/bash #网页模版由 https://github.com/phlinhng 大神整理。其他细节也多有参考其脚本 https://github.com/phlinhng/v2ray-tcp-tls-web/blob/vless/src/v2gun.sh export LC_ALL=C export LANG=en_US export LANGUAGE=en_US.UTF-8 apt -y update apt -y upgrade apt install -y wget curl socat jq unzip nginx #读取域名 read -p "Please enter your domain: " domai...
true
5c7c5fb3f52b94d6e7e149c9102886d4b746d916
Shell
giang12/kubepi
/rpc/_set_hostname.sh
UTF-8
439
3.578125
4
[ "MIT" ]
permissive
#!/bin/bash -e user=$1 address=$2 hostname=$3 ssh $user@$address << EOF if [[ \$(sudo grep "$hostname" /etc/hostname) ]] ; then echo "Hostname already configured" else echo "Running apt-get update" sudo apt-get update sudo apt-get install -y policykit-1 echo "Setting hostname to $hostname" sudo hostname ...
true
72d9f85e0b96a9c5fcc760ef3bae9a50de817dda
Shell
gemc/clas12Tags
/ci/detectors_test.sh
UTF-8
2,421
3.90625
4
[]
no_license
#!/usr/bin/env zsh # Purpose: # Runs gemc using the gcards inside 'tests' directory (if existing) # inside each detectors clas12/ subdirs # Assumptions: the name 'tests' of the tests directory. # The remote container (for now) is based on fedora 36, so cvmfs action is not available, # see https://github.com/cvmfs-co...
true
fc60869c2eb8859412a790bcbc564883e2a94ac3
Shell
Cphrampus/git-functions
/testall.sh
UTF-8
590
3.578125
4
[]
no_license
#!/bin/bash init() { # save any existing changes git stash -u &> /dev/null touch {1..9} } clean_up() { rm {1..9} git stash pop &> /dev/null } init # get the base for tests source ./tests/test_base.sh for i in gitdo,git,add cody,,"git add" do OLDIFS=$IFS IFS=',' read folder pre_command command <<< "${i}" IF...
true
75f5b8ae76ca4d0b124b2254edc0ce8b8996238c
Shell
gigayak/buildsystem
/pkgspecs/tools3-gcc-aliases.make.sh
UTF-8
816
3.40625
3
[ "OPUBL-1.0", "curl", "MIT", "Apache-2.0" ]
permissive
#!/bin/bash set -Eeo pipefail # This file is derivative of the LFS and CLFS books. Additional licenses apply # to this file. Please see LICENSE.md for details. # This will force all dep files to be marked as "installed", even # though many of them are unchanged. As a result, the package will # contain all of the fi...
true
8aaf3fcdf1a4566cbd4377c1dc86ba448c206968
Shell
jdcasey/docker-atlassian-confluence
/profile.d/java
UTF-8
110
2.53125
3
[ "MIT" ]
permissive
#!/bin/bash JHOME=$(ls -1d /opt/jdk/* | head -1) export JAVA_HOME="$JHOME" export PATH=$JAVA_HOME/bin:$PATH
true
56dc22f2b22f81b1aacfc072a02eb102ee6cc6a1
Shell
jardsonbaia/Scripts
/pegadinha
UTF-8
845
3.28125
3
[]
no_license
#!/usr/bin/env bash # --------------------------------------------- # Script : pegadinha # Descrição: brincadeira para treinar a concatenação de strings. # Versão : 0.1 # Autor : Jardson Baia # Data : 26/04/2021 # Licença : GNU/GPL v3.0 # --------------------------------------------- # Uso: ./pegadinha ou ca...
true
02387f71853758b97fcce8c4972ba29ced9fee6b
Shell
tbrunz/installer_scripts
/src/installers/z-scripts/fix-bash.sh
UTF-8
12,398
3.984375
4
[ "Apache-2.0", "MIT" ]
permissive
#! /usr/bin/env bash # # ---------------------------------------------------------------------------- # Edit .bashrc to fix the 'll', 'la', 'l' aliases # ---------------------------------------------------------------------------- # # # Maintain a list of "excluded users"; i.e., a list of directories # in '/home' that...
true
e82cbd533ca225dc4fe169f042fc1a904d90ae09
Shell
rwahs/import-scripts
/bin/checkCollectiveAccess
UTF-8
495
3.71875
4
[ "MIT" ]
permissive
#!/usr/bin/env bash set -e set -u hash caUtils 2>/dev/null || { echo >&2 "You need to have caUtils from the CollectiveAccess installation directory on your PATH" exit 1; } if [ -z "${COLLECTIVEACCESS_HOME-}" ];then echo >&2 "You should have the COLLECTIVEACCESS_HOME environment variable defined" exit 1 ...
true
df1b3e060e9dc27cc9c2da1497d6a2aaa4b36a9e
Shell
lux563624348/HPC_colonial_one
/ws3/more_complex_for_loop.sh
UTF-8
148
2.84375
3
[]
no_license
#!/bin/bash LIST=(`ls /home/$USER/hpcworkshop_3/*sh`) for NAME in ${LIST[@]}; do echo $NAME | awk '{split($0,a,"\\.sh") ;print a[1]".bash"}' ; done
true
10a85e968769078e848fddd5446aabaf4988148c
Shell
pongcn/myenv
/.config
UTF-8
253
2.53125
3
[]
no_license
#!/bin/bash # config for myenv pj_name="myenv" export myenv_root_path="$HOME/code/myenv" export MYENV_ROOT_PATH="$HOME/code/myenv" myenv_dir_name="$(basename $MYENV_ROOT_PATH)" search_components="$(find ${MYENV_ROOT_PATH}/src/components/ -name '*.sh')"
true
0ee329c781b8f0024c01fd0c4533447f10a16f6d
Shell
Jibux/scripts
/link_to_bin.sh
UTF-8
877
4.46875
4
[]
no_license
#!/bin/bash # # This simple bash script will link any files given in command line to /home/user_dir/bin/ # usage() { echo "Usage: $0 [-f] script1 script2 script3 etc." echo echo "-f: overwrites files/symlinks" } FORCE="no" while getopts "f" option; do case "${option}" in f) FORCE="yes" ;; *) ;; es...
true
2b12313111dd05e6f2ab75fb6dfeba66a3ebcc4b
Shell
camillobruni/script
/gdb.sh
UTF-8
122
3
3
[]
no_license
#!/bin/sh echo "**** Child $$ starting: y to debug" read input if [ "$input" = "y" ] ; then gdb --args $* else $* fi
true
57a95b69c65eea4ad697618e056bb02765bda742
Shell
brianvanburken/dotfiles
/config/zsh/functions/bench_shell
UTF-8
305
3.359375
3
[]
no_license
# vim: set ft=zsh: # Benchmarks the current shell function bench_shell() { readonly shell="${1-${SHELL}}" if ! command -v hyperfine &> /dev/null then for i in $(seq 1 10); do time "${shell}" -i -c 'exit 0'; done else hyperfine --warmup 5 "${shell} -i -c 'exit 0'" fi }
true
f3608c6dcb2992bfb2ec2ac20985ad2bbd3f0192
Shell
Gems/transpiling-watch
/transpile.sh
UTF-8
807
3.828125
4
[]
no_license
#!/usr/bin/env bash set -e source=$1 [ -z "$source" ] && read source [ -z "$source" ] && >&2 echo "No file specified" && exit 1 echo $source source=$(readlink -f $source) dir=$(dirname $source) while [ -n "$dir" -a "$dir" != "/" ]; do watch="$dir/.watch" [ -f "$watch" ] && break dir=$(dirname $dir) watch="" ...
true
b95a19d208a3fc8db98230f1e2d4ca7c01da60df
Shell
Serg-Norseman/UsefulScripts
/Search_Files/find_sources.sh
UTF-8
385
3.234375
3
[ "MIT" ]
permissive
#! /bin/bash # Copyright (c) 2018, Ruslan Garipov. # Contacts: <ruslanngaripov@gmail.com>. # License: MIT License (https://opensource.org/licenses/MIT). # Author: Ruslan Garipov <ruslanngaripov@gmail.com>. # This script searches for files, which names match the specified regex # ('.+\.[hcxr]+'), and which contain text...
true
b6a1190def23e09f7880f8016913fc56b1d6dc76
Shell
agurk/tools
/connect.sh
UTF-8
1,204
3.921875
4
[]
no_license
#!/usr/bin/bash CONFIG_FILE="$HOME/tools/connect_config.sh" #### CONFIG FILE ########################################## #### There should be a file for the config in the format ## # # AUTH_FILE="/path/to/file" # # declare -A SERVERS # SERVERS[EXAMPLE]=user@server.com # # declare -A AUTHFILES # AUTHFILES[EXAMPLE]=AUTH...
true
3b9fbc87641293cd97254f47a6fcdea0fad1d7ad
Shell
Rycieos/dot-files
/bash/bashrc
UTF-8
3,958
3.515625
4
[]
no_license
# There are 3 different types of shells in bash: the login shell, normal shell # and interactive shell. Login shells read ~/.profile and interactive shells # read ~/.bashrc. To make all shells read ~/.bashrc, load it in ~/.bash_profile [[ -d ~/bin ]] && export PATH=~/bin:$PATH hash vim 2>/dev/null && export EDITOR=vim...
true
fdb7e72ccd262b4197f7b294596f533b6f997c95
Shell
ez3r0sec/JamfProThreatHunting
/Persistence/detectServices.sh
UTF-8
1,026
3.8125
4
[ "MIT" ]
permissive
#!/bin/bash # ----------------------------------------------------------------------------- # detectServices.sh # check for services like Apache and SMB running on the machine # Last Edited: 7/15/18 Julian Thies # ----------------------------------------------------------------------------- ### VARIABLES runServ="/tmp...
true
e3d992da96dd9852aede05108b8e162190fd1a43
Shell
mission-apprentissage/cerfa
/.infra/ansible/roles/setup/files/cerfa/tools/restore-mongodb.sh
UTF-8
447
3.28125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash set -euo pipefail #Needs to be run as sudo readonly SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" readonly BACKUP_FILE=${1:?"Please provide a backup file path"}; shift; echo "Restoring ${BACKUP_FILE}..." bash "${SCRIPT_DIR}/gpg/decrypt.sh" <"${BACKUP_FILE}" | docker exec -i cerfa_mo...
true
cf5e5306c8832d7bafb93bc70b665c5b4b55e2e4
Shell
galatgithub/wiibee
/test_gpio.sh
UTF-8
278
2.890625
3
[]
no_license
#! /bin/bash # Test gpio writing # use : test_gpio [GPIO#] echo "GPIO number ?" read N_GPIO #for i in `seq 1 10`; #do gpio mode $N_GPIO out sleep 0.1 gpio write $N_GPIO 0 sleep 0.1 gpio write $N_GPIO 1 sleep 0.1 python wiiboard.py # echo $i #done
true
db485242b7e57ad65e200c469be3b233c2c94eb8
Shell
Stebalien/misc
/clock
UTF-8
2,008
4.15625
4
[]
no_license
#!/bin/bash timesheet=${TIMESHEET:-$HOME/timesheet} CMD=$1 shift num=$(tail -1 $timesheet|wc -w) if [[ $num -eq 1 ]]; then state="in" elif [[ $num -eq 2 ]] || [[ $num -eq 0 ]]; then state="out" else echo "Invalid Timesheet" >&2 exit 1 fi case $CMD in "") echo "Timesheet - Clocked...
true
d3b4dbe36c4923ede3346c68f0cfb794f5b6bec9
Shell
rajeshp0505/openam-oidc
/openam/install.sh
UTF-8
2,208
2.640625
3
[ "MIT" ]
permissive
export STAGE=/opt/iam/stage/openam export SSO_ADM=/opt/iam/stage/openam/tools/SSOAdminTools-13.0.0 export SSO_CONFIGURATOR_HOME=$STAGE/tools/SSOConfiguratorTools-13.0.0 export passFile=/opt/iam/stage/openam/ampass # STEP -1 java -jar $SSO_CONFIGURATOR_HOME/openam-configurator-tool-13.0.0.jar --file $STAGE/conf/base.co...
true
e93b1e38af27fb5a26a1aedd991075ada4265102
Shell
berghaus/atlasgce-scripts
/cloudscheduler/bootstrap.sh
UTF-8
2,818
3.5625
4
[]
no_license
#!/usr/bin/env sh message() { echo "INFO: $1" } error() { echo "ERROR: $1" 1>&2 exit $2 } mount_script=/var/run/mount.sh node_template=/var/run/node-template.pp puppet_log=/root/puppet.log cat << "__EOF__" > $mount_script #!/usr/bin/env sh format_and_mount() { echo "Creating logical volume $1 with $3 and m...
true
8d507bb53acdaf52dd3a4d7638176f1df80fbe78
Shell
Insolabs/vivendo_terminal
/db_dump.sh
UTF-8
512
3.625
4
[]
no_license
#!/bin/bash # Esse script faz um DUMP do banco de que está em um servidor que é acessível via ssh # Declarando variáveis apra o script DATABASE="dbname"; FILE="$DATABASE-dump.sql"; SERVER="serveraddr"; # Acessando o servidor via SSH e executando o dump ssh $SERVER << EOF mysqldump -u user -p pass $DATABASE > $FI...
true
543b9e2574bb8faf826acad7ee055cafa9534905
Shell
yusukeyurameshi/usage_reports_to_dbcs
/Usage-Report/setup/setup_packages.sh
UTF-8
4,714
3.015625
3
[ "UPL-1.0", "Apache-2.0" ]
permissive
#!/bin/bash ############################################################################################################################# # Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at h...
true
74921c240b6558ed1e0c34c2adfc39451a0dd960
Shell
federico123579/Forecaster
/scripts/release.sh
UTF-8
167
2.984375
3
[ "MIT" ]
permissive
#!/bin/sh read -p "What version do you want to release?: " version cd $(dirname $(dirname ${BASH_SOURCE[0]})) # go to source git tag $version git push --tag git push
true
208452fcbb1d32eddb4420079d02ec7739c51d10
Shell
Blue-Rocket/nginx-buildpack
/bin/compile
UTF-8
3,067
3.59375
4
[ "MIT" ]
permissive
#!/bin/bash # Heroku standard way to log buildpack info to console status() { echo "-----> $*" } set -e # fail fast set -o errexit # always exit on error set -o pipefail # don't ignore exit codes when piping output unset GIT_DIR # Avoid GIT_DIR leak from previous build step build_dir=$1 cache_d...
true
f9576ab8a3ea65d274a114521497d2c5bc78265a
Shell
ianferguson/dotfiles
/brew/starter
UTF-8
943
3.640625
4
[]
no_license
#!/bin/bash # crude replcaement script for running Brewfiles written when brew bundle was # still supported (and even recommended over writing your own shell script!) # by the homebrew devs set -e set -o pipefail set -x pushd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null (brew --version && echo "brew already install...
true
6ae6d0ba12cf6f1f91f57bf6dc9ce88636ccddec
Shell
NeminiCedamus/Bat-Drone-Software
/git-tools/fsw-server-hooks/post-receive
UTF-8
368
2.796875
3
[]
no_license
#!/bin/sh DIR=~/Bat-Drone-Software echo "Updating ${DIR}" git --work-tree ${DIR} checkout -f cd ${DIR} echo "Generating build files" cmake . -DFSW=ON echo "Compiling" cd fsw make -j$(( $(nproc --all) + 1)) fsw echo "Starting FSW" sudo make install sudo systemctl daemon-reload #sudo systemctl enable fsw su...
true
b72b3422b640dcd41ca2ba35bedaaf99fb8b2834
Shell
Linary/study_shell
/src/crontab_append.sh
UTF-8
211
3.34375
3
[]
no_license
#!/usr/bin/env bash function crontab_append() { local job="$1" crontab -l | grep -F "$job" >/dev/null 2>&1 if [ $? -eq 0 ]; then return 1 fi (crontab -l ; echo "$job") | crontab - }
true