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
6284ae27cbc30d2c2a15ab1b154f41dea49d7877
Shell
bookgh/docker-cloudboot
/docker-install.sh
UTF-8
3,403
3.75
4
[]
no_license
#!/bin/bash VERSION=18.09.4 BIN_DIR=/usr/local/docker/bin [ $# -ne 1 ] && echo "Usage $0 {install|uninstall}" repeat() { while true; do $@ && return done } install(){ # 安装 wget which wget > /dev/null 2>&1 || { rm -f /etc/yum.repos.d/*.repo; \ curl -so /etc/yum.repos.d/epel-7.repo http://...
true
04adf6e63d006acebac047a42b376ee0f32f0869
Shell
romika/dotfiles
/.toggletouchpad.sh
UTF-8
242
2.96875
3
[]
no_license
#!/usr/bin/env bash touchpadEnabled=$(xinput list-props 11 | grep "Device Enabled" | awk -F ":" '{print $2}') if [ $touchpadEnabled -eq 1 ] then xinput --set-prop 11 "Device Enabled" 0 else xinput --set-prop 11 "Device Enabled" 1 fi
true
06737b74a35af573c1bebf7f3d089737411ede83
Shell
areebimtar/hive
/QA/tests-shi/bin/hive/restart-manager
UTF-8
1,089
3.359375
3
[]
no_license
#!/usr/bin/env bash # Restart manager server [[ "$1" != "-h" && "$1" != "--help" ]] || { echo "Usage: `basename $0` <cci_build_no>"; exit 1; } set -e; s_dir=$(dirname "$(readlink -e "${BASH_SOURCE[0]}")"); . "$s_dir/../../lib/functions.sh" "$s_dir" export QA_INSTANCE_VIRT=${QA_INSTANCE_VIRT:-0} read_configs virt chec...
true
e64f4cce89cdba57d0a5604c9006810592639f9d
Shell
sariya/CUMC_taub
/split_per_chromosome/launch_job_split.sh
UTF-8
657
3.546875
4
[]
no_license
#!/bin/bash source ~/.bashrc usage() { #spit out the usage cat <<UsageDisplay launch_job_split.sh -o <output dir> -i <input direct> -c <chromsome> Options: -i <input_prefix> UsageDisplay exit; } if [ $# -eq 0 ] # exit if no arguments! then usage; fi while getopts "x:c:i:o:h" args # iterate over arguments...
true
7ad4c0011f664bf8913fa6d1c37672e808be3f3d
Shell
mosn/istio
/prow/lib.sh
UTF-8
15,929
3.375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # Copyright 2018 Istio Authors # # 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 t...
true
9464e9987c24abe3018a4fec0b073b46a071e6f2
Shell
fdaugs/graphql-docs
/scripts/build.sh
UTF-8
513
3.328125
3
[ "MIT" ]
permissive
#!/bin/sh set -eu if [ ! -f package.json ]; then echo 'This must be run from the source root of the project' exit 1 fi if [ ! -d node_modules ]; then echo 'The NPM package dependencies must have been installed' exit 1 fi rm -rf ./dist ./lib for env in development production; do echo "Compiling ...
true
4f3dcb1ecde813918ca52ee6b940a8050bcdb241
Shell
viethien/misc
/intro_to_redirection.sh
UTF-8
493
2.796875
3
[]
no_license
#!/bin/bash #redirecting input and output grep -E "from [0-9]{1,3}-" datasets_and_figures/yeast_chr1_orfs.fa # -E specifies to use regular expressions #to append to standard output to a new file use the >> command instead of the > command #standard input: data that is provided as text to a unix program #exampl...
true
e4205426077416ebffc92bd5327392324a2c03d5
Shell
Albager/adminstuff
/sethostname.sh
UTF-8
3,226
4.28125
4
[]
no_license
#!/bin/bash echo echo "This script will change the hostname in /etc/hostname and the \"FQDN\" in /etc/hosts files." #Colors txtrst=$(tput sgr0) # Text reset txtbld=$(tput bold) # Bold text txtylw=$(tput setaf 3) # Yellow txtgrn=$(tput setaf 2) # Green #Retrieve IPv4 assigned by static dhcp to $ip4 ip4=$(/sbin/ip -o -...
true
2033de62638676a2a234c4ce48ae26faa855c108
Shell
sophea/spring-boot-docker-mysql
/src/main/docker/run_docker_compose_localdb.sh
UTF-8
328
3.03125
3
[]
no_license
#!/bin/bash ##HOSTIP=`ip -4 addr show scope global dev eth0 | grep inet | awk '{print \$2}' | cut -d / -f 1` export HOSTIP=$(ifconfig | grep -E "([0-9]{1,3}\.){3}[0-9]{1,3}" | grep -v 127.0.0.1 | awk '{ print $2 }' | cut -f2 -d: | head -n1 echo "IP address from docker ${HOSTIP}" docker-compose -f docker-compose-locald...
true
5a87f644bc4370b8453ea6fdf7ac302292d5e0cb
Shell
court-jus/dotfiles
/bin/manageVM
UTF-8
352
2.734375
3
[ "MIT" ]
permissive
#!/bin/bash if [ "$2" == "show" ]; then xvnc4viewer -passwd ${HOME}/.vnc/passwd 10.31.254.41:$(awk -F: '$1 ~ /VNCPORT/ {print $2}' "$1") elif [ "$2" == "web" ]; then google-chrome http://$(awk -F: '$1 ~ /IP/ {print $2}' "$1") elif [ "$2" == "restart" ]; then sleep 2 ; ssh root@lost kvmctl reset $(awk -F: '...
true
c16747fcc402669f104e1d5b12f238f8d5fe2513
Shell
sanyakarol/manjaro
/polybar/launch1.sh
UTF-8
421
2.78125
3
[]
no_license
#!/usr/bin/env sh # Terminate already running bar instances killall -q polybar # Wait until the processes have been shut down while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done # Launch polybar polybar work1 -c $HOME/.config/polybar/configg.ini & polybar work2 -c $HOME/.config/polybar/configgg.ini & polybar...
true
671c93602b1b6354da9ef25954e2bca769fd2cf8
Shell
ronin13/Scripts
/loadutil
UTF-8
1,331
3.15625
3
[]
no_license
#!/bin/zsh type=${1:="sess"} if [[ $type == sess ]];then export yprofile="dactyl-sess" pushd ~/.dactyls/sessions file=$(print -l *(om[1,-1]) | ${=DMENU}) [[ -z $file ]] && exit if [[ -n $file && $file == *: ]];then while :;do url=$($=DMENU < $file) ...
true
e4f0a04067a9eba8b5642f0b463a5204782bbca5
Shell
EricZBL/ClusterBuildScripts
/install/installCompent.sh
UTF-8
2,246
3.453125
3
[]
no_license
#!/bin/bash ################################################################################ ## Copyright: HZGOSUN Tech. Co, BigData ## Filename: installAll.sh ## Description: 安装所有组件的脚本. ## Version: 2.0 ## Author: zhangbaolin ## Created: 2018-6-26 ######################################################...
true
a8d43b61425a4603e57c911bb5bfcba2194befc9
Shell
slotsma123/serpentine2
/scripts/readDepth.sh
UTF-8
1,273
3.53125
4
[]
no_license
#!/bin/bash ## caculate read depth for a given bed file or bam file if [ $# -lt 2 ] then echo "Usage: `basename $0` <bamFile or bedFile> <bedFile> [outDir]" exit 65 fi if [ $# -lt 3 ] then outDir='./' else outDir=$3 fi if [[ $1 = *.bam ]]; then a='-abam' elif [[ $1 = *.bed ]]; then a='-a' fi outB...
true
e9f8adb31635608ca78d823d36205d7452949390
Shell
soarpenguin/bash-scripts
/controls/start_marathon.sh
UTF-8
562
2.78125
3
[]
no_license
#!/usr/bin/env bash #set -x export PS4='+ [`basename ${BASH_SOURCE[0]}`:$LINENO ${FUNCNAME[0]} \D{%F %T} $$ ] ' MYNAME="${0##*/}" CURDIR=$(cd "$(dirname "$0")"; pwd) chmod +x ${CURDIR}/bin/start MYIP=`ifconfig | grep "inet addr:10\." | grep -oP "((\d+\.)){3}(\d+)" | head -n 1` nohup ${CURDIR}/bin/start \ --mast...
true
ef7497886b3e6ef8dfca4559ffe239802634e4a6
Shell
JwowSquared/holbertonschool-higher_level_programming
/0x10-python-network_0/3-methods.sh
UTF-8
97
2.546875
3
[]
no_license
#!/bin/bash # curls the address, returns available methods curl -sI $1 | awk "NR==4" | cut -c 8-
true
c78ae28666b1768e7616ac4eee95d4a800806364
Shell
daamien/temboard-agent
/packaging/deb/mkdeb.sh
UTF-8
2,251
3.8125
4
[ "PostgreSQL" ]
permissive
#!/bin/bash -eux UID_GID=$(stat -c %u:%g $0) cd $(readlink -m $0/..) WORKDIR=$(readlink -m build) DESTDIR=$WORKDIR/destdir DISTDIR=$(readlink -m ${PWD}/../../dist) teardown () { set +x if [ "0" = "${CLEAN-1}" ] ; then return fi rm -rf $WORKDIR if hash temboard-agent ; then echo ...
true
8b27453342eb302e874aaf4e10bf28f542b0d08f
Shell
shanki84/terraform_challange
/templates/userdata.sh
UTF-8
2,052
2.546875
3
[]
no_license
#!/bin/bash # Check the logs exec > >(tee /var/log/user-data-output.log|logger -t user-data -s 2>/dev/console) 2>&1 # fetch the metadata of the instance on JSON format wget -q -O - http://169.254.169.254/latest/dynamic/instance-identity/document echo "instance_id:" wget -q -O - http://169.254.169.254/latest/meta-dat...
true
3b45027e52092895b33db4bc04e0bbbe56544772
Shell
ethiery/HPCassignments
/6_funWithPthreadsOMPandMPI/jobs/mergeBenches.sh
UTF-8
521
3.109375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash runners="SEQ OMP PTHREADS MPI_SEQ_SYNC MPI_SEQ_ASYNC" line="# nb_procs" for runner in ${runners} do for size in 4096 8192 16384 32768 do line="${line} ${runner}_${size}" done done echo "${line}" > data/benchALL.dat for nbProcs in 1 2 4 8 16 do line="${nbProcs} " for r...
true
3f1ddf51fca71dbe3846e343e9957d38bb8b81d9
Shell
unshorn-forks/STAC
/Engagement_Challenges/Engagement_2/subspace/challenge_program/data/init
UTF-8
4,828
3.984375
4
[ "Apache-2.0" ]
permissive
#!/bin/sh # Utility functions pecho() { printf %s\\n "$*"; } log() { pecho "$@"; } error() { log "ERROR: $@" >&2; } fatal() { error "$@"; exit 1; } try() { "$@" || fatal "'$@' failed"; } # Run a command as another user. # Usage: run_as <user> <command> [<args>...] run_as() { run_as_user="$1" shift || fatal "m...
true
1dedf802e66466c862e504faa2d94dc5a16402b8
Shell
zggl/wax-ml
/build/has_changed.sh
UTF-8
280
3.421875
3
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
#!/bin/bash # see https://stackoverflow.com/questions/5143795/how-can-i-check-in-a-bash-script-if-my-local-git-repository-has-changes if [ $(git status --porcelain | wc -l) -eq "0" ]; then echo " 🟢 Git repo is clean." else echo " 🔴 Git repo dirty. Quit." exit 1 fi
true
c3b05812072247b5e7e87c6852b0321bcb1575f9
Shell
timonier/dumb-entrypoint
/src/dockerize/installer
UTF-8
856
4.0625
4
[ "MIT" ]
permissive
#!/bin/bash set -e -u -x # Check environment _fail() { echo 1>&2 "$1" echo 1>&2 "Usage: $(basename "$0") [install|uninstall]" exit 255 } if [ "$#" -lt 1 ]; then _fail "Invalid number of arguments." fi # Run installer INSTALL_DIRECTORY="${INSTALL_DIRECTORY:-/usr/sbin}" case "$1" in install) ...
true
ea73826741ccd41d10c8817ebdf1f758cdbbcfb9
Shell
jjzhang166/Kinect1473
/kinectExample1473/misc/kinect_fetch_fw
UTF-8
2,447
3.875
4
[]
no_license
#!/bin/sh # # kinect_fetch_fw - Fetch and install the Microsoft Kinect UAC firmware # # Copyright (C) 2011 Antonio Ospite <ospite@studenti.unina.it> # # This program is free software. It comes without any warranty, to # the extent permitted by applicable law. You can redistribute it # and/or modify it under the terms...
true
09c858ca3110e3cbd61d5d8868fc296eb11bb0cd
Shell
langenhagen/scripts
/_archive/raspi-scripts/backup_owncloud_server.sh
UTF-8
989
3.234375
3
[]
no_license
#!/bin/sh # makes a backup of the owncloud server on the raspberry pi # # taken from # https://doc.owncloud.org/server/9.1/admin_manual/maintenance/backup.html # # author: langenhagen echo "Really?" echo "<ctrl+c> to escape or enter to proceed" read THROW_AWAY_VAR echo "`date` Starting Owncloud backup" OWNCLOUD_B...
true
ad1dcf35ccb2ca620e873fdcb0d0fcdbb73ce6f6
Shell
Gorian/Bash-Framework
/libinfo.sh
UTF-8
450
2.65625
3
[]
no_license
#!/usr/bin/env bash . /scripts/lib/main.lib librequire "standard"; std.msg "\nLoading Modules...\n" "default" "ok"; std.msg "Collecting information...\n" "default" "ok"; std.msg "Displaying information...\n" "default" "ok"; std.msg "\nLoaded Modules:\n" "blue,bold"; std.msg "${LIB_MODULE_LIST[*]}"; std.msg "\nclass lis...
true
b360891c955ee906672882bd73db3fb48623fed4
Shell
yinxusen/dqn-zork
/bin/run.sh
UTF-8
198
3.046875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash FWDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" WORK_DIR="$FWDIR/.." export PYTHONPATH="$WORK_DIR/python/:$PYTHONPATH" executable=$1 python $executable "${@:2}"
true
7916cc0a604c8c18a1beebbb92a075fda2707ce6
Shell
Sethuraman/useful-docker-files
/upload-keys-concourse-to-s3/script.sh
UTF-8
843
3.390625
3
[]
no_license
#!/bin/sh exitWithMessage() { echo "$1" exit 1 } validateEnvironmentVariables() { if [ -z $AWS_ACCESS_KEY_ID ]; then exitWithMessage "AWS_ACCESS_KEY_ID missing" fi if [ -z $AWS_SECRET_ACCESS_KEY ]; then exitWithMessage "AWS_SECRET_ACCESS_KEY missing" fi if [ -z $AWS_DEFAULT_REGION ]; then ex...
true
41311195fb7b5ea9b61dd9f8c328866767c603c1
Shell
snow1313113/go_leetcode
/build.sh
UTF-8
202
3.125
3
[]
no_license
#!/bin/bash if [ $# -lt 1 ]; then echo "USAGE: $0 sub_dir" echo "e.g.: $0 test" exit -1 fi cd `dirname $0` CURRENT_DIR=`pwd` export GOPATH=${CURRENT_DIR} cd src/$1 #go build . go install .
true
d03471253f7645a624b56626f5134dab239228f6
Shell
woocashb/shutils
/nas_mountall.sh
UTF-8
896
3.984375
4
[]
no_license
#!/bin/bash NAS_IP=$1 MOUNT_ROOT=${2%/} CLEAN=${3:-'false'} ARGC=$# usage(){ SCRIPT=$(basename $0) printf "$SCRIPT IP MOUNT_DIR [CLEAN={false,true}]\n" } if [[ $ARGC -lt 2 ]];then usage exit 1; fi shares=$(showmount -e $NAS_IP | tail -n +2 | awk '{print $1}') shares_mount(){ for share in ${shares[@]};do ...
true
65cb90723915a1a51ddb462ebac2731fa875b0ef
Shell
couchbaselabs/mobile-training-todo
/docker/sg/config/run.sh
UTF-8
834
3.859375
4
[]
no_license
#!/bin/sh if [ "$#" -ne 2 ]; then echo "Usage: run.sh <Sync-Gateway-Config-File> <Log-Directory>" exit 1 fi wait_for_uri() { expected=$1 shift uri=$1 echo "Waiting for $uri to be available..." while true; do status=$(curl -s -w "%{http_code}" -o /dev/null $*) if [ "x$status" = "x$expected" ]...
true
c1dc5d3001b192fca202a0021da0134270a9beed
Shell
gejiawen/my-shell-toolbox
/docker/work.sh
UTF-8
3,133
3.9375
4
[]
no_license
#!/usr/bin/env bash # ------------------------------------ # @description # 镜像工作维护脚本 # # @usage # ./work.sh [action] # # @params # action - action表示工作脚本任务,目前有 ‘build’, ‘push’, ‘run’,‘clean’,‘demo’ # # @author # gejiawen<806717031@qq.com> # ------------------------------------ docker_registry="<YOUR_DOCKER_REG...
true
89e4da19e94b9eba9849d21b253e32e77cc3d1fd
Shell
TheWrightonLab/metagenome_annotation
/ANNOTATE_PROTEIN_FASTA.sh
UTF-8
1,507
3.6875
4
[]
no_license
#!/bin/bash # ANNOTATE_PROTEIN_FASTA.sh # # written by Richard Wolfe # # $1 = protein sequence fasta file to annotate # $2 = IPER or NO_IPER or PFAM # # makes a directory annotate_IPER or annotate_NO_IPER or annotate_PFAM with the results #make sure 1 attribute #check if varialble 2 is empty if [ -z $2...
true
dd7abb7e5e1327cbf2eb3f522ab4563642a529b0
Shell
caninen/pyjnius
/.github/actions/scripts/manylinux_entrypoint.sh
UTF-8
361
2.71875
3
[ "MIT" ]
permissive
#!/usr/bin/env bash yum install -y java-1.7.0-openjdk-devel for target in $(ls /opt/python/); do python=/opt/python/$target/bin/python $python -m pip install -U setuptools cython $python setup.py bdist_wheel git clean -dfx jnius/ done for whl in dist/*.whl; do auditwheel repair $whl done rm dist...
true
1fd1fc27c279dfcff467ce94230290e50f034a55
Shell
erig0/pkgsrc-wip
/py-octoprint/files/octoprint.sh
UTF-8
279
2.78125
3
[]
no_license
#!/bin/sh # PROVIDE: octoprint # REQUIRE: DAEMON $_rc_subr_loaded . /etc/rc.subr name="octoprint" rcvar=$name command="@PREFIX@/bin/octoprint-3.7" pidfile="/tmp/$name.pid" procname="@PREFIX@/bin/python3.7" command_args="daemon start" load_rc_config $name run_rc_command "$1"
true
873e9d8da27e4f61d6a3e1fd29fee2db421f39c4
Shell
xchwarze/AmazonProductAPI
/.env.example
UTF-8
356
2.53125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
# Review "Usage" section on page: # https://github.com/josegonzalez/php-dotenv/blob/master/README.markdown # unquoted values containing [null, true, false] are turned into # their PHP equivalents # when quoted, they are simply string values AWS_API_KEY="YOUR-AWS-KEY" AWS_API_SECRET_KEY="YOUR-AWS-SECRET-KEY" AWS_ASSO...
true
97ed5b570ad6e14a1445fa32853d1926f5306438
Shell
Okipa/laravel-utils-dotfiles
/server/localesInstall.sh
UTF-8
1,877
3.875
4
[ "MIT" ]
permissive
#!/bin/bash serverLocalesInstallScriptDirectory=$(dirname "$(readlink -f ${BASH_SOURCE[0]})") source $(realpath ${serverLocalesInstallScriptDirectory}/../helpers/loadScriptingColors.sh) source $(realpath ${serverLocalesInstallScriptDirectory}/../helpers/requiresSudoRights.sh) echo -e "${gray}=======================...
true
de2bb284a604e40207ec55ca1818a03049e3f407
Shell
NagaBhushanSharma/-ProgramingConstructions
/RepetitionsAndFunctions/Repetitions/RepetitionsWithForLoop/PrimeRange.sh
UTF-8
642
4.375
4
[]
no_license
#!/bin/bash # Check if a number is prime # function to return whether prime or not in given range check_prime() { current_number=$1 flag=0 i=2 while test $i -le `expr $current_number / 2` do if test `expr $current_number % $i` -eq 0 then flag=1 fi i=`expr...
true
55aebc2b807f7ccb006019f79593968f6235eaac
Shell
alexey7776723/epa_tren
/Homework4_BashScriptin_Task5.sh
UTF-8
451
3.515625
4
[]
no_license
#!/bin/bash magicNumber=$(( $RANDOM % 100 )) ## write your code here ## read number win=$[] while : do if [ $number -lt $magicNumber ] then echo $number echo 'less' else if [ $number -gt $magicNumber ] then echo $number echo 'greater' else ...
true
53da450516d96a9442f5a16ac36c2cf8f5f410f5
Shell
BeeeOn/server
/dist/rpm/pre_uninstall.sh
UTF-8
257
3.125
3
[ "BSD-3-Clause" ]
permissive
#! /bin/sh case "$1" in 0) # uninstall echo "stopping service beeeon-server..." /usr/bin/systemctl stop beeeon-server.service \ && echo "service beeeon-server has been stopped" \ || echo "failed to stop beeeon-server service" ;; 1) # upgrade ;; esac
true
6a7016311175dac0d6d81129aabf450761f58b70
Shell
smartcontractkit/wirelogd
/DEBIAN/postinst
UTF-8
540
3.28125
3
[ "WTFPL" ]
permissive
#!/bin/sh set -e case "$1" in configure) systemctl daemon-reload if [ -z "$2" ]; then if ! getent passwd wirelogd >>/dev/null 2>&1 ; then useradd --home-dir /var/run/wirelogd --shell /usr/sbin/nologin --system --user-group wirelogd if command -v setfacl >...
true
a0450ae97339b8e47c2c2802c149c27aeadb9163
Shell
exceptionless/Exceptionless
/build/update-config.sh
UTF-8
1,977
3.296875
3
[ "Apache-2.0", "LicenseRef-scancode-free-unknown" ]
permissive
#!/bin/bash ApiUrl="${EX_ApiUrl:-}" Html5Mode="${EX_Html5Mode:-false}" EnableSsl="${EX_EnableSsl:-false}" EnableAccountCreation="${EX_EnableAccountCreation:-true}" OAuth="${EX_ConnectionStrings__OAuth:-}" IFS=';' read -a oauthParts <<< "$OAuth" for part in ${oauthParts[@]} do key="$( cut -d '=' -f 1 <<< $part )"; e...
true
f3575e717e21e6b1b058a9d6456cd2d64969ced5
Shell
oslet/shell
/fruit-cmdline.sh
UTF-8
76
2.515625
3
[]
no_license
#!/bin/bash for fruit in $* do echo "I readlly like ${fruit}s" done
true
032a5ce0f681d4c44a286f842b3475a55bd40095
Shell
laritakr/dotzshrc
/configs/aliases.zsh
UTF-8
2,675
2.859375
3
[ "MIT" ]
permissive
# For bare-metal emacs # # There are three context's that I consider for using my text editor # of choice: # # * EDITOR - uh? I forget. I think it's less used for my cases. (I # use VISUAL and GIT_EDITOR more often.) # * VISUAL - this is for visual paging of things like man-pages or # grep results # * GIT_EDITOR...
true
e76beb619d4f9c25b66fbc6b4a7ad2d06016d89f
Shell
hypervised/K8S
/provisioner/EFS/EFS_Provisioner.sh
UTF-8
1,896
2.96875
3
[]
no_license
#!/bin/bash -e #Attach EFS to K8S / microk8s #run syntax is sudo /bin/bash EFS_Provisioner.sh <EFS DNS Name> <EFS File System ID> <region> #example sudo sh EFS_Provisioner.sh fs-12345678.efs.us-east-1.amazonaws.com fs-12345678 us-east-1 #dont forget to run chmod 555 EFS_Provisioner.sh #$1=DNS name of EFS, examp...
true
2651ad176d72c946e27c8bbee3b87298bff0d37c
Shell
mkutr/Avister
/auto_commit_push_config.sh
UTF-8
1,119
3.5
4
[]
no_license
#!/bin/sh cd . timestamp() { date +"at %H:%M:%S on %d/%m/%Y" } temp=$(echo git branch --show-current) echo $temp #eval x=($temp == "backup") #echo $x if [$temp == "backup"] then echo "error" exit -1 fi echo "mowsi" git show-ref --verify --quiet refs/heads/backup if [$? == 0] then printf "NOT EXISTS\n" git ...
true
9f9ead40b2bf41c86f8af8498b1f57c9d7080063
Shell
gigayak/buildsystem
/pkgspecs/dart-sdk.make.sh
UTF-8
2,519
3.15625
3
[ "OPUBL-1.0", "curl", "MIT", "Apache-2.0" ]
permissive
#!/bin/bash set -Eeo pipefail version=1.12.2 echo "$version" > "$YAK_WORKSPACE/version" cd "$YAK_WORKSPACE" # TODO: Break out depot_tools into its own package git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git export PATH="$PATH:$YAK_WORKSPACE/depot_tools" # Point depot_tools at python2.7 :[ #...
true
49999611b8b29354516b6371da6944c1ca2d24d7
Shell
guilhermedelima/study
/linux-commands/Scripts/tomcat
UTF-8
698
3.796875
4
[]
no_license
#!/bin/bash #Script para prover Tomcat como servico (SysVinit) CATALINA_HOME=/opt/apache-tomcat-7.0.39 TOMCAT_DAEMON=bin/startup.sh TOMCAT_STOP=bin/shutdown.sh get_pid(){ ps ax | grep tomcat-7.0.39 | grep -v grep | awk '{print $1}' } start(){ if [ -z $PID ] ; then $CATALINA_HOME/$TOMCAT_DAEMON else echo "Tom...
true
7840ee1d66c584addcea70c884a80d715b626b42
Shell
ringly/ios
/Tools/appicons.sh
UTF-8
1,387
3.3125
3
[]
no_license
WORKSPACE_DIRECTORY="$(dirname "$0")/.." echo WORKSPACE_DIRECTORY # set the build version if specified if [ -z ${BUILD_NUMBER+null} ]; then echo "No build number set. This is okay - will build without modifying “Info.plist” or badging icon." else /usr/libexec/PlistBuddy -c "Set CFBundleVersion ${BUILD_NUMBER}...
true
c12d0e6814b505afe0297562f39bd9a7fcfff304
Shell
Yaroslav-95/swayrice
/dotfiles/.local/bin/ftv
UTF-8
337
3.703125
4
[ "WTFPL" ]
permissive
#!/bin/sh # Script to start a new textfile from template templdir=$HOME"/docs/templates/" if [ -z "$2" ]; then echo "Specify template filename and new filename" exit 0 fi template="$templdir$1" file=$(readlink -f "$2") if [ ! -f "$template" ]; then echo "Template $1 does not exist" exit 0 fi cp $template ...
true
01c946b91c90b5ec9067276fe85abd482a7584e5
Shell
tuyen81/self_learning
/shell/running_package/testcases/coreutils/touch.sh
UTF-8
1,074
3.84375
4
[]
no_license
#!/bin/bash #============================================================================== # DISCRIPTION: Test script is test to 'touch' command. # In test script 'touch' command used to check timestamps of a sample.txt file # The sample.txt file is created with size is 0 byte #==============...
true
591cb81e9c391700ad1969ec4cb877e074a470b0
Shell
datou0412/qyp-portal
/bin/nodejsctl
UTF-8
1,929
4
4
[]
no_license
#!/bin/bash export PATH=/opt/taobao/install/node.js/bin:/bin:/usr/bin:$PATH cd `dirname $0`/.. BIN_HOME=`pwd` echo ${BIN_HOME} BASE_HOME=${BIN_HOME} PROJECT_NAME=`basename ${BASE_HOME}` PROJECT_ROOT=${BASE_HOME} PROJECT_START=bin/app.js NODEJS_BIN=node STDOUT_LOG=${BASE_HOME}/../log/nodejs.log ulimit -c unlimited ex...
true
9383613e0e686973ef3b1a562b72eb7a7443b487
Shell
aither64/build-vpsfree-templates
/include/opensuse.sh
UTF-8
1,105
3.125
3
[ "MIT" ]
permissive
#!/bin/bash . $BASEDIR/include/common.sh if [ $DISTNAME == "openSUSE-leap" ]; then REPOSITORY=http://download.opensuse.org/distribution/leap/$RELVER/repo/oss/ UPDATES=http://download.opensuse.org/update/leap/$RELVER/oss/ else REPOSITORY=http://download.opensuse.org/distribution/$RELVER/repo/oss/ UPDAT...
true
d19d1b573b1a5080df97100c1e215399997f76bc
Shell
tomyuk/zkit
/setup.d/default.sh
UTF-8
612
3.140625
3
[ "MIT" ]
permissive
# -*- bash-script -*- # # default of common settings # if [[ -z $FULLNAME ]]; then FULLNAME=$(fgrep $USER /etc/passwd | cut -d: -f5) fi if [[ -z $EMAIL ]]; then EMAIL="${USER}@${HOSTNAME}" fi if [[ -z $GPG_SIGNER ]]; then if __zkit_have gpg2; then gpg=gpg2 elif __zkit_have gpg; then gpg=gpg fi ...
true
4538039aba93893a5371fdfe02e58c44574bb57b
Shell
BirdmanAtHome/knfsd-cache-utils
/deployment/terraform-module-knfsd/resources/monitoring/export-root.sh
UTF-8
3,103
2.9375
3
[ "Apache-2.0" ]
permissive
# !/bin/bash # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
true
23537322795b492db999362d3075f959d4817217
Shell
serhaninci/MicroservicesNode
/_docker_setup/reset.sh
UTF-8
503
2.703125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash eval `docker-machine env manager1` docker service rm movies-service notification-service cinema-catalog-service payment-service booking-service for server in manager1 worker1 worker2 do eval `docker-machine env $server` for image in crizstian/movies-service crizstian/cinema-catalog...
true
a382abf7c9fa971ae4588a4e7fda35cc8595f020
Shell
toy/rbenv-use
/bin/rbenv-sh-use
UTF-8
1,080
3.9375
4
[]
no_license
#!/usr/bin/env bash # # Usage: rbenv use NAME [--global|--shell|--local] # # Switches Ruby versions without having to keep patchlevels in mind. set -e [ -n "$RBENV_DEBUG" ] && set -x if ! type rbenv-whatis &>/dev/null; then echo "rbenv-whatis plugin not installed, please run:" >&2 echo -e "\n\tgit clone https://gi...
true
7078788d6a111b36212e03e6421c451b935a94d9
Shell
jerbowes/saltstack
/salt/satools/files/root/bin/ucheck
UTF-8
418
3.171875
3
[]
no_license
#!/bin/sh #----------------------------------------------------------------- # Scan ps every 5 minutes to see if u16sentry is running, # Restart if not # Chmod 600 to all u16sentry logs in /tmp #----------------------------------------------------------------- if test -z "`ps -ef | grep u16sentry | grep -v grep`" then ...
true
6f3339b08652165bbcfc3ee3dc1c5f0b7d7afe22
Shell
TileDB-Inc/TileDB-Presto
/docker/entrypoint.sh
UTF-8
458
2.765625
3
[ "MIT" ]
permissive
#!/bin/bash if ! ${PRESTO_HOME}/bin/launcher status; then ${PRESTO_HOME}/bin/launcher start; sleep 2; fi printf "Waiting for presto to initialize.." until ${PRESTO_HOME}/bin/presto-cli-${PRESTO_VERSION}-executable.jar --execute 'SELECT * FROM system.runtime.nodes' &> /dev/null ; do printf "."; sleep 1; prin...
true
7eb045f462a64221e2beb89151c7dd4e5e6ffdb2
Shell
SUNILBM123/Infa_10.1.1_BDMSolution
/Infa_10.1.1_BDMSolution/hdireconfigure.sh
UTF-8
10,203
3.203125
3
[]
no_license
HDIClusterName=${1} HDIClusterLoginUsername=${2} HDIClusterLoginPassword=${3} HDIClusterSSHHostname=${4} HDIClusterSSHUsername=${5} HDIClusterSSHPassword=${6} blazeworkingdir=${7} SPARK_HDFS_STAGING_DIR=${8} SPARK_EVENTLOG_DIR=${9} osUserName=${10} osPwd=${11} domainHost=${12} domainusername=${13} domainpassword=${14} ...
true
ade1671e568e88b8c1f229c102cbda65ead80f56
Shell
matt-mulligan/calithumpian
/scripts/stop_app.sh
UTF-8
716
3.875
4
[]
no_license
#!/usr/bin/env bash # ################################################## # Stop_App Script # Starts the flask application in its pipenv environment # version="1.0.0" # Sets version variable # HISTORY: # # * 2020-04-13 - v1.0.0 - Initial creation # # ################################################## # ...
true
f84715ac71e58290bdcc4a2f7ea43b864f3034e5
Shell
andrewcooke-isti/JiraTestResultReporter
/src/main/bash/deploy-plugin.sh
UTF-8
515
2.828125
3
[ "MIT" ]
permissive
#!/bin/bash if [ `basename $PWD` != "JiraTestResultReporter" ]; then echo "This script must be run from the JiraTestResultReporter directory" 1>&2 exit 1 fi ./src/main/bash/compile-plugin.sh # https://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial sudo service jenkins stop sudo cp target/JiraTestResultRe...
true
5824a64b99cedab74557277db35d4e7a02dc69ba
Shell
sk77github/moniter
/logstash_install.sh
UTF-8
13,959
2.890625
3
[]
no_license
#安装 logstash 版本 2.1.1 #自动化安装脚本 #!/bin/bash cd /data/ && mkdir logstash wget https://download.elastic.co/logstash/logstash/packages/centos/logstash-2.1.1-1.noarch.rpm rpm -ivh logstash-2.1.1-1.noarch.rpm chown -R logstash:logstash /data/logstash/ #服务安装后修改目录权限 chown -R logstash:logstash /var/log/logstash/ 这里的权限问题...
true
ec392b755c25beb9196f38692d3620c19d927779
Shell
AppliedLogicSystems/ALSProlog
/unix/superclean.sh
UTF-8
395
3.046875
3
[ "MIT" ]
permissive
#!/bin/sh set -eu echo "Doing superclean" case `uname -rs` in "SunOS 4"*) ARCH=sunos ;; "SunOS 5"*) ARCH=solaris ;; Linux*) ARCH=linux ;; "HP-UX"*) ARCH=hpux ;; "IRIX"*) ARCH=irix ;; *"_NT"*) ARCH=win32 ;; "Darwin"*) ARCH=darwin ;; *) echo "Unknown machine type..."; exit 1 ;; esac ...
true
bccdd063e258272e350496c088ef6d46f66a8f75
Shell
bom-d-van/me
/refresh.sh
UTF-8
431
3.09375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash me=/Users/bom_d_van/Code/go/workspace/src/github.com/bom-d-van/me mv -f $me/thoughts_creation_file.txt{,.backup} for f in $(find /Users/bom_d_van/Code/go/workspace/src/github.com/bom-d-van/me/thoughts) do echo "$f://$(GetFileInfo -d $f)" >> $me/thoughts_creation_file.txt done sed -i "" "s/\/User...
true
88f180c9550687ad26da54c4c9490b3ba96d9551
Shell
OhmyZakka/MySQL
/replication/galera/mariadb-galera-cluster/deploy/Sysinit.sh
UTF-8
1,731
2.921875
3
[]
no_license
#!/bin/bash #Description Set kernel parameters for Mysql_pre; #notice: This script is suit for CentOS7. #Date 02/05/2017 2nd release #Author Jamie Sun echo "=====stop iptables;selinux=====" /etc/init.d/iptables stop sed -i 's/SELINUX.*$/SELINUX=disabled/g' /etc/selinux/config echo "=======set IO Scheduler,noop======...
true
f0289d47046a911b40afbdbf5c4801734b90102e
Shell
perfsonar/pscheduler
/pscheduler-server/pscheduler-server/daemons/threads
UTF-8
524
3.640625
4
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/sh -e # # Dump the daemon threads # [ -t 1 ] && LONG= || LONG=l [ $# -eq 0 ] && LIST='scheduler runner archiver ticker' || LIST=$@ for SERVICE in ${LIST} do PID_FILE=$(ps -ef \ | fgrep "/daemons/${SERVICE}" \ | fgrep -- '--pid-file' \ | head -1 \ | sed -e 's/^.*--pid-file\...
true
904bc6d502524a187e8b2fbc622b858d2c9c5947
Shell
ralongi/tools
/scripts/check_perf_ci_cx6.sh
UTF-8
48,519
3.1875
3
[]
no_license
#!/bin/bash $dbg_flag job_id=$1 card_type=$2 if [[ $# -lt 2 ]]; then echo "Usage: $0 <Job ID> <Card Type>" echo "Example: $0 6863212 cx6" exit 0 fi card_type=$(echo "$card_type" | awk '{print toupper($0)}') if [[ $card_type == "CX5" ]]; then source ~/github/tools/scripts/cx5_perf_ci_threshold.txt elif [[ $card_t...
true
b8aa1c1e84003279bc633586ac41a562dd7a75b2
Shell
tuyen81/self_learning
/shell/running_package/testcases/coreutils/basename.sh
UTF-8
872
3.671875
4
[]
no_license
#!/bin/bash #============================================================================== # DESCRIPTION: Testing for basename command. # The basename command is used to strip directory and suffix from # include/stdio.h filename. #============================================================...
true
1c07e4f5eb60657a830acc1fbd4da5a537655b06
Shell
Mortuie/derusselifier
/test.sh
UTF-8
169
2.59375
3
[]
no_license
#!/bin/bash echo "Bash version.... ${BASH_VERSION}..."; for i in {10..16} do wget https://people.bath.ac.uk/masrjb/CourseNotes/Notes.bpo/CM30078/slides$i.pdf done
true
d0f5a1707ed48942b421fc6e2a4b0febc2f1920c
Shell
NovasomIndustries/Utils-2019.07
/rock/external/io/rk_make.sh
UTF-8
558
3.265625
3
[ "MIT" ]
permissive
#! /bin/sh TOP_DIR=$(pwd) BUILDROOT_TARGET_PATH=$(pwd)/../../buildroot/output/target/ aarch64_version=$(aarch64-linux-gcc --version 2>/dev/null) arm_version=$(arm-linux-gcc --version 2>/dev/null) if [ ! "$aarch64_version" = "" ] ;then gcc=aarch64-linux-gcc echo "gcc is aarch64-linux-gcc" elif [ ! "$arm_version" = "" ...
true
8dd1210d6d68df242195aefff5f87ce59c3bb5d7
Shell
landryp/eos-inf
/bin/combine-obs
UTF-8
1,457
3.3125
3
[]
no_license
#!/bin/bash obslist=$1 outpath=$2 samplespaths=() while IFS=, read -r likepath obstype do eventname=${likepath##*PosteriorSamples_} samplespaths+=("--samples ${likepath%.csv}_eos.csv --column-map ${likepath%.csv}_eos.csv logmargweight logweight_${eventname%.csv} --column-map ${likepath%.csv}_eos.csv logvarmargweigh...
true
7900f982842a49465af0bc3e32114d5f1f3a1cb6
Shell
Brainiarc7/devtools
/commitpkg.in
UTF-8
4,944
3.96875
4
[]
no_license
#!/bin/bash m4_include(lib/common.sh) getpkgfile() { case $# in 0) error 'No canonical package found!' return 1 ;; [!1]) error 'Failed to canonicalize package name -- multiple packages found:' msg2 '%s' "$@" return 1 ;; esac echo "$1" } # Source makepkg.conf; fail if it is not found if [...
true
6791fce8ea64a36024e2afc906d1f1feeb08fb45
Shell
foxhatleo/leos-profiles
/oh-my-zsh.zsh
UTF-8
762
2.828125
3
[]
no_license
export ZSH="$HOME/.oh-my-zsh" if [ -d $ZSH ]; then if [ -z "$OMZ_DISABLED" ]; then [ -z "$ZSH_THEME" ] && ZSH_THEME="agnoster" DEFAULT_USER="leoliang" plugins=( 1password brew bundler capistrano command-not-found common-aliases debian dnf dotenv ...
true
927899cd56f99664d2b011a8d065bf300705717c
Shell
jhabboubi/learning_shell_scriping
/llss/if.sh
UTF-8
365
3.5
4
[]
no_license
#!/usr/bin/env bash COLOR=$1 if [ $COLOR = "blue" ]; then echo "yes, color is $COLOR and the path to this file `pwd` " else echo "The color is not blue" fi USER_GUESS=$2 COMPUTER=50 if [ $USER_GUESS -lt $COMPUTER ];then echo "you are too low" elif [ $USER_GUESS -gt $COMPUTER ] ;then echo "you're too h...
true
ec32a28601d436e26f94509c3e7eab63a1ba2a26
Shell
IM-TechieScientist/amogos_installer
/install.sh
UTF-8
1,539
3.78125
4
[]
no_license
RED='\033[0;31m' PURPLE='\033[0;35m' BLUE='\033[0;34m' GREEN='\033[0;32m' AQUA='\033[1;34m' NC='\033[0m' #Clearing Terminal Screen clear #Printing Credits echo -e "${GREEN}Welcome to the AmogOS Installer (x86_64)" echo -e "${GREEN}This will install AmogOS on your Debian or Debian-based system" echo "" read -n 1 -s...
true
e7c611ff5402ce9151b8db8f56f16da8e3367305
Shell
brettinternet/homelab
/containers/snapraid/start.sh
UTF-8
1,600
4.15625
4
[]
no_license
#!/bin/sh ### Validation and Setup # remove default configuration if [ ! -L /etc/snapraid.conf ] && [ -f /etc/snapraid.conf ]; then rm /etc/snapraid.conf fi # Verify user config present if [ ! -f /config/snapraid.conf ]; then echo "No config found. You must configure SnapRAID before running this container." ...
true
5d10a21468cd0460d574a336d3293f46dcae85af
Shell
masonke/iptables
/iptables_config.sh
UTF-8
5,642
3.34375
3
[]
no_license
#!/bin/bash # https://www.netfilter.org/documentation/HOWTO/packet-filtering-HOWTO-7.html # Assumptions: # It is assumed that the URG flag is not being used legitimately. All segments with URG set will be dropped. You can change this behavior by commenting out the line with URG URG and uncomment the following lines....
true
d05d06e5260a02c48d55436defed7b31aec371c3
Shell
animetauren/azure-quickstart-templates
/lamp-app/install_lamp_centOS.sh
UTF-8
578
3.453125
3
[ "MIT" ]
permissive
#!/bin/bash yum update -y clear echo 'Going to install the LAMP stack on your machine, here we go...' echo '------------------------' # set up a silent install of MySQL dbpass=$1 # install the LAMP stack yum install -y httpd php php-mysql mysql mysql-server chkconfig httpd on chkconfig mysql-server on /etc/init.d/...
true
ed705ca3b90777be1be2e7c195ef0a1ee68c2131
Shell
seaflow-uw/seaflog
/build.sh
UTF-8
397
2.765625
3
[ "MIT" ]
permissive
#!/bin/bash # Build seaflog command-line tool for 64-bit MacOS and Linux VERSION=$(git describe --long --dirty --tags) GOOS=darwin GOARCH=amd64 go build -o "seaflog-${VERSION}-darwin-amd64" cmd/seaflog/main.go || exit 1 GOOS=linux GOARCH=amd64 go build -o "seaflog-${VERSION}-linux-amd64" cmd/seaflog/main.go || exit 1 ...
true
effeedabbff6dd69ade4ff52720e9b3484f2ff70
Shell
DaoWen/Cook
/scheduler/travis/setup.sh
UTF-8
244
2.546875
3
[ "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -e export PROJECT_DIR=`pwd` # Install lein dependencies lein with-profiles +test deps # Install the current version of the jobclient cd ${TRAVIS_BUILD_DIR}/jobclient lein do clean, compile, install cd ${PROJECT_DIR}
true
00c625b36c216ac8921480c8f1eb10b00f3fd86d
Shell
tml3nr/moode-1
/command/player_wdog.sh
UTF-8
1,503
3.09375
3
[]
no_license
#!/bin/bash # # PlayerUI Copyright (C) 2013 Andrea Coiutti & Simone De Gregori # Tsunamp Team # http://www.tsunamp.com # # This Program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either ver...
true
913353e8fe37e31241605f05951d00d5fc0cb1c6
Shell
haoxi911/imagenet_utils
/synsets/convert.sh
UTF-8
328
3.375
3
[ "Apache-2.0" ]
permissive
if [ ! -d "./outputs" ]; then mkdir "./outputs" fi find "./" -type f -name "*.xlsx" | while read line; do foldername=$(basename $(dirname $line)) filename=$(basename "$line" .xlsx); if [ ! -d "./outputs/$foldername" ]; then mkdir "./outputs/$foldername" fi in2csv $line > "./outputs/$foldername/$filenam...
true
2698d3201b3dda38e77530b45dbc0c00bbde5aaf
Shell
cardio503/RealHandcuffs
/scripts/find_tools.sh
UTF-8
4,062
4.375
4
[ "CC0-1.0" ]
permissive
#!/bin/bash # this script looks for the required tools: # - TOOL_7ZIP points to 7z.exe # - DIR_FALLOUT4 points to the Fallout 4 directory # - DIR_FALLOUT4CREATIONKIT points to the Fallout 4 Creation Kit directory (usually the same as DIR_FALLOUT4) # if the -g argument is passed, it will output the above variables in f...
true
fe8de1a855b5a8046cc035d3ca2c2912225eb14d
Shell
drdelaney/jmdgentoooverlay
/Other/shell-scripts/mythtv/pxcut2.sh
UTF-8
10,491
3.65625
4
[]
no_license
#!/bin/sh -e # Copyright (C) 2010 John Pilkington # Largely based on scripts posted by Tino Keitel and Kees Cook in the Mythtv lists. # Usage: ./mythcutprojectx <recording> # <recording> is an mpeg2 file recorded by MythTV with a valid DB entry. # This script is essentially a terminal-based replacement for the 'los...
true
7752cdc80a8e1bfaca6fc78c50fc86b50caf68fd
Shell
georgeroman/ilp-iroha-settlement
/examples/scripts/iroha-iroha-payment/iroha-iroha-payment.sh
UTF-8
2,663
2.796875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash printf "Sending transaction for depositing assets into Alice's Iroha0 account...\n" ../helpers/iroha-add-asset-quantity.py "localhost:50051" "alice@test" "../../iroha0-data/alice@test.priv" "coin0#test" "1000" printf "Sending transaction for depositing assets into Bob's Iroha1 account...\n" ../helpers/iro...
true
01b4a04a7eba90fcf71919f8328ec2f47d163716
Shell
LeviBenjaminGualterio/olger
/scripts/masiveolger.sh
UTF-8
488
3.21875
3
[]
no_license
baseàth="/" for f in $basepath/data/$1/*; do if [ -d "$f" ] then echo "" for file2 in "$f/*" do if [ -d "$file2" ] then echo "" else for f2 in $file2 do ext="${f2: -4}" if [[ ".xml" == $ext ]] then python3 $basepath/CVES/CVE-Scan/bin/converter.py ...
true
94188cee3773a92df15d151f51faff6dacdb77ba
Shell
kragebein/plexbot
/bot/functions.sh
UTF-8
5,607
3.234375
3
[]
no_license
#!/bin/bash - # There is no reason what so ever to edit this file unless you totally know what you are doing. In that case, have fun. source /drive/drive/.rtorrent/scripts/v3/bot/config.cfg #source "${pb%/*}/lang/$language.lang" #TODO _script="functions.sh" dtg="[$(date +%d-%m-%y) $(date +%H:%M:%S)]" log() { # Log v...
true
ed84a0eb4478546f2471691f7e8efa3c986f5454
Shell
liis/tth_tests
/transfers/hadd_and_save_step2.sh
UTF-8
2,757
3.1875
3
[]
no_license
#! /bin/sh ############################### # hadd the root-files, produced by VHbb submitStep2.py to have one flat tree per dataset # Specify INDIR -- directory of root files to hadd # OUTDIR -- directory of merged root files # Optionally set CLEAN_UP=1 to remove input files to hadd on the go # ...
true
ad713720bba2c2a5fe177e1972f9c11b577d1053
Shell
jinnerbichler/neural-politician-ai
/intelligence/start.sh
UTF-8
5,746
3.359375
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash INSTANCE_NAME="neural-politician" set -e # Exits immediately if a command exits with a non-zero status. if [ "$1" == "create" ]; then # https://cloud.google.com/compute/pricing gcloud compute instances create ${INSTANCE_NAME} \ --machine-type n1-standard-4 --zone us-east1-d \ ...
true
3da62be794d9ea4e482b7f56c23f408969101545
Shell
jimmyjayp/regression-testing
/bin/rt-setup
UTF-8
3,992
3.875
4
[]
no_license
#!/bin/bash #desc# setup a new test function usage { echo "usage: $0 -t testName [-H] -i {pd|qa|local|hostName} [-p alt-port] [-o [-u testUser]] [-U url] $0 -I testName eg. jj+test1, jj+mailtest, ... (CSRT_TEST_NAME) -i initialize a new test (CSRT_API) -I to initialize a new test when CSRT_API ...
true
a248a4e466f2812fc55dc637db47c4a8739debb0
Shell
conceptslearningmachine-FEIN-85-1759293/dlinput-tf
/requirements.sh
UTF-8
629
3.46875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # check and install msgpack-c filename="/tmp/test_msgpack.cc" execfile="/tmp/test_msgpack" tmpfile=$(mktemp ${filename}) content=" #include <msgpack.hpp> #include <sstream> int main(void) { msgpack::type::tuple<int, bool> src(1, true); std::stringstream buffer; msgpack::pack(buffer, src); ...
true
cdd3abb0b123f2db653e7aa2ec1a6a4ec62e4c7e
Shell
IACETH/cesm_convert_SST
/create_SST_forcing_example.sh
UTF-8
865
2.75
3
[ "MIT" ]
permissive
#! /bin/bash ######################################################## ######### Create SST and Sea Ice forcing files ######### ######################################################## # AFTER # http://www.cesm.ucar.edu/models/cesm1.2/cesm/doc/usersguide/x2306.html # and the script from Jan Sedlacek # I would name th...
true
d902ab22a0cc058673873c5fdfb1a49c35983da5
Shell
neilrobertson/BICRCode
/Tools/vstep/vstepregion2wiggle.sh
UTF-8
536
3.578125
4
[]
no_license
#!/bin/sh # this is to cut out a piece of the vstep and present this as a wiggle. if [ $# -ne 5 ] then echo "usage: vstepregion2wiggle.sh <vstepfile> <width> <chrom> <start> <end>" exit 1 fi name=`basename $1`" - wiggle portion" echo "track type=wiggle_0 name=\""$name"\" visibility=\"full\" description=\""$name...
true
c02e4d1221e10cdf7af93370761e6f290a27a98a
Shell
kokizzu/usql
/drivers/testdata/gen-golden.sh
UTF-8
2,016
3.40625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash pgsql_in_docker=false pgsql_container=usql-pgsql if [ "$pgsql_in_docker" != true ]; then PGHOST="${PGHOST:-127.0.0.1}" port=$(docker port "$pgsql_container" 5432/tcp) PGPORT=${port##*:} else PGHOST="${PGHOST:-$pgsql_container}" PGPORT=5432 fi PGUSER="${PGUSER:-postgres}" PGPASS...
true
bd7c758dc5677b425c135efaa55be0f5f475e541
Shell
dthpulse/vagrant-for-testing-ceph
/scripts/SES6/ses6_disk_fault_injection.sh
UTF-8
1,935
3.25
3
[]
no_license
set -ex echo " ############################################ ###### ses6_disk_fault_injection.sh ###### ############################################ " . /tmp/config.conf # calculating PG and PGP number num_of_osd=$(ceph osd ls | wc -l) num_of_existing_pools=$(ceph osd pool ls | wc -l) num_of_pools=1 function power...
true
76e4c5ef045e567d571f2ccf6fe71d10954945ab
Shell
taeram/ubuntu-pranks
/utils.sh
UTF-8
1,508
4.3125
4
[ "MIT" ]
permissive
############################ # Configuration ############################ ## # Get the id of the currently running X windows process. e.g. ":0" ## export DISPLAY=$( ps aux | grep \/usr\/bin\/X | grep -v grep | sed -e 's/^.*\/X \(:[0-9]*\).*$/\1/' ) ## # Get the id of the mouse, according to xinput ## export MOUSE_ID=...
true
f5d1f3017ea866c4457dacac1016eec5f6aab8b1
Shell
yongjiangbuaa/march3
/WebProject/GameStats/stats/cron/stats_test.sh
UTF-8
4,330
2.65625
3
[]
no_license
#!/bin/sh SIDLIST=`/usr/local/bin/php /data/htdocs/stats/scripts/get_sid_list.php` RSORTSIDLIST=$SIDLIST SIDLIST="" for a in $RSORTSIDLIST do SIDLIST=${a}" "${SIDLIST} done for i in $SIDLIST;do dt=`date "+%Y-%m-%d %T"` echo "[$dt] run /data/htdocs/stats/infobright/test_referrer.php sid=$i fixdate=$j" /usr...
true
136997b343543833ba1e9c1753df3cf59ef03e75
Shell
hulaba/Deeplearning
/InstanceSeg/Semantic/2Image2Tile/clip_train_label.sh
UTF-8
2,238
3.421875
3
[]
no_license
#!/bin/bash if [ $# != 5 ];then echo "fname,folder,size,repeat,oname" exit fi name=$1 fname=`echo $name|cut -d'.' -f1` folder=$2 size=$3 repeat=$4 oname=$5 echo $repeat,$size step=`echo | awk "{print $size-$size*$repeat}"` step=`echo $step | cut -d. -f1` echo 'step and size:'$step,$size wi=`gdalinfo ${fname}.tif|gr...
true
70d0162aa8b8eab9629fd5ee07f4d2760d1f9bf6
Shell
beredim/virtuoso-docker-images
/docker-entrypoint.sh
UTF-8
2,424
3.28125
3
[]
no_license
#!/bin/bash if [ ! -f /opt/virtuoso-opensource/database/virtuoso.db ]; then echo "=====================================================================" echo "virtuoso.db doesn't seem to exist. This appears to be the first run." echo "Therefore we are now going to secure the sparql endpoints" cat /secure_sparql.is...
true
7a90ea3ec149cb2b15d3ed3f17dfac8b481592e5
Shell
acidburn0zzz/svntogit-community
/mephisto.lv2/trunk/PKGBUILD
UTF-8
1,418
2.609375
3
[]
no_license
# Maintainer: David Runge <dvzrv@archlinux.org> pkgname=mephisto.lv2 pkgver=0.18.2 pkgrel=1 pkgdesc="A Just-in-Time FAUST compiler embedded in an LV2 plugin" arch=(x86_64) url="https://open-music-kontrollers.ch/lv2/mephisto/" license=(Artistic2.0) groups=(lv2-plugins pro-audio) depends=(glibc libglvnd libvterm libx11 ...
true