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
b0178be271ba51694d31a64807d3bdb3b196089a
Shell
mdchia/raijin-scripts
/shasta.pbs
UTF-8
721
2.640625
3
[]
no_license
#!/bin/bash #PBS -P xe2 #PBS -q normalsl #PBS -l walltime=6:00:00 #PBS -l mem=32GB #PBS -l jobfs=16GB #PBS -l ncpus=16 #PBS -l other=hyperthread ## The job will be executed from current working directory instead of home. #PBS -l wd #PBS -o shasta_logs #PBS -e shasta_logs #PBS -m abe #PBS -M Ming-Dao.Chia@anu.edu.au #...
true
fa5877a7fa2ef0bf2110096573ee41058a0fa9d0
Shell
articuluxe/harmsway
/host/cathode/bin/untar-world.sh
UTF-8
2,121
3.875
4
[ "MIT" ]
permissive
#!/bin/bash # -*- Mode: sh -*- # untar-world.sh --- untar important files # Copyright (C) 2015-2018, 2020-2021 Dan Harms (dan.harms) # Author: Dan Harms <enniomore@icloud.com> # Created: Monday, May 18, 2015 # Version: 1.0 # Modified Time-stamp: <2021-02-10 14:11:13 dharms> # Keywords: configuration tar=$TAR manifest...
true
5fd5976f3596b823986e1a904af9f53b9235dbd4
Shell
gerassimos/dgs19
/docs/generatePDF.sh
UTF-8
635
3.1875
3
[ "MIT" ]
permissive
#!/bin/bash # start a web server that is used to generate(serve) the html pages echo "Start web server" docker run -d --name dgst19 -p 8069:80 -v $(pwd):/usr/local/apache2/htdocs/docs httpd:2.4 rm -rfv pdf mkdir pdf chmod 777 pdf for md_file in $(ls D_*.md); do html_file_name=$(echo web_"${md_file}" | sed 's/.md$...
true
36d950ff3bc6cd15165e7ef9e9955b8ad2498af1
Shell
yhfudev/bash-mrnative
/app-conv2dash/e1map.sh
UTF-8
13,484
3.59375
4
[ "MIT" ]
permissive
#!/bin/bash # -*- tab-width: 4; encoding: utf-8 -*- # ##################################################################### ## @file ## @brief Multimedia Transcoding Using Map/Reduce Paradigm -- Step 1 Map part ## ## In this part, the script check the file name format, and ## collect all of the files to be processe...
true
9120c392e6e411ffd3e5304a0a168ab9a8e41023
Shell
prometheus/alertmanager
/scripts/compress_assets.sh
UTF-8
1,093
3.3125
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "MIT" ]
permissive
#!/usr/bin/env bash # # compress static assets set -euo pipefail cd ui/react-app cp embed.go.tmpl embed.go GZIP_OPTS="-fk" # gzip option '-k' may not always exist in the latest gzip available on different distros. if ! gzip -k -h &>/dev/null; then GZIP_OPTS="-f"; fi dist="dist" if ! [[ -d "${dist}" ]]; then mkdi...
true
15582d92bead111ac4a9e9aec9724ad17a5a9db1
Shell
rabidpug/bootstrap
/scripts/0-configure-self
UTF-8
481
3.234375
3
[]
no_license
#!/bin/bash set -euo pipefail BS_PATH=/usr/local/bootstrap source "$BS_PATH/.env" source "$BS_PATH/utilities/lg.sh" lg '## BEGINNING CONFIGURING SELF ##' lg 'Configure log' touch /var/log/bs.log cat <<EOT >/etc/logrotate.d/bs /var/log/bs.log { daily copytruncate missingok dateext rotate 7 nocompress } EOT lg 'Mak...
true
80ab87e979d4aee84e6db59e02d98be0a2d8afa4
Shell
Jaymon/chef-cookbooks
/iptables/templates/default/iptables.sh.erb
UTF-8
871
2.8125
3
[ "MIT" ]
permissive
#!/bin/sh # borrowed from: http://jerrywalsh.org/2012/howto-secure-your-linux-box-with-iptables-0112.html # other helpful links: # http://www.etoyoc.com/linux/iptables-lockdown.html # set -x set -e # flush rules iptables -F # Log dropped connections #iptables -N LOGDROP # allow localhost connections to the loopback...
true
4adc401e8e1f54421d318ca3310fe22d5ca7a112
Shell
ironstar-io/tokaido-images
/kishu/entrypoint.sh
UTF-8
425
3.609375
4
[]
no_license
#!/usr/bin/env bash set -eo pipefail echo "Waiting 60 seconds before starting..." sleep 60 drupal_root=${DRUPAL_ROOT:-docroot} timer=${TIMER:-10} paths=$(find /tokaido/site/"${drupal_root}" -name settings.php -a -print0 | xargs -0 dirname | tr '\n' ' ') echo "Kishu will now maintain read/write permissions on the fol...
true
e47d72f63d48adf734f269f5d9f1ded15dd65089
Shell
jasonantao/cloud_initializer
/site/cloud-migrations-v1/WebMigrations-master/Core Service Scripts/linux-scripts-apps-sw-api-rest-master/setup.sh
UTF-8
646
3.03125
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
#! /bin/bash # MAKE ALL SHELL SCRIPTS EXECUTABLE TO ROOT ONLY find . -name "*.sh" -exec chmod 700 {} \; # SETUP STOCK WIDGETS ENVIRONMENT . ./env/setEnv.sh # ADD STOCK WIDGETS ADMIN USER ./install/addPkgUser.sh $user $group $home $pkg # INSTALL JBOSS ./install/bootstraps/jbossBootstrap.sh # SHUTDOWN JBOSS service ...
true
f444aa9e8930a3b22da7d301cff78c3f425e30cc
Shell
eDyablo/handicraft
/cpp/calc/build.sh
UTF-8
182
2.703125
3
[ "MIT" ]
permissive
#! /usr/bin/env bash set -o errexit script_dir="$(cd "$(dirname "${0}")"; pwd)" mkdir -p "build" iid_file="build/idd" docker build --iidfile="${iid_file}" --file="Dockerfile" .
true
7ab4b82671a4bda82c9ac928064e4ac38d372c7c
Shell
ilventu/aur-mirror
/uclibc++/PKGBUILD
UTF-8
520
2.5625
3
[]
no_license
# Maintainer: Bartek Piotrowski <barthalion@gmail.com> pkgname=uclibc++ _pkgname=${pkgname/c/C} pkgver=0.2.4 pkgrel=1 pkgdesc='C++ standard library targeted towards the embedded systems/software market' arch=('i686' 'x86_64') license=('LGPL') url='http://cxx.uclibc.org/' depends=('gcc-libs') source=(http://cxx.uclibc....
true
edb03b938a24eabe85cd55f3c95d2ee62d414317
Shell
sksnitj/DotFiles
/node/init.zsh
UTF-8
712
4.03125
4
[ "MIT" ]
permissive
##### nvm (node version manager) ##### # placeholder nvm shell function # On first use, it will set nvm up properly which will replace the `nvm` # shell function with the real one function nvm() { if [[ -d '/usr/local/opt/nvm' ]]; then NVM_DIR="/Users/gowiem/.nvm" export NVM_DIR # shellcheck disable=SC109...
true
23a514ae269e9cbcd3a0fd4a2116b056ca7c378d
Shell
Schnitzel/lagoon
/images/docker-host/prune-images.sh
UTF-8
153
2.75
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -x if ! docker -H ${DOCKER_HOST} info &> /dev/null; then echo "could not connect to ${DOCKER_HOST}"; exit 1 fi docker image prune -f
true
b096aba1b8087dd4ead17236bd7575b8d854594b
Shell
JeanKossaifi/setmeup
/zsh/window_title.zsh
UTF-8
610
2.96875
3
[]
no_license
##################### # WINDOW TITLE # ##################### case $TERM in termite|*xterm*|rxvt|rxvt-unicode|rxvt-256color|rxvt-unicode-256color|(dt|k|E)term) precmd () { print -Pn "\e]0;[%n@%M] opened in [%~]\a" } preexec () { print -Pn "\e]0;[%n@%M] opened in [%~] ($1)\a" } ;; scree...
true
846625c7dec1a67edc4e5e2652a1ada258997aca
Shell
webvariants/dockerfiles-develop
/bin/dwc
UTF-8
1,238
4.28125
4
[]
no_license
#!/bin/bash if [ -z "$1" ]; then echo "missing arguments" echo "dwc calls docker with the container that mounts the current working directory." echo "All single underscores will be replaced by the container ID." echo "If no underscore is found the container ID will be added as last argument." echo "Examples:" ec...
true
1203f194595ac63f3c227ee37a70b80141dddce8
Shell
tfunck/nemo_processing
/temp.sh
UTF-8
2,185
3.15625
3
[]
no_license
flair_list=`find bids -name "*_flair.mnc"` t1_list=`find bids -name "*_T1w.mnc"` for f in `ls -d bids/sub-NS-*`; do sub0=`basename $f` sub=`echo $sub0 | sed 's/sub-NS-//'` for ses_fn in `ls -d ${f}/_ses-*`; do ses=`basename $ses_fn | sed 's/_//'` t1=`ls ${ses_fn}/anat/${sub0}*_space-nat_T...
true
ce93aabba49b94b236026bf90b957e55129be241
Shell
geraldbaeck/dotfiles
/bash/.bash_prompt
UTF-8
4,384
4.1875
4
[]
no_license
#!/usr/bin/env bash # who am I printf 'Running %s\n' "$BASH_SOURCE" # DESCRIPTION: # # Set the bash prompt according to: # * the active virtualenv # * the branch of the current git/mercurial repository and it's status # * the return value of the previous command # * newline # # USAGE: # # 1. Save this...
true
8b5fb93326229e60ac2511c68dc0d23a71c3dd5f
Shell
FreddieMercy/LinuxCustomCMDimmigrate
/imploy/cmd/soiadjffoiwejjmicsdmacokweejqriufjlkdsamkjassjdoijwesd2.bash
UTF-8
177
3.234375
3
[]
no_license
#!/bin/bash if [ $# != 0 ] then var=${PWD} echo $# mv $1 $2 cd $2 ls -l cd $var elif [ $# == 0 ] then echo "Not moving anything" else echo "FUCK UP!" fi
true
932a386b3ec054719a23cc803df390639985d8fc
Shell
marcoAmir/backups
/geneLoss/matrixAnalysis/sh/intactGeneTables.sh
UTF-8
17,849
3.625
4
[]
no_license
#!/bin/bash -e # Here, for a given species, I'll identify the intact protein-coding genes that are stable in ensembl ensembl=$GENELOSS/data/Ensembl ucsc=$GENELOSS/data/UCSC curatedGenes=$GENELOSS/data/curatedGeneLosses.validated.txt # Usage if [ "$#" -ne 2 ]; then echo -e "\nUsage:\n$0 species annotatedByEnsembl(1...
true
e4c5e12989ddfbfc1f2d8e211189188ce36a93ef
Shell
kanow/operations
/Build/Scripts/runTests.sh
UTF-8
27,992
4.125
4
[]
no_license
#!/usr/bin/env bash # # TYPO3 core test runner based on docker. # waitFor() { local HOST=${1} local PORT=${2} local TESTCOMMAND=" COUNT=0; while ! nc -z ${HOST} ${PORT}; do if [ \"\${COUNT}\" -gt 10 ]; then echo \"Can not connect to ${HOST} port ${PORT}. Aborting....
true
1d0ee901299acce0c9d143e07857ebe8b2442afd
Shell
yithian/yuggoth_ansible
/roles/webserver/files/nextcloud/set-nc-perms
UTF-8
1,619
3.890625
4
[]
no_license
#!/usr/bin/env bash # from https://docs.nextcloud.org/server/9/admin_manual/installation/installation_wizard.html#strong-perms-label # run with the argument "runtime" to set the proper runtime permissions # run with the argument "upgrade" to set the proper upgrade permissions if [ -d "$2/apps" ]; then ncpath="$2" el...
true
675ad95d52b33c8caf911780878d3379d1c1541c
Shell
toyhammered/hummingbird
/scripts/travis/install
UTF-8
476
3.21875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash install_server_deps() { ( cd server bundle install --deployment --jobs=3 --retry=3 ) } install_client_deps() { ( cd client travis_retry npm install -g bower travis_retry npm install phantomjs-prebuilt travis_retry npm install travis_retry bower install ) } if [ $TESTGR...
true
1dee0ca1bb217bbe3a29199d67ba1075d9af0fa2
Shell
ysfiqbl/Sheldon
/util/String.sh
UTF-8
4,065
3.9375
4
[ "BSD-3-Clause" ]
permissive
################################################################################ # Sheldon: The not-so-bashful Bash framework. Bazinga! # # @namespace Sheldon::Util::String # @copyright Copyright 2015, Housni Yakoob (http://housni.org) # @license http://opensource.org/licenses/bsd-license.php The BSD License ##########...
true
73f21f44daa1d437d5fa163fc7e8f68e954167c0
Shell
kruzalus/repo123
/install_nginx.sh
UTF-8
1,156
3.515625
4
[]
no_license
#!/usr/bin/env bash # Helpers function scriptInfo { echo "-->" echo "--> $1" echo "-->" } function actionInfo { echo -n "--> $1" } function doneInfo { echo "--> ...done" } # Provisioning scriptInfo "Provision-script: install_nginx.sh, user: `whoami`" actionInfo "Updating repositories" sudo apt-get upda...
true
79470c49bb6b15c1fd0cceaa841afb107be7d1b9
Shell
kay0822/gen_iso
/3tos/run.sh
UTF-8
9,771
3.78125
4
[]
no_license
#!/bin/bash BASE_DIR="/home/gen_iso/3tos" ISO_DIR="/home/iso" BASE_ISO="${ISO_DIR}/CentOS-6.3-x86_64-bin-DVD1.iso" USE_DEBUG=true . ${BASE_DIR}/config.sh function usage(){ cat <<EOF Usage: $0 -P version -S version [options] -P, --protocol version Server [P]rotocal version -S, --server ve...
true
98ba56ecc628188fc1a4fb516991198fe66ca0da
Shell
yy-up/shell-script
/function/function2.sh
UTF-8
175
3.171875
3
[]
no_license
#!/bin/bash output(){ for (( num1 = 1; num1 <= 5; num1 ++ )) do echo -n "$num1 " done } let "num2+=1" while [ "$num2" -le 5 ] do output echo "" let "num2=num2+1" done
true
c27f2d6c276ed8ec5c79d67500401d7f2e8b5ccc
Shell
3nippo/RNN-example
/download.sh
UTF-8
283
2.953125
3
[]
no_license
#!/bin/bash mkdir src_repos cd src_repos input="../links" while IFS= read -r line do git clone $line done < "$input" cd .. find ./src_repos/ \( -name '*.cpp' -or -name '*.c' \) -exec file '{}' -i >> src_encs \; python ./merge_src_files.py # && sudo rm -r src_repos src_encs
true
f438ccb9a048b30fca4050c5a5d64edee2f0ad13
Shell
TotalFreedomMC/TF-Scripts
/FreeOP Servers/stop.sh
UTF-8
599
2.828125
3
[ "MIT" ]
permissive
#! if screen -list | grep -q "TotalFreedom"; then screen -X -S "TotalFreedom" stuff "stop^M" sleep 5 if screen -list | grep -q "TotalFreedom"; then screen -X -S "TotalFreedom" stuff "^C" sleep 5 fi if screen -list | grep -q "TotalFreedom"; then screen -X -S "TotalFreedom" st...
true
02c2e24946c9d343ea0be6bee967ff0917a15aa9
Shell
sutasu/dm
/qsub-wrapper/hash-ls.sh
UTF-8
3,401
3.140625
3
[]
no_license
#!/bin/sh # #___INFO__MARK_BEGIN__ ########################################################################## # # The Contents of this file are made available subject to the terms of # the Sun Industry Standards Source License Version 1.2 # # Sun Microsystems Inc., March, 2001 # # # Sun Industry Standards Source Li...
true
8524cb9463a358b2d185348db2ff35defe1a9719
Shell
vacaly/Alink
/python/src/main/python/dev/integration_tests/pyflink_tests/run_pyflink_tests.sh
UTF-8
551
3.4375
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -xe SCRIPTPATH="$( cd "$(dirname "$0")" pwd -P )" PY_ROOT="$( cd "$SCRIPTPATH/../../../" pwd -P )" function setup_env() { FLINK_HOME=$(python3 -c 'import pyflink;print(pyflink.__path__[0])') rsync -Pav "$PY_ROOT"/pyalink/lib/alink_*.jar "$FLINK_HOME"/lib/ } function clean_env() ...
true
329a45bcc38e228bc8bcf18d9abcf31ab895529f
Shell
pieceofr/bitmarkscript
/clean-bitmarkd-chain.sh
UTF-8
196
3.078125
3
[]
no_license
#!/bin/sh dir_bitmarkd_base="$HOME/.config/bitmarkd" for i in 1 2 3 4 5 6 do rm -r "${dir_bitmarkd_base}${i}/data" echo "remove ${dir_bitmarkd_base}${i}/data" done echo "Remove all dirs"
true
82b7c761d1d7b94e89a8c30871348482a8b00be1
Shell
tonyganch/dotfiles
/zsh/tmux.zsh
UTF-8
141
2.53125
3
[]
no_license
alias t='tmux' alias tls='tmux ls' function ta() {tmux attach -t $1} function tk() {tmux kill-session -t $1} function tn() {tmux new -s $1}
true
70493be44a0ecff429fc6f02a776e2dae3eafb3a
Shell
cometsong/rcfiles
/functions/extract_funcs.sh
UTF-8
1,064
3.671875
4
[]
no_license
extract() { if [[ "x$1" == "x-h" || "x$1" == "x--help" || "x$1" == "x" ]]; then echo "Usage: extract filename" echo -n " filename is of type: " echo "bz2, gz, rar, tar, tar.bz2, tbz2, tar.gz, tgz, zip, Z, 7z, xz, exe" fi if [ -f $1 ] ; then case $1 in *.tar.bz...
true
99bdb82826d4201aadd4d964401ef251d71eac5f
Shell
ApolloTang/my-custom-scripts
/script-for-apps/forklift/forklift--open-new-window/forklift-new-window.app/Contents/MacOS/forklift-new-window.sh
UTF-8
1,256
2.96875
3
[]
no_license
#!/bin/bash #/ Open a new forklift window set -e #/ Exit immediately if a command exits with a non-zero status. (cat<<EOF # AppleScript Start # ------------------- (* Author: https://github.com/ApolloTang This script open a new forklift window Also need to add some (or all) of the following 'Security & Privacy' s...
true
2dbd95fded894c0d67c0d92f3ecdfb019cd3953a
Shell
bboozzoo/dotfiles
/config/sys/etc/profile.d/firefox-cache-tmpfs.sh
UTF-8
136
2.6875
3
[]
no_license
RUN_USER_PATH="/run/user" user_id=$(id -u) if [[ -e $RUN_USER_PATH ]]; then mkdir -p /run/user/$user_id/firefox-cache 2>/dev/null fi
true
5fc0c01e0d40b956a9b831258d00fd9084ff9a0e
Shell
nhs-digital-gp-it-futures/BuyingCatalogueService
/src/NHSD.BuyingCatalogue.Database.Deployment/entrypoint.sh
UTF-8
1,240
3.453125
3
[ "MIT" ]
permissive
#!/bin/bash # database port, defaults to mssqls default port. PORT=${PORT:-1433} SA_USERNAME=${SA_USERNAME:-sa} # wait for MSSQL server to start export STATUS=1 i=0 while [[ $STATUS -ne 0 ]] && [[ $i -lt 30 ]]; do i=$i+1 sleep 1 /opt/mssql-tools/bin/sqlcmd -S $DB_SERVER,$PORT -t 1 -U $SA_USERNAME -P $SA_...
true
0dc785804cd0656ca843d901704c86bfa6af855a
Shell
joshukraine/middleman-gulp
/bin/setup
UTF-8
350
2.875
3
[ "MIT" ]
permissive
#!/usr/bin/env sh set -e # Make sure Bundler is installed if [ "$(gem query -i -n bundler)" = "false" ]; then echo "Installing Bundler..." gem install bundler fi # Set up Ruby dependencies via Bundler echo "Installing Ruby gem dependencies..." bundle install # Install node packages echo "Installing Node package...
true
385ec1ce3db4918e121db8d4e0c47d1db0502555
Shell
nsrCodes/cdd
/dist/mac-zsh/install.sh
UTF-8
741
3.703125
4
[]
no_license
#!/bin/zsh SRC="./bin" INSTALL_LOCAL="$HOME/bin/cdd" mkdir -p $INSTALL_LOCAL cp "${SRC}/cdd.sh" $INSTALL_LOCAL cp "${SRC}/cdo.sh" $INSTALL_LOCAL cp "${SRC}/gcdd" $INSTALL_LOCAL unalias cdd 2>/dev/null # checking if output of last command was error # => alias was not present if [ "$?" -ne 0 ]; then echo "\n\n# cdd ...
true
3ec5d813ce9e645849b399d6723e2f3eb3769894
Shell
t50504/CLASHanalyst
/suite/pir_bin/step4.sh
UTF-8
4,510
3.828125
4
[]
no_license
#!/bin/bash #time bash step4.sh -i step3.csv -o step4.csv -r ~/pra/input/mRNA_sequence.csv -m 0 -b 1 shell_folder=$(cd "$(dirname "$0")";pwd) . ${shell_folder}/framefunction.sh . ${shell_folder}/filefunction.sh # check whether use options or not # --------------------------------------- if [ $# -lt 1 ];then echo "...
true
3d6f38cf1840440a3ad7918ebe7fc5a11da9c687
Shell
joshdick/dotfiles
/.config/yadm/bootstrap
UTF-8
538
3.46875
3
[]
no_license
#!/bin/zsh set -ue # [yadm bootstrap script](https://yadm.io/docs/bootstrap) # for [Josh Dick's dotfiles](https://github.com/joshdick/dotfiles) # This script assumes that the `$HOME/.dotfiles_utils/install.sh` script # has previously been run. function heading() { echo -e "\e[1m\e[34m==>\e[39m $1\e[0m" } if hash nv...
true
82f391203deaacaae19c306e6752bb903d0a532f
Shell
haoqing0110/summary
/ocm/placement/demo/placement-strategy/demo.sh
UTF-8
1,582
2.984375
3
[]
no_license
#!/usr/bin/env bash ######################## # include the magic ######################## . ../demo-magic.sh ######################## # Configure the options ######################## # # speed at which to simulate typing. bigger num = faster # # TYPE_SPEED=20 # # custom prompt # # see http://www.tldp.org/HOWTO/Bas...
true
f270f3751bb6b1d884df94982aeb6d321daca56e
Shell
fastmailops/prosody
/configure
UTF-8
8,709
3.78125
4
[ "MIT" ]
permissive
#!/bin/sh # Defaults PREFIX=/usr/local SYSCONFDIR="$PREFIX/etc/prosody" DATADIR="$PREFIX/var/lib/prosody" LUA_SUFFIX="" LUA_DIR="/usr" LUA_BINDIR="/usr/bin" LUA_INCDIR="/usr/include" LUA_LIBDIR="/usr/lib" IDN_LIB=idn ICU_FLAGS="-licui18n -licudata -licuuc" OPENSSL_LIB=crypto CC=gcc CXX=g++ LD=gcc RUNWITH=lua CFLAGS=...
true
d14247ba5a84fc9046e5689e16193bea463b3bdf
Shell
mrlynn/gophercon2019
/setup.sh
UTF-8
296
2.953125
3
[]
no_license
#!/bin/bash # basic setup script to automate preparation of an environment for a golang project echo "Project name: \c" read ans mkdir -p ./${ans} export GOPATH=${PWD}/${ans} echo "Current working directory and GOPATH: ${GOPATH}" cd ./${ans} mkdir src pkg bin go get go.mongodb.org/mongo-driver
true
d1ea9d2487e6b0574eb4717a7fd367559e3c0cbe
Shell
ivanvtimofeev/tf-container-builder
/containers/external/haproxy/docker-entrypoint.sh
UTF-8
529
3.546875
4
[ "Apache-2.0" ]
permissive
#!/bin/sh set -e # first arg is `-f` or `--some-option` if [ "${1#-}" != "$1" ]; then set -- haproxy "$@" fi if [ "$1" = 'haproxy' ]; then shift # "haproxy" # if the user wants "haproxy", let's add a couple useful flags # haproxy-systemd-wrapper -- "master-worker mode" (similar to th...
true
ba8fcd9fa8a0540833a75dc66bff5f8e231a280a
Shell
wangjstu/learnShell
/github/meiappCheckoutFromGithub.sh
UTF-8
1,254
3.875
4
[ "MIT" ]
permissive
#!/bin/bash #check user is not root [ "$(id -u)" == "0" ] && echo "Error: You must not be root to run this script." && exit 1 function RUNCMD() { echo "[$(date +'%Y-%m-%d %H:%M:%S:%N')][notice] $*" echo -e "\033[41;33m ####################EVAL LOG####################### \033[0m" eval $@ echo -e "\033[41;33m #####...
true
218a3bf20a8724361e48a139396f9f11f52f8e9a
Shell
kmstumpff/Scripts
/Unix/Setup/findservers
UTF-8
3,686
3.84375
4
[ "BSD-2-Clause" ]
permissive
#!/bin/sh ######################################################## # This script was made to tell the user if the local # Seapine servers are running. Copy this script to # /usr/bin so it can be run from any working directory. # The pidof... functions are reused from the spls # script. If the server process is found, ...
true
a0f7a2f95d1700b10675aa95a08cb7bbb94c1ca9
Shell
yast/helper_scripts
/github/github-scripts/github-create-email-hook
UTF-8
381
2.953125
3
[]
no_license
#!/bin/bash . github-secrets organization="yast" repolist=`./github-list-repos $organization` for repo in $repolist do json=json-${repo} cat > ${json} << EOJSON { "name": "email", "active": true, "config": { "address": "yast-commit@opensuse.org" } } EOJSON curl -s -n -X POST -d @${json} https:...
true
de833e2a332b19bdb8d3831946ed92cea8ba6397
Shell
Business-model-canvas/generate-c4-model-action
/entrypoint.sh
UTF-8
1,009
3.921875
4
[ "MIT" ]
permissive
#!/bin/bash set -e echo "Generating C4 model" source="$GITHUB_WORKSPACE/$1" source_dir="$(dirname "$source")" tmp_dir=$(mktemp -d -t ci-XXXXXXXXXX) target_dir="$GITHUB_WORKSPACE/$2" if [ ! -f "$source" ]; then echo "Structurizr DSL file '$source' not found" >&2 exit 1 fi echo "[params] source: $source tar...
true
7e1fa0152c6d4cc03076c48146659037bc4b3b9c
Shell
taku403/dotfiles
/lib/sys.sh
UTF-8
2,553
4.34375
4
[]
no_license
#!/bin/sh OS_NOT_FOUND='1' OS_NOT_FOUND_MSG="このOSには対応していません" DISTRO_NOT_FOUND_MSG="このディストリビューションには対応していません" FAILED='1' SUCCESS='0' function get_system_type() { # 現在動作中のOSを取得する # 引数無し # 戻り値 # 成功:0 失敗:1 # 引数が入力された場合 if [[ $# -ne 0 ]]; then source './common/resource.sh' usage...
true
17854c31bae70042b5315a56e40dbe253fb38f9f
Shell
Rikulf/linux_configs
/bashrc
UTF-8
2,641
3.53125
4
[]
no_license
# .bashrc # If running interactively, turn off XON/XOFF flow control case $- in *i*) stty -ixon;; esac # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # History options # don't put duplicate lines or lines starting with space in the history. # See bash(1) for more options export HISTCO...
true
d9f5d384e1ec4ac5a3ad5f41168eddbcd38a0b23
Shell
epam/cloud-pipeline
/scripts/elasticsearch/update_storage_billing.sh
UTF-8
757
2.703125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash year=$1 while IFS= read -r line do array=($line) index=${array[2]} echo "Updating index $index" curl -XPOST cp-search-elk.default.svc.cluster.local:30091/$index/_update_by_query -H 'Content-Type: application/json' -d' { "script": { "source": "ctx._source.standard_cost = ctx._source.cost; c...
true
d1179d6e30ef5f728e64b9a6882f9038d16de104
Shell
xiexiaoqing/shell
/bash_cmds.sh
UTF-8
537
2.640625
3
[]
no_license
###List all commands that a shell knows### compgen -c # will list all commands you could run compgen -a # will list all aliases you could run compgen -b # will list all built-ins you could run compgen -k # will list all keywords you could run compgen -A function # will list all functions you could run compgen -A func...
true
a90339e73df122445434002e197f50a6a3806f0c
Shell
mfvalin/clim_utils
/bin/install_clim_utils.sh
UTF-8
326
3.0625
3
[]
no_license
#!/bin/bash Where=$(readlink -e ${0}) Where=${Where%/bin/*}/src cd ${Where} echo "Installing from ${Where}" [[ "$BASE_ARCH" == "$EC_ARCH" ]] && echo "ERROR: EC_ARCH == BASE_ARCH" && exit 1 set -x for Target in *.F90 ; do s.f90 -I. -O 2 -o ${Target%.F90}.Abs ${Target} -lrmn mv ${Target%.F90}.Abs ../bin rm -f *.mod...
true
41919ca6de3e171dbb0bc018cf357ec94371ea89
Shell
knutjelitto/LiFo
/Recipes/Core/isl
UTF-8
259
2.703125
3
[ "MIT" ]
permissive
#!/bin/bash Title="Integer Set Library" Home=(http://isl.gforge.inria.fr/) Name=isl Version=0.19 BuildDeps=(gmp) Supplies=(http://isl.gforge.inria.fr/isl-$Version.tar.xz) Build() { ./configure --prefix=/usr --disable-static make make install }
true
9fc1e0b44c5ac988b62e000c985923c8e8ffc663
Shell
OpenShift4Me/ocp-demo-workloads
/workloads/pipelines/deploy-pipelines.sh
UTF-8
2,288
3.140625
3
[]
no_license
#!/bin/bash set -ex OPERATORS_NAMESPACE="openshift-operators" TKN_VERSION="0.3.1" PIPELINESNAMESPACE="pipelines-tutorial" # Create a subscription cat <<EOF | oc create -f - apiVersion: operators.coreos.com/v1alpha1 kind: Subscription metadata: name: openshift-pipelines-operator namespace: ${OPERATORS_NAMESPACE} sp...
true
8c70e4d76684e10bb942c6d10a0a3d67ae799176
Shell
yamingd/pycb
/bin/run-tests
UTF-8
322
2.75
3
[ "MIT" ]
permissive
#!/bin/bash function remove_pyc { find ./ -name '*.pyc' -exec rm {} \; } function run_tests { remove_pyc nosetests tests.py --process-restartworker --stop -v \ --nocapture \ --with-coverage \ --cover-package=pycb } function main { time run_tests } echo "Running all tests" main rm .covera...
true
3e9946e37d1ff5711d1e9095c8e4aecd76d07850
Shell
NCAR/ParallelIO
/cmake/mpiexec.nwscla
UTF-8
131
2.765625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # # Arguments: # # $1 - Number of MPI Tasks # $2+ - Executable and its arguments # NP=$1 shift mpirun -np $NP $@
true
20e78263c1d7c9a6fa925b577b6e927c1065ffd4
Shell
deniszh/buckytools
/docker/launch.sh
UTF-8
400
3.1875
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # Check if the bucky command and daemon are supplied if [ ! -f bucky ]; then echo "ERROR: bucky executable not found. Please copy it in this directory" exit 1 fi if [ ! -f buckyd ]; then echo "ERROR: buckyd executable not found. Please copy it in this directory" exit 1 fi # Launch...
true
f16ab93c573994a3b705bef4be66f2dcba480199
Shell
iordanisg/dotfiles
/config/polybar/scripts/check-all-updates.sh
UTF-8
244
2.84375
3
[]
no_license
#!/bin/sh #source https://github.com/x70b1/polybar-scripts if ! updates_arch_aur=$(checkupdates+aur 2> /dev/null | wc -l ); then updates_arch=0 fi if [ "$updates_arch_aur" -gt 0 ]; then echo " $updates_arch_aur" else echo "0" fi
true
8387bdd386c3047186265fe89af4d8fc02b86421
Shell
smartcontractkit/chainlink
/tools/ci/install_wasmd
UTF-8
338
2.953125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash set -euo pipefail # commit on branch releases/v0.40.x GIT_TAG="v0.40.1" CHECKOUT_DIR="${HOME}/wasmd-checkout" BUILD_DIR="${HOME}/wasmd-build" git clone https://github.com/CosmWasm/wasmd --branch "releases/v0.40.x" "${CHECKOUT_DIR}" cd "${CHECKOUT_DIR}" git checkout "${GIT_TAG}" GOPATH="${BUILD_D...
true
83ae9b73d72af9688459eb3d7026b0b0f6aae7e4
Shell
dhm-org/dhm_suite
/utils/camserver_daemon
UTF-8
2,335
4.03125
4
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash ############################################################################### # file: camserver_daemon # # Copyright (c) 2020 Jet Propulsion Laboratory # All rights reserved # # brief: Start the Camserver and execute in the background # # Description: This script will run only one instan...
true
03a3d0692d454fe5f95b1ab567dd6337eb839a90
Shell
reginaldoMorais/lx-installer
/scripts/nvm.sh
UTF-8
671
3.703125
4
[]
no_license
#!/bin/sh installNVM() { echo "\n\n\n Install NVM" echo "++++++++++++++++++++++" echo "\n> Deseja instalar NVM? [y/N]" read question if [ ! -z $question ] then if [ "y" = $question -o "Y" = $question ] then echo "\n> sudo wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/instal...
true
843e235c1eb4b3f5239a8829f84f302e124a0585
Shell
scribblemaniac/_ebDev
/scripts/excludeWords.sh
UTF-8
1,225
3.265625
3
[]
no_license
# DESCRIPTION # Changes one text file to exclude all words from another text file; in other words, it deletes every instance of a word in the other file (excludeThese.txt) from the one file (fromThese.txt). Results are written to fromThese_parsed.txt. # NOTE # A variation of this which works only if you have more stri...
true
9f598a9cb7c7ff3b24545db1c2f1c4cd13f6d8f3
Shell
hiderisha/DAMN-X-DEODEXER
/start.sh
UTF-8
6,005
3.796875
4
[]
no_license
#!/usr/bin/env bash # --------------Variable -------------- # BOOTCLASSPATH="" requirements="openjdk-6-jre java-common zip" architecture="" # FUNCTIONS ARE HERE function control_c() { ask_to_quit="true" while [[ $ask_to_quit == "true" ]]; do cin warning "Are you sure you want to quit? (Y/n) " read answer_to_q...
true
b0cd03a403d241a211e20e8a4930c9bf5ad7fa46
Shell
SumantBagri/weather_app
/weatherapp/cleanup.sh
UTF-8
995
4.1875
4
[ "MIT" ]
permissive
#!/bin/bash # Config shopt -s nullglob shopt -s extglob # Change this before deploying dataPath="$HOME/weather_app/weatherapp/data/" # Function to clean files older than a week function clean_file() { tmp_file="${dataPath}tmp" head -1 "$1" > "$tmp_file" tail -1 "$1" >> "$tmp_file" mv "$tmp_file" "${dataPath}${1/...
true
e8f68c781a60701b7bc97dd184c3c49c10f22e74
Shell
imam-i/lfs-script
/svn/tools/05_tools_lfs/05.10_gcc.sh
UTF-8
1,843
3.125
3
[]
no_license
####################################### pushd ${BUILD_DIR} unarch 'mpfr' 'gmp' 'mpc' || return ${?} cd ./${PACK} cat gcc/limitx.h gcc/glimits.h gcc/limity.h > \ `dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/include-fixed/limits.h cp -v gcc/Makefile.in{,.tmp} sed 's/^T_CFLAGS =$/& -fomit-frame-pointer/' gcc/Mak...
true
a2c91a6d50cafd114df190ccd567f8fddafc03ea
Shell
INOS-soft/pbi
/modules10/mail/evolution/pbi.conf
UTF-8
1,243
2.609375
3
[ "MIT" ]
permissive
#!/bin/sh # PBI 10.x Build Configuration # -- Program Base Information -- PBI_PROGNAME="Evolution" PBI_PROGWEB="" PBI_PROGAUTHOR="Evolution Team" PBI_PROGICON="evo.png" # -- Program Repo Information (optional) -- PBI_LICENSE="GPL" PBI_TAGS="mail,gnome" #comma delimited (no spaces) PBI_PROGTYPE="Graphical" #[Graphica...
true
c69fc8b4089f0fc8eb43c08ef8bd919e2cd18f17
Shell
kouril/secmon-probes
/src/probes/check_CVE-2015-3245
UTF-8
588
3.21875
3
[]
no_license
#!/bin/bash # nagios check for CVE-2015-3245 NAGIOS_OK=0 NAGIOS_ERROR=2 awk -F: '{if ($1 != "root") print $7}' /etc/passwd | grep '/bin/.*sh$' > /dev/null if [ $? -eq 1 ]; then echo "OK: No non-root account detected, finishing." exit $NAGIOS_OK fi grep 'auth.*required.*pam_deny.so' /etc/pam.d/chfn > /dev/nu...
true
ec0cb862a4570de177fe74d8440c67370f4abe02
Shell
samm02/infrastructure
/ansible/playbooks/files/backup-container-data.sh
UTF-8
423
3.53125
4
[]
no_license
#!/usr/bin/env bash set -euo pipefail BACKUP_DIR=$(mktemp -d) trap 'rm -r "${BACKUP_DIR}"' EXIT cleanup() { rm /tmp/${BACKUP_NAM} cp /containe } main() { pushd "${BACKUP_DIR}" >/dev/null mkdir "./data"; cp -r "/containers" "./data" echo $(date -u +"%Y-%m-%dT%H-%M-%SZ") > "./data/backup.txt" tar -czf "c...
true
2100db0fbdd6fff9cd0d03835d201d50f7fbb352
Shell
wake/package.sh
/package
UTF-8
584
2.9375
3
[]
no_license
#!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH PROJECT=$(basename "$1") DIR=$(cd "$(dirname "$1")"; pwd) OUTPUT_FILE="$DIR/$PROJECT-package.tar.gz" #echo $1 #echo $PROJECT #echo $DIR #echo $OUTPUT_FILE echo "Package \`$1\` to \`$OUTPUT_FILE\`" tar -zcf $OUTPUT_FILE \ -...
true
1a92fbccc82639a56ef66e3fa76f79bfd6e58865
Shell
BWITS/playbooks
/playbooks/roles/nexus/templates/update-wrapper.sh
UTF-8
1,020
3.84375
4
[]
no_license
#!/bin/bash # ------------------------------------------------------------- # Updates Nexus wrapper.conf with additional Java options. # ------------------------------------------------------------- # Comment out 'wrapper.java.initmemory' section if '-Xms' is present in Java options if [[ "{{ java_options }}" == *"-...
true
0be37dcd46176e3e198dd33c5378e00e3709adeb
Shell
mstange22/Exercism
/bash/matching-brackets/matching_brackets.sh
UTF-8
677
3.890625
4
[]
no_license
#!/usr/bin/env bash declare -A bracket_map=( ["["]="]" ["{"]="}" ["("]=")" ) main () { stack="" for ((i=0; i < ${#1}; i++)); do c=${1:i:1} #ignore non-bracket characters ! [[ $c =~ [][{}()] ]] && continue # open bracket. Add close bracket to stack if [[ ${bracket_map[$c]} ]]; then ...
true
b69b3c910637ba4014840792c127458095eeddde
Shell
akashpayne/aws-tools
/MSK/02_create_kafka_topic_on_client_amzn2.sh
UTF-8
1,017
3.40625
3
[ "MIT" ]
permissive
#!/bin/bash # Set to fail script if any command fails. set -e # Ref-1: https://docs.aws.amazon.com/msk/latest/developerguide/create-topic.html # Ref-2: https://docs.aws.amazon.com/msk/latest/developerguide/produce-consume.html # TODOs - update variables CLUSTER_ARN="TODO" KAFKA_TOPIC="AWSKafkaTutorialTopic" BOOTSTRA...
true
4b405b85bf3e2d5b5512fbf12ef066db9c5245f4
Shell
noirHck/Argus
/ArgusDocker/simple/conf/opentsdb/start_opentsdb.sh
UTF-8
494
2.71875
3
[]
permissive
#!/bin/bash export TSDB_VERSION="2.2.0" echo "Sleeping for 30 seconds to give HBase time to warm up" sleep 30 if [ ! -e /opt/opentsdb_tables_created.txt ]; then echo "creating tsdb tables" bash /opt/bin/create_tsdb_tables.sh echo "created tsdb tables" fi echo "starting opentsdb" /opt/opentsdb/opentsdb-${TSDB_VERSI...
true
f072ea0effeb12717d775eafd0c49d2ce2c9f667
Shell
Good-Vibez/ct
/component/shell/vm::install.sh
UTF-8
13,067
2.859375
3
[]
no_license
# vim: et ts=2 sw=2 ft=bash main() { ui::doing "BASE" CDI::install:base_devel config::fish config::bash config::tmux config::nvim config::git ui::doing "RBENV" CDI::install:rbenv CDI::install:user_paths.ccache ui::doing "HMBRW" CDI::install:homebrew ui::doing "HMBRW_PKGS" brew:install "${BR...
true
5f33a7815aeb0b39e40de52cd29c8c61b60ae43f
Shell
mohamedsaif/AKS-Adv-Provision
/provisioning-v2/19-aks-aad-role-binding.sh
UTF-8
11,691
3.5
4
[ "MIT" ]
permissive
#!/bin/bash # Make sure that variables are updated source ./$VAR_FILE #***** Basic AAD Role Binding Configuration ***** # NOTE: Execute the blow steps ONLY if you successfully completed the AAD provisioning # Grape the new cluster ADMIN credentials # the AKS cluster with AAD enabled # Objective here to grant your A...
true
1be038f578edd7ee6215388105034c147a941b21
Shell
idber/auto-install-script
/auto_install_mysql.sh
UTF-8
8,840
3.53125
4
[]
no_license
#!/bin/bash red_echo () { echo; echo; echo -e "\033[031;1m `date +"%Y-%m-%d %H:%M:%S"` \t\t $@\033[0m"; exit 1;} yellow_echo () { echo; echo; echo -e "\033[033;1m `date +"%Y-%m-%d %H:%M:%S"` \t\t $@\033[0m"; } green_echo () { echo; echo; echo -e "\033[032;1m `date +"%Y-%m-%d %H:%M:%S"` \t\t $@\033[0m"; } _add_us...
true
4cf5f674f1239ced52ce448e0902940103fcc90b
Shell
mariaines/localstack-dynamo-timeout
/configure-localstack.sh
UTF-8
3,923
3.578125
4
[ "MIT" ]
permissive
#!/bin/sh # Runnable on dev box or docker EXECDIR=`dirname $0` EXECDIR=`(cd $EXECDIR; pwd)` ROOTDIR=`(cd $EXECDIR; pwd)` BUILDDIR=/tmp/.lambda-build-2 if [ -f /.dockerenv ] then HOST=localstack else if [ -z "`docker ps | grep localstack/localstack`" ] then echo "Localstack is not currently running" ...
true
5cdcd841efb90072fbfbd6522db91f86b7c184b8
Shell
michalnicp/dotfiles
/install.sh
UTF-8
3,818
3.25
3
[]
no_license
#!/bin/bash set -euo pipefail if [ "${1:-}" = "--debug" ] || [ "${1:-}" = "-d" ]; then set -x fi # colors red='\033[0;31m' green='\033[0;32m' yellow='\033[0;33m' nc='\033[0m' if [[ $EUID -eq 0 ]]; then printf "${red}Please run as normal user.${nc}" >&2 # echo "This script must be run with sudo" 1>&2 ...
true
12035b0fc8dc41595c45e1fbf6c7327709c56cec
Shell
romanblanco/dotfiles-1
/ManageIQ/release-ui-components
UTF-8
874
3.046875
3
[]
no_license
#!/bin/bash set -x set -e cd ~/ui-components [ `git branch-name` != 'gaprindashvili' ] && exit 1 git up TAG=$(npm version patch) git tag -d "$TAG" VER=$(echo "$TAG" | sed 's/^v//') echo TAG: "$TAG", VER: "$VER" [ -z "$TAG" ] && exit 2 [ -z "$VER" ] && exit 3 bower version "$VER" git tag -d "$TAG" sed -i 's/^\( "...
true
ba9717c7ca38aa03b7f6674bfaa67b4833a269c0
Shell
krishnodey/Shell-Scripting-Exercises
/ifelse4.sh
UTF-8
128
2.875
3
[]
no_license
read a read b if(( $( echo "$a == $b" | bc -l ))) && (( $(echo "$a == 3.00" | bc -l ))) then echo Equal else echo Not equaql fi
true
5ad8ba7df4fecd8138a11a413339c34f3a116c8f
Shell
jfchevrette/kubernetes-nginx-multisite-example
/startup.sh
UTF-8
622
2.6875
3
[]
no_license
#!/bin/sh # # This script create docker images and deploy a local cluster set -e echo "Building Docker images..." docker build -t site-one-container site-one.com docker build -t site-two-container site-two.com docker build -t proxy-container proxy echo "Creating services..." kubectl create -f definitions/proxy_svc.y...
true
90b5f4519e3ee1941f0feae8cad2981000579f1d
Shell
svrana/dotfiles
/installers/neovim.sh
UTF-8
2,004
3.015625
3
[]
no_license
#!/bin/bash mkdir -p ~/.config/nvim/{bak,swp} mkdir -p ~/.config/nvim/after/ftplugin mkdir -p ~/.config/nvim/bundle mkdir -p ~/.config/nvim/autoload if [ ! -f /usr/bin/nvim ]; then #NVIM_VERSION="v0.4.3" NVIM_VERSION="nightly" curl -Lo "$HOME/Downloads/nvim" https://github.com/neovim/neovim/releases/downl...
true
256d64fe58a483dfebb34351a1e3d00707ed178d
Shell
diabonas/tpm2-tools
/test/integration/fapi/fapi-key-change-auth.sh
UTF-8
3,196
3.296875
3
[]
permissive
set -e source helpers.sh start_up CRYPTO_PROFILE="RSA" setup_fapi $CRYPTO_PROFILE function cleanup { tss2 delete --path=/ shut_down } trap cleanup EXIT PW1=abc PW2=def KEY_PATH=HS/SRK/myRSASign DIGEST_FILE=$TEMP_DIR/digest.file SIGNATURE_FILE=$TEMP_DIR/signature.file PUBLIC_KEY_FILE=$TEMP_DIR/public_key.f...
true
08685d6fc872c324d8fa85101eb476fde81462b1
Shell
brisbane/adminscripts
/wntests/cvmfs
UTF-8
207
3.15625
3
[]
no_license
#!/bin/bash TESTNAME=cvmfs [[ $1 ]] && TESTNAME=$1 x=`ls /cvmfs/lhcb.cern.ch/ | grep etc` res=$? echo "TEST: $TESTNAME - result: " if [ $res -eq 0 ];then echo OK else echo FAIL fi exit $res
true
6ed40dc3a284f4da72634fb64acbdf96a15bffdd
Shell
LucaFos/duplifinder
/duplifinder
UTF-8
2,573
4.25
4
[]
no_license
#!/bin/bash # Reset all variables that might be set file="" verbose=0 origdir="$PWD" # this is the help string that will be shown if --help is triggered help="DupliFinder 0.1\n\n Copyleft (c) Luca Foschiani, Claudio Desideri\n\n ---------------------------------------------\n\n Usage:\n duplifinder [-f -d -t] [--file...
true
c0393ef321a4ac67f7120825431dd6601716e87f
Shell
eliwind/dotfiles
/zsh/.zshenv
UTF-8
533
2.546875
3
[]
no_license
if [ -x /usr/libexec/path_helper ]; then eval `/usr/libexec/path_helper -s` fi # Let pip find native libs it needs export LDFLAGS="-L/usr/local/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/zlib/lib" export CPPFLAGS="-I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/zlib/include" export PKG_C...
true
a8642f698bf73b31b016fc9533cf58b472f4100a
Shell
primeroz/vault-operator-kind-examples
/common/vault-operator.sh
UTF-8
3,443
2.765625
3
[]
no_license
#!/usr/bin/env bash set -e export KUBECONFIG="$(kind get kubeconfig-path --name="vault")" BV_VERSION=${BV_VERSION:-0.4.17-rc.3} echo "Creating Operator" cat <<EOF | kubectl apply -f - --- apiVersion: v1 kind: Namespace metadata: annotations: {} labels: project: vault name: vault --- EOF sleep 2 cat <<EO...
true
ab9db471ff110e3a7ad2c791f87785cc3a045971
Shell
yjhcjykwbk-jlsec/mylin
/.sh/pdf2img.sh
UTF-8
313
3.5
4
[]
no_license
echo "pdf2img [xx.pdf] [pagenum]" i=1 while [ $i -le $2 ] do echo "pdf2svg $1 $i.svg $i" i=`expr $i + 1` done; [ $2 != "" ] || exit read -p "trans now, Y/N ?" choice [ $choice != "Y" ] && exit i=1 while [ $i -le $2 ] do pdf2svg $1 $i.svg $i convert $i.svg $i.png rm $i.svg i=`expr $i + 1` done
true
9ca0cbde549c43801d961700e5b901e52a0f65ec
Shell
xraech/dotfiles
/installed/suckless/dwm/autostart.sh
UTF-8
662
3.578125
4
[ "MIT" ]
permissive
#!/bin/bash dte(){ dte="$(date +"%A, %B %d | 🕒 %l:%M%p")" echo -e "📅 $dte" } upd(){ upd=`checkupdates | wc -l` echo -e "⟳ $upd updates" } mem(){ mem=`free | awk '/Mem/ {printf "%d MiB/%d MiB\n", $3 / 1024.0, $2 / 1024.0 }'` echo -e " $mem" } cpu(){ read cpu a b c previdle rest < /proc/stat prev...
true
8afac9542c2d1896868f39a41b90be2971d7eaca
Shell
backlighttw/lg_module
/lg_module/run_windows.sh
UTF-8
2,402
3.40625
3
[]
no_license
#!/bin/bash #!/bin/bash date_str=$(date +%Y_%m_%d_%H_%M_%S) PROCESS_COUNT=1 PREFIX="_lg_module_${date_str}" OUTPUT_FOLDER=${date_str} is_verbose=0 is_parallel=1 function print_help { echo "-v is_verbose" echo "-s is_single" } for para in $@ do if [ $para == "-v" ]; then is_verbose=1 fi if [ $para == "-s" ]...
true
6b1532cfdedc52c02ff84bb273630d230166d944
Shell
trilioData/triliovault-cfg-scripts
/kolla-ansible/trilio-datamover-api/triliovault_datamover_api_extend_start.sh
UTF-8
361
3.0625
3
[]
no_license
#!/bin/bash # Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases # of the KOLLA_BOOTSTRAP variable being set, including empty. ## TODO: Uncomment following code once we get dmapi-dbsync tool if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then dmapi-dbsync exit 0 fi if [[ "${!KOLLA_UPGRADE[@]}...
true
801fa51bde9774a4d1663bfe8c8a53ff51f42cd2
Shell
lamtran80/Ubuntu_new
/for.sh
UTF-8
185
2.6875
3
[]
no_license
echo "i in {0..10}" for i in {0..10} do echo $i done echo "n in {0..20..2}" for n in {0..20..2} do echo $n done echo "for (( k=1; k<5; k++))" for (( k=1; k<5; k++)) do echo $k done
true
fd21f95e3b401f59e92a697a52a898dd4174ccbd
Shell
markzz/abs
/community/python-pycontracts/PKGBUILD
UTF-8
1,470
2.625
3
[]
no_license
pkgbase=python-pycontracts pkgname=(python-pycontracts python2-pycontracts) _pypiname=PyContracts pkgver=1.7.8 pkgrel=1 pkgdesc='Declare constraints on function parameters and return values' arch=('any') url="https://andreacensi.github.io/contracts" license=('GPL') makedepends=('python-setuptools' 'python2-setuptools' ...
true
c740352514f945acc6f73cb868ef6a7ded44fb5b
Shell
lislon/dotfiles
/git/git-templates/hooks/prepare-commit-msg
UTF-8
377
3.265625
3
[]
no_license
#!/bin/sh # author: Igor Avdeev # description: Creates if ! head -n 1 $1 | grep -E "C[0-9]+-[0-9]+" ; then BRANCH_NAME=$(git branch | grep '*' | grep -oE "C[0-9]+-[0-9]+") if [[ "$BRANCH_NAME" ]] ; then OLD=$(cat "$1") echo -n "" > "$1" echo -n "[" >> "$1" echo -n >> "$1" ...
true
63e6b60da9e2738b2f10d5c28b80a63e444a08c9
Shell
nlnwa/openshift-rethinkdb-cl
/ready-probe.sh
UTF-8
287
2.640625
3
[ "MIT" ]
permissive
#!/bin/bash # Fail with first error set -e # Checks if the rethinkdb instance is ready to operate. # This will be used to direct client traffic # And, more instances will not be created by the petset until it returns success. # For now, try to hit the app at 8080 curl localhost:8080
true
225b9eaf1a5a523d2bcaafa6f5a7e0995b295ef6
Shell
emosher/dotfiles
/init.sh
UTF-8
267
3
3
[ "MIT" ]
permissive
#!/bin/bash ## Copy files to home # If profile does not exist, create it if [ ! -f ~/.bash_profile ]; then cp bash_profile ~/.bash_profile fi # Copy files cp bashrc ~/.bashrc cp git-completion ~/.git-completion cp git-prompt ~/.git-prompt cp gitconfig ~/.gitconfig
true
295f24179ff2e80114b02d01c08af13c3c4a9289
Shell
gauteh/arch
/pa-applet-git/PKGBUILD
UTF-8
953
2.59375
3
[]
no_license
# Maintainer: Nicolas Avrutin <nicolasavru@gmail.com> pkgname=pa-applet-git pkgver=15.005f192 pkgrel=1 pkgdesc="PulseAudio system tray applet with volume bar" arch=(i686 x86_64) url="https://github.com/fernandotcl/pa-applet" license=('BSD') depends=('gtk3' 'libnotify' 'libpulse') makedepends=('git') options=('!libtool...
true
d1a40755bb2f81f57623c62b11c65af7527d5859
Shell
nriquec/pbone_thesis
/lecture_support/seminar_psnup
UTF-8
1,946
3.53125
4
[]
no_license
#!/bin/sh # vim: ts=4 sw=4 et usage="seminar_psnup [3|4|7|8] dir basename" if test $# != 3 then echo "${usage}" exit 1 fi n=$1 dir=$2 basename=$3 input_filename=".${dir}/${basename}.ps" output_filename="${dir}/${basename}.${n}.ps" error_filename=".${dir}/.psnup${n}.${basename}.out" case "${n}" in 3|4) ...
true
4e02da5988e1844b1b67d04bf342d8d2bcf9439c
Shell
HITB-CyberWeek/proctf-2019
/deploy/ansible/roles/cloud_node/files/scripts/reboot_vm.sh
UTF-8
978
3.546875
4
[ "MIT" ]
permissive
#!/bin/bash -e # go to script dir MY_NAME="`readlink -f "$0"`" MY_DIR="`dirname "$MY_NAME"`" cd "${MY_DIR}" TEAM=${1?Syntax: ./reboot_vm.sh <vm_num> <vm_name> <team_id>} VMNUM=${2?Syntax: /reboot_vm.sh <vm_num> <vm_name> <team_id>} VMNAME=${3?Syntax: /reboot_vm.sh <vm_num> <vm_name> <team_id>} if ! [[ $TEAM =~ ^[0-9...
true