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
ebfda6dcc07e0efe79304623845bbba1c598de11
Shell
PacktPublishing/Mastering-Bash
/Chapter05/Scripts/loop1.sh
UTF-8
152
3.140625
3
[ "MIT" ]
permissive
#!/bin/bash declare -a my_array my_array=("one" "two" "three" "four" "five") for (( i=0 ; i<${#my_array[*]} ; i++ )); do echo "${my_array[i]}" done
true
9bc110dd6426e7f603c2db7fec37ff9cec2fec2c
Shell
Rp70/sysadmintools
/vmware/esxivmbackup.sh
UTF-8
3,298
3.796875
4
[]
no_license
#!/bin/sh #Edit these values to match you environment ##################################### #The datastore to backup to backupDataStore=<backupDataStore> #The directory on the above datastore to backup to(the default is mm-dd-yyyy) backupDirectory=$(date +%m-%d-%Y) #The list of virtual machine names(sepa...
true
85cd97420310914fdcbccbb82f2a590d14c48e6e
Shell
ctaggart/KoreBuild
/template2/build.sh
UTF-8
3,683
4.15625
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # KoreBuild 2.0 # Colors GREEN="\033[1;32m" BLACK="\033[0;30m" RED="\033[0;31m" RESET="\033[0m" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd $DIR show_help() { echo "Usage: $0 [-r] [--] [arguments to msbuild]" echo " $0 [-r] [-u <URL>] [--] [arguments to msbuild]" ...
true
e94be0d1363234cb0ac431199d89808be6f01e8d
Shell
ShilGen/my_unix_sh
/breaksleep.sh
UTF-8
854
3.1875
3
[]
no_license
#! /bin/bash # Copyright 2013 ShilGen.ru geniusshil@gmail.com action=$(yad --width 300 --entry --title "System Logout" \ --image=gnome-shutdown \ --button="Switch User:2" \ --button="gtk-ok:0" --button="gtk-close:1" \ --text "Choose action:" \ --entry-text \ "min10" "min30" "Cansel" "Logout") r...
true
8a0a8e1af921c86376c95989c1fbab3f0f67d392
Shell
brainsciencecenter/salt
/salt/files/usr/local/bin/resetPublicInterface
UTF-8
430
3.046875
3
[]
no_license
#!/bin/bash cmd=$(basename "$0") if ip addr show wlx00e04c29e2e1 | grep -q "state UP" then exit 0 fi logger -t "$cmd" "Removing rtl8812au and rtl8812au modules" rmmod rtl8812au rmmod cfg80211 sleep 10 logger -t "$cmd" "Re-inserting rtl8812au module" modprobe rtl8812au sleep 10 logger -t "$cmd" "Bring AirPenNet...
true
98c40b7b452a1e08ac91106c8a8a2af93506f529
Shell
seanreed1111/TTP-EXCEL-CONTENT
/update-validators
UTF-8
194
2.625
3
[]
no_license
#!/bin/bash if [ ! -f .gitmodules ]; then echo "No submodules initialized. Run './setup' to correct" exit 1 fi git submodule update --init --remote --force git submodule foreach './build'
true
4d6e2cb75c22fe3458bdbdf714b07b384fea9fa1
Shell
HeroCC/dotfiles
/install.sh
UTF-8
3,311
3.90625
4
[]
no_license
#!/bin/bash function pull { cd $DOTFILE_DIR git pull origin master git submodule init git submodule update # git submodule foreach git submodule update --init # git submodule foreach update --init } function update { if [ "$noUpdate" == 'false' ]; then if [ "$autoUpdate" == 'true' ]; then sudo...
true
79e287d0cba6419fb68d32936cd54b4e94b70c06
Shell
bearlin/dotvim
/scripts/update_pathogen.sh
UTF-8
902
3.25
3
[]
no_license
#!/bin/bash DOTVIMHOME=~/.vim source $DOTVIMHOME/scripts/handy_functions.sh # Reference: # https://github.com/tpope/vim-pathogen cd "$DOTVIMHOME" # ------------------------ hasWget=0 hasCurl=0 setFlagsHasWgetHasCurlAndExitIfBothEqualZero "$@" echo "hasWget=$hasWget" echo "hasCurl=$hasCurl" rm -rf $DOTVIMHOME/aut...
true
815698c7060f4553e9f257143ae2575140ec27f6
Shell
Nils-TUD/aconfmgr
/test/t/t-2_apply-2_files-2_managed-1_modified-4_editgone.sh
UTF-8
702
2.515625
3
[ "MIT" ]
permissive
#!/bin/bash source ./lib.bash # Test modifying a file that's not on the filesystem. TestPhase_Setup ############################################################### TestAddPackageFile test-package /testfile.txt foo TestCreatePackageFile test-package TestAddConfig 'echo bar >> $(CreateFile /testfile.txt)' TestPhase_R...
true
cb9901a905e0daa9d7e9dd510ee47226963bf5f0
Shell
DookTibs/shellScripts
/tomcatHelper.sh
UTF-8
15,360
3.484375
3
[]
no_license
#!/bin/bash # jdb -connect com.sun.jdi.SocketAttach:port=9005,hostname=localhost -sourcepath . # JAVA_HOME="/cygdrive/c/Program Files/Java/jdk1.8.0_112/" bash -c '/cygdrive/c/development/tomcat/apache-tomcat-9.0.0.M15/bin/catalina.sh start' # todo - rewrite this to use python or something to be more modular. And then...
true
2b8ba5a6a920cb7ac96113f530dbdcb3ebd37267
Shell
darkuranium/tclib
/tests/codec_images/generate.sh
UTF-8
2,711
4.25
4
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
#!/bin/sh # Generate reference images. # The tool `texconv` is from DirectXUtils. It is used as the reference codec. # Note that it must be compiled with OpenEXR support! SRCDIR='source' COMDIR='compressed' REFDIR='reference' # Sadly, the texconv API doesn't let us name output directly. So we'll generate # this and th...
true
dccf164e4ea91777583f212999999a5fdf6040b8
Shell
adswa/python-ml
/code/generate_simg.sh
UTF-8
392
2.8125
3
[]
no_license
#!/bin/sh set -e # Generate a singularity recipe with Neurodocker # requires the Python package neurodocker (pip install neurodocker) # Usage: bash code/generate_simg.sh <version-number> neurodocker generate singularity \ --base=neurodebian:buster-non-free \ --pkg-manager=apt \ --install datalad \ --run-bash 'pip ...
true
29055ff66e12de1e51855130eff4046b2f02f685
Shell
strongit/NewhostInit
/useful-scripts/tcp-connection-state-counter.sh
UTF-8
334
3.125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # @Function # show count of tcp connection stat. # # @Usage # $ ./tcp-connection-state-counter.sh # # @author Strong It netstat -tna | awk 'NR > 2 { s[$NF]++ } END { for(v in s) { printf "%-12s%s\n", v, s[v] } }' | sort -nr -k2,2 #netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S)...
true
e47c4017135b0fbfd00dadd884f1768b46532568
Shell
abhirupju/PeriodicityPy
/runbatch.sh
UTF-8
2,865
2.515625
3
[]
no_license
#!/bin/bash # Kill all jombies if things go wrong: # kill -9 `ps aux | grep s1563028 | awk '{if ($11~"python")print $2}'` echo " #-> Plain # -Period range: 0-30 # -Prior: period - uniform # -Resample: every step # -Dynamics: static. t-dist scale=0.1 " python run.py -r noise -n 1000 -p 30 & #python run.py ...
true
863c6565f34167909f0d46e99f462775db75ce34
Shell
qrvd/discord-unix-bot
/sbin/mention.user
UTF-8
165
3.21875
3
[ "BSL-1.0" ]
permissive
#!/bin/bash set -ueo pipefail if [[ "$#" -eq 0 ]]; then echo "Mention which user ID?" exit 1 fi uid="$(sbin/readnum "$0" 'user ID' "$1")" printf '<@!%s>' "$uid"
true
b71c991516a4cd58b1f51e4b66bd18687a4ca08d
Shell
dineshondev/portal
/entrypoint.sh
UTF-8
2,948
2.828125
3
[ "MIT" ]
permissive
#!/bin/sh export NODE=`which node` export NODE_OPTIONS=--max_old_space_size=1024 export NODE_PG_FORCE_NATIVE=true export NODE_ENV=${NODE_ENV:=production} # FIX: https://github.com/typeorm/typeorm/blob/master/docs/migrations.md # "Typically it is unsafe to use synchronize: true for schema synchronization on production...
true
965732eb44a1d644bdd93861cd6f36176e4eebbd
Shell
wh5a/arch
/.zer0prompt
UTF-8
4,268
3.78125
4
[]
no_license
#!/bin/bash # # zer0prompt # By: Wes Brewer [zer0] # Last updated: Nov 8, 2009 # # Credit for ideas/info: Phil!'s ZSH Prompt, Bashish, TERMWIDE prompt # Bash Prompt Howto # # Usage: Add the follwing lines to your ~/.bashrc file # source ~/.zer0prompt # zer0prompt # unset zer0pr...
true
bc13020924d9461882b71a6b0e563fa657333781
Shell
kientv80/webtore_web
/hayhay/monitor.sh
UTF-8
2,035
2.96875
3
[]
no_license
#!/bin/bash echo "Start running `date`" >> /kientv/hayhay/monitorlog.txt if [ $running == "true" ]; then echo "Other cron is running" >> /kientv/hayhay/monitorlog.txt else running="true" export $running echo "Checking webserver ....." >> /kientv/hayhay/monitorlog.txt result=`curl http://360hay.com/googleb15db46...
true
66aac2e44520028905c2e78e73ea014a08061f14
Shell
ftakao2007/vagrant
/script/backup_redmine.sh
UTF-8
300
2.96875
3
[ "MIT" ]
permissive
#!/bin/sh BACKUP_DIR="redmine_backup" NOW=`date +%Y%m%d` if [ ! -d "${BACKUP_DIR}" ]; then mkdir ${BACKUP_DIR}; fi mysqldump -uredmine -predmine redmine > ${BACKUP_DIR}/redmine.${NOW}.sql cd /var/www/redmine tar zcvf ~/${BACKUP_DIR}/files.${NOW}.tar.gz files #mv files.${NOW}.tar.gz ${BACKUP_DIR}
true
7b582f1ee2e1bdece19c6b3303f857960e697cf3
Shell
lizehang/jsproxy
/i.sh
UTF-8
3,646
3.953125
4
[ "MIT" ]
permissive
#!/usr/bin/env bash CDN=https://cdn.jsdelivr.net/gh/etherdream/jsproxy-bin@master JSPROXY_VER=0.0.9 PCRE_VER=8.43 ZLIB_VER=1.2.11 OPENSSL_VER=1.1.1b OPENRESTY_VER=1.15.8.1 SUPPORTED_OS="Linux-x86_64" OS="$(uname)-$(uname -m)" NGX_DIR="$HOME/openresty" COLOR_RESET="\033[0m" COLOR_RED="\033[31m" COLOR_GREEN="\033[32...
true
a0b46de591c9c077b9829ff4a5af56b4cd129641
Shell
greenelab/ccc
/scripts/convert_ipynb_to_py.sh
UTF-8
754
3.96875
4
[ "BSD-2-Clause-Patent", "BSD-3-Clause" ]
permissive
#!/bin/bash # show commands being executed (for debugging purposes) #set -x SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) NOTEBOOK="${1}" if [ -z "${NOTEBOOK}" ]; then echo "Provide the notebook path" exit 1 fi # capture whether notebook has a python or R kernel regex="\"file_e...
true
eac429af874df62b37181a94dab097607c2aa904
Shell
pipitone/datasets
/setup.sh
UTF-8
974
3.15625
3
[ "MIT" ]
permissive
#!/bin/bash set -e virtualenv env . env/bin/activate pip install pyyaml docopt cat <<'EOF' > env/bin/datasets #!/bin/bash source $(dirname $0)/activate python $(dirname $0)/../../datasets.py "$@" EOF echo Fetching sample data... mkdir -p test/US_crime echo -e "---\ndataset: true\ndescription: Sample US crime data\n...
true
149296bd82c2f5497452b506e86174250af43fe8
Shell
NYULibraries/dlts_viewer_distro
/bin/link_build.sh
UTF-8
2,032
4.09375
4
[]
no_license
#!/bin/bash die () { echo $1 exit 1 } SOURCE="${BASH_SOURCE[0]}" # resolve $SOURCE until the file is no longer a symlink while [ -h "$SOURCE" ]; do DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" SOURCE="$(readlink "$SOURCE")" # if $SOURCE was a relative symlink, we need to resolve it relative to the pat...
true
f52348e8a11f0c51d9d91ed3cb493e4fc56a5ac8
Shell
jovalle/.jsh
/ubuntu.sh
UTF-8
1,530
3.390625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # Install prerequisites sudo apt update && sudo apt upgrade -y sudo apt install -y software-properties-common build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev zsh # Install Meslo NF sudo apt install fontconfig c...
true
125b019537340a0e34989aa15444c5d2a0c4365b
Shell
bartonlp/site-class
/mk-html-gitlog.sh
UTF-8
1,206
2.921875
3
[ "MIT" ]
permissive
#!/bin/bash # !!! You need pandoc: sudo apt-get install pandoc css=' <style> div.sourceCode { background-color: #EEF3E2; border-left: 10px solid gray; padding-left: 5px; } code { background-color: #EEF3E2; } </style> '; # Make .html files from .md files pagetitle="Main Readme file"; /usr/bin/pandoc -Vpagetitl...
true
91d75bce13f3fb581784a93756bab626bfb2d2e9
Shell
bmwant/dotfiles
/loadcfg.sh
UTF-8
353
3.375
3
[]
no_license
#!/usr/bin/env bash set -e CYAN='\033[0;36m' NC='\033[0m' function info() { echo -e "${CYAN}$@${NC}" } info "Restoring $1/.bash_profile to ${HOME}/.bash_profile..." cp "$1/.bash_profile" "${HOME}/.bash_profile" info "Restoring $1/.zshrc ${HOME}/.zshrc to $1/.zshrc..." cp "$1/.zshrc" "${HOME}/.zshrc" info "Resto...
true
dfb4f293e97934c4c290f9e199c6c1fbc91c1146
Shell
markj/tvos_scripts
/scripts/fix_image_alpha_channels.sh
UTF-8
2,786
3.640625
4
[ "MIT" ]
permissive
#!/bin/sh # Apple TV stack images can not contain an alpha channel on the back layer. # This script uses ImageMagic to detect and fix this problem as it can be hard to make apps not export the channel # Install ImageMagic by `brew install ImageMagick` # export PATH=$PATH:/usr/local/bin ROOT="$1" function fix_alp...
true
01d35bc74463613da26f65ad0a87aa492402b017
Shell
costa-group/installation-scripts
/saco/ei/common_config.sh
UTF-8
339
2.71875
3
[]
no_license
#!/bin/bash TOOL_PATH=$1 echo -e "\n\ # Path to saco --- where you've extracted \n\ # \n\ # http://costa.ls.fi.upm.es/download/saco.colab.zip \n\ # \n" #/Systems/costa/costabs/dist/saco echo -e "EC_SACOHOME=$TOOL_PATH \n\ export SACOHOME=\${EC_SACOHOME} \n\ export COSTABSHOME=\${SACOHOME} \n\ export PATH=\${PATH}:...
true
10595d059ed2197672c1e545bcddf4d31e0b3aa5
Shell
green-pro/grdk-core
/services/install/lib/lib-install-cron.sh
UTF-8
5,428
3.828125
4
[]
no_license
#!/bin/bash ### HELP _install_cron_help() { echo "Usage: $prog_name install cron <subcommand> [options]" echo "Subcommands:" echo " empty (install main)" echo " start" echo " stop" echo " restart" echo " add (add scripts)" echo " rm (remove scripts)" echo "" echo "For help with each subcom...
true
d2a12a6505bbe2c7845af290bfd12d1beb62c49f
Shell
yanyingwang/shanghai-tools
/kit/the-bund-light.sh
UTF-8
1,983
3.34375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash #set -x #The MIT License (MIT) #Copyright (c) 2015 Yanying Wang #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without restriction, including without limitation the right...
true
7896dcf8c871343386f8147a74abab0b8ca7aa5f
Shell
davide125/dc-chef-utils
/chef_bootstrap.sh
UTF-8
2,383
3.84375
4
[ "Apache-2.0" ]
permissive
#!/bin/sh set -eu chef_version='12.21.26' chef_utils_version='c08a9ff7aa176e09410ab6381380b9ae179293de' omnitruck_url='https://omnitruck.chef.io/install.sh' chefctl_url="https://raw.githubusercontent.com/facebook/chef-utils/${chef_utils_version}/chefctl/chefctl.rb" chefctl_hooks_url='https://raw.githubusercontent.co...
true
0e240dbe5a3914bf88d1d1a25cf20190b460c847
Shell
swi-infra/jenkins-docker-encaps
/encaps-cleanup
UTF-8
1,352
3.828125
4
[ "MIT" ]
permissive
#!/bin/bash set +e DOCKER_ENCAPS_ETC_PATH=${DOCKER_ENCAPS_ETC_PATH:-'/etc/encaps.d'} DOCKER_ENCAPS_KILL_TIMEOUT=${DOCKER_ENCAPS_KILL_TIMEOUT:-30} DOCKER_ENCAPS_RM_TIMEOUT=${DOCKER_ENCAPS_RM_TIMEOUT:-300} if [ -z "$DOCKER_ENCAPS_NAME" ]; then if [ -z "$BUILD_TAG" ]; then echo "No DOCKER_ENCAPS_NAME or BUI...
true
06863252f711d8399675eb8cc0e484e8d2bfe990
Shell
agung56/SoalShiftSISOP20_modul1_T05
/soal2/soal_2enkripsi.sh
UTF-8
165
3.078125
3
[]
no_license
#!/bin/bash for tajuk in $@ do time=`date +%H -r $tajuk` tajuklama=`basename $tajuk .txt` tajukbaru=`echo $tajuklama | caesar $time` mv $tajuk $tajukbaru.txt done
true
7e00c59d7c78886b20495c0943eebe99c6c192b9
Shell
indrjo/minimal-texlive-installer
/scripts/uninstall-texlive
UTF-8
475
3.953125
4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/usr/bin/env sh set -e -o pipefail # PARSING COMMANDLINE ARGUMENTS ******************************************* # Where all the installed TeX Live goes. It defaults to a directory in your # home called "texlive". prefix=~/texlive # Parsing the commandline arguments. while [ $# -gt 0 ]; do case $1 in --prefix...
true
7c37254224aee95ae7a5e0e10bcc28ed3c04ea86
Shell
ceciliaYunbei/Traitement-et-analyse-des-mots-multilingues-et-visualisation-sur-le-web
/PROJET-MOT-SUR-WEB_CHINOIS/PROGRAMMES/concat.sh
UTF-8
157
3.15625
3
[ "MIT" ]
permissive
#!/bin/bash read DOSSIER; cd $DOSSIER; #cat *.txt > concat.txt; for fichier in `ls $DOSSIER` { echo "" > concat.txt cat $fichier >> concat.txt }
true
728481d1f8ba9b74a3d285405633291513d6758b
Shell
milvus-io/milvus
/tests/python_client/chaos/chaos_test.sh
UTF-8
3,787
3.703125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e set -x echo "check os env" platform='Linux' unamestr=$(uname) if [[ "$unamestr" == 'Linux' ]]; then platform='Linux' elif [[ "$unamestr" == 'Darwin' ]]; then platform='Mac' fi echo "platform: $platform" ns="chaos-testing" # switch namespace # kubectl config set-context --current --namespace...
true
14f569afb7988a592b746e081dc35f8da7b9794f
Shell
0wu/onnc-umbrella
/build.sh
UTF-8
7,554
4.1875
4
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash # The ONNC Project # source ./scripts/library.sh ##===----------------------------------------------------------------------===## # Print usage of this script ##===----------------------------------------------------------------------===## function usage { show "Usage of $(b...
true
9bd89e135f0905adf07ff1532b0c3196fb735710
Shell
frolland04/tests
/qt/DEV-QT6/devel-docker/devel-docker-build.sh
UTF-8
304
3.203125
3
[]
no_license
#!/bin/bash P_UID=`id -u` P_GID=`id -g` IMAGE_NAME="dev-qt6" echo "Building Docker image $IMAGE_NAME ..." DIR_ROOT=`dirname $(readlink -f $0)` cd $DIR_ROOT # Use '--no-cache' if needed. docker build --no-cache --tag $IMAGE_NAME --build-arg UID=$P_UID --build-arg GID=$P_GID . echo "FINISHED." cd -
true
565df7b4b6abbbe8f7a09846cb77659421f14e98
Shell
chenq182/snapshot
/mysql.sh
UTF-8
914
3.578125
4
[]
no_license
#!/bin/bash # 幂等 PKG_LIST=("mysql-server") ################################################## # Ubuntu 16.04 specific settings ################################################## InstallCFGs() { cp /etc/mysql/mysql.conf.d/mysqld.cnf /etc/mysql/my.cnf sed -i '/\[mysqld\]/a\character_set_server=utf8\ncollation-s...
true
cd8bcdac39bebfd3459fc2dabc46effd22b90882
Shell
esauvisky/arch-install
/config/nautilus-scripts/Scripts Examples/File Processing/print_with_openoffice
UTF-8
371
3.21875
3
[]
no_license
#!/bin/sh # # This script prints the selected files with openoffice.org # especially useful for openoffice files ;-) # # the "quoted..." line handles multiple files with spaces # (like shown on the g-scripts site) # quoted=$(echo -e "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | awk 'BEGIN {FS = "\n" } { printf "\"%s\" ", ...
true
eddc9979dad17dc61f18e62dd321a7d523f65c5f
Shell
alarcher/ksh93
/src/cmd/ksh93/tests/vartree1.sh
UTF-8
6,592
3.4375
3
[]
no_license
######################################################################## # # # This software is part of the ast package # # Copyright (c) 1982-2011 AT&T Intellectual Property # # and i...
true
ac3de4b3565122df5738f5528e0cca67948f0bc7
Shell
davep-github/dpw
/bin/de%remerge
UTF-8
3,183
4.09375
4
[]
no_license
#!/bin/bash source script-x progname=$(basename $0) pre="TMP-" dones=$(TMPDIR="$PWD" tempfile --prefix=$pre) num_failures=0 : ${executor:=} # # Take a file of lines and unmerge and then merge each package mentioned in # the file. # Motivation: # These hoops are here because I've seen a problem where I've installed #...
true
b63c175118c3e350c5dedf5425db16d656186b96
Shell
king-11/website
/deploy.sh
UTF-8
1,641
3.625
4
[ "MIT" ]
permissive
#!/usr/bin/env bash set -e languages=(de en fr pt) echo "Fetching data…" git clone --depth 1 https://github.com/datenanfragen/data data_tmp echo "Creating directories…" for lang in ${languages[@]} do mkdir -p "content/$lang/company" mkdir -p "content/$lang/supervisory-authority" done mkdir -p static/templat...
true
93d8f633bfa7c3a241d794674b1086ad2b6b2f79
Shell
hot-kid-milk/runshell1
/cnode1.sh
UTF-8
2,069
2.984375
3
[]
no_license
#!/usr/bin/env bash cntFile=".showcnt.txt" epFile="epFile.txt" if [ ! -f $cntFile ]; then continue fi if [ $# == 1 ]; then if [ $1 == "resetcnt" ]; then echo "0" > $cntFile fi fi ep=`cat $epFile` tCnt=`cat $cntFile` let tCnt++ echo $tCnt > $cntFile echo " 这是第 $tCnt 次创建节点" echo " 若需更改endpoint,请自行修改epFile.txt" cat>...
true
c0d67b56fd8e67ad282801aca1ad05f255917386
Shell
stevenjack/neocompiler-eco
/dockers-neo-scan-neon/buildRun_Compose_PrivateNet_Neon_NeoScanDocker.sh
UTF-8
418
3.3125
3
[ "MIT" ]
permissive
#!/bin/bash if (( $# == 0 )); then echo "Removing any previous data from Neon"; (cd ./docker-neonwalletdb-neoscan; rm -rf data) echo "Calling docker compose for building privnet with neoscan and neon"; (cd ./docker-neonwalletdb-neoscan; docker-compose up -d) else echo "Calling docker compose, inside dock...
true
42d842e996c475b69b9ba0dc32e5d2891c9852b7
Shell
fengchen8086/LCIndex-HBase-0.94.16
/test-scripts/scripts/hbase/overnight.sh-04
UTF-8
3,364
3.15625
3
[ "Apache-2.0" ]
permissive
#!/bin/sh run_classpath=".:a.jar:hbase-0.94.16.jar" cd lib out=`ls *.jar` for i in $out; do run_classpath=${run_classpath}:`pwd`/$i; done cd ../ hbase_conf_filepath=`pwd`"/conf/hbase-site.xml" winter_assigned_filepath=`pwd`/conf/winter-assign forceflush=true maxRecordNumber=500000 threadNumber=10 regionNumber=1...
true
0b85e57771ee3aceb26bcf33e6dbd04d62731458
Shell
shizeeg/jagod
/helpers/version.sh
UTF-8
420
3.21875
3
[ "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause" ]
permissive
#/bin/sh COMMIT=$(git log -1 --abbrev-commit | grep 'commit' | cut -d ' ' -f2) COMMITDATE=$(git log -1 --date=short | grep '[Dd]ate'| sed 's|[^0-9-]||g') CNT=$(git log | grep 'commit' | wc -l | tr -d ' ') VERSION=$(echo "0.0.${CNT} (GIT ${COMMIT} (${COMMITDATE}))") sed "s|BOTVERSION = ".*"|BOTVERSION = \"$VERSION\"|g"...
true
d9b21b49518f505306fc5db3db305066c5c7a633
Shell
fabrer/automatic-summarization
/exec.sh
UTF-8
978
3.578125
4
[]
no_license
#!/bin/bash prefix="OUTPUT" while getopts f:v: option do case $option in f) folder=$OPTARG ;; esac done for f in $(find $folder -iname "*.txt"); do a=${f##*/} a=${a%.txt} mkdir $prefix/$a ./segmenteur.pl $f $prefix/$a/$a.seg ./filtrage.pl $prefix/$a/$a.seg $pr...
true
6e97e1cd5fb2feb83638d228bfbc78cc47e10c2a
Shell
clehner/textcraft
/server.sh
UTF-8
3,877
4.25
4
[]
no_license
#!/bin/bash # Game server test -n "$1" || { echo "Usage: ./client.sh <server_sock>" exit 1 } test -p "$1" || { echo "'$1' is not a named pipe" exit 1 } version=0.0.1 chunk_width=10 chunk_height=5 chunks_dir=data/chunks # pipes to client sockets declare -A client_socks # player positions declare -A players_x de...
true
82e9eb0d3b9f8b0f771756b3ebac639222d1b6f6
Shell
ignatiomobius/scripts
/script_files/spacesToTabs
UTF-8
85
2.53125
3
[]
no_license
#!/bin/sh for f in *xml do unexpand $f --tabs=2 > $f.new rm $f mv $f.new $f done
true
73938b491dd6e0eaaae4ce63c458dbbba3e92e6f
Shell
NogeekIT/trufflehog-scanner
/scanner.sh
UTF-8
883
4.1875
4
[ "MIT" ]
permissive
#!/usr/bin/env bash include="$1" exclude="$2" regex="$3" if [[ -z "${include}" ]] || [[ -z "${exclude}" ]] || [[ -z "${regex}" ]] then echo "Exiting... variables not specified" exit 0 fi echo "Include patterns variable is set: " "${include}" echo echo "Exclude patterns variable is set: " "${exclude}" echo...
true
4dbd792cf339a7a9e84fc1f2b393d849b3a83fc7
Shell
hackergrrl/dotfiles
/bin/slay
UTF-8
111
2.546875
3
[]
no_license
#!/usr/bin/env bash PID=$(ps aux | grep $1 | grep -v grep | head -n 1 | awk '{print $2}') echo $PID kill $PID
true
474eef22164028aeff06f639854bfe4f3ce75564
Shell
rygwdn/dotfiles
/bin/plantuml
UTF-8
284
3.1875
3
[]
no_license
#!/bin/bash if echo "$1" | grep -q '\.\(pu\|plantuml\)$' then args="-tsvg $@" open=true file="$(echo $@ | gsed 's/\.[^.]*$//').svg" else args="$@" open=false fi set -x java -Djava.awt.headless=true -jar $HOME/Desktop/plantuml.jar $args $open && open -g "$file"
true
6c24cd2d2ebd23f877e5f0440708a42349cf95a9
Shell
m-1-k-3/wick
/tests/lib/wick-command-exists.bats
UTF-8
362
2.65625
3
[ "MIT-0" ]
permissive
#!../bats/bats setup() { load ../wick-test-base . "$WICK_DIR/lib/wick-command-exists" } @test "lib/wick-command-exists: linux - exists" { mock-command which wick-command-exists/linux wickCommandExists ok } @test "lib/wick-command-exists: linux - does not exist" { mock-command which wick-command-e...
true
3e8915c8bdecf4452923ca014bc5612af5c54c79
Shell
Olgoetz/wordpress-aws-deployment
/destroy_wordpress.sh
UTF-8
284
3.265625
3
[]
no_license
#!/bin/bash # ----> EXPORT THE ACCOUNT CREDENTIALS AS ENVIRONMENT VARIALBES chmod +x access_keys.sh source ./access_keys.sh # ----> DESTROY THE RESSOURCES terraform destroy read -p "Do you want remove the credentials (y/n)?: " OK if [ $OK = "y" ]; then rm access_keys.sh fi
true
f60be5fb2a87cf9429b3d7a5885ba97d96513835
Shell
swajahataziz/namd-nvidia-docker-singlenode
/batch-runtime-scripts/entry-point.sh
UTF-8
1,240
3.3125
3
[]
no_license
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: MIT-0 #!/bin/bash # Load variables BASENAME="${0##*/}" log () { echo "${BASENAME} - ${1}" } AWS_BATCH_EXIT_CODE_FILE="/tmp/batch-exit-code" HOST_FILE_PATH="/tmp/hostfile" # aws s3 cp $S3_INPUT $SCRATCH_DIR touc...
true
d3801220d7288b57d45c7b955bae82f96dab9e1c
Shell
mnsmar/itutils
/send-to-codereview/bin/send-to-codereview
UTF-8
682
4.0625
4
[ "MIT" ]
permissive
#!/bin/bash # Check for proper number of command line args. EXPECTED_ARGS=2 E_BADARGS=65 if [ $# -lt $EXPECTED_ARGS ] then echo "Usage: send-to-codereview [DIR] [DESTINATION]" echo "Send a git repository [DIR] to code review." echo "The destination directory will be a bare clone of the repository." exit $E_B...
true
c35cd570c8c11cdd0db5ae0d5901d1ab740779b3
Shell
wujun728/jun_linux
/Linux_shell/LNMT/proftpd.sh
UTF-8
5,849
3.65625
4
[]
no_license
#!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH # Check if user is root if [ $(id -u) != "0" ]; then printf "Error: You must be root to run this script!\n" exit 1 fi clear printf "=========================================================================\n" printf...
true
c8e2a58b82ff1cf5a1c01559ebd2f1d865236d0f
Shell
rjnienaber/ruby-cachespeed
/scripts/install.sh
UTF-8
1,987
2.671875
3
[ "MIT" ]
permissive
#!/usr/bin/env bash gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3 sudo add-apt-repository -y ppa:rwky/redis sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.lis...
true
22e21e2ad396faccf43a01291cc4c5c2ddd38079
Shell
k838450/torumaru
/filter/port_conversion.sh
UTF-8
488
3
3
[]
no_license
#!/bin/sh inode_num=`cat /proc/net/tcp | grep -i :$1 | awk '{print $10}'` pid=() for i in $inode_num do #pid+=(`ls -l /proc/[1-9]*/fd/[1-9]* 2>/dev/null | grep $i | awk '{print $9}'|sed "s/\/proc\//\/proc /g" | tr "/" "\n" | grep proc | awk '{print $2}' | tr "\n" "," `) pid+=(`ls -l /proc/[1-9]*/fd/[1-9]* 2>/dev...
true
64d6936e0472816679e44244177d47f842e6677f
Shell
jacklee032016/pbx
/FileSystem/PreReleases/common/etc/init.d/rcS
ISO-8859-3
1,100
2.65625
3
[]
no_license
#!/bin/sh cat /etc/motd echo cat /etc/version.info echo echo "Intel XScale IXP422, NPEs(Chengdu@Assistcn.com)" if [ ! -f /proc/mounts ] ; then /bin/mount -t proc proc /proc fi /bin/mount -t usbfs usb /proc/bus/usb # /bin/mount -t ext3 -o rw -o remount /dev/hda1 / if [ ! -f /etc/mtab ] ; then ln -s /proc/mounts /...
true
c8afcc4fdcb6fed0c9de45b51119b50b0dbffe67
Shell
kpaxer/ncc_src
/usr/sh/task_snd.sh
UTF-8
749
3.1875
3
[]
no_license
#!/usr/bin/ksh #netstat -Aan|grep LISTEN|awk -F ' ' '{print $5}'|awk -F '.' '{print $NF}'|sort -n #for fname in `ls`;do # if [[ $fname != tran_* ]] ;then # continue; # fi # # if [ -f $fname ] ;then # echo $fname; # echo x$fname; # mv $fname x$fname; # fi # # #echo $dir #...
true
5d4f543f1616ddc5c11b229a432439b7aacfaab1
Shell
archetypal/sh
/teststring.sh
UTF-8
210
2.71875
3
[]
no_license
#!/bin/sh # string and numeric tests # # display the through `test` # STRING1 = STRING2 [ "$1" = "$2" ] && echo the strings are equal # STRING1 != STRING2 ! [ "$1" = "$2" ] && echo the strings are not equal
true
3496724b2e1144d8671bbba66e350b3dbc6c79f3
Shell
ekivemark/rhel_python3_django_setup
/mkenv3
UTF-8
4,971
3.828125
4
[]
no_license
#!/bin/bash set +x set -e set -u export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }' ( user=$(id -u) if [[ $user -eq 0 ]]; then echo "Do you want to run this as root?" fi ) ( set +e rpm -q mod_wsgi status=$? set -e if [[ $status -eq 0 ]]; then ...
true
7cb13a42ec99e81e52545f70817947333f60da50
Shell
alroman/log-server
/scripts/data/clean_sql.sh
UTF-8
1,028
3.921875
4
[]
no_license
#!/bin/bash # # This script will take the mld_log SQL file and filter it so that # only the INSERT rows are left in a convenient format # cat log.sql | grep -E '\([0-9]+,.*\)' | sed 's|),(|),\n(|g' > temp.sql # $1 = input file # $2 = output file # Expect timestamp file DATE=`date +'%Y-%m-%d_%H%M'` FILE_IN="$DATE.sql...
true
c1ac94153a9fbb3ed929e5c5d4d940007dd4fac5
Shell
bridgecrew-perf7/postfacto-deployment
/tasks/cf-lib.sh
UTF-8
3,274
3.609375
4
[ "Apache-2.0" ]
permissive
cf_auth() { local opsman_domain_or_ip_address=${1:-127.0.0.1} local opsman_username=${2:-user} local opsman_password=${3:-pass} om_cli="om-linux -k -t https://$opsman_domain_or_ip_address -u $opsman_username -p $opsman_password" cf_guid=$(${om_cli} curl --path /api/v0/deployed/products | jq -r '.[] | select(...
true
c664e7bb9244eb9d732f74f8e0bd616e5cef6dba
Shell
ElvenMonky/papp
/scripts/publish.sh
UTF-8
371
2.75
3
[]
no_license
./node_modules/.bin/node-pre-gyp package ${NPM_FLAGS} COMMIT_MESSAGE=$(git show -s --format=%B $TRAVIS_COMMIT | tr -d '\n') if [[ ${COMMIT_MESSAGE} =~ "[publish binary]" ]]; then ./node_modules/.bin/node-pre-gyp publish ${NPM_FLAGS} elif [[ ${COMMIT_MESSAGE} =~ "[republish binary]" ]]; then ./node_modules/.b...
true
174d7efd9c4a797c195ff73b5e2ab52587198467
Shell
sunu-nandakumar/shellProgramming
/sequence-statement/dice.sh
UTF-8
103
2.765625
3
[]
no_license
#!/bin/bash -x dice=$((RANDOM%6+1)) echo $dice dicee=$((RANDOM%6+1)) add=$(($dice+$dicee)) echo $add
true
151e9633235f0a61c8b1619e9638aa2c3bec6279
Shell
CosmicToast/toasty-zsh
/plugins/xterm-title
UTF-8
226
2.53125
3
[ "LicenseRef-scancode-unknown-license-reference", "Unlicense" ]
permissive
function xterm-title { print -Pn '\e]0;%n@%m $(history $HISTCMD | cut -b8-)\a' } autoload -Uz add-zsh-hook add-zsh-hook precmd xterm-title add-zsh-hook preexec xterm-title add-zsh-hook chpwd xterm-title # vim: ft=zsh
true
1d5f8dcbea804295f6f2c25223b4410f7374951c
Shell
tekknikk/ansible-hypertable
/Library/aws_cli
UTF-8
1,302
4.25
4
[ "MIT" ]
permissive
#!/bin/bash # # Absoluterly simple wrapper around `awscli` Python module # to avoid unnecessary JSON template manipulations # # Exit upon any error set -e # # Ansible transports arguments to modules in a file. The # path to the arguments file is in $1, and the file # contains the module's arguments like this: # # ...
true
d72ca3ef74908c93b5c9e29daf88b6f7ad216053
Shell
jeremyss/cisco
/cisco-commands.sh
UTF-8
2,516
3.453125
3
[]
no_license
#!/usr/bin/expect match_max 99999 if { [lindex $argv 0] == "-h" || [lindex $argv 0] == "--help" } { puts "\nUsage:\n\tcisco-commands.expect \'host-file\' \'commands-file\' \'fileID\'\nEx:\n\tcisco-commands.expect hosts.txt commands.txt interfaces\n"; exit 1; } elseif { [lindex $argv 0] == "" } { puts "\nUs...
true
37dbd0ee3a1c9728f5b8e5006aec884f5d2ea50b
Shell
tobby-lie/Cyber-Security-Programming-Powershell-and-Bash-Scripting-for-Security-Administration
/Bash/NetworkChangeMonitor.sh
UTF-8
1,521
3.796875
4
[]
no_license
#!/bin/bash # initialize start time start_time="$(date -u +%s)" while true do # get all open ports and put in log file nmap -vv 192.168.10.*/24 | grep -E "Discovered open port" > initial_output.txt # put each line of log file into array init_arr=() if [ -s initial_output.txt ] then mapfile -t myArray < init...
true
e1eb6bf049466b273e32ef88a4fc05a6f089095c
Shell
mmehride/MatRox_RU
/scripts/testSTFlops
UTF-8
1,152
3.078125
3
[ "MIT" ]
permissive
#!/bin/bash #SBATCH -A mit162 #SBATCH --job-name="Strumpack" #SBATCH --output="ml.%j.%N.out" #SBATCH --partition=compute #SBATCH --nodes=1 #SBATCH --ntasks-per-node=24 #SBATCH --export=ALL #SBATCH -t 01:30:00 ## all SPD matrix files stored in dense column major format declare -a filearray=( "../data/letter20000.poi...
true
4440150dd8167cc030ecb0a3850c2024b14c7e53
Shell
jartigag/dotfiles
/scripts/.bring_to_front.sh
UTF-8
679
3.609375
4
[]
no_license
#!/bin/bash #author: @jartigag #date: 2022-03-02 #version: 1.0 # # Associate keyboard shortcuts with this script + different arguments, # so it brings the desired window to front when a shortcut is pressed. # #usage: # $ bash .bring_to_front.sh "Spotify" /tmp/spotify-winID.wid # #requeriments: # $ sudo apt install wmct...
true
7e4a505af1bd1e186f918a94ce7730de3c40f79a
Shell
abrbon/LetsEncrypt_DuckDNS_script_toolset
/certbot_firstrun_script.sh
UTF-8
652
3.359375
3
[]
no_license
#!/usr/bin/env bash # # Start Certbot for first time to generate all files and folder. # set -e # Set global vars. source /usr/local/certbot_files/certbot_config_vars.sh # Create log directory. if [ ! -d $LOGDIR ] then mkdir -p $LOGDIR >/dev/null 2>&1 && \ echo "Directory $LOGDIR created."; \ chmod o=,g=r $LOGDI...
true
406429a5301c9db5659e26bccd02e484b2328cfd
Shell
veltzer/demos-bash
/src/examples/core/glob/nullglob_for_a_piece_of_code.bash
UTF-8
817
3.578125
4
[ "MIT" ]
permissive
#!/bin/bash -u # This example shows how to use nullglob to get strict globbing # and to enable and disable it just for a small piece of code. # # NOTES: # - The problem with saving the nullglob state solution is that it # requires a subshell # and that is slow ($(shopt -p nullglob)). # I don't know of a better solutio...
true
8eb5606d95420289157ef72a34f2539fd25b39db
Shell
hepyu/shell-script
/stat/lantency/manual-cal-lantency-byDay.sh
UTF-8
691
3.359375
3
[ "Apache-2.0" ]
permissive
#command example: #sh manual-cal-lantency-byDay.sh /data/logs/userspace/user-space-request.log 2014-01-01 8 #notice: #the format of logfile name should be like 'user-space-request.log.2014-01-01-00.log', to be hour,notice the date format during the file name. LOGFILE_PREFIX=$1 DAY=$2 TOP_N=$3 PWD_PATH=`pwd`"/" if [ $...
true
00301a90cdc8207f032d475c4435634f2dd532da
Shell
thiagoa/dotfiles
/linux/packages/setup_terminal_packages.sh
UTF-8
2,929
3.53125
4
[]
no_license
#!/bin/bash LINUXBREW=${LINUXBREW:-true} sudo apt install curl echo "Installing terminal deb packages" # libnotify-bin -> notify-send command # libwxbase3.0-0v5 and libwxgtk3.0-gtk3-0v5 -> Veracrypt deps sudo apt install \ silversearcher-ag \ ripgrep \ redis \ nginx \ rlwrap \ zsh \ ...
true
08d3f0e5720610ba5d02afc5d04a6e0ed824b015
Shell
daoducnha/shell_script
/chap17/test13.sh
UTF-8
280
3.828125
4
[]
no_license
#!/bin/bash # using recursion function factorial { if [ $1 -eq 1 ] then echo 1 else local tmp=$[ $1 - 1 ] local result=$(factorial $tmp) echo $[ $result * $1 ] fi } read -p "Enter value: " value result=$(factorial $value) echo "The factorial of $value is: $result"
true
bdc98e7691df33c8b7b1ef3ae4630ed9efb64990
Shell
timbertson/app-customisations
/bin/remove-unwanted-stereo-pictures
UTF-8
628
3.328125
3
[]
no_license
#!/bin/bash set -e if [ "$1" = '-f' -o "$1" = '--force' ]; then trash_cmd='sh("trash", file)' else trash_cmd='True' echo "(printing; use -f or --force to really delete)" >&2 fi set -u for dir in orig straight; do if [ -d "$dir" ]; then (cd $dir && \ piep -i <(ls -1) \ 'file = p | path.join("..","cross-...
true
36a92b8f8d1e4885ccacd5adf45982c606717323
Shell
glynastill/slony1-engine
/tools/build_release.sh
UTF-8
1,969
3.84375
4
[ "PostgreSQL" ]
permissive
#!/bin/sh ############################################################################ # # Builds a slony release in an automated way. # # usage: build_release.sh git_branch version pg_configdir ############################################################################ GIT_TAG=$1 REL_VERSION=$2 PGCONFIG_DIR=$3 if [...
true
e18332f109f80b989bb0b8ffce6304b1b39c31f0
Shell
jlsam/scripts-crypto-nodes
/Polis/setup-Polis-VPS.sh
UTF-8
8,713
3.984375
4
[ "MIT" ]
permissive
#!/bin/bash # assumes root login and requires pre-existing SSH key # run script with dot/space (source): '. setup_polis.sh' or 'source setup_polis.sh' to preserve directory changes. # This script will: 1) fix locale, 2) update system and install dependencies, 3) create a service user to run the node # 4) create a sudo...
true
f785099aa02d8a6df5c020e705ae97bd74e87abf
Shell
nathanmyles/minikube-local-infrastructure
/enter_regcreds.sh
UTF-8
785
3.28125
3
[]
no_license
#!/usr/bin/env bash set -e read -r -p "Secret name [regcred]: " name name="${name:-regcred}" read -r -p "Registry URL: " registry_url read -r -p "Email: " email read -r -p "Username [${email}]: " username username="${username:-${email}}" read -r -p "Password: " -s password echo " kubectl create secret docker-registr...
true
2494c9eaebd0aa2b3cfa13e8f70705cfc915605d
Shell
ppvastar/jigg
/.checker/scripts/install-knp.sh
UTF-8
275
3.140625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e home_dir=`pwd ./` url=http://nlp.ist.i.kyoto-u.ac.jp/nl-resource/knp/knp-4.19.tar.bz2 file=knp-4.19.tar.bz2 dir=knp-4.19 # download wget ${url} # unpack bz2 file tar -jxvf ${file} # build cd ${dir} ./configure make sudo make install cd ${home_dir}
true
a980b3e72bb57ec85dee290e9416de3da9b6c8a0
Shell
JiriHusak-lab/POC-T-REF-NODE2DB2
/tests/tests.sh
UTF-8
452
2.78125
3
[]
no_license
#!/bin/sh while ! timeout 1 bash -c "echo > /dev/tcp/vote/80"; do sleep 1 done curl -sS -X POST --data "vote=b" http://vote > /dev/null sleep 10 if phantomjs render.js http://result | grep -q '1 vote'; then echo -e "\\e[42m------------" echo -e "\\e[92mTests passed" echo -e "\\e[42m------------...
true
4eeb5746b54dfcd9bb3652f65efbb2fe8daff40e
Shell
invernizzie/fiuba-tp-grupal-intro-2011
/Servicios/Instalacion/raw_service.sh
UTF-8
354
3.6875
4
[]
no_license
#! /bin/bash # Utilizamos el primer parametro para especificar el paquete. SERVICE=$1 SERVICE_INSTALL=$(dpkg --get-selections $SERVICE | sed "s/\t//g" | grep $SERVICE"install") if [ -n "$SERVICE_INSTALL" ]; then echo "$SERVICE service is already installed."; else echo "$SERVICE service is not installed.";...
true
7ab90d03def97aac65148e381c73da08dd6451f0
Shell
Silva97/cli-tools
/shellcoder
UTF-8
8,133
4.1875
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # Developed by Luiz Felipe <felipe.silva337@yahoo.com> # GitHub: https://github.com/Silva97 if ! which nasm > /dev/null; then echo "This script uses nasm and ndisasm - https://nasm.us/" echo "Please, install it:" echo " $ sudo apt install nasm" exit 1 fi bits=32 tempasm=$(mktemp "/tmp/...
true
b6e0746f1e8f519427d44303316b2731d7821f2d
Shell
finmily/mac-init
/sh/set_ssh.sh
UTF-8
701
3.25
3
[]
no_license
#!/bin/bash read -p '输入远程服务器IP或者域名' DOMAIN read -p '输入远程服务器端口(默认请输入22)' PORT read -p '输入用户名(默认请输入root)' USER read -p '请输入密钥的名称(如github),然后一路回车' ENAME ssh-keygen -t rsa -f $ENAME echo '' >> ~/.ssh/config echo 'Host '$ENAME >> ~/.ssh/config echo ' IdentityFile ~/.ssh/'$ENAME >> ~/.ssh/config echo ' Hostname '$DO...
true
ecf6366ad470897052300438c84e1ffe2c5a275c
Shell
teddyhwang/base16-tmux-powerline
/themepack.tmux
UTF-8
258
3.03125
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" main() { tmux source-file "$CURRENT_DIR/base16-powerline.tmuxtheme" if [ $SPIN ]; then tmux source-file "$CURRENT_DIR/base16-powerline-spin.tmuxtheme" fi } main
true
f178d952cad77e1d7f3540ba79a066a3cf49894b
Shell
urmi-21/orphan-prediction
/plots_publication/Figure5/data-source/gc_hist.sh
UTF-8
458
3.109375
3
[]
no_license
#!/bin/bash file="$1" base=$(basename $file |cut -f 1 -d "_") f=$(cut -f 3 $file |grep -v "GC" |awk '$NF<0.3' |wc -l) echo -e "<0.30\t$base\t$f" for i in $(seq 0.30 0.01 0.65); do g=$(cut -f 3 $file |grep -v "GC" |awk -v x=$i '$NF>=x && $NF<x+0.01' |wc -l) echo -e "$i\t$base\t$g" #echo -e "$i-$(echo "$i +0.01" |bc |awk...
true
ece5b247d24d93c3e96c2b1c2425b902b5d57bf8
Shell
golangtech-id/gin-mvc
/_deploy/docker/mongo/replicaset/0-prepare.sh
UTF-8
372
3.15625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash cd $(dirname $0) && source ./NODE.variables ../network-setup.sh set_name=${REPLICA_SET_NAME} node_name="${set_name}-${NODE_BEGIN}" if [ -d "./build/${node_name}" ]; then exit 0 fi for node in `seq $NODE_BEGIN $NODE_END`; do \ node_name="${set_name}-${node}"; \ mkdir -p ./build/${node_...
true
bf214915596d2380d06444d0fc0daf7fafcc241c
Shell
narcher7/rack
/script/build
UTF-8
268
3.40625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash if [ -n "$GOPATH" ]; then echo "Building rack!" COMMIT=$(git rev-parse --verify HEAD) echo -e "package util\n\nvar Commit = \"$COMMIT\"" > util/commit.go go build -o $GOPATH/bin/rack else echo '$GOPATH must be defined. Do you have go setup?' fi
true
e710924365d27e6274a060023095fa217e96e58f
Shell
Nephyrin/NephScripts
/bin/ghup
UTF-8
1,616
4.15625
4
[]
no_license
#!/bin/bash # Update the git repo, syncing its map file with any local exports # and fixing missing tags set -e cd "$MOZPATH/moz-git" . "$(dirname "$0")"/lib/util.sh # # Functions # # List keys under some prefix, e.g. | hg_config_list paths | hg_config_list() { for config in $(hg -R "$MOZPATH/$MOZHG" showconfig "...
true
f8a94eb88f747cba0f0638d72b14c3b4d19483fc
Shell
phrynchanka/db-query-benchmarking-service
/run.sh
UTF-8
2,934
2.8125
3
[]
no_license
#!/usr/bin/env bash #Build application. echo "Building app" docker-compose down docker volume rm db-query-benchmarking-service_postgres-remote-1-data docker volume rm db-query-benchmarking-service_postgres-remote-2-data docker volume rm db-query-benchmarking-service_postgres-querydb-data docker volume rm db-query-benc...
true
661c6b851b364e1d9b5155707db4f4e467964e7e
Shell
nandu90/STH_Dos
/HW1/q8/run.sh
UTF-8
177
2.59375
3
[]
no_license
#!/bin/bash PROCS=$1 ARG1=$2 ARG2=$3 rm -rf RUN echo "Running Job on $PROCS processors" echo "See RUN folder" mkdir RUN cd RUN mpirun -np $PROCS ../bin/system1PH $ARG1 $ARG2
true
b003da29cbc4d995b60463e9849c611b72eb08c8
Shell
jasoncodes/dotfiles
/shell/aliases/ruby.sh
UTF-8
981
3.171875
3
[]
no_license
alias b='bundle check || bundle' alias bo='bundle open' alias be='bundle exec' alias cap='bundle exec cap' function rake { if [ -S .zeus.sock ]; then zeus rake "$@" elif [ -e bin/rake ]; then bin/rake "$@" elif [ -f Gemfile ]; then bundle exec rake "$@" else command rake "$@" fi } function _...
true
f7efc13b968e2f015188d14d5af952817c9c6aa0
Shell
daniiel/cursos
/Oracle 11g - Administration workshop I/courselabs/labs/lab_11_01_04.sh
UTF-8
820
2.734375
3
[]
no_license
# Oracle Database 10g: Administration Workshop I # Oracle Server Technologies - Curriculum Development # # ***Training purposes only*** #***Not appropriate for production use*** # # Start this script as OS user: oracle # This script creates DML on HR.JOBS as 2 different users cd ~/labs . set_db.sh sqlplus / as sys...
true
6a76ecdb6e8ed055957aab045967c06d0d983a7a
Shell
venki-tech/aep-terraform-create-aws
/createInventory.sh
UTF-8
3,053
3.671875
4
[]
no_license
#!/bin/bash echo "-------------------------------------" rm -rf ${WORKSPACE}/temp_repo_ws cd ${WORKSPACE}/aep-terraform-create-aws/ git remote set-url origin git@github.com:venki-tech/aep-terraform-create-aws.git git add terraform.tfstate* git commit -m "Added terraform state files to repo" || true git push origin HEA...
true
67ce27d507db8853dbe999176924a7f521838c1c
Shell
RobertAudi/tsm
/tools/generate_command.zsh
UTF-8
1,297
3.515625
4
[ "MIT" ]
permissive
#!/usr/bin/env zsh emulate -LR zsh setopt noclobber function __tsm_tools::trim() { local str="$(builtin printf "%s" "${@#"${@%%[![:space:]]*}"}")" builtin printf "%s" "${str%"${str##*[![:space:]]}"}" } function { local __tsm_root="${${(%):-%x}:A:h:h}" local __tsm_commands_dir="${__tsm_root}/src/commands" ...
true
2d0f25205fad14414b2bbf0779f9b01e60de3a19
Shell
sayem-eee-kuet/High-Performence-Scientific-Computing
/Home Works/HW_4/Task 1/task1_a.sh
UTF-8
451
2.6875
3
[]
no_license
#!/bin/bash file_2="cpp_compile_error.dat" file_3="c_compile_error.dat" if [ -f $file_2 ] ; then rm $file_2 fi if [ -f $file_3 ] ; then rm $file_3 fi mpiCC secret_function.o -Wall -o task1_a_cpp task1_a.cpp -lm -no-pie #&>> $file_2 #mpicc secret_function.o -Wall -std=c99 -o task1_a_c task1_a.c -lm &>> $file_...
true