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
27e75790e3944dc2cb79285d40d008a41458157a
Shell
Spidey01/ngen
/m.sh
UTF-8
984
3.328125
3
[ "Apache-2.0" ]
permissive
#!/bin/sh set -e set -v git submodule init git submodule update bootstrapdir=bootstrap.gcc mkdir -p $bootstrapdir # set -e = die if no g++. gcc_version=$(g++ -dumpversion) cxx="g++" if [ "$gcc_version" -ge 7 ]; then ngen_cxx_std="c++17" # cool: https://stackoverflow.com/a/33159746/352455 if [ "$gcc_ver...
true
0173d2e2cbe21fa1b3dbfaa5ca2521719bcf80da
Shell
jampaniuday/scripts-2
/linux/copy_to_smb2.sh
UTF-8
340
3.1875
3
[]
no_license
MOUNT_DIR=$HOME/windows_share REMOTE_DIR=//FS/TESK_LKK/ BACKUP_DIR=$HOME/9.4/backups/ # check if share is mounted if mountpoint -q -- $MOUNT_DIR; then printf '%s\n' "$dir is mounted" else printf '%s\n' "$dir is not mounted, exiting" && exit 1 fi # Copy backups to remote windows location rsync -avz $BACKUP_DIR $...
true
fb8f6c15231bea5bf7f3885fc5026c32a360d75a
Shell
knu/sh-functions
/test/test_sh_escape.sh
UTF-8
686
3.546875
4
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/sh cd "${0%/*}" || exit . ./helper.sh . ../lib/sh_escape.sh args () { local arg i=0 for arg; do i=$((i+1)) printf '%d:[%s]\n' "$i" "$arg" done } assert_command_output 'white space' 0 \ '1:[ a] 2:[ b c ] 3:[d e] ' \ '' \ eval args "$(sh_escape " a")" "$(sh_escape " b c ")" "$...
true
2df3d8cab07771e4cb424f44b88be5d2a3b2e900
Shell
mirabilos/z-archival-misc
/mvnparent/src/main/ancillary/progress-bar
UTF-8
4,799
3.0625
3
[ "MirOS" ]
permissive
# -*- mode: sh -*- # $MirOS: contrib/hosted/tg/progress-bar,v 1.4 2018/12/02 08:12:31 tg Exp $ #- # Copyright © 2018 # mirabilos <m@mirbsd.org> # Copyright © 2017 # mirabilos <t.glaser@tarent.de> # Copyright © 2015, 2017 # mirabilos <thorsten.glaser@teckids.org> # # Provided that these terms and disclaimer and all copy...
true
62c94c866dd4562bb5c0d10cbbfa8e49c14c1820
Shell
groodri/ena-metamod
/concatenator.sh
UTF-8
1,070
4.3125
4
[ "BSD-3-Clause" ]
permissive
#!/bin/bash set -e ############################################################################### # 0. Usage and assertions usage () { echo "Concatenator script of sample XMLs." echo "@groodri, 2021" echo -e "\nUsage:\n$0 [XML folder] [output folder] [-h, --help]\n" echo "Please provide a folder with XML files ...
true
aeacceeb5896b10379dcfeb277ba140fd6c02982
Shell
informatics-lab/pangeo-envs
/scripts/setup.sh
UTF-8
779
3.0625
3
[]
no_license
#!/bin/bash set -ex # Vars SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" REPO_DIR=$SCRIPT_DIR/.. # Install tools echo "*** Install kubectl ***" sudo apt-get update && sudo apt-get install -y apt-transport-https curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - sudo t...
true
c2dd70f5855920185f0ee484992258ae3af4d92a
Shell
wisehead/shell_scripts
/string/type.sh
UTF-8
2,006
3.234375
3
[]
no_license
############################################################# # File Name: type.sh # Autohor: Hui Chen (c) 2020 # Mail: chenhui13@baidu.com # Create Time: 2020/03/22-17:11:15 ############################################################# #!/bin/sh #范例:数字或者数字组合 i=5;j=9423483247234; echo $i | grep -q "^[0-9]...
true
2a27292ec57f86631e01428a4828694c91b32c04
Shell
iepathos/django-memcached-openshift
/.openshift/action_hooks/build
UTF-8
1,558
3.9375
4
[]
no_license
#!/bin/bash # This is a simple build script and will be executed on your CI system if # available. Otherwise it will execute while your application is stopped # before the deploy step. This script gets executed directly, so it # could be python, php, ruby, etc. # Download, Build and Install Memcached # I found this...
true
a1c2afcab84b05c64126b5d93bfa16298d17c5cb
Shell
blakeblackshear/frigate
/docker/main/build_nginx.sh
UTF-8
2,486
2.859375
3
[ "MIT" ]
permissive
#!/bin/bash set -euxo pipefail NGINX_VERSION="1.25.2" VOD_MODULE_VERSION="1.31" SECURE_TOKEN_MODULE_VERSION="1.5" RTMP_MODULE_VERSION="1.2.2" cp /etc/apt/sources.list /etc/apt/sources.list.d/sources-src.list sed -i 's|deb http|deb-src http|g' /etc/apt/sources.list.d/sources-src.list apt-get update apt-get -yqq buil...
true
0d3dac8c8c22c2368bf905d15b8e0e9ebcaa44fe
Shell
mwaeckerlin/reverse-proxy
/nginx-configure.sh
UTF-8
6,377
3.90625
4
[ "MIT" ]
permissive
#!/bin/sh -e # setup nginx configuration from server list CONF=/conf TARGET=/etc/nginx/server.d mkdir -p ${CONF} ${TARGET} #function clientssl() { # if test -e /etc/nginx/client-ssl/client-ca.crt; then # cat <<EOF # # ssl_client_certificate /etc/nginx/client-ssl/client-ca.crt; # ssl_verify_client on; #EO...
true
ec3aac917ce03c554ac91b4a5da0cf761341e8f3
Shell
shoppepm/shoppe-repos
/regenerate-pkglist
UTF-8
270
2.9375
3
[]
no_license
#!/usr/bin/env bash rm pkglist for dir in *; do [[ ! -d "$dir" ]] && continue [[ ! -e "$dir/shoppepkg" ]] && continue [[ -e "ignore" ]] && grep "^$(basename dir)" ignore &>/dev/null && continue source $dir/shoppepkg echo "$pkgname $pkgrel $pkgver" >> pkglist done
true
b045303175abeb21258ecaddfc2039d126781538
Shell
pkuehne/collectiveaccess
/entrypoint.sh
UTF-8
1,594
3.453125
3
[]
no_license
#!/bin/bash set -e #DATABASE INIT/CONFIG echo "Initializing configuration database..." mysql --host=$DB_HOST --user=root --password=$DB_ROOT_PASSWORD -e "CREATE DATABASE IF NOT EXISTS $DB_NAME;" mysql --host=$DB_HOST --user=root --password=$DB_ROOT_PASSWORD -e "GRANT ALL PRIVILEGES ON $DB_NAME.* TO '$DB_USER' IDENTIFI...
true
9e50ca48276042a92757863811204e1a59e96af4
Shell
vmrh/performance
/bin/htmlReports/generateHTMLReportComplete.sh
UTF-8
985
3.859375
4
[ "MIT" ]
permissive
#!/bin/bash # Check base dir name BASE_DIR=`dirname "$0"` # Initialize parameters and functions . ${BASE_DIR}/../functions.sh # Check if we have at least one parameter if [ $# -eq 1 ]; then JTL_FILE=$1 fi # Call getjmeterdir getjmeterdir # Delete calls sed "/lb=\"http/d" $JTL_FILE > "${JTL_FILE}_Without_Re...
true
85b9b1c0dd93523d4f1029ac88298b46e837f396
Shell
shilicqupt/cloudportal
/projects/rabbitmq/scripts/install-erlang.sh
UTF-8
490
3.5
4
[]
no_license
#!/usr/bin/env bash if [ -z "$1" ]; then echo " [`date`] ERROR : required <intall-dir> " 2>&1 exit 1 fi DIR=$1 ##############install zero mq#################### if [ ! -d $DIR ]; then echo " [`date`] ERROR : DIR ' $DIR' not exits " 2>&1 fi echo ' [`date`] INFO : cd $DIR Install .' 2>&1 cd $DIR ...
true
7e61abb8b03136ba784b810721b06259df2a7eaa
Shell
smilies-polito/Coherence
/experiments/run_batch.sh
UTF-8
507
3.59375
4
[ "MIT" ]
permissive
#!/bin/bash coherence=./coherence.sh exp_folder=$PWD experiments=( circle half stripe ) for experiment in "${experiments[@]}"; do if [[ ! -d ${experiment} ]]; then echo "Directory ${experiment} does not exist." exit else echo "Launching experiment ${experiment} in detached screen..." ...
true
97dae11133d0831d4b53037766bc9413c1e7f29c
Shell
apu4se/myenv
/.zsh/zshrc
UTF-8
3,718
2.578125
3
[ "MIT" ]
permissive
# ============================== # Autoloadings # ============================== autoload -Uz add-zsh-hook autoload -Uz compinit && compinit -u autoload -Uz url-quote-magic autoload -Uz vcs_info # ============================== # General settings # ============================== setopt auto_cd setopt auto_list setopt ...
true
94258e723ef03076ba93be30b881ab86a3848ecc
Shell
ya-ming/bash
/02-Var-Ctrl-Arithmetic/challenge2.sh
UTF-8
577
2.671875
3
[]
no_license
#!/bin/bash cd /usr/bin for i in * do if [[ -f $i ]] then if strings $i | grep -q "unable to fork" then echo $i has \"unable to fork\" in it fi fi done # Output #eject has "unable to fork" in it #git has "unable to fork" in it #git-receive-pack has "unable to fork" in it #git-shell has "un...
true
ae97a984992e124120fdaa0b53fdc656d602a500
Shell
bibinvarghese/democes
/install_service.sh
UTF-8
649
3.515625
4
[ "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
#!/bin/bash set -e wd="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" echo Working directory: ${wd} echo XDG_RUNTIME_DIR: ${XDG_RUNTIME_DIR} echo Parameters: ${@} ewd=$(echo ${wd} | sed -e 's/[\/&]/\\&/g') params=$(echo ${@} | sed -e 's/[\/&]/\\&/g') xdg=$(echo ${XDG_RUNTIME_DIR} | sed -e 's/[\/&]/\\&/g') cat ${wd}...
true
355312343068c3a7cf4b2218a6b25506f56558c3
Shell
lhui2010/bundle
/HPC/Documents/08.useradd.sh
UTF-8
2,308
3.546875
4
[]
no_license
#!/bin/bash set -euo pipefail USAGE="Usage:\n\t$0 userid disk_soft_limit disk_hard_limit \nEg:\n\t./add_user.sh xiahouzuoying yitingshuang 2T 3T " Group='yitingshuang' NfsQuota='2T' NfsHardQuota='3T' # IQUOTA='10^8' # IHQUOTA='10^8' if [ "$#" -eq 0 ]; then echo -e $USAGE exit elif [ $# -eq 1 ]; then ech...
true
e37777ad51b514cfba12d7c2126871706bca9f07
Shell
mojaloop/wso2-mysql
/mysql-init.sh
UTF-8
7,440
3.578125
4
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
#!/bin/bash WSO2USER=wso2user WSO2PASS=wso2pass DROPDBIFEXISTS=n while getopts h:u:p:v:w:l:r:d: option do case "${option}" in h) DBHOST=${OPTARG};; u) DBUSER=${OPTARG};; p) DBPASS=${OPTARG};; v) WSO2USER=${OPTARG};; w) WSO2PASS=${OPTARG};; l) LOCATION=${OPTARG};; ...
true
39f2385f54425e21f2569d2918cdc5a0c54d779b
Shell
budziq/dotfiles
/zshrc
UTF-8
3,307
2.71875
3
[]
no_license
# Set name of the theme to load. # Look in ~/.oh-my-zsh/themes/ # Optionally, if you set this to "random", it'll load a random theme each # time that oh-my-zsh is loaded. #ZSH_THEME="kolo" #ZSH_THEME="blinks" #ZSH_THEME="agnoster" ZSH_THEME="dpoggi" #ZSH_THEME="lambda-bu" #ZSH_THEME="murilasso" setopt rmstarsilent # Ex...
true
2785674c8ec8f55dc42d9342572779173a460c97
Shell
artoo-git/pipeAudioToMic
/pipe_audio2mic.sh
UTF-8
2,090
3.875
4
[]
no_license
#!/bin/bash set -e # exit immediately if a command exits wiht a non-zero status if [ -z "$1" ]; then echo '------------------------------------------------------------' echo '' echo 'No playlist selected.' echo 'A playlist is a text file with a list of the filenames to play' echo 'Pla...
true
3cf5153a667a4f34ee57529036264ed51648f7ac
Shell
adrian729/LP
/Haskell/Practica/test
UTF-8
863
3.578125
4
[]
no_license
#!/bin/bash clear echo "" echo "start script" ## Errors # comprovem existeix plumber if ! [ -f plumber ]; then echo "" echo "error: file \"plumber\" does not exist" echo "" exit 1 fi # comprovem tenim dos parametres if [ $# -lt 2 ]; then echo "" echo "error: test needs two parameters" echo "" exit 1 fi # alg...
true
5286cbd568521e1ab291627b7c1c51530f99840c
Shell
llych/mydoc
/go-install-bash.sh
UTF-8
2,054
3.953125
4
[]
no_license
#!/bin/bash # # Bash script for fast setting up Golang environment # # Usage: # # sudo chmod +x gostartup && ./gostartup # red="\e[31m" green="\e[32m" nocolor="\e[0m" # .bashrc文件所在目录,环境变量在这个文件里面配置 bashrc="/home/"$USER"/.bashrc" # 你想把golang项目放在哪里?默认为/home/$USER/go echo -e "Where do you want to store golang projects...
true
0be01e9bdee5e6ba51dfa8fbc87f6e7e78e1d0c8
Shell
DevOpsify/elastic_ansible
/roles/logging/files/bin/start_logging_app.sh
UTF-8
718
3.78125
4
[]
no_license
#!/bin/bash source /etc/environment while [[ $# -gt 1 ]] do INPUT="$1" case $INPUT in -a|--app) APP="$2" shift ;; * ) # Unknown ;; esac shift done do_help () { echo " " echo "./start_logging_app.sh -a [elasticsearch|filebeat|kibana|logsta...
true
e00920f54a8834b6d38eeea8dcec71615afff73f
Shell
neborn/poe-ui
/bin/poe-ui-create
UTF-8
1,260
4.0625
4
[ "MIT" ]
permissive
#!/bin/bash check() { hash $1 2>/dev/null || { echo >&2 "This needs \`$1\` to function properly. Please consule the poe-ui readme for more info."; exit 1; } } check git check npm check make if [[ $(ls -l | wc -l) -gt 1 ]]; then answer=Y read -e -p "project is not empty. abort? ($answer) " answer answer="${in...
true
e4c0fcc37df6f6e640e9dccefeeb424afe388545
Shell
scarabdesign/localmovies
/scripts/_conv2.sh
UTF-8
251
2.578125
3
[]
no_license
#!/bin/bash cd "/home/administrator/Television" find -name "*.mkv" -exec sh -c ' echo "Convert: $0" >>/home/administrator/Documents/logCov.log 2>&1 avconv -i "$0" -c:v h264 -c:a copy "$0".mp4 >>/home/administrator/Documents/logCov.log 2>&1 ' {} \; &
true
4ecc2e7db5e45f1129e72ec0f02f923a5646d3da
Shell
ZhiguoZhang/abcnotes
/script/midi2mp3.sh
UTF-8
376
3.25
3
[]
no_license
#!/bin/bash FILE=${1} if [[ -z "${FILE}" ]] ; then echo "Please give the midi file name!" exit -1 fi MP3FILE=${FILE%%.mid}.mp3 WAVFILE=${FILE%%.mid}.wav fluidsynth --gain=5 -F ${WAVFILE} /usr/share/sounds/sf2/FluidR3_GM.sf2 ${FILE} && lame --preset standard ${WAVFILE} ${MP3FILE} && rm ${WAVFILE} &&...
true
10e4e6f18c4a0a58690acbff63c6e1e462d6e5dc
Shell
stilist/dotfiles
/dot_sh/bin/executable_recover_commits
UTF-8
1,238
4.09375
4
[ "MIT" ]
permissive
#!/usr/bin/env bash set -euo pipefail IFS=$'\n\t' script_pwd="$(dirname -- "${0}")" # shellcheck source=./../support/git_in_initialized_repo.sh . "${script_pwd}/../support/git_in_initialized_repo.sh" git_in_initialized_repo || exit 1 ### # `recover_commits` # # Search the reflog (`man git-reflog`) for commits with c...
true
65e9f8ae2feb17711d65319060742afb136c0f2d
Shell
hiharin/davedotfiles
/_config/bspwm/panel/config
UTF-8
1,885
2.53125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # panel setup PANEL_HEIGHT=16 PANEL_FONT_FAMILY= PANEL_FONT_FAMILY="$PANEL_FONT_FAMILY,-*-stlarch-medium-r-*-*-10-*-*-*-*-*-*-*" PANEL_FONT_FAMILY="$PANEL_FONT_FAMILY,-*-lemon-medium-*-*-*-10-*-*-*-*-*-*-*" PANEL_FONT_FAMILY="$PANEL_FONT_FAMILY,-*-terminus-medium-r-normal-*-12-*-*-*-c-*-*-1" #PANEL_FONT_FA...
true
3c0b96eb862b2ed677dfbff6c93f1cb34c608536
Shell
BorislavShutov/bash_script
/script
UTF-8
922
3.375
3
[]
no_license
#!/bin/bash echo "Hello $LOGNAME" echo "what you want:" echo "Type 1 for programming" echo "Type 2 for somethink else" read doing case $doing in 1) echo "What project you need : " # choose type of project echo "1 python" echo "2 bash" read doProg case $doProg in 1) cd Documents/Python/Projects #dir...
true
e9c21768f04e0d1b9fbe7d4a9581ee77950ffd03
Shell
cowlingj/bash-clock
/lib/time_to_sec.sh
UTF-8
762
4.21875
4
[]
no_license
#!/usr/bin/env bash # time_to_s.sh converts a time string to seconds # usage time_to_s.sh time_string... # outputs floating point number # errors EINVAL SOURCE_FILE="$(readlink -f "$BASH_SOURCE")" . "${SOURCE_FILE%/*/*}/lib.sh" [ "$#" -eq "0" ] && echo "$0 no arguments specified" >&2 && exit 22 TOT="0" while [ "$#"...
true
0ad2ff7db65afacd498cba35cc1aa772551d366b
Shell
cravler/docker-files
/php/scripts/docker-build.sh
UTF-8
1,625
3.703125
4
[ "MIT" ]
permissive
#!/bin/bash SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) WORKDIR="$(dirname $SCRIPT_DIR)" REPOSITORY=cravler/php PUSH_IMAGE=NO ADD_TAGS=NO for i in "$@"; do case $i in --repository=*) REPOSITORY="${i#*=}" shift ;; --push) PUSH_IMAGE=YES shift ;; --a...
true
88eb3ad55a80b7dd48c241d902c02e3afa330abc
Shell
Dima-Git/PMS-Timer
/script.sh
UTF-8
420
2.53125
3
[]
no_license
sudo insmod timer_sysfs.ko gnome-terminal -e "tail -f /var/log/kern.log" echo "1sec timeout, 3sec sleep" echo 1000 > /sys/timer_dir/timer_period sleep 3 echo "0.5sec timeout, 3sec sleep" echo 500 > /sys/timer_dir/timer_period sleep 3 echo "0sec timeout, 3sec sleep" echo 0 > /sys/timer_dir/timer_period sleep 3 echo...
true
31d8aa439debbb2b0d77825b99fee5abe3f55569
Shell
abelosorio/dbf-to-standard-sql
/dbf2sql.sh
UTF-8
1,239
3.984375
4
[]
no_license
#!/bin/bash # # DBF to standard SQL converter # # Usage: # # dbf2sql.sh YOURFILE.DBF > YOURFILE.SQL # file=$1 file_name=$( basename $file | sed -ne 's/\(.*\).DBF/\1/p' ) ## Generate the CREATE TABLE dbf_dump --info --SQL $file | \ # Add "" to table name for names that start with numbers. sed 's/create table \(...
true
ecfde3e9eb1c0c9a7c8d5bd08d432f9df2e33d4a
Shell
vulhub/vulhub
/v2board/1.6-privilege-escalation/entrypoint.sh
UTF-8
419
3.125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash set -ex wait-for-it db:3306 -t 300 -- echo "database is connected" if [[ ! -e ".env" ]]; then echo -e "db\nv2board\nroot\nroot\nadmin@example.com\nexample123" | php artisan v2board:install sed -i 's/REDIS_HOST=.*/REDIS_HOST=redis/g' .env fi chown www-data:www-data -R /var/www/html # first arg is `...
true
027e72e129137631acc2ae4c0d07270c9b822613
Shell
ahsan2github/LES_code
/samples/runSamples
UTF-8
1,029
3.78125
4
[]
no_license
#!/bin/bash #/* *-* mode: sh-mode *-* */ #bash syntax highlighting in emacs EXCLUDE=('Porte-Agel_2000') #cases to exclude (array of strings #get all samples echo -n "getting list of samples..." SAMPLES=`find . ! -name \*runSamples\* ! -name .\* -maxdepth 1 2>/dev/null | cut -f2 -d'/'` SAMPLES=($SAMPLES) echo "done." ...
true
0b4f9d4f35e143521b2debd5f8c56af1244c9214
Shell
yfuks/corewar
/test_asm/test_tab.sh
UTF-8
739
3.1875
3
[]
no_license
#!/bin/bash rm asm_our/*.cor asm_zaz/*.cor diff/*.txt for champion in `ls *.s` do echo _____________________________________________ echo Champion : $champion echo "____ O U R A S M ____" ./$1 $champion mv *.cor asm_our echo "____ Z A Z A S M ____" ./$2 $champion mv *.cor asm_zaz done for champion ...
true
50780b90eb665d1f6e0179842ffa5d3824084461
Shell
VndRHN/ansible
/roles/weblogic/files/backup_centric_forms.sh
UTF-8
1,073
3.140625
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash function logdate { echo -n `date +%F" "%a" "%T"."%3N`' - ' } SOURCE_DIR[0]=/u01/app/centric/ BACKUP_DIR[0]=/backup/forms BACKUP_FILE_TAR[0]=forms_`hostname -s`_week`date +%V`.tar.gz BACKUP_FILE_LOG[0]=forms_`hostname -s`_week`date +%V`.log SOURCE_DIR[1]=/u01/app/oracle/middleware/instances/formsreports...
true
bb31b0cf73ee0f59da6399ee175008e63c51d539
Shell
raycodelib/shell_perl
/shell_running_git/shrug-commit
UTF-8
4,704
3.515625
4
[]
no_license
#!/bin/dash ########### path definition ########## ########### same in each shrug-* ########## initdir=".shrug" repodir="shrug" repopath="$initdir/$repodir" indexpath="$initdir/index" logfile="$repopath/commit-log" branchdir=".branch" branchpath="$initdir/$branchdir" ####################################...
true
042a8961ea20bc9c7a1bfe1d97d9eb838d262fb0
Shell
fabric8io/fabric8-test
/ee_tests/local_clean_test_repos.sh
UTF-8
1,560
3.984375
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # $1 = GitHub username # $2 = filter for name of the repository/repositories # $3 = filter based on time of last update in YYY-MM-DD format, e.g. <2015-05-20 USER=${1:-"osiotestmachine"} NAME=${2:-"e2e"} DATE=${3:-"<$(date --date='week ago' +%F)"} which jq > /dev/null 2>&1 if [[ $? != 0 ]]; then echo "...
true
fa8ded8928324f3e411e96ad8930489d803df1e1
Shell
rockmans/ohrockman
/jenkins/deploy.sh
UTF-8
1,571
2.96875
3
[ "MIT" ]
permissive
echo $WORKSPACE export PROJECT_NAME=ohrockman export APP_VERSION=`git rev-parse HEAD | cut -c -12` export VENV_VERSION=`sha1sum ./requirements.txt | cut -c -12` export ROOT="/usr/local/$PROJECT_NAME" export APP_DIR="$ROOT/app_versions/$APP_VERSION" export VENV_DIR="$ROOT/venv_versions/$VENV_VERSION" export TEST_APP_DIR...
true
c0c5d1d280c39ed1e16cb491e3c13dea7d7e8b60
Shell
vcatafesta/chili
/passwordform
UTF-8
1,830
3.359375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash source /chili/core.sh sh_confadduser() { cfullname="Vilmar Catafesta" cuser="vcatafesta" cpass="" cpassroot="" chostname="chili" ccreatenewuser="Cria usuario" exec 3>&1 usertext=$(dialog \ --backtitle "$cmsgusermanager" ...
true
960a92c0eaa55286cc528f673e065f4922b30159
Shell
aland-zhang/ceph_rbd_recovery_tool
/ceph_rbd_sequential_file_combine_v1.sh
UTF-8
1,679
3.859375
4
[]
no_license
#!/bin/bash # rbd prefix string rbd_prefix="3ceec238e1f29" # source of sequential files directory fragment_dir="/var/lib/ceph/osd/ceph-6/_combine_3ceec238e1f29" # output of combined directory combine_dir="/var/lib/ceph/osd/ceph-9" # sequential number range start_num=0 last_num=262143 # 1TB # combine function # ...
true
aecc071a43b403012e330263c040d8e8930325fa
Shell
umayr/koa2-kickstarter
/setup.sh
UTF-8
262
3.140625
3
[ "MIT" ]
permissive
#! /bin/bash command -v git >/dev/null 2>&1 || { echo >&2 "git is required, aborting."; exit 1; } if [ -z "$1" ]; then name=newapp else name=$1 fi git clone https://github.com/umayr/koa2-kickstarter $name && cd $name && rm -rf .git setup.sh && git init;
true
55fe1135a3bfcfbca1c551511eeeab39da028fac
Shell
a-h/static-hosting
/03-delete-stack.sh
UTF-8
488
2.75
3
[]
no_license
branchName=`git symbolic-ref --short HEAD` echo "Deleting static hosting for branch" $branchName echo "Deleting all items in the S3 bucket" bucketName=`aws cloudformation describe-stacks --stack-name $branchName --query "Stacks[0].Outputs[?OutputKey=='BucketName'].OutputValue" --output text --region us-east-1` aws s3 ...
true
c0e71c710370da56d1c05c1a86ee010a55d9b8dd
Shell
pipewire-debian/pipewire
/check_missing_headers.sh
UTF-8
651
3.609375
4
[ "MIT" ]
permissive
#!/bin/sh # This script will tell you if there are headers in the source tree # that have not been installed in $PREFIX LIST="" for i in $(find spa/include -name '*.h' | sed s#spa/include/##); do [ -f "$PREFIX/include/spa-0.2/$i" ] || LIST="$i $LIST" done for i in $(find src/extensions -name '*.h' | sed s#src/#pip...
true
be3201f35d8c4ff46f49c6866265d2965258e435
Shell
jsjoeio/coder-hackathon
/run.sh
UTF-8
1,465
4.09375
4
[]
no_license
#!/bin/sh # Credit to this Stack Exchange answer for explaining this: # https://unix.stackexchange.com/a/343974/363304 SUCCESS_CHECKMARK=$(printf '\342\234\224\n' | iconv -f UTF-8) CROSS_MARK=$(printf '\342\235\214\n' | iconv -f UTF-8) set -eu get_node_version() { # Check that they have node installed if ! [ -x ...
true
41bd52d817089bf7f07fa168353595910056102a
Shell
john-brinnand/webhdfs-dataloader-V2
/cf/launch.sh
UTF-8
922
3.21875
3
[]
no_license
#!/bin/bash set -e export AWS_REGION=us-east-1 export DEPLOYMENT=development export INSTANCE_TYPE=r3.xlarge mode=$1 export SPONGE_VPC_NAME=us-east-1-dev-core export SPONGE_ROLE=webhdfs-dataloader export SPONGE_NODE_NAME=${SPONGE_ROLE}-dev.spongecell.net STACK_NAME=$SPONGE_VPC_NAME-$SPONGE_ROLE PARAMS_FILE=${STACK_NAM...
true
cd967fa4acefb2f2bd811138d764c65b9a26a455
Shell
avionic-design/pbs-stage2
/scripts/sort-checksums
UTF-8
139
2.953125
3
[]
no_license
#!/bin/sh if test "x$1" = "x"; then echo "usage: $0 FILE" exit 1 fi awk '{ print $2 " " $1 }' "$1" | sort | awk '{ print $2 " " $1 }'
true
c1dfe309f8a40b4379978e814410d7ab16644c99
Shell
GreenPois0n007/HackApps.github.io
/update.sh
UTF-8
1,127
2.953125
3
[ "MIT" ]
permissive
#!/bin/bash rm Packages rm Packages.bz2 rm Packages.xz rm Release dpkg-scanpackages -m debfiles /dev/null > Packages bzip2 -c9 Packages > Packages.bz2 xz -c9 Packages > Packages.xz PackagesBytes=$(wc -c < Packages) PackagesbzBytes=$(wc -c < Packages.bz2) PackagesxzBytes=$(wc -c < Packages.xz) Packagesmd5=$(md5 Packages...
true
755a0cef3622a5ceae0d768d009e971e2c1d4501
Shell
makserge/webradio
/backend/www/scripts/streamplayer.sh
UTF-8
291
2.796875
3
[]
no_license
#!/bin/ash data_path="/www/webradio/data" current=`cat "$data_path/curnetwork"` item=`sed -n ${current}p $data_path/network` stream=`echo $item | cut -d "|" -f 2 | sed -e "s/\~/ /g"` while true do wget -q -O - $stream | madplay --replay-gain=audiophile --attenuate=-15 - sleep 2 done
true
559ee0871cb10917fddcd970a77eb4191596ed0b
Shell
hilbix/ddrescue-wrapper
/.inc
UTF-8
889
3.78125
4
[]
no_license
#!/bin/bash OOPS() { echo "OOPS: $*" >&2 exit 2 } allok=: WARN() { echo "WARN: $*" >&2 allok=false } target() { case "$1" in */*) OOPS "no slashes please: $1";; *..*) OOPS "no double dots please: $1";; '') OOPS "missing arg $1";; esac echo case "$1" in (*/*) OOPS "no path, please";; (.|..) OOPS "no relative pat...
true
47cf5c8c5d58fbb3d7c6e022e2fa27b5965a8bc9
Shell
jensp/Arch-Linux-on-i586
/extra/bzflag/PKGBUILD
UTF-8
874
2.625
3
[]
no_license
# $Id: PKGBUILD 9690 2008-08-18 07:14:23Z allan $ # Contributor: Damir Perisa <damir.perisa@bluewin.ch> # Maintainer: Kevin Piche <kevin@archlinux.org> pkgname=bzflag pkgver=2.0.12 pkgrel=1 pkgdesc="A multiplayer 3D tank battle game" depends=('curl>=7.16.2' 'mesa' 'sdl') arch=('i586' 'i686' 'x86_64') license=('LGPL') ...
true
272adef0f1c7d6d16bb4c024e152bf2d08b69870
Shell
augustye/muniverse
/games/process/MiniRaceRush-v0
UTF-8
639
2.90625
3
[ "BSD-2-Clause" ]
permissive
#!/bin/bash DIR="$1" oldName="$DIR/app.min.preprocess.js" mv "$DIR/app.min.js" "$oldName" cat "$oldName" | sed -E 's/^loadPreAssets\(\);/window\.addEventListener\("load",loadPreAssets\);/g' \ > "$DIR/app.min.js" oldName="$DIR/index_pre_miniracerush.html" mv "$DIR/index.html" "$oldName" cat "$oldName" | tail -c...
true
098d10d5d6277995b31319f0a7d0338fab14e8e9
Shell
ipsedixit-org/dev-mailserver
/example-sender/entrypoint.sh
UTF-8
290
3.046875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # Timeout=0 --> timeout disabled /wait-for-it.sh --timeout=0 mailserver:587 -- echo "mailserver is up" while true do echo "Try to send a new message." MESSAGE="It's $(date +%T) and all's well..." echo ${MESSAGE} | mailx -v -s "${MESSAGE}" user@example.com sleep 30 done
true
976500101ddfb938d17ce8cbd232c3a02844e863
Shell
akshaygangwar/FTPServerOnMac
/startftp.sh
UTF-8
199
2.59375
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
#!/bin/bash echo "Starting ftp server on this mac" sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist echo "Server started on the following address" ifconfig | grep inet | grep 192
true
9881bf9935c23f6ab6e4de476ddfd1325fe3ed1b
Shell
oscarose/project-examples
/bash-example/promote-rpm.sh
UTF-8
1,198
3.453125
3
[ "Apache-2.0" ]
permissive
#!/bin/sh usage() { echo "Copy the Artifactory folder art-qa/org/artifactory/artifactory-rpm/2.4.x-SNAPSHOT -Containing an RPM- to the rpms-local repository for YUM exposure" echo "Usage: $0 srcPath targetPath" exit 1 } if [ -z "$2" ]; then usage fi srcPath="$1" targetPath="$2" artifactoryUser="abrah...
true
ecde5be0aa718ced8d13bdda64f95e7d4bfac93d
Shell
edhille/carpetbag
/brew/available/60-python
UTF-8
256
2.96875
3
[]
no_license
#! /bin/sh brew list python 2>&1 > /dev/null if [ $? -ne 0 ]; then echo 'must not have python installed' brew install python fi brew list python3 2>&1 > /dev/null if [ $? -ne 0 ]; then echo 'must not have python3 installed' brew install python3 fi
true
96410576a93cee65e2a818ebb18c09d07f9a3c17
Shell
marceloboeira/dot-files
/setup-git-user.sh
UTF-8
278
3.390625
3
[]
no_license
if [ $# -ne 2 ] then echo 'Usage: ./setup-git-user.sh "User Name" "user@email.com"' exit 1 fi user_name="$1" user_email="$2" echo; echo ">> Setting git User and Email" cat > "$HOME/.config/git/user" <<EOF # vim: ft=gitconfig [user] name = $user_name email = $user_email EOF
true
4167487b1688082639c83e8a6497a0fb95a4dcbb
Shell
snaekobbi/system
/test-run.sh
UTF-8
153
2.640625
3
[ "MIT" ]
permissive
#!/bin/bash docker build . #>/dev/null BUILDID="`docker build . | grep "." | tail -n 1 | sed 's/.* //'`" echo $BUILDID docker run -i -t "$BUILDID" "$@"
true
a473382d04c0a7b5db1e0dc1172fd5ea7b1733d0
Shell
itosue/shellgei20170701
/01_macrun.sh
UTF-8
237
2.578125
3
[ "MIT" ]
permissive
#! /bin/sh for com in "sort" "gsort" "gsort --parallel=4" "gsort --parallel=3" "gsort --parallel=2" "gsort --parallel=1" do echo "purging caches...\n" sync && sudo purge echo executing ${com} time ${com} input.txt > /dev/null done
true
10f67ca4b40c2a7100ca3c14238052ce81a9a18a
Shell
jldeen/nest-datagraph
/setup/docker/scripts/entrypoint.sh
UTF-8
1,788
3.84375
4
[ "MIT" ]
permissive
#!/bin/bash set -eo pipefail [[ "${DEBUG}" == true ]] && set -x check_database_connection() { echo "Attempting to connect to database ..." prog="mysqladmin -h ${DB_HOST} -u ${DB_USERNAME} ${DB_PASSWORD:+-p$DB_PASSWORD} -P ${DB_PORT} status" timeout=60 while ! ${prog} >/dev/null 2>&1 do timeout=$(( timeo...
true
efd586531a185fd8776c664ed493bbe5727f7440
Shell
envkey/go-envkeyfetch
/ci-publish.sh
UTF-8
807
3.625
4
[ "MIT" ]
permissive
#!/bin/bash version=${1?missing param 1 version} branch=${2?missing param 2 branch} echo $version $branch THIS_DIR=$( cd "$(dirname "${BASH_SOURCE[0]}")" pwd -P ) PUBLIC_GO_MOD_REPO=$( cd "$THIS_DIR/../../../../go-envkeyfetch" pwd -P ) echo "SDK publish for envkey-fetch will only push source code to mirror ...
true
d0c7756076f47770cf6a38e2faa9b870a486a7c8
Shell
adesentenac/git-svn-clone-externals
/git-svn-clone-externals
UTF-8
10,689
3.890625
4
[]
no_license
#!/bin/bash set -e function usage() { echo "$0" echo -e " --username <username>\tProvides the SVN username" echo -e " --password <password>\tProvides the SVN password" echo -e " --ask-password\t\tPrompts for the SVN password" } red='\033[0;31m' green='\033[0;32m' blue='\033[1;34m' cyan='\033[1;36m' ye...
true
463783c3a31f95354b696bc03b8d036a8f4f88ad
Shell
MagicalTux/pinetd
/phpinetd
UTF-8
602
3.5
4
[]
no_license
#!/bin/sh # phpInetd is a standalone daemon to start servers in PHP case "$1" in 'start') /usr/local/phpinetd/daemonctl start ;; 'stop') /usr/local/phpinetd/daemonctl stop ;; 'status') run=`/usr/local/phpinetd/daemonctl running` res="1" if [ $run != $res ] then echo "phpInetd is stopped. No process" exit ...
true
a6214e2ceff9a8acde1e0faaa01ad7a530006d33
Shell
kristjan/git-cl
/test/upload-stale.sh
UTF-8
662
3.46875
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash set -e . ./test-lib.sh setup_initgit setup_gitgit ( set -e cd git-git git checkout -q -b work HEAD^ echo "some work done on a branch" >> test git add test; git commit -q -m "branch work" git config rietveld.server localhost:8080 # Prevent the editor from coming up when you upload. expo...
true
8c04e98ff7c5b4882b6f2dd7bfb053b85925c4f1
Shell
meskis/php-bench
/benchmark
UTF-8
179
2.703125
3
[]
no_license
#!/bin/bash VERSIONS=( "php:5.6" "php:7.0" "php:7.1" "php:7.2" "php:7.3" "php:7.4") for x in "${VERSIONS[@]}" do docker run -it -v `pwd`/src:/src $x php /src/bench.php done
true
2d31b19b74bbb0f3015f59de77d4921a6ba4f673
Shell
parasoft/azure-devtestlab
/Artifacts/linux-data-repository-server/datarepo.sh
UTF-8
2,751
3.34375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # ### BEGIN INIT INFO # Provides: datarepo # Required-Start: $remote_fs $syslog ctp soavirt # Required-Stop: $remore_fs $syslog ctp soavirt # Default-Start: 2 3 5 # Default-Stop: 2 3 5 # Short-Description: Data Repository # Description: start MongoDB Data Repository server ###...
true
70a33d1e9aa224b888858752c8a5246880881365
Shell
youxiu543/saltstack_test
/salt-master_install.sh
UTF-8
981
2.921875
3
[]
no_license
#!/bin/bash ######################################################################### # File Name: salt-master_install.sh # Author: liangshaohua # mail: youxiu543@163.com # Created Time: Mon 19 Aug 2019 08:54:22 PM CST ######################################################################### set -e #请输入代码 yum install...
true
24fa7545cbbe82a7ded09fc54de976acba632692
Shell
engwarrior/tendermint
/test/p2p/peer.sh
UTF-8
1,497
3.40625
3
[ "Apache-2.0" ]
permissive
#! /bin/bash set -eu DOCKER_IMAGE=$1 NETWORK_NAME=$2 IPV=$3 ID=$4 APP_PROXY=$5 set +u NODE_FLAGS=$6 set -u if [[ "$IPV" == 6 ]]; then IP_SWITCH="--ip6" else IP_SWITCH="--ip" fi echo "starting tendermint peer ID=$ID" # start tendermint container on the network # NOTE: $NODE_FLAGS should be unescaped (no quotes). o...
true
44d53e7d160e59e7076be9d583cdc5560bb4b4f2
Shell
guilmeister/holberton-system_engineering-devops
/0x04-loops_conditions_and_parsing/1-for_holberton_school
UTF-8
134
2.90625
3
[]
no_license
#!/usr/bin/env bash # This script is displaying "Holberton School" 10 times for ((x=0; x < 10; x++)) do echo "Holberton School" done
true
a12310a7a97afc41ce70ca932e03d9d565ec6dcc
Shell
ecarquin/GammaRayFluxCalculations
/rootexamples/scanMasses.sh
UTF-8
2,280
2.875
3
[ "MIT" ]
permissive
#!/bin/bash c=0 while read mG tauG Gtot Bgnu Bznu Bwele Bwmuo Bwtau Bgnu3b do echo $mG $tauG $Gtot $Bgnu $Bznu $Bwele $Bwmuo $Bwtau $Bgnu3b sed 's/mG/'${mG}'/g' main07.cmnd.temp > main07.cmnd.temp.1 make main07 #Run G->Hnu decay generation sed '/Hnu/s/\!\!//g' main07.cmnd.temp.1 > main07.cmnd ./main07.e...
true
461d4f97b80a8d76f78d4bb19e1448632c5a81b3
Shell
cekrem/dotfiles
/utils/week
UTF-8
4,094
4.09375
4
[]
no_license
#!/bin/bash root_path="$HOME/Jottacloud/week" year_path="$root_path/$(date +%Y)" mkdir -p "$year_path" usage=$( cat <<EOF Usage: week -e[dit instead of print] -c[onfig week template] -t[oday] -s[hutdown] -n[otes for this week] -o[verview of all notes] -a[ll weeks] -i[nbox {something}] {@Keyword[ t...
true
60164be151d6ec318f9cda50c053d68d23659fac
Shell
smoebody/docker-webdav
/assets/setup/10-appuser
UTF-8
311
3.046875
3
[]
no_license
#!/bin/bash export LANG=de_DE.UTF-8 export LANGUAGE=de_DE.UTF-8 export LC_ALL=de_DE.UTF-8 if [ -S "/ssh-agent" ]; then echo export SSH_AUTH_SOCK=/ssh-agent fi if ! id ${APP_USER} &>/dev/null; then # create user useradd --create-home --home-dir /home/${APP_USER} -G root --shell /bin/bash ${APP_USER} fi;
true
47f52531dcddd67e81f06b33c4d2bba26210d93c
Shell
Aeronavics/ValleyForge
/bld/other/print_info_project
UTF-8
11,058
3.921875
4
[]
no_license
#!/usr/bin/env bash # Copyright (C) 2012 Unison Networks Ltd # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This...
true
36b205fdeb458dffcf822ef640ee433423586064
Shell
steelalive/dot
/bin/patotst
UTF-8
444
2.75
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash #-*- coding: utf-8 -*- #2#::.. Last edit: - Thu May 25 01:12:11 EDT 2017 - by: - - ..::## #_# - VERSION=0.0.1.4 - #_# #@#250517#@# #2# #3#::..#####################_MAIN_#######################..::#3# # Author: # file="/tst" [[ $1 == 2 ]] && file=/tst2 true >$file xclip -o >>$file e $file --syntax=bash --te...
true
55d13247ccef75ec4e9c1f2c387d38a22544c51d
Shell
mchchiang/senescence
/analysis/run/SelectBead.sh
UTF-8
1,602
3.3125
3
[]
no_license
#!/bin/bash file_type=$1 ehh_start=$2 ehh_end=$3 ehh_inc=$4 ehl_start=$5 ehl_end=$6 ehl_inc=$7 run_start=$8 run_end=$9 run_inc=${10} dir=${11} ehh=$(python -c "print '%.1f' % ($ehh_start)") ehl=$(python -c "print '%.1f' % ($ehl_start)") select_lammps_exe="./GetBeadPositionLAMMPS" select_pos_exe="./GetBeadPositionXYZ...
true
becdd1ef8a5b8c2263b217be80e283b9238e53a7
Shell
Bradnowak/Flowlytic
/botspotml/stopserver
UTF-8
125
2.984375
3
[ "BSD-2-Clause" ]
permissive
#!/bin/bash PID=$(ps -ef | grep -m 1 "python3" | tr -s " " | cut -d " " -f 2) echo "Killng process ${PID}..." kill ${PID}
true
493a8f2f9219b220a5a23509654cac199de2e0d5
Shell
qmaxquique/terminal.com
/impresspages_installer.sh
UTF-8
1,153
3.84375
4
[]
no_license
#!/bin/bash # Script to deploy ImpressPages Framework at Terminal.com INSTALL_PATH="/var/www" # Includes wget https://raw.githubusercontent.com/terminalcloud/apps/master/terlib.sh source terlib.sh || (echo "cannot get the includes"; exit -1) install(){ # Basics pkg_update system_cleanup basics_install # Procedu...
true
1b4b948b310952b7a17c11a1fe5bfa5bab73c5ab
Shell
acquireflyingjohns/bizspeak
/fortune/gen-fortune-file.sh
UTF-8
350
2.90625
3
[]
no_license
#!/bin/bash # Generates fortune compatible databases full of bizspeak! cd .. for e in `seq 1 1000` do ./rand.sh echo "%" done >> fortune/bizspeak cd fortune strfile bizspeak bizspeak.dat echo "" echo Run this commands to get your new fortune database: echo sudo mv bizspeak bizspeak.dat /usr/share/games/fortunes/ ...
true
ef3c754fdc4c3877c15105c962519000445c872c
Shell
open-data-potsdam/schuleinzugsgebiete
/data/school_coordinates.sh
UTF-8
617
2.984375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash -e # # Convert schools XML from WFS into CSV with school ID and WGS84 coordinates # xmlstarlet select --text --template --match //ms:Schul_Standorte --value-of ms:schul_nr --output $'\t' --value-of ms:msGeometry/gml:Point/gml:pos --nl schools.xml > schoolid_coordinate_epsg25833.csv schoolid=$(mktemp) coord...
true
c0545781458f9d33716d0a418e2829441913b6c0
Shell
DeepeshLall/social-distance-EUMAS21
/runme2.sh
UTF-8
957
3.140625
3
[]
no_license
#!/bin/bash # Default mode = 1 -- if 2 then readMode of prev. data for given 3 cmdline parameters. dataLoadMode=1 numberOfAgents=$1 max_numberOfSlots=$2 slotCapacity=$3 for m in $(seq 3 "$max_numberOfSlots"); do total_iter=$((20)); for iter in $(seq 1 "$total_iter"); do echo "======= STARTING SLO...
true
1b7056059e01cc1b40f642b9d6412818538d6332
Shell
GcsuEapps/docker-ssh-client
/bin/ssh-key-setup
UTF-8
1,162
4.125
4
[]
no_license
#!/usr/bin/env sh APPNAME="$(basename $0)" APPVERSION=1.0.0 usage() { echo "Usage: $APPNAME [OPTION]... PRIVATE_KEY [KNOWN_HOSTS]" echo "Setup ssh client PRIVATE_KEY and optionally set additional KNOWN_HOSTS" echo echo "Options:" echo " --help display this help and exit" echo " --version ou...
true
2de60939d457acd8bc63c72a7d71efb2c9c827ca
Shell
PaddlePaddle/paddle-ce-latest-kpis
/ce_cloud_models/paddleNLP/linux/scripts/GPT-2/data_proc.sh
UTF-8
541
2.515625
3
[]
no_license
#获取当前路径 cur_path=`pwd` model_name=${PWD##*/} echo "$model_name 模型数据预处理阶段" #配置目标数据存储路径 root_path=$cur_path/../../ code_path=$cur_path/../../models_repo/examples/language_model/gpt/ modle_path=$cur_path/../../models_repo/ #初始化一下visualdl python init.py #获取数据逻辑 #清除之前下载的脚本 rm -rf $code_path/raw_data rm -rf $code_path/data ...
true
1540550d45940e03f35f93b2c0a0f2ecf7a32f34
Shell
pkuwwt/cplusplus-reference
/reference/script.sh
UTF-8
353
3.1875
3
[]
no_license
#!/bin/bash handle() { dir=`dirname "$@"` dir=${dir##./} exp=`echo "$dir"| sed 's/[^/]\+/../g'` if [[ $dir == "." ]] then exp="." fi sed -i "s,http://www.cplusplus.com/v320,$exp/v320,g" "$@" sed -i "s,show_ad,show_ad_,g" "$@" sed -i "s,DonateBox,DonateBox_,g" "$@" } export -f handle find . -name '*.html' -e...
true
a8ebbed78eb74c8123efbfbac4992478c9cbb423
Shell
xingleigao/study_qianrushi
/chigh/shell/case1.sh
UTF-8
162
2.796875
3
[]
no_license
#!/bin/bash echo -n "please choose (yes|no)" read R case $R in yes) echo "yes" ;; y) echo "yes" ;; no) echo "no" ;; *) echo "wrong" #;; esac
true
f075d30dfb0c8f65206afb898b95c398808aacfc
Shell
skluck/dotfiles
/kluckscripts/gitauthors
UTF-8
443
3.390625
3
[]
no_license
#!/usr/bin/env bash set -eo pipefail function gitauthors() { local from=$1 local to=$2 git log \ "$from..$to" \ --pretty=format:%an \ --numstat \ | awk '/./ && !author { author = $0; next } author { ins[author] += $1; del[author] += $2 } /^$/ { author = ""; next } END { fo...
true
713a681c8720a165ca703b0d982f157ad9965320
Shell
YvosOnTheHub/LabNetApp
/Kubernetes_v4/Addendum/Addenda08/2_Lazy_Images/pull_setup_images.sh
UTF-8
2,499
3.265625
3
[]
no_license
#!/bin/bash # PARAMETER 1: Hostname or IP # PARAMETER 2: Docker Hub Login # PARAMETER 3: Docker Hub Password echo "#############################" echo "# DOCKER LOGIN ON HOST $1" echo "#############################" ssh -o "StrictHostKeyChecking no" root@$1 docker login -u $2 -p $3 echo "############################...
true
93a669fc57a99eaa7fdc0bda6d154f6b311667c2
Shell
sz928/weiqi-serce
/script/pb-build.sh
UTF-8
965
3.609375
4
[]
no_license
#! /bin/bash cd ../proto outPath="../libs/proto/" temp='../temp' mkdir -p $temp if [ -d "$outPath" ]; then `rm -fr $outPath/*` else # echo "文件夹不存在" mkdir -p $outPath fi function read_dir() { for file in $(#注意此处这是两个反引号,表示运行系统命令 ls $1 ); do if [ -d $1"/"$file ]; then #注意此处之间一定要加上空格,...
true
81ba8d01d18ed5d5517156f9d200212abe1a8d10
Shell
pz76home/linux_sh
/complex_files_rsync.sh
UTF-8
2,565
2.65625
3
[]
no_license
# Use IFS to have awk handle complex file names correctly IFS=$'\n' # Create directory tree first using parallel utility to run multiple processes parallel --will-cite -j 20 /usr/bin/rsync -dirs --existing --ignore-existing --delete -e ssh /nas/ root@remotesys:/mnt/nas/ > /admin/working/rsync.log # Replicate files fr...
true
2ec91d11694a1f66c61fea14d474d6a480e13ab5
Shell
jwinarske/sdk
/tools/memory-use.sh
UTF-8
1,032
3.75
4
[]
no_license
#!/bin/sh # Copyright (c) 2016, the Dartino project authors. Please see the AUTHORS file # for details. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE.md file. # Uses binary search to find the smallest heap size that a given snapshot file # can run. ...
true
fa81680fbfbef53fda7b55043863d01cfa0f3f0b
Shell
vladimirstoyanov/ArchLinuxScripts
/USB2CAN/candump.sh
UTF-8
156
2.84375
3
[]
no_license
#!/bin/sh if [ $# -ne 1 ] then echo "Wrong input! please use the following input: " echo "1 arg - interface (e.g. can0)" exit 1 fi candump $1
true
12c48c54d6a309636dd724a1f1e88ddb030fe50f
Shell
patrickbrandao/myscripts
/local-selfsign-ssl.sh
UTF-8
19,473
3.8125
4
[]
no_license
#!/bin/sh # # Criar certificado auto-assinado # # Variaveis globais de orientacao: # SSL_ARG_SUBJ - dados para certificado auto-assinado # caso SSL_ARG_SUBJ esteja ausente, as seguintes variaveis serao usadas para preenche-lo # SSL_COUNTRY=BR # SSL_PROVINCE="Minas Gerais" # SS...
true
efe412ec2f27cfb7f19109bcaed2f9da9cba2857
Shell
aliensero/TarsFramework
/deploy/tar-server.sh
UTF-8
562
2.828125
3
[]
no_license
#!/bin/bash TARS=(tarsAdminRegistry tarslog tarsconfig tarsnode tarsnotify tarspatch tarsproperty tarsqueryproperty tarsquerystat tarsregistry tarsstat) cd ${TARS_INSTALL}/framework/servers; for var in ${TARS[@]} do tar czf ${var}.tgz ${var} done cp -rf ${TARS_INSTALL}/web/sql/*.sql ${TARS_INSTALL}/fra...
true
6e1422386969b376997ad3befb915e123cf6963e
Shell
osbuild/image-builder-frontend
/pr_check.sh
UTF-8
2,149
2.78125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # -------------------------------------------- # Export vars for helper scripts to use # -------------------------------------------- # name of app-sre "application" folder this component lives in; needs to match for quay export COMPONENT_NAME="image-builder-frontend" # IMAGE should match the quay repo set...
true
d3fe407a42331f6baad91c2f89089b822a1dd678
Shell
bluerogue251/DBSubsetter
/src/test/util/create_sqlserver_db.sh
UTF-8
160
2.515625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash set -eou pipefail host=$1 db_name=$2 /opt/mssql-tools/bin/sqlcmd -S "${host}" -U sa -P MsSqlServerLocal1 -Q "create database [$db_name];"
true
016ae20c1fd46f1e8dde9ab90a82a59d634aa4e6
Shell
youngzil/quickstart-framework
/quickstart-linux/docs/example/function.sh
UTF-8
1,063
3.625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # author:yangzl #function可以省略,返回值必须存在,如果不显示使用return,就最后一行命令执行结果作为返回值 demoFun(){ echo "这是我的第一个 shell 函数!" } echo "-----函数开始执行-----" demoFun echo "-----函数执行完毕-----" myFirstFun() { printf "this is my first function \n" } myFirstFun funWithReturn(){ echo "这个函数会对输入的两个数字进行相加运算..." echo "输入第一个...
true
1e2d5614a4e6dc9f9a69e20996d38560177cfe79
Shell
carlinakim/DSCI_522_Group_302
/src/setup.sh
UTF-8
1,238
3.265625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # setup.sh # James Liu, Jan 2020 # This script runs all of the necessary download, analysis and wrangling scripts and generates a markdown report from # an .Rmd file. # example usage: # bash setup.sh # download the data printf "============\nstarting download script\n" python src/download_data...
true
33db555c297d0119e4fb49be45f2d3fcae571752
Shell
LeoFalco/gh-update
/install.sh
UTF-8
546
3.609375
4
[]
no_license
#!/bin/bash set -e echo echo "Installing dependencies" sudo apt install git curl jq echo echo "Creating inslataion directory" rm -rf ~/.gh-update mkdir ~/.gh-update echo echo "Downloading ..." git clone https://github.com/LeoFalco/gh-update ~/.gh-update echo echo "Granting run permission" sudo chmod +x ~/.gh-updat...
true