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
977bd54762b49c5726da91064c4fc51368e0f9f0
Shell
zzzj1233/shell
/06-input-args/11-read-n.sh
UTF-8
385
3.375
3
[]
no_license
# read -n number # number用于指定字符数 # 一旦用户输入达到该字符数,无需按下回车,read就会结束阻塞 while read -n1 -p "exit? (y / n)" answer do case "$answer" in y | Y) echo "ok , will shutdown now" break ;; n | N) echo "ok , will continue work" break ;; *) echo "y / n" ;; esac d...
true
5f6617243874db1698c621b13b75e070534b92e5
Shell
LuizGsa21/Firedrake
/build.sh
UTF-8
1,472
3.609375
4
[ "MIT" ]
permissive
#!/bin/bash # Firedrake build script, to make integration of a remote build server easier # The whole story is that I use OS X but need Linux to build, so I have a VM that runs Debian. My IDE then # executes the `remote-build` target to build the kernel if [ $# -eq 0 ]; then ssh "${FIREDRAKE_USER}@${FIREDRAKE_HOST}"...
true
968028d541b526869257e06a3ca2e3083f72b89d
Shell
remipelhate/dotfiles
/bin/dev
UTF-8
209
3.28125
3
[ "MIT" ]
permissive
#!/bin/sh case $@ in "play") # Navigate to the Playground dev directory cd $DEV/Playground ;; *) # Navigate to given directory (or root directory if no path was given) cd $DEV/$@ esac
true
53444f530a1bdb882b8a6a0e3236175ae8b59dd2
Shell
markmo/repo2docker
/repo2docker/buildpacks/merge.sh
UTF-8
1,186
3.28125
3
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash commit_message=${1:-"merge devsheds session"} jupyterhub_user="${JUPYTERHUB_USER}" # see https://stackoverflow.com/questions/3162385/how-to-split-a-string-in-shell-and-get-the-last-field original_branch=${BINDER_REQUEST##*/} branch="europa-${jupyterhub_user##*-}" echo "commit_message=${commit_m...
true
ad07b7bf919db13820805a4c8b34cfbffb840c22
Shell
onap/aai-graphadmin
/src/main/scripts/updatePropertyTool.sh
UTF-8
2,566
2.9375
3
[ "Apache-2.0" ]
permissive
#!/bin/ksh # # ============LICENSE_START======================================================= # org.onap.aai # ================================================================================ # Copyright © 2017 AT&T Intellectual Property. All rights reserved. # ========================================================...
true
5872f6e93900e1ba3389c1ce2180233ea6cf08a1
Shell
Malinskiy/AndroidFFmpeg
/FFmpegLibrary/jni/fetch_android_deps.sh
UTF-8
708
3.125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash echo "Fetching Android system headers" git clone --depth=1 --branch gingerbread-release https://github.com/CyanogenMod/android_frameworks_base.git ./android-source/frameworks/base git clone --depth=1 --branch gingerbread-release https://github.com/CyanogenMod/android_system_core.git ./android-source/system...
true
e68fec6f0e957aa9e3149b516efaf0d49de36536
Shell
ylnb91/AutoDeployBash
/script/auto-deploy-bash.sh
UTF-8
12,183
3.875
4
[]
no_license
#!/bin/bash # ******************************************* # 2014.2.11 first version # # # ******************************************* current=`dirname $0`; . $current/deploy.properties; if [[ $# == 0 || $1 == "help" ]]; then echo -e "Command syntax error.\nUsage: `basename $0` [qa|prod] \n"; exit 1; fi if [[ $...
true
f16c32505e2f400355fdce49d1332d2692bdb3ec
Shell
fdloopes/Assistente-samba
/banco.sh
UTF-8
4,439
3.375
3
[]
no_license
#!/bin/bash export SUDO_ASKPASS="$PWD/minha_senha.sh" postgress="/etc/postgresql/9.1/main" Mensagem() { dialog --title "Mensagem" --msgbox "$1" 6 50 } TestePostgres(){ clear dialog --title " AGUARDE.." --infobox '\n TESTANDO DEPENDENCIAS!' 5 30 if ( sudo -k -A psql -U postgres --quiet -c "CREATE DATABASE tes...
true
fa594e65b83e84cb2b555488ec1c4a191f567830
Shell
stephengeller/eleanorbettdotcom
/deploy.sh
UTF-8
180
2.6875
3
[ "MIT" ]
permissive
#!/bin/bash git push heroku master if [[ $? -gt 0 ]]; then echo "Failed to run 'git push heroku master'. Have you tried using \"heroku login\"? Is the remote set properly?" fi
true
3da6b98ec06167f916f952436175f9489f7be68d
Shell
jvidalg/kafka-docker-playground
/connect/connect-mqtt-source/mqtt-repro-json.sh
UTF-8
2,888
3.03125
3
[]
no_license
#!/bin/bash set -e DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" source ${DIR}/../../scripts/utils.sh ${DIR}/../../environment/plaintext/start.sh "${PWD}/docker-compose.plaintext.kafka-connect-json-schema.yml" log "Creating MQTT Source connector" curl -X PUT \ -H "Content-Type: application...
true
72b9cb076b27ae65659c6488251e60b9626fc424
Shell
AlaaAbdelkareem/AlaaDB
/table/deleteTable.sh
UTF-8
421
3.4375
3
[]
no_license
#!/bin/bash echo "enter the table name" read del if [ -f $del ] then select choice in "delete all table" "delete specific row" do case $choice in "delete all table") rm -f $del echo "done" exit ;; "delete specific row") echo "enter the word to search" read word if cut -f1 -d: $del grep "$word" then sed -i "/$word/...
true
166ae7f4917e00eee62ed0f706251e24132c9cb2
Shell
spiralofhope/shell-random
/live/sh/scripts/find-newest-file.sh
UTF-8
1,018
3.9375
4
[]
no_license
#!/usr/bin/env sh # Find the oldest files in this directory and all subdirectories. #:<<'}' # zsh { echo . # Current directory only #\echo *(.om[1]) #\echo *(om[1]) #\echo **/*(om[1]) } #:<<'}' # { \find . -type f -exec \ ` # change %Y to %X for the _accessed_ files ` \ \stat -c ...
true
cbe07e3a55c66a2ed638127ff71422c2f39661a3
Shell
deponian/scripts
/necessary-packages.sh
UTF-8
4,681
3.453125
3
[]
no_license
#!/usr/bin/env bash set -euo pipefail IFS=$'\n\t' # # install necessary packages for your distro # deb_packages () { local mode mode="${1:?"You have to specify mode as first parametr"}" apt update if [[ "${mode}" == "minimal" ]]; then apt install --no-install-recommends bash bc ccze dnsutils git htop iputils-p...
true
29871ddb1aade265f4017be9d0144f79877ccec4
Shell
srk0002/AU_BIOL-7180_SPR20_GroupProject
/Scripts_old/0_SeqDic.sh
UTF-8
736
2.625
3
[]
no_license
#!/bin/bash #This scriptis used to prepare a fasta genome reference file for creating the .dict ditionary file needed for GATK. BEFORE you being, you MUST cp the reference.fna file to reference.fa for it to work. Picard seemd overly sensitive to file type extenions and will not recognize .fna as a .fa fasta file althou...
true
a886adb4dcb56abfb56b83c8c23d71ddb75cc05d
Shell
edawson/tool_gistic2_wgs
/src/link_conf_wrapper.sh
UTF-8
244
3.34375
3
[]
no_license
#! /usr/bin/env bash # Run command eval $@ # Create generic symlinks to files that specify the confidence level in their # names. for file in *.conf_[0-9][0-9]*; do ln -s $file `echo $file | sed 's/\.conf_[0-9]\+\(\.[0-9]\+\)\?\././'` done
true
f577e9205d910e5b6a6c2ffb624fce40e62bc05d
Shell
VisionmateGitHub/newLinuxMachine
/Jenkins.sh
UTF-8
3,243
2.515625
3
[]
no_license
#!/bin/bash #update OS sudo yum -y update #install git-all cd /opt/ sudo yum -y install git-all #make sure that unzip is installed sudo yum -y install unzip #go to installation directory cd /opt/ #download jdk1.7.0_71 and unzip echo You have to download jdk1.7.0_71 manually on http://www.oracle.com/technetwork/java/jav...
true
2c7c3882120a28b5c0555e86a8e8fa02ab16f20d
Shell
kflansburg/py-custom-metrics
/scripts/deploy.sh
UTF-8
631
2.65625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash kubectl create namespace custom-metrics echo "Creating self-signed certificate" ./scripts/certs.sh kubectl create secret tls -n custom-metrics certs --cert=server.crt --key=server.key kubectl create configmap -n custom-metrics app --from-file=src/ kubectl apply -f manifests/deployment.yaml kubectl a...
true
71203f99acadf87cdf2a0f90d7983a97a4bdaba0
Shell
achikin/git-changed
/git-changed
UTF-8
881
3.796875
4
[]
no_license
#!/bin/bash if [ -f /usr/local/etc/git-changed.conf ] then source /usr/local/etc/git-changed.conf fi while [[ $# > 1 ]] do key="$1" case $key in -h|--help) shift # past argument ;; -a|--author) author="$2" shift # past argument ;; -s|--since) since="$2" shift # past argument ...
true
47ebf56505bc85a43d42e9fb5a78005e8e4c7fc3
Shell
danielbicho/functional-tests
/awpTests.sh
UTF-8
330
3.03125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash export DISPLAY=:99 # Display port number of Xvfb cd /root/functional-tests/ plataResult=`/usr/bin/ant test -Dtestcase=pt.fccn.arquivo.tests.AllTests -Dtest.url=http://arquivo.pt | grep "Failures: 0, Errors: 0"` if [ -z "$plataResult" ]; then echo "TESTS FAIL" else echo "TESTS OK" fi echo "Result: $pla...
true
3d211fce599ed19d165df6b7385c0dde6a7987ca
Shell
thomasvincent/utilities
/Standalone_Scripts/ZenOSS_AddHosts/bash_api_docs/list_servers.sh
UTF-8
717
2.71875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # An example of using the JSON API. Prints out five servers. # # $ ./list_devices.sh # [ # "austinbot.zenoss.loc (10.87.209.6)", # "osx105b.zenoss.loc (10.204.210.24)", # "test-aix53-1.zenoss.loc (10.175.210.227)", # "test-aix53-2.zenoss.loc (10.175.210.228)", # "test-aix61.zenoss.loc (10.17...
true
51da1b5974f2418f91a5dedb07f5333ad0ef85a3
Shell
AaronZLT/CL-EDEN-kernel
/samples/external/push_and_test.sh
UTF-8
1,349
3.21875
3
[]
no_license
if [ -z "$ANDROID_TOP" ]; then echo "" echo " ## Please set \$ANDROID_TOP as a top of android directory." echo " Example)" echo " $ export ANDROID_TOP=<android dir> or add this at ~/.bashrc" echo "" exit 0; fi TARGET_NAME="erd9925" PLATFORM_BUILD=false while getopts "T:t:Pp" flag; do...
true
179501f4a70d235c64f9143e2dcf8e1ca2320066
Shell
kamleshksingh/Kettle
/MKDM/common_funcs/count_recs
UTF-8
2,142
3.375
3
[]
no_license
#!/bin/ksh #***************************************************************************** #** Program : count_recs #** Original Author : Brian Syptak #** #** Description : The Generic function to build indexes on the table. #** The parameters to be passed are as shown below: #** ...
true
571e680a0a38ae70faa57280e2392eb3b5ea39ae
Shell
iustitia/chaos-monkey
/scripts/init.sh
UTF-8
1,063
3
3
[]
no_license
#!/usr/bin/env bash CPUS=4 RAM=8192 DISK_SIZE=25000mb if minikube status ; then echo "Minikube is already running... Unable to initialize minikube."; else echo "Starting minikube..."; if [[ $OSTYPE == darwin* ]]; then minikube start \ --cpus $CPUS \ --memory $RAM \ ...
true
3e48b60c00a1d7fd17220fae35a1cc58755c53b8
Shell
PeerStreet/kue-bootstrap
/bin/update.sh
UTF-8
289
3.09375
3
[ "MIT" ]
permissive
#!/bin/bash debug() { [[ $DEBUG == "true" ]] } source_remote() { temp=$(mktemp) curl -s -o $temp https://raw.githubusercontent.com/PeerStreet/kue-bootstrap/master/bin/${1}.sh source $temp rm $temp } main() { debug && set -x source_remote "kue" kue::update } main "$@"
true
afad112c0f9b5a3049e0e13d15f4ced411e4b3bc
Shell
frogman1189/low_battery_systemd_script
/uninstall.sh
UTF-8
497
3.78125
4
[]
no_license
#!/bin/sh # find script dir incase being run outside install folder dest="/usr/lib/systemd/system/" files=( low_battery.timer low_battery.service low_battery.d ) script_dir=$(dirname -- "$readlink -f -- "$BASH_SOURCE")") /bin/cd $script_dir /bin/echo "removing ${files[@]} from $dest" for file in ${files[@]} do # ch...
true
810de488845a2768dcb0c2360db8774f89b47a0a
Shell
epasham/elk
/elk-xpack/kibana/kibana-setup.sh
UTF-8
1,425
3.203125
3
[]
no_license
#!/bin/bash #kibana setup #OS requirement: redhat 7 set -x abs_path=$(cd `dirname $0`; pwd) source $abs_path/../env.conf #kibana rpm install rpm -qa | grep kibana-${ELK_VERSION} [ $? -ne 0 ] && sudo rpm --install ${KB_PKG_URL} #install x-pack if [ ! -d "/usr/share/kibana/plugins/x-pack" ]; then echo "install kiba...
true
d4f0dec1c64887d6303219ec6649d179f4d64095
Shell
tauri-apps/tauri
/.scripts/cargo-check.sh
UTF-8
1,107
3.96875
4
[ "Apache-2.0", "CC0-1.0", "MIT", "CC-BY-NC-ND-4.0" ]
permissive
#!/usr/bin/env sh # Copyright 2019-2023 Tauri Programme within The Commons Conservancy # SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: MIT # note: you can pass in the cargo sub-commands used to check manually. # allowed commands: check, clippy, fmt, test # default: clippy, fmt, test # exit the scrip...
true
67feced35aaaaaf147f9febc9cc07f1923f62c05
Shell
mdestombes/minecraft_ftbrev_server
/run.sh
UTF-8
6,428
3.875
4
[]
no_license
#!/usr/bin/env bash echo "************************************************************************" echo "* Minecraft Server launching... ("`date`")" echo "************************************************************************" java -version # Trap management [[ -p /tmp/FIFO ]] && rm /tmp/FIFO mkfifo /tmp/FIFO expo...
true
b00144cfc36edeb7aa02bdad419736eb926565c8
Shell
ryansb/brassballs
/lib/balls.sh
UTF-8
616
2.828125
3
[]
no_license
#!/bin/bash [[ -z "$BALLS_LIB" ]] && BALLS_LIB=. [[ -z "$BALLS_CONF" ]] && BALLS_CONF=./config.sh [[ -z "$BALLS_ROOT" ]] && BALLS_ROOT=$(readlink -f "$(dirname $BALLS_CONF)/../") [[ -z "$BALLS_LIB" ]] && BALLS_LIB=$(dirname $0) [[ -z "$BALLS_TMP" ]] && BALLS_TMP=/tmp/balls [[ -d "$BALLS_TMP" ]] || mkdir "$BALLS_TMP" ...
true
8e5d2db3b4a23107923f8d4661bac3339b92a624
Shell
diekhans/t2t-chm13-gene-analysis
/bin/starAlignPara
UTF-8
258
3.015625
3
[]
no_license
#!/bin/bash -e # Wrapper for running under parasol. Makes sure PATH is correct. # starAlign does atomic install of file, so no need for any error handling set -beEu -o pipefail source ~/.bashrc binDir=$(dirname $(realpath $0)) exec $binDir/starAlign "$@"
true
7d9e7cecee2d3cb79f1296a9286c4af4b0886c82
Shell
garbetjie/docker-nginx
/fpm/fs/docker-entrypoint.sh
UTF-8
946
3.796875
4
[]
no_license
#!/bin/sh # Build up the list of hosts that are allowed to access the FPM status path. IFS=" " fpm_status_hosts_formatted="" for cidr in $FPM_STATUS_HOSTS_ALLOWED; do [[ "$cidr" != "" ]] && fpm_status_hosts_formatted="${fpm_status_hosts_formatted} allow ${cidr};"$'\n' done for cidr in $FPM_STATUS_HOST...
true
a6cbca273ea86439cbdda8b1cc47ab61ffd17e06
Shell
citb30/shell_scripts
/03-input-read.sh
UTF-8
114
2.859375
3
[]
no_license
#!/bin/bash ## Input can be taken from read command. read -p 'Enter your name: ' name echo "Your Name = $name"
true
923a0a00be0da973ba1b989815dd54d92dce6cfd
Shell
mateusmanuel/TCC-experiments
/clover-history/org.jsoup-jsoup/extract.sh
UTF-8
800
3.28125
3
[]
no_license
for FILE in *.xml.gz; do gunzip $FILE done echo "seconds,coverage,time" > statistics_execution.csv I=2 for FILE in *.xml; do sed -n '2,4p;5q' $FILE > $FILE.out # Calculate delta time END=$(grep -oP "(?<=generated=\")[^ ]+" $FILE.out) END=${END%?} START=$(grep -oP "(?<=timestamp=\")[^ ]+" $FILE.out) START=$...
true
b6784bc80a229d43c98bd6a11569ca010c42112d
Shell
openstack-charmers/devstack-utils-nova-lxd
/common-functions.sh
UTF-8
7,775
4.125
4
[]
no_license
# bash common functions for various common actions in the devstack scripts ## Determine if the OpenStack VARS are set to access serverstack (or anything else) # cache the result unset _OS_VARS function assert_os_vars_are_set { local _OS_REGION_NAME if [[ -z "$_OS_VARS" ]]; then # The OS_VARS need to be set up t...
true
9b3b8b1e79a65c6063f9920b16473128f8018fef
Shell
ywy0318/test_20210224
/shell/test_sh.txt
UTF-8
233
3.25
3
[]
no_license
#!/bin/sh SYSTEM=`uname -s` if [ $SYSTEM = "Linux" ] ; then echo "Linux" elif [ $SYSTEM = "FreeBSD" ] ; then echo "FreeBSD" elif [ $SYSTEM = "Solaris" ] ; then echo "Solaris" else echo "What?" fi
true
4db31b1f5d8fc5cb1074f51baa0c5b8162c2c0e6
Shell
leomazzo/msbb
/bbforum-config/init-final.sh
UTF-8
1,218
3.21875
3
[]
no_license
echo "Adding Swapfile ...." dd if=/dev/zero of=/swapfile1 bs=1024 count=524288 chown root:root /swapfile1 chmod 0600 /swapfile1 mkswap /swapfile1 swapon /swapfile1 echo "/swapfile1 none swap sw 0 0" >> /etc/fstab echo "Downloading, Unzipping and doing some settings in BB Forum...." cd /tmp/ wget https://resources.mybb...
true
c17b4904d7295bab96dc180e73cd115c8f988467
Shell
prenaux/ham
/toolsets/ffmpeg/ffmpeg_to_wav8
UTF-8
164
2.8125
3
[ "Jam", "MIT", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash . ham-bash-lib.sh SRC="$1" DST="$2" if [ -z "$DST" ]; then DST="${SRC%.*}_wav8.wav" fi set -ex ffmpeg -i "$SRC" -vn -acodec pcm_u8 -ar 22050 "$DST"
true
4053913eaff5f932c0c8eb4c568c93c18004ca5d
Shell
owusumichael/covid19-1
/extra/pipeline_onlyR1.sh
UTF-8
3,303
3.453125
3
[ "MIT" ]
permissive
#!/bin/bash # map for r1 in fastq/raw/*R1*.fastq.gz; do mkdir -p onlyR1/BAM output=${r1/_R1/} bwa mem -v1 -t10 refs/REF_NC_045512.2.fasta "$r1" | samtools view -b - > onlyR1/BAM/`basename $output .fastq.gz`.bam done # keep mapped reads for file in onlyR1/BAM/*.bam; do samtools view -F 260 -h "$file" > onlyR1/...
true
890481b92284d873a781427c0daa989a8c9b2ecb
Shell
slaash/scripts
/sysinfo_awk.sh
UTF-8
598
3.234375
3
[]
no_license
#!/bin/bash awk 'BEGIN { printf "%-19s %-16s %-14s %-14s %s\n", "Date", "Free Memory (kB)", "Used Swap (kB)", "Free Swap (kB)", "System Load" }' while true; do meminfo=$(awk ' tolower($1) ~ /memfree/ { memfree = $2 } tolower($1) ~ /swapfree/ { swapfree = $2 } ...
true
2aa698f714a0674387771abbe5adc3ff97694cc2
Shell
Navyasree272/programconstruct
/ifelse912.sh
UTF-8
342
3.109375
3
[]
no_license
#bin/bash -x read n echo "you had enter $n" case $n in 1) echo -n "sunday " ;; 2) echo -n "monday " ;; 3) echo -n "tuesday" ;; 4) echo -n "wednesday " ;; 5) echo -n "thursday" ;; 6) echo -n "friday " ;; 7) echo -n "saturday" ;; *) echo -n " there is no d...
true
b3b2ce0880534c1f2cb0f797457d63d392afb354
Shell
ithinkihaveacat/dotfiles
/home/.bash_profile
UTF-8
481
3.21875
3
[ "Apache-2.0" ]
permissive
# -*- sh -*- # Don't run fish if Android Studio is attempting to retrieve environment variables # https://youtrack.jetbrains.com/articles/IDEA-A-19/Shell-Environment-Loading if [ -z "$INTELLIJ_ENVIRONMENT_READER" ]; then # Attempt to run fish as login shell, even if bash is technically the # login shell. ...
true
cf6ceb59e4efa6d7c055442f6e1df147417f93ea
Shell
hakehuang/skywalker
/vte_script/gen_fail_log.sh
UTF-8
2,464
3.46875
3
[]
no_license
#!/bin/sh -x # ./gen_fail_log.sh /home/smb/nfs/wb/vte_IMX50-RDP3_d/output IMX50-RDP3 . #<output fail log path> <platfrom name> <output path> echo $* >> /rootfs/wb/.log.txt PLATFORM=$2 path=$3 #list=$(ls ${1}/*.failed -lrt | awk '{print $8}') for i in $(ls ${1}/*.failed -lrt ) do file=$(echo $i | grep "failed" | wc ...
true
4ac2dd0e5149b0ccd2454548944164944c83e95c
Shell
kimsyversen/dotfiles
/macos.sh
UTF-8
22,458
2.859375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # Close any open System Preferences panes, to prevent them from overriding # settings we’re about to change osascript -e 'tell application "System Preferences" to quit' # Ask for the administrator password upfront sudo -v read -p "Enter hostname # " NAME #########################################...
true
e19bff37de8383db9ff5620c8490f253e9e5b4be
Shell
ldionmarcil/blackarch
/packages/indxparse/PKGBUILD
UTF-8
1,599
2.90625
3
[]
no_license
# This file is part of BlackArch Linux ( http://blackarch.org ). # See COPYING for license details. pkgname='indxparse' pkgver=141.81c037d pkgrel=3 groups=('blackarch' 'blackarch-forensic') pkgdesc='A Tool suite for inspecting NTFS artifacts.' arch=('any') url='http://www.williballenthin.com/forensics/mft/indxparse/' ...
true
e5bc2b9e427b6012550913c4b157115995187920
Shell
pyzh/rootless-kubernetes
/enter-chroot
UTF-8
2,677
3.078125
3
[]
no_license
#!/usr/bin/env bash set -e set -o pipefail if [[ -z "${USERNS_NAME}" ]] then ROOTDIR=$(dirname $(readlink -f "${BASH_SOURCE[0]}")) cd "${ROOTDIR}" "./bin/unspawn" -n kube -d localdomain --user --net -- "${BASH_SOURCE[0]}" "$@" else reset_env() { export -n $(export -p | grep -Po '(?<=^declare -x )[^=]+') expor...
true
2c301be7ca7f5978443bebbae98f705e21899c6f
Shell
taha-eg/docker-wideworldimporters
/build.sh
UTF-8
1,361
2.875
3
[ "MIT" ]
permissive
#!/bin/bash # if [ ! -f WideWorldImporters-Full.bak ]; then # echo "Downloading WideWorldImporters OLTP backup file from Microsoft..." # wget https://github.com/Microsoft/sql-server-samples/releases/download/wide-world-importers-v1.0/WideWorldImporters-Full.bak -O WideWorldImporters-Full.bak -q # echo "Down...
true
b2925391fd81c30726783308285b147fd78a75c3
Shell
AlanYiNew/ObjectDetector
/sw/run.sh
UTF-8
106
2.53125
3
[]
no_license
#!/bin/sh for file in $(ls ../circle) do ./main ../circle/$file ./main ../not\ circle/$file done
true
521181c11429ccf52b07456c2f51a581fd2f494f
Shell
kyma-project/kyma
/hack/verify-md.sh
UTF-8
420
3.609375
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash readonly CURRENT_DIR="$( cd "$( dirname "$0" )" && pwd )" cd $CURRENT_DIR/table-gen || exit echo "Validating CRD documentation tables" make generate DIFF=$(git diff --exit-code) if [ -n "${DIFF}" ]; then echo -e "ERROR: CRDs documentation is not up to date" echo -e "Please go to the ha...
true
0e95ad11fe3330f0d670d946ba988d64d70cd752
Shell
tharrisoniii/unofficial-uoregon-grad-school-dissertation-latex-markdown-apa-format
/optional_additional_files/Get_All_R_Library_Version_Numbers_and_Create_Draft_From_Them.sh
UTF-8
2,740
3.890625
4
[ "LPPL-1.3c", "CC-BY-4.0" ]
permissive
#!/bin/bash # Find all R packages loaded in a codebase # Jacob Levernier # 2016 # Released under an MIT license ############################ # Settings ############################ file_to_save="./markdown_draft_examples/R_Package_Version_Numbers_AUTOMATICALLY_GENERATED_DO_NOT_EDIT_MANUALLY.md" # This file should be...
true
ad8b0033a9911eb5921789e0ec1f5266bcad0a80
Shell
cherki-hamza/42
/files/exo/print_pid_args.sh
UTF-8
264
3.25
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # Made by db0 # Contact db0company[at]gmail[dot]com # Website http://db0.fr/ echo "PID : $$" echo "Nombre d'arguments : $#" echo -n "Les Arguments : " i=1; while [ "$i" -le "$#" ] do eval echo -n \$$i echo -n " " i=$(($i + 1)) done echo ""
true
926601a4cd57518a0533e63e2120cc59dd1decb1
Shell
marlt/MA_Methods
/BLAST.sh
UTF-8
2,014
3.421875
3
[]
no_license
#!/bin/bash # BLAST contigs against a DB QUERY="$1" # multi fastq file containing query sequences DB="$2" # path and basename of the target database OUT="$3" # csv file to write results to TMP=$(dirname ${OUT}) # Directory, where to save the blast output table # Write cs...
true
eac571a668107ef1f3dd1ec3dad6f6d2f381d70f
Shell
jrhopper/encryption
/encrypt.sh
UTF-8
1,195
4.0625
4
[]
no_license
#!/usr/bin/env bash PUBLIC_KEY="pub-key.pem" FILE_TO_ENCRYPT="$@" B2_BUCKET_NAME="b2demo" # Ensure there is a file name specified. if [ -z "$FILE_TO_ENCRYPT" ]; then echo "Usage: encrypt.sh <filename>" exit 1 fi # Generate a one-time per file password that's 180 characters long. Save it # into RAM only for use by...
true
c64848d2f00afab438849ec162747292638cf244
Shell
kennycaiguo/openbsd-X11
/xc/programs/fvwm/utils/fvwmrc_convert
UTF-8
16,537
3.546875
4
[]
no_license
#!/bin/sh # Some time ago, Martin Kraemer <Martin.Kraemer@mch.sni.de> posted an # incomplete script to convert fvwm-1 'rc' files to fvwm-2. I've just # recently fixed and enhanced that script; it's complete (or nearly # so) now. This should help if you choose to convert. # # I've also made a couple of other minor ch...
true
396b72e649f90639690de34c7e87519a8de3cd76
Shell
autopqc/vagrant-autopqc
/provision.sh
UTF-8
1,271
2.671875
3
[]
no_license
export LD_LIBRARY_PATH=/usr/local/lib:/home/vagrant/autopqc/_build/c_src sudo pacman -Syyu --noconfirm sudo pacman -S --noconfirm --needed wget base-devel git opam gmp libffi emacs xorg-xauth # download dependencies cd ~ wget http://www.shoup.net/ntl/ntl-9.7.1.tar.gz tar xvf ntl-9.7.1.tar.gz wget http://www.mathemat...
true
db2ccfed2915a32bff61bd997d7c5df863e5427e
Shell
denis-kol4ev/OraDBA
/Scripts/Bash/hosts_for_puppet.sh
UTF-8
1,996
3.484375
3
[]
no_license
#!/bin/bash cd /home/oracle . .bash_profile > /dev/null SCRIPT_NAME=$(basename "$0") ADDRESS=$(hostname -s) ADMIN_MAIL1=admin1@company.ru ADMIN_MAIL2=admin2@company.ru LOG_DIR=/home/oracle/maint/logs LOG_FILE=$LOG_DIR/hosts_for_puppet_$(date +%F-%H-%M.log) check_error_f () { if [[ $1 -ne 0 ]] then RETURN_STATUS...
true
f712312def2c504a505e86de28628219fc6675fa
Shell
alemmer1/16s_Project
/align_bwa_mus16s.sh
UTF-8
392
2.859375
3
[]
no_license
#!/bin/bash if [ "$1" == "index" ]; then bwa index ./16SMicrobial_removedNewLines.fasta fi if [ "$1" == "align" ] ; then samples='36 37 38 44 45 46' dir=/dilithium/Data/Nanopore/Analysis/alemmer/mus16s_samples ref=./16SMicrobial_removedNewLines.fasta for sample in $samples do bwa mem -x ont2d ${ref} ${dir}...
true
e73e496b35e41aa5fd8007331a52f968f6ece559
Shell
Sergeileduc/bash-tools
/casi320
UTF-8
2,355
3.4375
3
[]
no_license
#!/bin/bash # This script uploads a picture (jpeg or png) on casimages, using 640 redim # And return casimages image url in zenity box (needs zenity) IMG="$1" ftype="" function get-file-type { mimetype=$(file --mime-type -b "$1") case "$mimetype" in image/png) ftype="png";; image/jpeg) ftype=...
true
cb6ca52091a41c00f7c0a14c49b198b6de5578bb
Shell
YuanFanBin/dotfile
/.xinitrc
UTF-8
2,183
2.828125
3
[]
no_license
#!/bin/sh # Copyright: Copyright (C) 2013-2017 YuanFanBin # License: The MIT License # Email: yuanfanbin@gmail.com #-----------------------------------------------------------------------------# # cp /etc/X11/xinit/xinitrc # [Reference] # * [xinitrc - Arch Wiki](https://wiki.archlinux.org/index.php/Xinitrc) #--------...
true
4084d733b9366ed352a389285a7f27d4852a2467
Shell
Satkarni/CDAC
/Shell/Assignment1/p10.sh
UTF-8
155
3.3125
3
[]
no_license
#!/bin/bash echo "Enter number" read input while [ $input -gt 0 ] do sum=$(($sum+$input%10)) input=$(($input/10)) done echo "Sum of digits:$sum"
true
b4341c579f5c91556ad2244ca83daedce03e7024
Shell
iosifv/terminal-toolbelt
/sources/bundle/laravel.sh
UTF-8
1,964
3.34375
3
[ "MIT" ]
permissive
#============================ # Laravel =================== #============================ function tb-help-laravel { print-status "laravel:" echo "art|artisan " echo "tinker " echo "lroute = Searches and lists routes in an app. Takes 2 arguments" echo "lcache = Deletes all cache in ...
true
6f381a6addc083eb4503cd73dc4c41b186d8beb1
Shell
cliffton/caliper
/packages/caliper-samples/network/fabric-v1.4/kafka/launch_orderer.sh
UTF-8
1,191
2.921875
3
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
#!/bin/bash set -x export CALIPER_KAFKA=$HOME/caliper/packages/caliper-samples/network/fabric-v1.4/kafka/ function usage { echo "./launch_orderer.sh ORG_ID" } # Check if ORG_NAME passed if [ -z $1 ]; then usage echo "Please provide the ORG ID!!!" exit 0 else ORG_ID=$1 fi rm -rf $HOME/orderer/...
true
42a1cd3838655115d5972cf9909fbadfed18909e
Shell
pedropena/backharddi-ng-kernel
/udebs/d-i/partman/partman-base/source/init.d/unsupported
UTF-8
741
3.0625
3
[]
no_license
#!/bin/sh if [ -f /var/lib/partman/supported ]; then exit 0 fi . /lib/partman/definitions.sh [ -d /var/lib/partman ] || mkdir /var/lib/partman >/var/lib/partman/supported default_label=$(default_disk_label) case "$default_label" in UNKNOWN) db_input critical partman/unknown_label db_go || exit 10 db_get...
true
62f5859358f91d25cecf7b9e405e9392a4228950
Shell
cu-swe4s-fall-2019/test-driven-development-qyang13
/gen_data.sh
UTF-8
60
2.53125
3
[]
no_license
for i in `seq 1 1000`; do echo $RANDOM$'\t'$RANDOM done
true
1174cd7eef3d57aee61369dc040f7d1f3829a8c0
Shell
ntpeters/genesis
/common/script-requires.sh
UTF-8
1,282
4.28125
4
[]
no_license
# Functions to limit script executions # Require a script to be run as root function require_root() { if (( EUID != 0 )); then echo "This script must be run as root!" exit 1 fi } # Require a script to be sourced function require_sourced() { if [[ "${BASH_SOURCE[0]}" = "${0}" ]]; then ...
true
e44aaaaebd359a700124216d68305537d021e62e
Shell
transloadit/uppy
/bin/to-gif-hq.sh
UTF-8
367
2.9375
3
[ "MIT" ]
permissive
#!/bin/sh # Convert a video file to a gif. # `to-gif /path/to/input.mp4 /path/to/output.gif` palette="/tmp/to-gif-palette.png" filters="fps=15" ffmpeg -v warning -i $1 -vf "$filters,palettegen" -y $palette ffmpeg -v warning -i $1 -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y $2 # gifsicle --resize-fit-widt...
true
8d56fada33d9c6a8253cd048ab210e0d569848b5
Shell
whsasf/bohem
/lib/mx_create_domain.sh
UTF-8
2,870
3.65625
4
[]
no_license
#!/bin/bash ### NOTE: This script does NOT use MOS. ## ## Create a domain ## #mx_create_domain.sh <mxhost> <domain> set -x user=$1 host=$2 prefix=$3 port=$4 domain=$5 shift 5 while [ $# -gt 0 ]; do if [ "$1" = "--relayhost" ]; then relayhost=$2 shift elif [ "$1" = "--mailrazorgateselector" ]; then mailrazorg...
true
231b3e39b16bae98bc3aecfff6324e2b826c5067
Shell
tanviredu/BASH_LEARNING_TUTORIAL
/func3.sh
UTF-8
816
3.9375
4
[]
no_license
read -p "Enter the folder name : " tmp_folder read -p "Enter the file name : " tmp_file folderCreate(){ ## this function will create the local folder=$1 echo "checking if the folder exixts ......" if [ -d $1 ] then echo "Directory exists" else echo "Creating the Directory" mkdir $1 fi } fileCreate(){...
true
93a6ab36c25bc709c2d91c331cca59eb85622cb4
Shell
flix-tech/k8s-meetup-talk-2016
/apps/helloworld/runtests.sh
UTF-8
329
2.703125
3
[]
no_license
#!/usr/bin/env bash while true; do POD=$(kubectl get pods -l app=helloworld --no-headers --show-all | grep Running | awk '{print $1}') if [[ ! -z ${POD} ]] then break fi done kubectl exec -ti ${POD} -c php -- \ su www-data -c 'XDEBUG_CONFIG="PHPSTORM" php vendor/bin/phpunit -c phpunit.x...
true
3013db0cd2d924b893a6f6ff1224bd2d0d5b9e30
Shell
wade1990/git-post-receive-irc-bot
/post-receive
UTF-8
566
3.671875
4
[ "Apache-2.0" ]
permissive
#!/bin/sh die() { echo 'fatal:' "$@" >&2 exit 1 } [ "$#" -eq 2 ] || die "usage: $0 <network> <channel>" owndir="$(dirname "$(readlink -f "$0")")" network="$owndir/irc/$1/in" channel="$owndir/irc/$1/$2/in" [ -p "$network" ] || die "$network: not a named pipe; edit $owndir/connect script and reconnect" [ -p "$ch...
true
c0d0d965274b7b4c3cf06c8b386448676b3a0d63
Shell
petronny/aur3-mirror
/kde-odf-thumbnail/PKGBUILD
UTF-8
859
2.828125
3
[]
no_license
pkgname=kde-odf-thumbnail pkgver=1.0.0 pkgrel=1 pkgdesc="KDE thumbnail-plugin to generate thumbnails for ODF documents in Dolphin/Konqueror" arch=('i686' 'x86_64') url="http://kenai.com/projects/kde-odf-thumbnail" license=('LGPL-2.1') depends=('qt' 'kdebase-workspace') makedepends=('cmake' 'automoc4') install=$pkgname....
true
5d06355d9a85ae98628c61ab2522ae67e8ca2828
Shell
xiyuansun/bootcamp009_project
/Project2-WebScraping/markschott/bitcoin/misc/rr.sh
UTF-8
286
3.203125
3
[]
no_license
#!/bin/bash i=0 while IFS='' read -r line || [[ -n "$line" ]]; do echo $i >> check.txt i=$((i+1)) echo "Curling from url: $line" echo '[' >> "$2" curl $line | grep "<p>.*</p>" ptest.txt | sed 's/<p>//g' | sed 's/<\/p>//g' >> "$2" echo '],' >> "$2" done < "$1"
true
898a2e9866f9458aee521070149502ae516526c6
Shell
Ismailhachimi/trfl
/trfl/op_gen_main.sh
UTF-8
524
3.375
3
[ "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
#!/bin/bash PLATFORM="$(uname -s | tr 'A-Z' 'a-z')" set -e if [ "$#" -ne 2 ]; then echo "usage: %prog% path/to/op_lib.so op1,op2,..." exit 1 fi cat <<EOF import tensorflow as tf _op_lib = tf.load_op_library(tf.resource_loader.get_path_to_datafile("$1")) EOF for name in $(echo $2 | tr "," "\n") do snake...
true
dce5ad1113a6b92e79a2f4094eabb50ed7876a8d
Shell
plus3it/tardigrade-ci
/tests/make/terraform_lint_failure.bats
UTF-8
420
3.34375
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bats TEST_DIR="$(pwd)/terraform_lint_failure" function setup() { mkdir -p "$TEST_DIR/top/nested" cat > "$TEST_DIR/top/nested/main.tf" <<-EOF variable "foo" { default = "bar" } output "baz" { value = var.foo } EOF } @test "terraform/lint: nested file failure" { run make terraform/lint [ "$status...
true
c00882ffe75142d57e2f96e6dcb31917a6556d1f
Shell
frontstack/vagrant
/setup/setup.sh
UTF-8
16,722
3.78125
4
[ "WTFPL" ]
permissive
#!/bin/bash # # FrontStack VM installation and provisioning script # @author Tomas Aparicio # @version 0.5 # @license WTFPL # szip_url=http://sourceforge.net/projects/frontstack/files/packages/7zip/7z-9.20-x64.tar.gz/download temporal=/tmp/frontstack download_dir=$temporal/downloads output=$temporal/output.log config_...
true
c6b659f392ca90971d2861b6048243ab43ca0227
Shell
apmanomark/app-hello
/source/scripts/bash/dev/install_sencha-cmd-64.sh
UTF-8
565
2.65625
3
[]
no_license
SENCHA_CMD_VERSION=5.0.0.160 UNPACK_FILENAME=sencha-cmd-64 INSTALLER_FILENAME=SenchaCmd-${SENCHA_CMD_VERSION}-linux-64 mkdir -p ./unpack/ curl -o ./unpack/${UNPACK_FILENAME}.run.zip http://cdn.sencha.com/cmd/${SENCHA_CMD_VERSION}/${INSTALLER_FILENAME}.run.zip unzip -p ./unpack/${UNPACK_FILENAME}.run.zip >./unpack/${...
true
21713beb8b12ad337964cdcb31968a2330dfa728
Shell
yamaszone/mac
/run
UTF-8
573
3.984375
4
[]
no_license
#!/bin/bash # Simple script to allow BATS setup and run tests easily help(){ echo "Usage:" printf "\t setup\t\t: Sets up BATS framework if not done already.\n" printf "\t healthcheck\t: Run health check.\n" printf "\t tests\t\t: Run tests.\n" printf "\t help\t\t: Show this help.\n" exit 0 } run_healthcheck(){ ...
true
4851a5e7e2978d14d511cfb1f77baab5dad844ec
Shell
srv-code/College-Lab-Exercises
/MCA/Sem 1/s.old2
UTF-8
4,171
3.6875
4
[]
no_license
#!/bin/bash set_properties() # receives prop-type & prop-val { case $1 in errcc) case $2 in # ASCII Color codes: # Black 0;30 Dark Gray 1;30 # Red 0;31 Light Red 1;31 # Green 0;32 Light Green 1;32 # Brown/Orange 0;33 Yellow 1;33 # B...
true
f378094bad16e386d83f3d57c20b87a03db73a63
Shell
rainik/task4_2
/ntp_deploy.sh
UTF-8
1,609
3.96875
4
[]
no_license
#!/bin/bash # This script installs ntp in your system, creates cron task which every 5 minutes will check # if the service is running and its config file is unchanged. # If the service is stopped it will be launched by cron job and the /etc/ntp.conf will be returned # in the initial state. # Author: Serhii itrainik@g...
true
d4da65371a77752a4fd82a343b95e0aac186241a
Shell
mandad/moos-ivp-manda
/missions/2015_portsmouth_M1/launch.sh
UTF-8
2,689
3.671875
4
[ "MIT" ]
permissive
#!/bin/bash #------------------------------------------------------- # Part 1: Check for and handle command-line arguments #------------------------------------------------------- TIME_WARP=1 JUST_MAKE="no" for ARGI; do if [ "${ARGI}" = "--help" -o "${ARGI}" = "-h" ] ; then printf "%s [SWITCHES] [time_warp] \n...
true
e995ab21fa8e9d14339d3c3e82c80fa919a729cb
Shell
google/gvisor-containerd-shim
/test/e2e/runtime-handler/usage.sh
UTF-8
534
2.859375
3
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
#!/bin/bash # A sample script for testing the gvisor-containerd-shim # using runtime handler. set -ex { # Step 1: Pull the nginx image sudo crictl pull nginx } { # Step 2: Create sandbox.json cat <<EOF | tee sandbox.json { "metadata": { "name": "nginx-sandbox", "namespace": "default", "a...
true
fdad24e60ade693d1ea80ee42da1719041a45d19
Shell
LaplaceKorea/mimic-cross
/target/setup.sh
UTF-8
1,182
2.953125
3
[ "MIT" ]
permissive
#!/bin/bash -eu arch >/mimic-cross/arch HOST_ARCH=$(cat /host/mimic-cross/arch) echo PATH=\"/mimic-cross/deploy/bin:"$PATH"\" >/etc/environment #shellcheck disable=SC2046 ln -s $(realpath /host/usr/lib/"$HOST_ARCH"-linux-gnu /usr/lib/) if [[ $(realpath /lib) != /usr/lib ]]; then ln -s /host/lib/"$HOST_ARCH"-linux-g...
true
7124e662aa3a93e665ee7edb28cda98a32ae1dd8
Shell
bobc/R2C2_Firmware
/Firmware/tag_version
UTF-8
169
3.515625
4
[]
no_license
#!/bin/bash if [ "$1" == "" ] ; then echo "Usage: tag_version x.y.z" else echo "Tagging version " $1 "..." git tag Firmware_v$1 git push origin Firmware_v$1 fi
true
7e249fb41fcc2480ece29434e416b02818e3aab1
Shell
mangoalx/scripts
/androidscripts/usb-switch-test.sh
UTF-8
1,485
3.21875
3
[]
no_license
#!/system/bin/sh TAG="${0##*/}" insmod /system/lib/modules/gpio-pca953x.ko echo 100 > /sys/class/gpio/export echo out > /sys/class/gpio/gpio100/direction echo 0 > /sys/class/gpio/gpio100/value sleep 1 # assume default value was 0 and device is already mounted DEVICE_NAME="$(eval grep -Hv ^0$ /sys/block/*/removable...
true
50e5c0aea4703ebaab06c5c5ed8356f835747e1c
Shell
DennisGoldfarb/MS-Demix
/scripts/SLURM_pipeline.sh
UTF-8
1,738
3.046875
3
[]
no_license
#!/bin/bash #SBATCH --job-name=demix #SBATCH --array=1-100 #SBATCH -t 01-00:00:00 #SBATCH --mem=16g #SBATCH --ntasks=4 #SBATCH --output=/pine/scr/d/e/dennisg/MS-Demix/log/Deconvolution_%A_%a.out #SBATCH --error=/pine/scr/d/e/dennisg/MS-Demix/log/Deconvolution_%A_%a.err module load matlab source ./config.sh mkdir -p ...
true
0dbf3a77bcc03213f583f26a819abc173114f2e2
Shell
kvpb/.files
/.ubuntu
UTF-8
18,477
2.90625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash exec 2>> ${HOME}/Temporary/log set -xv printf '%s\n' '' printf ' '; printf '\033[48:2:255:165:0m\033[48;2;255;255;255;0#m%s\033[m\n' ' | | | ,' printf ' '; printf '\033[48;2;255;165;0m\033[48;2;255;255;255;0#m%s\033[m\n' ' | | |-. | ...
true
fb3ee05a86e360b7098ec273eeef555385d50292
Shell
andres-condezo/mydotfiles
/.zshrc
UTF-8
8,334
2.71875
3
[]
no_license
# If you come from bash you might have to change your $PATH. # export PATH=$HOME/bin:/usr/local/bin:$PATH # Path to your oh-my-zsh installation. export ZSH="/home/adrs/.oh-my-zsh" # Set name of the theme to load --- if set to "random", it will # load a random theme each time oh-my-zsh is loaded, in which case, # to k...
true
573010f3c0fd4b2280d0a4e072b6931bb3423356
Shell
hardik-kgp/Networks_Lab_CS39006
/Assignment4/assignment4_partB.sh
UTF-8
5,632
2.890625
3
[]
no_license
#!/bin/sh #################################### #### Sriyash Poddar | 18CS30040 #### #### Assignment 4 Part B #### #################################### # creating namespaces # command: sudo ip netns add <name of namespace> sudo ip netns add H1 sudo ip netns add H2 sudo ip netns add H3 sudo ip netns add H4 sudo...
true
2df694d5eca65ed85c2ac95397fb583689fa2f75
Shell
henderea/jse
/resources/shell_code.sh
UTF-8
1,462
3.625
4
[]
no_license
function __jse_check { if which jse >/dev/null 2>/dev/null; then return 0 elif which nvm >/dev/null 2>/dev/null; then if which nvm_find_nvmrc >/dev/null 2>/dev/null; then if [[ -f "$(nvm_find_nvmrc)" ]]; then nvm use >/dev/null 2>/dev/null else nvm use default >/dev/null 2>/dev/n...
true
3cf2170f798b0df1d3160a8243dfb79e1c9d70ce
Shell
yuzhenpeng/egaz
/template/6_var_list.tt2
UTF-8
729
2.71875
3
[]
no_license
#!/bin/bash # perl [% stopwatch.cmd_line %] cd [% working_dir %] sleep 1; if [ -d [% working_dir %]/[% multi_name %]_vcf ]; then rm -fr [% working_dir %]/[% multi_name %]_vcf; fi; mkdir -p [% working_dir %]/[% multi_name %]_vcf #----------------------------# # var_list #----------------------------# find [% wor...
true
3b939ed8af9e3c014840ba622e848f8d0494b391
Shell
mickmetalholic/osm-server-docker
/config/run.sh
UTF-8
1,841
3.578125
4
[]
no_license
#!/bin/bash installstylesheet() { echo "Installing stylesheet ..." cd /root/stylesheet && \ sh ./get-shapefiles.sh && \ carto project.mml > style.xml echo "Stylesheet installed!" } initdb() { echo "Initializing postgresql..." mkdir -p /var/lib/postgresql/9.4/main && chown -R postgres /var/lib/postg...
true
a75a13e0841635a97fd717fc977d42f1d53716b6
Shell
pigpaxos/pigpaxos
/sigmod2021/prc_experiments/start_no_faults.sh
UTF-8
405
2.875
3
[]
no_license
#!/usr/bin/env bash source common.sh arraylength=${#nodes[@]} for (( i=1; i<${arraylength}+1; i++ )); do ssh -i va.pem ubuntu@${nodes[$i-1]} 'cd /home/ubuntu/paxi/bin/; rm logs/*' upload_one ${nodes[$i-1]} "/home/pigpaxos/go/src/github.com/pigpaxos/pigpaxos/bin/start_bp.sh" "/home/ubuntu/paxi/bin/start_bp.sh" s...
true
bd5011ea132c7cf5bbfbb440226ebb4d5dfef024
Shell
NCAR/DART
/models/FESOM/shell_scripts/advance_model.template
UTF-8
3,594
3.125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # #--- advance each ensemble member using a job array #---------------------------------------------------------------------- # LSF options (set for the NCAR machine "cheyenne") # #BSUB -a poe #BSUB -J advance_fesom[1-ENSEMBLEMEMBERNO]%3 # Name of the job. #BSUB -o LOG/advance_fesom_%I_%J.out # Append...
true
05b1226692b1091893ef5c194c681f5fce9f8415
Shell
cmcghan/vagrant-rss
/single_installers/install_tulip1.1a.sh
UTF-8
3,723
3.59375
4
[ "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause", "BSD-2-Clause" ]
permissive
#!/bin/bash -e # Copyright by California Institute of Technology # All rights reserved. See LICENSE file at: # https://github.com/cmcghan/vagrant-rss # # in the initialization process for vagrant, this bash script is run as user 'root' from /vagrant # # # Note: Ubuntu X-Windows Desktop and ROS indigo are pre-installe...
true
6e4e9cab582effb1f766ddd792d92364d76bb8cf
Shell
devopsgana1996/devops
/shellScripting/exercises/shiftparameters.sh
UTF-8
614
3.828125
4
[]
no_license
#!/bin/bash #Purpose: Shifting positional parameters automatically #Version:1.0 #Website: WIP #Created Date: Tue May 22 22:55:50 IST 2018 #Modified Date: #Author: Vilas Varghese #Execute as ./shiftparameters g1 g2 g3 g4 # START # # total number of command-line arguments echo "Total arguments passed are: $#" # $* is u...
true
0411395ae643de125f236a3f57a13b2b4de67958
Shell
kergoth/mac-game-tools
/unnative
UTF-8
903
3.75
4
[ "MIT" ]
permissive
#!/bin/sh alias mv="mv -v" for game; do game_base="${game##*/}" if ! [ -e "$game/Contents/Resources/$game_base" ]; then echo >&2 "Warning: unrecognized native game $game" continue fi original="$game/Contents/Resources/$game_base" if [ -h "$original/Game" ]; then orig_game_d...
true
b3206e1ad3825e1cf0803504d32a1d986487fefe
Shell
diegosoriarios/SemestreIV
/SO1/Atividades 1/Exercicio4.sh
UTF-8
225
3.296875
3
[]
no_license
#!/bin/bash f= /home/diego/Documentos/aula/ for file in "$f"/* do if [ $f -nt ../teste2/$f -o -z ../teste2/$f ] then cp -v $f ../teste2/ echo "Arquivo copiado com sucesso" fi echo $file done
true
466361b506a0a23df3425d0108eb420d69a24e03
Shell
davegutz/pyDAGx
/pyDAG3/Apps/makeCMD/makeTBLADJ
UTF-8
2,683
3.90625
4
[ "MIT" ]
permissive
#!bash # makeTBLADJ # Wrapper script on Rob Boguski's perl map2tbl and ins2adj # 11-Aug-2009 DA Gutz Created # Defaults PGM="ge38" VER=v1.22 # Initialize help=0 debug=0 verbose=0 force=0 quitting=0 args="" DATE=`date +%Y%m%d` # getopt from /usr/lib/getopt/parse.bash TEMP=`getopt -o dfhp:v: --long debug,force,help,p...
true
bdb0a2a51360f2884536b1e0af160cd32ea711e0
Shell
kusid/herd-mdl
/mdl/src/test/scripts/sh/testSetup.sh
UTF-8
2,501
3.46875
3
[ "Apache-2.0" ]
permissive
# # Copyright 2018 herd-mdl contributors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
true
d1996377993c44854727673e8b4a4e3657f478b7
Shell
LawsonDaiki/google-it-automation-with-python
/using-python-to-interact-with-the-operating-system/week-six/gather-information.sh
UTF-8
269
2.640625
3
[ "MIT" ]
permissive
#!/bin/bash line="-------------------------------------------------------------------" echo "Starting time at: $(date)"; echo $line echo "UPTIME"; uptime; echo $line echo "FREE"; free; echo $line echo "WHO"; who; echo $line echo "Finshing at: $(date)"
true
79c358a0e58295f8f6fd1e53f06f10a5f01ed7b9
Shell
refola/scripts
/filesystem/fix-permissions.sh
UTF-8
419
3.234375
3
[ "Unlicense", "LicenseRef-scancode-public-domain" ]
permissive
#!/usr/bin/env bash cmds=" sudo chmod -R g=u /home/kelci sudo chown -R kelci:kelci /home/kelci sudo chmod -R g=u /home/mark sudo chown -R mark:mark /home/mark sudo chmod -R g=u /home/minecraft sudo chown -R mark:mark /home/minecraft sudo chmod -R go=u /shared sudo chown -R :users /shared " echo "Fixing permissions fo...
true