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
09f4a622cd652e381d337d66a74ba58d06c3b408
Shell
joshkennedy/dotfiles
/install/brew-cask.sh
UTF-8
538
2.53125
3
[ "MIT" ]
permissive
if ! is-macos -o ! is-executable brew; then echo "Skipped: Homebrew-Cask" return fi brew tap caskroom/cask # Install packages apps=( alfred dropbox firefox glimmerblocker google-chrome macdown slack sourcetree spotify atom sublime-text virtualbox ) brew cask install "${apps[@]}" # Quick...
true
33b3312812d994f537f48ba1114a886f9f194418
Shell
banzaicloud/pipeline-cluster-images
/scripts/bootstrap.sh
UTF-8
2,962
2.640625
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -o nounset set -o pipefail set -o errexit export DEBIAN_FRONTEND=noninteractive curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" > /etc/apt/sources.list.d/kubernetes.list curl -fsSL https://download....
true
26a5b8a6804e229ca1846596ec09a2a90a484a92
Shell
wonmin82/dotfiles
/install-ubuntu-config.sh
UTF-8
3,240
3.375
3
[]
no_license
#! /usr/bin/env bash scriptfile="$(readlink -f "$0")" scriptpath="$(readlink -m "$(dirname "${scriptfile}")")" configspath="${scriptpath}/ubuntu" flag_superuser=false flag_force=false [ ${EUID} == 0 ] && flag_superuser=true uid=${EUID} [ ${flag_superuser} == true ] && [ ! -z ${SUDO_USER} ] && uid=${SUDO_UID} gid=$(i...
true
bb2d29fcd7939e6923a5aeced3405d8692aa7e01
Shell
lived-tw/dokku-etcd
/commands
UTF-8
5,241
3.671875
4
[ "MIT" ]
permissive
#!/usr/bin/env bash set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions" source "$(dirname "$0")/config" source "$(dirname "$0")/functions" if [[ $1 == etcd:* ]]; then if [[ ! -d $ETCD_ROOT ]]; then dokku_log_fail "etcd: Please run: sudo dokku plugin:install" fi ...
true
e9545890be9b5c06f8d3c22390dad2b22f977030
Shell
miscord/build-scripts
/make.sh
UTF-8
1,994
3.765625
4
[]
no_license
#!/bin/bash # --- functions --- # https://stackoverflow.com/questions/25288194/ # pushd () { # command pushd "$@" &> /dev/null # } # popd () { # command popd "$@" &> /dev/null # } download_dependencies () { mkdir "scripts" "assets" get_script package-mac.sh get_script snap.sh get_script gh-upload.sh g...
true
c05202eae9cdbe9fd809b5ec32f5cbfcaae27ff4
Shell
Killasnipawoof/CSCI230Files
/Midterm Question Answers/Q5.sh
UTF-8
245
3.34375
3
[]
no_license
#!/bin/bash read -p "Enter your name: " name read -p "Enter your age: " age if [ $age >= 18 ]; then echo "You are allowed to watch Defender." else years = $[18 - age] echo "You are not permitted to watch Defender, you must wait $years years."
true
aa8991794a767aa0cb2d1fa7c8b5db5bb0863a86
Shell
kinglarce/jenkins-understanding
/Jenkins 6/git/post-receive
UTF-8
1,761
3.71875
4
[]
no_license
#!/bin/bash # Get branch name from ref head # this file is for gitlab hooks(CI), if ever somebody pushes to master then it will generate a crumb and that crumb # will be use for POST request to jenkins that will trigger the "Build" # To actually trigger the hooks to a specific repositories(only in gitlab) or in this ...
true
91b8b3a6ad2995aa7d8280ca79dd1a59424525f1
Shell
TripleTrable/Opportunity_rice
/.zprofile
UTF-8
242
2.546875
3
[]
no_license
# CLEANUP: [ -f ~/.config/zsh/zenvironment ] && source ~/.config/zsh/zenvironment #if [[ ! $DISPLAY && $XDG_VTNR -le 2]] then if [[ "$(tty)" = "/dev/tty1" ]] then pgrep dwm || startx xrdb ~/.Xresources exec startx "$XINITRC" vt1 fi
true
985eeeb341f7e31bfff998691f45e77455b0bb26
Shell
HackTrinity/challenges
/networking/smell_3/build.sh
UTF-8
1,808
3.0625
3
[]
no_license
#!/bin/sh set -e OPENSSL_VERSION="1.0.1" NGINX_VERSION="1.16.1" DEPS="musl-dev gcc make pkgconfig perl zlib-dev pcre-dev" apk --no-cache add $DEPS mkdir /tmp/build cd /tmp/build # OpenSSL cat > openssl_termios.patch <<EOF diff --git a/crypto/ui/ui_openssl.c b/crypto/ui/ui_openssl.c index 5832a73cf5..511a1d2baf 1006...
true
5364642b15a5b225dc752fbcc76e8b22ae3fab66
Shell
LeeGeunHAHAHA/chamber_spo
/scripts/func/admin_get_log/4.smart_log.4096
UTF-8
4,375
2.8125
3
[]
no_license
#!/usr/bin/env bash source ../common > /dev/null 2>&1 # Media and Data Integrity Errors nvme delete-ns $FQA_DEVICE -n 0xFFFFFFFF nvme create-ns $FQA_DEVICE -c 0x100000 -s 0x100000 -f 1 -d 1 # Data Protection Type 1 nvme attach-ns $FQA_DEVICE -n 1 -c $CTRL_ID rescan-ns MEDIA_ERRORS_OLD=`nvme smart-log $FQA_DEVICE...
true
9b77a61e18cc4a7ca5786b549e2bcb75dc172775
Shell
satoshi-hirayama/techtalk4
/provisioning/roles/ecs-agent/templates/ecs-agent
UTF-8
1,292
3.390625
3
[ "MIT" ]
permissive
#!/bin/bash start() { docker ps -a | grep ecs-agent if [ $? = 0 ]; then docker restart ecs-agent else export AWS_DEFAULT_REGION=$(ec2metadata --availability-zone | sed -e 's/.$//') export ECS_CLUSTER={{ cluster_name }} docker run --name {{ ecs_agent_container_name }} \ --detach={{ docker_de...
true
a41b2ead8dd20223fd2cd15aee0d19aadc64f169
Shell
pkolachi/corpus-preprocessing
/beda/stanford_corenlp-on_wiki_data.sh
UTF-8
502
2.59375
3
[]
no_license
export STANFORD_CORENLP_DIR="$HOME/Documents/softwares/nlp-tools/language-specific/english/stanford-tools/stanford-corenlp-full-2014-01-04" # Absolute path to this script, e.g. /home/user/bin/foo.sh SCRIPT=$(readlink -f "$0") # Absolute path this script is in, thus /home/user/bin SCRIPTPATH=$(dirname "$SCRIPT") java ...
true
f0b531bddd5e736777d1f382292977fa38deda20
Shell
Amorymeltzer/dotfiles
/bin/utc
UTF-8
183
3.515625
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # Usage: utc [<seconds-since-epoch>] # Show a utc date set -e if [[ -z "$1" ]]; then date -u +"%Y-%m-%d %H:%M:%SZ" else date -r "$1" +"%Y-%m-%d %H:%M:%SZ" fi
true
a7dee33d2e1f8363236500d689aa5ef5f4a27db4
Shell
dugrema/millegrilles.consignation
/install_scripts/bin/setup-certs-signernoeud.sh
UTF-8
959
3.65625
4
[]
no_license
#!/usr/bin/env bash # Parametres obligatoires if [ -z $NOM_MILLEGRILLE ] || [ -z $DOMAIN_SUFFIX ] || [ -z $REQ ]; then echo "Les parametres NOM_MILLEGRILLE, DOMAIN_SUFFIX et REQ doivent etre definis globalement" exit 1 fi # Parametres optionnel if [ -z $CURDATE ]; then CURDATE=`date +%Y%m%d%H%M` fi # Importer ...
true
c98565cb175aad7459c62f24ebe18699bcb9b032
Shell
brechtvdv/realtime-open-data-benchmark
/fill-in-master-ip-address.sh
UTF-8
539
3.421875
3
[]
no_license
#!/bin/bash # replace all occurrences of EXTERNAL_IP in *.y* files with the Kubernetes master's IP address (reported by kubectl) KUBE_MASTER_IP=$(kubectl cluster-info | head -n 1 | egrep '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' -o --color=never) if [ "$KUBE_MASTER_IP" == "" ]; then # Remove externalIP config sed --in-place ...
true
e037f2ead79db1cb2e6fe1870e22326e930224f7
Shell
bin2000/joshua
/test/scripts/support/moses_grammar/test.sh
UTF-8
193
2.578125
3
[ "BSD-2-Clause" ]
permissive
#!/bin/bash cat input | $JOSHUA/scripts/support/moses2joshua_grammar.pl > output diff -u output output.expected > diff if [ $? -eq 0 ]; then rm -f diff output exit 0 else exit 1 fi
true
58025224b3d7e9e9427d92b2fd0786b19ccad2a3
Shell
CloudSide/imgx
/imgx/cl.sh
UTF-8
139
3.03125
3
[]
no_license
#!/bin/bash if [ -z "$1" ] then echo $"Usage: $0 {bucket}" else cd cache && rm -rf ./$1/* && cd .. ./service.sh restart fi
true
062feda5191352d0a20d27bfa08d50e98ac40817
Shell
elhalag93/bash_scripting_database
/bash_project/dropdb.sh~
UTF-8
175
2.84375
3
[]
no_license
#! /bin/bash for i in ../bash/database/* do if [ "$i" == "../bash/database/$1" ] then rm -r ./RDBMS/database/$1 echo "Database Successfully Droped" break fi done
true
299a52f1b60e725bfc76c45a3145921965652c58
Shell
florent-engineering/anemomind
/src/compile_and_cp_bin.sh
UTF-8
625
2.546875
3
[ "MIT" ]
permissive
#!/bin/bash set -e cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_SAILROOT=OFF # build dependencies make help | grep ext | sed 's/\.\.\. //' \ | grep -v gflags | grep -v gtest \ | xargs make -j$(nproc) make -j$(nproc) \ nautical_processBoatLogs logimport_summary \ anemobox_logcat logimport_t...
true
fad40b189b853d461979308d534f4b0a0cadafb0
Shell
Kryuk/pandora
/scripts/ensure-bucket.sh
UTF-8
644
3
3
[ "Apache-2.0" ]
permissive
# export the vars in .env into your shell: export $(egrep -v '^#' ../.env | xargs) MINIO_NAME=localhost while ! nc -z ${MINIO_NAME} 9000; do echo 'wait minio...' && sleep 0.1; done; \ sleep 5 && \ s3cmd mb s3://${MINIO_BUCKET} # docker-compose run minio --entrypoint sh minio/mc -c "\ # while ! nc -z minio 9000...
true
4f50b56bc76b61014560d1775a906c8b23f568ad
Shell
MariuszWisniewski/todo-app-syncano
/Build/Intermediates/ArchiveIntermediates/todo-app-syncano/IntermediateBuildFilesPath/todo-app-syncano.build/Release-iphoneos/todo-app-syncano.build/Script-1575F0981B7D525700D0E5EA.sh
UTF-8
275
3.078125
3
[ "MIT" ]
permissive
#!/bin/sh #Update build number with number of git commits if in release mode if [ ${CONFIGURATION} == "Release" ]; then buildNumber=$(git rev-list HEAD | wc -l | tr -d ' ') /usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "${PROJECT_DIR}/${INFOPLIST_FILE}" fi;
true
1df66d08c00971d84e5b6d6bcac35382ee54b06d
Shell
bootandy/.i3
/i3exit
UTF-8
253
3.0625
3
[]
no_license
#!/bin/sh case "$1" in reboot) sudo /sbin/reboot -i ;; shutdown) sudo /sbin/poweroff -i ;; logout) i3-msg exit ;; *) echo "Usage: $0 {reboot|shutdown|logout}" exit 2 esac exit 0
true
92fc70704a06f667536ebd1f44468fc893f1c99f
Shell
Ananac0/AnanacScript
/ansc.sh
UTF-8
4,430
2.890625
3
[]
no_license
#!/bin/bash Version="0.2" case "$1" in "-S" | "-s" | "--Setup" | "--setup" ) mv ./ansc.sh /usr/local/bin; echo "Установлено"; exit;; "-V" | "-v" | "-Version" | "-version" ) echo "Version = $Version"; ...
true
71b126e1f428f6fe0bcd5b69808da7e992782e79
Shell
zdhuangelephant/xd_pro
/xiaodou-aos-client/src/main/python/api/extend/1/deploy.sh
UTF-8
722
3
3
[]
no_license
#/bin/bash #####SET_VER##### BASEDIR=$1 REMOTEHOST=$6 USERNAME=$7 PASSWORD=$8 SER_NAME=$2 FILE_ADRESS=$3 SER_BASE=$BASEDIR/$SER_NAME WARADRESS=$4 VERSION=$5 #####START##### echo start echo mkdir $BASEDIR mkdir -p $BASEDIR cd $BASEDIR echo mkdir $BASEDIR/$SER_NAME mkdir $SER_NAME cd $SER_NAME echo delFile rm -rf $SER_B...
true
26cb25f2a7f50ae7c80d5eecd7b07536c390c1a8
Shell
sudheerbd/cicd-modernization
/CICD/BuildWar/build/reporting/sonar_analysis.sh
UTF-8
1,007
2.984375
3
[]
no_license
#!/bin/bash . ./CICD/BuildWar/variables.sh . $main/scripts/env_variables.sh extjsVersion=${EXTJS_VERSION} if [ "$extjsVersion" = "Extjs_6.5.3" ] then export senchasource=$senchasource53 export senchapackages=$senchapackages53 elif [ "$extjsVersion" = "Extjs_6.7" ] then export senchasource=$senchasource53 export s...
true
856d03563820569f394cf2b3340236e52a1a9c32
Shell
foobarjimmy/productionScripts
/readoptions.sh
UTF-8
195
3.03125
3
[]
no_license
#! /bin/bash echo "Username and password" read -n4 -p "Username : " username read -n1 -p "Password : " password echo echo "Your username is : $username , your password is : $password" exit 0
true
81b8a215c3289aeab3f607cf4b6ad763cb69d69d
Shell
Innoactive/docker-postgres-backup-local
/build_and_deploy.sh
UTF-8
351
2.84375
3
[]
no_license
#! /bin/sh # Helper file to build and deploy to the innoactive registry. version='0.1.1' REGISTRY_HOST='registry.docker.innoactive.de' docker login --username=${DOCKER_REGISTRY_USERNAME} --password=${DOCKER_REGISTRY_PASSWORD} ${REGISTRY_HOST} tag=${REGISTRY_HOST}'/docker-postgres-backup-local:'${version} docker build...
true
48518d4eadab8bb88d8113e1fa741535658c7a06
Shell
haaruhito/ShellScripting
/FunctionAndLocalVariable.sh
UTF-8
829
3.71875
4
[]
no_license
#!/bin/bash # All variables are global in shell script. function Hello(){ firstname=$1 echo "Hello I am $firstname." } firstname="Rojna" echo "Hello, I am $firstname." # It prints Rojna Hello Shree # It prints Shree echo "$firstname" ...
true
f1a1d143c19467ce3eaecf7f8488f695ebad966d
Shell
hopehpc/hope-singularity
/definition-files/amber18/scripts/BKtest_pmemd_serial_x5650.sh
UTF-8
1,307
3.734375
4
[]
no_license
#!/bin/bash # This job will run one set of amber tests (serial AmberTools) # User needs to be root to run this because it needs to write to /usr/local/amber18 date_string=`date +%Y-%m-%d_%H-%M-%S` logdir="${AMBERHOME}/logs/test_pmemd_serial" #logdir="/home/krieg/testing/logs/test_pmemd_serial" logprefix="${logdir}/${d...
true
ef7c4f35c3ee187b914ff1fe0dd924068db94465
Shell
tied/osx-bootstrapping
/dotfiles/roles/osx/files/aliases
UTF-8
2,112
2.953125
3
[]
no_license
# vim: set filetype=sh : # Shortcuts alias d="cd ~/Documents/Dropbox" alias dl="cd ~/Downloads" alias dt="cd ~/Desktop" alias p="cd ~/projects" # Get OS X Software Updates, and update installed Ruby gems, Homebrew, npm, and their installed packages alias update='sudo softwareupdate -i -a; brew update; brew upgrade; b...
true
f9a08a0d0eb2e8edd4937ef16975fd2cdcaacab6
Shell
vwheezy22/dots
/.config/shell/profile
UTF-8
1,931
2.53125
3
[]
no_license
#!/bin/sh # Default programs export EDITOR="nvim" export VISUAL="nvim" export TERMINAL="st" export BROWSER="firefox" export PAGER="less" export HISTSIZE="INFINITE" export WM="dwm" export COLORTERM="truecolor" export SHELL="zsh" # ~/ Clean-up export XDG_CONFIG_HOME="$HOME/.config" export XDG_DATA_HOME="$HOME/.local/sh...
true
beb8e1846d9b1b1e531a937e6978f11edfbdf793
Shell
aravinds0217/bash-easy-callenges
/easy7.4
UTF-8
106
3.25
3
[]
no_license
#!/bin/bash length(){ echo enter a string: read str l=`expr length $str` echo length $str is :$l } length
true
4269c6dfa277c8f038307afca80bb40e42728550
Shell
openxpki/openxpki
/tools/testdata/_create-certs.sh
UTF-8
9,031
4.03125
4
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-generic-cla" ]
permissive
#!/bin/bash # # Create certificates and store them in $OXI_CONF/etc/openxpki/ca/xxx/ # Import the certificates into MySQL using "openxpkiadm". # # This script assumes that there is a valid OpenXPKI configuration below # $OXI_CONF so that "openxpkiadm" can run and access the database. # # Please note that the PKI realms...
true
e7361b9b770fda197dc387340cc8468c9e522b4e
Shell
thotakabsp/Morty
/sources/meta-thermo-mx6/recipes-qt/tfsapp/files/Scripts/13_TEMP_test.sh
UTF-8
1,979
3.203125
3
[ "MIT" ]
permissive
#!/bin/sh echo "**********<<<<<<<<<< Temparature Sensor TEST START>>>>>>>>>>**********" i=3 while [ $i -lt 10 ]; do in_temp_raw=$(cat /sys/bus/iio/devices/iio:device0/in_temp_raw || true) in_temp_offset=$(cat /sys/bus/iio/devices/iio:device0/in_temp_offset || true) in_temp_scale=$(cat /sys/bus/iio/devices/iio:device...
true
ecf8515d9643a63a3fe4d84a3bb35b7d8bc65a61
Shell
AlexeiKharchev/bash_functions_library
/test/terminal.bats
UTF-8
3,572
3.28125
3
[ "MIT" ]
permissive
#!/usr/bin/env bats #shellcheck disable # Unittests for the functions in lib/terminal # # The unit tests in this script are written using the BATS framework. # See: https://github.com/sstephenson/bats # **************************************************************************** # # Imports ...
true
0bf5d6bc6fba580df5443c3cf06bf0c190c05e64
Shell
m2-local/bin
/dkr-env
UTF-8
616
2.796875
3
[]
no_license
#!/bin/bash #------------------------------------------------------------------------- # Copyright (c) 2017 - Moxune LLC - All Rights Reserved # Unauthorized copying of this file, via any medium is strictly prohibited # Proprietary and confidential # Written by Nathan Nobbe<nathan@moxune.com> #-------------------------...
true
a141f56b86553aec33034db20bbe8640ceaa1756
Shell
iamanatolich/centos7
/scripts/remove-vhost
UTF-8
314
3.078125
3
[]
no_license
#!/bin/bash if [ -z ${1} ] then echo "Set virtual host" exit fi httpdPath=/etc/httpd sharePath=/vagrant config=$1.conf sudo service httpd stop sudo rm $httpdPath/sites-enabled/$config sudo rm $httpdPath/sites-available/$config sudo rm -rf $sharePath/html/$1 sudo rm -rf $sharePath/log/$1 sudo server-restart
true
5735bb14a5eb3c24bc46b0964ed361efa0b718f8
Shell
Navyashree211/Batch349
/ForLoop/PowerOfTwo.sh
UTF-8
188
3.109375
3
[]
no_license
#!/bin/bash -x a=("$@") b=${a[0]} p=2 pw=$(awk -v x=$b -v y=$p 'BEGIN {print(x^y)}') echo "$pw" k=2 while [ "$k" -lt "$pw" ] do echo "$k" k=$(awk -v x=$k -v y=2 'BEGIN {print(x*y)}') done
true
31cf988c6ece9914d7d52cbd9750d8fe99ab8e33
Shell
cd-yangling/libaddns
/libfnaddns
UTF-8
5,549
3.71875
4
[ "MIT" ]
permissive
#!/bin/sh NR_keys=0 hostname="alidns.aliyuncs.com" hostpath="/?" # # href: https://stackoverflow.com/questions/296536/how-to-urlencode-data-for-curl-command # href: https://gist.github.com/cdown/1163649 # # @参数1: 准备进行 URI 编码的字符串 # # 返回值: 编码完成的字符串 # urlencode() { local old_lc_collate=$LC_COLLATE LC_COLLATE=C...
true
7c33bd4b065bcb7069c0273e4d8ee266218ccf83
Shell
ThomasDickey/cm_tools-snapshots
/src/checkup/test/run_test.sh
UTF-8
1,147
3.34375
3
[ "LicenseRef-scancode-other-permissive" ]
permissive
#!/bin/sh # $Id: run_test.sh,v 11.4 2019/12/02 22:11:31 tom Exp $ date # # run from test-versions: for p in .. ../bin ../.. ../../bin do for q in . checkin checkout do [ -d $p/$q ] && PATH=`unset CDPATH;cd $p/$q && pwd`:$PATH done done PATH=:`pwd`:$PATH export PATH # TTY=/tmp/test$$ rm -rf junk trap "rm -rf junk; ...
true
13a9af2d6f63d1cfc8bceb8a6146d9fa6ab06d27
Shell
kenzo0107/FacialRecognitionSystem
/step3_classify.sh
UTF-8
1,037
3.609375
4
[]
no_license
#!/bin/sh SETTING="config.txt" # initialize. cp /dev/null deeplearning/train.txt cp /dev/null deeplearning/test.txt while read line do arr=( `echo $line | tr -s "," ' '`) LABEL="${arr[0]}" SEARCH_WORD="${arr[1]}" NUMBER="${arr[2]}" echo "LABEL:${LABEL} - SEARCH_WORD:${SEARCH_WORD}" echo << EOV =======...
true
73e67bf1f1e0c812c195475e8484d801331c529c
Shell
whaxkl/test
/HTTP/shell自动搭建iis网站.sh
GB18030
4,475
3.21875
3
[]
no_license
#echo "ڴ..." #for var in $* #do #cp -r D:\/wordpress\/wordpress D:\/wordpress\/${var} #done # ************************************************************ # * * # * PowershellIISű * # * ...
true
a0df7ea9e4ec90a7c68d9e8f0e724d34a2ea76ca
Shell
csfreebird/dotfiles
/bin/zarchive/ccmtail
UTF-8
1,023
3.546875
4
[]
no_license
#!/bin/bash function killtails { echo "" echo "Cleaning up..." for pid in $(ps ax | grep "tail -f ${cluster_dir}/node" | grep -v grep | awk '{print $1}') do echo "Killing pid: ${pid}" kill ${pid} done #rm -vf "${cluster_dir}/system.log" } trap "killtails" 2 cluster_dir=$1 clust...
true
fcc37bbd37aa4bf365099a5a88a5eb3b34dfa7eb
Shell
tunagohan/ruby_install_developer_settings
/settings/github_setting.sh
UTF-8
505
3.25
3
[]
no_license
#!/bin/sh set -e # ログ出力 function log() { message="$*" echo "$(date '+%Y/%m/%d %H:%M:%S'): ${message}" } # Github setting log "githubの設定を行います" echo -n "[Global settting] Github Username : " read github_username git config --global user.name ${github_username} echo -n "[Global settting] Github Email : " read gith...
true
f3fdaffcd97eea37c53c78f11b44e18ef8efa011
Shell
Yakoua/resourcepacks
/fetch.sh
UTF-8
314
3.265625
3
[]
no_license
#!/bin/bash set -eu branch=${1?} git fetch -fv origin "$branch":"$branch" || : while IFS= read -r -d '' pack_dir; do pack=$(basename "$pack_dir").zip git restore --source "$branch" --overlay -- "$pack" || : done < <(find . -mindepth 2 -maxdepth 2 -type f -iname pack.mcmeta -print0 | xargs -0 dirname -z)
true
cc23e2f961e2fc52daf3257a2a893ca79bba2a48
Shell
gentoo-perl/gentoo-perl-helpers
/libexec/list-blacklisted-for
UTF-8
934
3.421875
3
[]
no_license
#!/bin/bash # ABSTRACT: Lists blacklisted atoms for installing targets source "${LIBDIR}/core-functions.sh" || exit 1 BLACKLIST_FILE="${LIBDIR}/blacklists.map.tsv" BLACKLIST_ROOT="${LIBDIR}/blacklists" set -euo pipefail require_bin grep sys-apps/grep [[ $# -gt 0 ]] || die "Expected [atom] in ${cmdname} [atom]" [[...
true
76abe6dc84c3a2372b16c1c200a98f06c403d04c
Shell
COSMOS-ASMC/ShowerMC
/Cosmos9.00/UserHook/D-Skel/Assemble/classifyBylayer.sh
UTF-8
1,215
3.203125
3
[]
no_license
#!/bin/bash # give arg1 /FDDbku/... GOUTDIR=/Work1/kasahara/ForFDD MCPU=50 exec 3<&0 <hostnumfile nc=0 while read host_num do echo "host_num is" $host_num # next for is to expande *; no pluaral candidate should exist # in the files # ( from= $GOUTDIR/*$host_num".dat-r" dose not expand *) for to in $GOUT...
true
4ad5704ce32ca63a09bc50d08af192f8b9de4b36
Shell
nick-dai/Linux-Env-Setup
/ec2-lamp-drupal.sh
UTF-8
1,525
3.078125
3
[ "MIT" ]
permissive
#!/bin/bash # Remove installed Apache or PHP sudo yum remove httpd* php* -y # Install Apache 2.4, MariaDB and PHP 7.0 sudo yum install -y httpd24 mariadb-server php70 php70-gd php70-imap php70-mbstring php70-mysqlnd php70-opcache php70-pdo php70-pecl-apcu # Start Apache, MariaDB now, and enable Apache, MariaDB on start...
true
db66654ced344a1e5c3bcb07ff036304b70c5d97
Shell
yancongcong-com/GUI
/serverA.sh
UTF-8
8,488
3.21875
3
[]
no_license
#!/usr/bin/bash #serverA systemctl stop firewalld.service >/dev/null systemctl disable firewalld.service &>/dev/null sed -ri '/^SELINUX=/cSELINUX=disabled' /etc/selinux/config >/dev/null setenforce 0 x=1 A=22 network=33 cat > /etc/sysconfig/network-scripts/ifcfg-ens$network <<-EOF TYPE=Ethernet BOOTPROTO=none NAME=e...
true
69f30aa9591a17806ee627f07c7bde62c06631c5
Shell
stam/finance-vagrant
/scripts/app_repo.sh
UTF-8
483
3.453125
3
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash set -e if [[ $EUID -eq 0 ]]; then echo "This script can not be run as root" 1>&2 exit 1 fi echo ">>> Cloning repository." # Download application. cd /vagrant if [ -d "finance" ]; then cd finance # git pull # git checkout master cd /vagrant else git clone git@bitbucket.org...
true
093e7290b75f76ba28d8636cb50731a7bc1959dd
Shell
quanrd/SV_Discovery
/mergesample.sh
UTF-8
2,906
3.5625
4
[]
no_license
#!/bin/bash svtype="INV" svtype_full="inversion" outname="NB_${svtype}" destpth="/scratch1/irri-bioinformatics/StructuralVariants/MergedSamples" sourcepth="/scratch1/irri-bioinformatics/StructuralVariants/MergedCallers/${svtype}" #Change run type runtype=CLUSTER #CLUSTER or MERGE if [[ $runtype == "MERGE" ]]; then...
true
9662c9f310f2232ec755234edc514d961cf03950
Shell
dirk/heroku-buildpack-rust
/bin/compile
UTF-8
2,541
3.84375
4
[]
no_license
#!/usr/bin/env bash # bin/compile BUILD_DIR CACHE_DIR ENV_DIR # This an amalgamation of: # https://github.com/emk/heroku-buildpack-rust # https://github.com/Hoverbear/heroku-buildpack-rust set -e set -o pipefail set -u log() { echo "-----> $1" } indent() { sed 's/^/ /' } # Build related variables. ...
true
604ef0be5fc3be76eeacefce8626b44f943d6f78
Shell
bitprophet/dotfiles
/.zshrc
UTF-8
800
3.265625
3
[]
no_license
# Zsh dotdir folder (not actually setting ZDOTDIR tho, no point?) export ZSH=~/.zsh # Data directory [[ -d $ZSH/data ]] || mkdir $ZSH/data # Source some third party stuff fpath=($ZSH/contrib $fpath) # Helper for various 'is X on my path? then Y' tests in the below dotfiles function have() { which $1 &>/dev/null ...
true
11b35e89c024ccc95e35febba46a003e48a0c2b4
Shell
jsquyres/ompi-sphinx-dist
/configure.ac
UTF-8
3,838
3
3
[]
no_license
# -*- shell-script -*- AC_INIT([ompi-sphinx-dist], [0.5.0], [https://example.com]) AC_PREREQ(2.60) AC_CONFIG_AUX_DIR(config) AC_CONFIG_MACRO_DIR(config) AC_CANONICAL_HOST AC_CANONICAL_TARGET AM_INIT_AUTOMAKE([foreign subdir-objects no-define 1.13.4 tar-ustar]) AM_SILENT_RULES([yes]) AC_PROG_CC_C99 AC_ENABLE_SHARED...
true
ee1cc0a8d87c8ab27edd852b4f33186249713f63
Shell
B1Sandmann/helm-charts
/common/rabbitmq/templates/bin/_rabbitmq-start.tpl
UTF-8
1,867
3.1875
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -e function bootstrap { #Not especially proud of this, but it works (unlike the environment variable approach in the docs) chown -R rabbitmq:rabbitmq /var/lib/rabbitmq /etc/init.d/rabbitmq-server start rabbitmq-plugins enable rabbitmq_tracing rabbitmqctl trace_on rabbitmqct...
true
18905d7b7a288551e674808decf57681a8a1bb23
Shell
quodlibetor/pingmonitor
/pingmonitor
UTF-8
935
3.828125
4
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
#!/bin/sh # Copyright Brandon W Maister 2012, rights reserved in accord with the BSD # license: Keep my name, and this message, with the file. If you decide to # share it. I'm not responsible if your computer blows up. default_logfile="/var/log/network_uptime" usage="pingmonitor [logfile] Run this script and it...
true
fb60e5d6817ebfeda479c4fd5f2e97c4432d09b5
Shell
bygui86/sso
/ocp-run.sh
UTF-8
2,359
3.890625
4
[]
no_license
#!/bin/bash set -e function echo_header() { echo echo "########################################################################" echo $1 echo "########################################################################" } function wait_while_empty() { local _NAME=$1 local _TIMEOUT=$(($2/5)) local _CONDITI...
true
fb0149fe5aac9f9b4bb3f601fb15b60e667f63ec
Shell
illepic/downfall-guild
/project/scripts/vm/restore_d6.sh
UTF-8
456
2.65625
3
[]
no_license
#!/usr/bin/env bash # RUN FROM WITHIN VAGRANT cd /var/www/df # `drush archive-restore` the entire site from within the Vagrant box. This will take a long time echo "Extracting D6 site archive. Go make a sandwich, this is going to take awhile." drush -v archive-restore dfmigrate/df.tar.gz --destination=web/d6 --db-url...
true
f5a43ddb84d47e62806448eefd0a4e7d5789a0ea
Shell
arturh85/medienverwaltung
/Medienverwaltung/scripts/e2e-test-browser.sh
UTF-8
430
3.171875
3
[ "MIT" ]
permissive
#!/bin/bash ICEWEASEL=`which iceweasel` if [ "$?" -eq 1 ]; then echo "Iceweasel not found." exit 1 fi BASE_DIR=`dirname $0` java -jar "$BASE_DIR/../frontend/test/lib/jstestdriver/JsTestDriver.jar" \ --port 9876 \ --browser $ICEWEASEL \ --config "$BASE_DIR/../jsTestDriver-scenario.conf" \ --bas...
true
fe3f6741884d4326b9e032e3b6a28f0d7a9afe83
Shell
hdanak/xdg_config
/bash/bashrc
UTF-8
2,134
2.8125
3
[]
no_license
# Don't run anything here unless we have an interactive shell. if [[ $- != *i* ]] ; then return fi [[ -f /etc/bashrc ]] && source /etc/bashrc #set -o vi export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" export PATH=$HOME/.local/bin:$PATH export PAGER="less" export EDITOR="vim" export TRASH_DIR=~/".trash"...
true
63e6af4b7c6d0f8b34ba4e11c651ef688af18394
Shell
RenAndrew/pe_scrapy
/pe/gather_result.sh
UTF-8
689
3.59375
4
[]
no_license
#!/bin/bash RESULT_SRC_PATH='/home/ren/work/git_repos/pe_scrapy/pe/result' RESULT_DST_PATH='/home/ren/boxing/result_bak' echo `date "+%Y-%m-%d %H:%M:%S"` echo 'Moving data files from '$RESULT_SRC_PATH' to '$RESULT_DST_PATH for folder in $RESULT_SRC_PATH/*; do if [ `ls $folder | wc -l` -eq 0 ]; then #empty folder ...
true
ad05f2067b9ded67023e48e6ff412ce186b51f6d
Shell
eclipse/cloe
/setup.sh.example
UTF-8
5,429
3.953125
4
[ "JSON", "BSD-3-Clause", "BSL-1.0", "Apache-2.0", "BSD-2-Clause", "MIT", "Unlicense", "MPL-2.0" ]
permissive
#!/bin/bash # # This script can be used to safely inject secrets into the Docker # build process. # # Configure each `setup_` function defined as required and uncomment # them at the bottom. Then save the file as `setup.sh`, which `Makefile.docker` # will automatically add as a secret to the Docker image build process....
true
f10a65c742563be6c2a20fadbd71024a78afbd8d
Shell
phpmyadmin/scripts
/monitoring/check_phpmyadmin_composer.sh
UTF-8
673
3.65625
4
[]
no_license
#!/bin/bash supported_versions=$(curl -fsSL 'https://www.phpmyadmin.net/home_page/version.json'|jq -r '.releases|.[]|.version') working_dir="$HOME/tmp/composer-test" mkdir -p "$working_dir" cd "$working_dir" || exit 1 test_version() { ver=$1 echo "Processing $ver" composer create-project -q phpmyadmin/phpmyadmi...
true
045108127e2bf5ce7b6885005a8e91431e69179d
Shell
jeremyary/load-balancing-poc
/scripts/call_nginx.sh
UTF-8
174
2.828125
3
[]
no_license
#!/bin/bash echo 'STARTING CALLS TO NGINX LOAD BALANCER AT 192.168.1.99' url="http://192.168.1.99" while [ true ] do content=$(curl -s $url) echo $content sleep 1 done
true
55e7e6db7747c2ed9de559e819753dbfdab02d22
Shell
PercussiveRepair/scripts
/cch/hive_get_users.sh
UTF-8
790
3.390625
3
[]
no_license
#!/bin/bash endPoint=$1; shift cookie=$1; shift cookie="Cookie: ApiToken=${cookie}" baseUrl="https://${endPoint}/v5/users/all/search?fieldSet=user&" first=1 quantity=1000 query=$1; shift rm -f users "allUsers" while (true); do echo "Fetching first $quantity from $first" curl -sL -w "%{http_code} %{url_effective}\...
true
bb00cbeca9864822187de6ff930aded438f5a646
Shell
jaaouane/ms-sample
/purgeImages.sh
UTF-8
437
2.828125
3
[]
no_license
#!/bin/bash if [[ $(docker ps -a| grep ms-sample | awk '{print $1}' | uniq) ]]; then docker ps -a| grep ms-sample | awk '{print $1}' | uniq | xargs docker rm -f else echo "no containers to remove found" fi if [[ $(docker images| grep ms-sample | awk '{print $1":" $2}' | uniq) ]]; then docker images| grep ...
true
9d7e6b31f532904bfc751be08184e2e2d6e61f6d
Shell
mado89/netlogo-mapreduce
/cluster/hadoop/createnodenew.sh
UTF-8
2,148
3.421875
3
[]
no_license
#!/bin/bash MASTERIP=192.168.56.101 MASTER="Master" NODE="Node0" NODENAME="node0" NODEIP=192.168.56.102 NEWMAC=0800279B4ED7 GATEWAY=192.168.56.255 NETMASK=255.255.255.0 master_preclone () { #Check if machine is running VMR=`VBoxManage list runningvms | grep $MASTER | wc -l` if [ $VMR -eq "0" ] then #start machi...
true
7fab3c17a2d0865cabacb6db147f8a70ef3dc91b
Shell
resmo/voyage-linux
/voyage-live/config/hooks/001-rmpkg.chroot
UTF-8
1,505
2.640625
3
[]
no_license
#!/bin/sh echo "($0)" if [ $(dpkg-query --show | cut -f1 | grep "^asterisk$" | wc -l) -gt 0 ] ; then echo "($0) Building Voyage ONE. No remove package" exit 0 fi if [ $(dpkg-query --show | cut -f1 | grep "^mpd$" | wc -l) -gt 0 ] ; then echo "($0) Building Voyage MPD. No remove package" exit 0 fi ...
true
b072eb4767518328796100aee1d018c9f8fe39b3
Shell
tillawy/harrek-webservice
/pango/pango-view3.sh
UTF-8
814
3.046875
3
[]
no_license
#!/bin/sh rm -f ./p2/* mkdir -p ./p2/ r=0; NUMOFLETTERS=$(cat letters3.xml | grep '</Letter>'| wc -l); a=5; for (( l=1; l<=${NUMOFLETTERS}; l++ )); do letterXML=$(xmllint --encode utf8 --xpath "/Letters/Letter[position() = ${l}] " letters3.xml) echo ${letterXML} t=$(echo ${letterXML} | xmllint --xpath "//...
true
b83a405e285c1da4ab599d31bb07d228b73a2705
Shell
tylerwolf35/dotfiles
/xmonad/xmobar/spotify.sh
UTF-8
191
3.15625
3
[]
no_license
#!/bin/sh running=$(pidof spotify) if [ "$running" != "" ]; then artist=$(playerctl metadata artist) song=$(playerctl metadata title | cut -c 1-60) echo -n "$artist · $song" fi
true
b4842631c484428b41b6c5e93ea758da70cf02bd
Shell
petronny/aur3-mirror
/dictcn/dictcn
UTF-8
2,643
3.359375
3
[]
no_license
#!/bin/bash ############## customization ################# ### color theme (see terminal colour convention) # key word keycolr="7" # pronunciation proncolr="1" # defination defcolr="1;32" # related translation relcolr="0;32" # sentences sentcolr="0" # emphasis emphcolr="3" ### media player player="mplayer" ########...
true
a1803cbc7dab53b7d8304e4e5c87f4f7fe56f63f
Shell
gwendolynbrook/ci-scripts
/lmp/bb-config.sh
UTF-8
2,346
3.125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash -e HERE=$(dirname $(readlink -f $0)) source $HERE/../helpers.sh require_params MACHINE IMAGE OSTREE_BRANCHNAME="${OSTREE_BRANCHNAME-lmp-localdev}" SOTA_CLIENT="${SOTA_CLIENT-aktualizr}" AKLITE_TAG="${AKLITE_TAG-promoted}" H_BUILD="${H_BUILD-lmp-localdev}" LMP_VERSION=$(git --git-dir=.repo/manifests/.git d...
true
16aec0454ffc9f78e15c03f348b3145bfc4014ce
Shell
criteo/kerberos-docker
/network-analyser/analyse-network.sh
UTF-8
295
2.859375
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # # analyse-network.sh # # Start docker container from kerberos cluster to analyse network. cd "$(dirname "$0")" docker run -it \ --net=host --privileged \ -v $HOME:/root/:rw \ -u root \ -e XAUTHORITY=/root/.Xauthority -e DISPLAY=${DISPLAY} \ network-analyser $@
true
940cc01260074c83c9586d6c7a61b9749935c1b0
Shell
RaviKim/Oddtemper
/odd/tempScan.sh
UTF-8
985
3.03125
3
[]
no_license
#!/bin/bash # author = 'Kim Hyung Seok' # Date = 190612 # version = 0.0.1 # Packages = python3 bluepy # Library = libglib2.0-dev , mitemp.git, btlewrap.git # Command = python3 ./demo.py --backend bluepy poll {YOUR_MACADDRESS} # # [Comment] # This Script using for scanning temprature and humidify in serverroom. # J...
true
8d0034b445137aec21055f67e0c880b76510ff07
Shell
danriti/configs
/bashrc
UTF-8
1,708
2.734375
3
[]
no_license
# # ~/.bashrc # # If not running interactively, don't do anything [[ $- != *i* ]] && return Color_Off='\e[0m' # Text Reset # Regular Colors Black='\e[0;30m' # Black Red='\e[0;31m' # Red Green='\e[0;32m' # Green Yellow='\e[0;33m' # Yellow Blue='\e[0;34m' # Blue Purple='\e[0;...
true
9033d66b7411857121e2da986fb6b33fe03ef295
Shell
lamiru/reactor
/deploy/_start
UTF-8
715
2.65625
3
[]
no_license
#!/bin/bash set -e source ./.common sudo su -p <<HERE set -e source ~/.bash_profile # pip pip install -r $PROJECT_DIR/requirements.txt pip install -r $PROJECT_DIR/requirements-aws.txt # migrations cd $PROJECT_DIR python manage.py makemigrations --settings=$SETTINGS_NAMESPACE python manage.py makemigrations thumbnail...
true
70876a8514c3ed92eb82f3cc7c247772291561ab
Shell
rovinbhandari/Programming_Scripting
/Shell/CS240/2/2_1/10.sh
UTF-8
224
3.515625
4
[]
no_license
#!/bin/bash # Author : ROVIN BHANDARI # Date : 23/08/2010 # Script to create a file for authorized users filename="$1" if [ $(whoami) = "rovin" ]; then >$filename else echo "You do not have permission to create the file." fi
true
690ffb55b35c815dcd64ce4d0cef110cec121fe9
Shell
igoradulian/Raspberry-System-Monitor-Tool
/monitor.sh
UTF-8
2,536
3.359375
3
[ "BSD-2-Clause" ]
permissive
#!/bin/sh #This script get information about system monitoring #First line of output show after "DIAGNOSTIC INFORMATION FROM" #show the name of the host from which diagnostic message sent #Next row show time system is up #After that show running tasks number,CPU, RAM, SWAP MEMORY # us, user : time running un-niced u...
true
8f5cf55165ef47ae84e428cf03f7069b374f8eec
Shell
tokuhira/iot-edge-config
/src/install-edge-runtime.sh
UTF-8
2,604
4.28125
4
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
#!/usr/bin/env bash # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. #script to install edge runtime 1.2 ###################################### # install_edge_runtime # # - installs Azure IoT Edge Runtime 1.2 # - generates the edge's configuration file from template and # fills in ...
true
e445253803bac4355c38fa2cd1ef12b0a1017948
Shell
johnny0924/Stalker-1
/install
UTF-8
3,100
3.265625
3
[]
no_license
#!/bin/bash # Stalker WM Portal road warrior installer for Debian, Ubuntu # This script will work on Debian, Ubuntu and probably other distros # of the same families, although no support is offered for them. It isn't # bulletproof but it will probably work if you simply want to setup a Stalker WM Portal on # your Deb...
true
6a55bb7f0f134f451acdaa97b89029535c3f617f
Shell
Hkfalkon/fizzbuzz.sh
/1_fizzbuzz.sh
UTF-8
189
2.75
3
[]
no_license
for ((i=1;i<=100;i++)) do if (($i%15==0)); then echo fizzbuzz elif (($i%3==0)); then echo fizz elif (($i%5==0)); then echo buzz else echo $i fi done exit 0
true
84a14ee510c7cd1f9fc40d5b4c80ba8621ce861c
Shell
annyurina/cccatalog-api
/deployment/modules/services/cccatalog-api/proxy-init.tpl
UTF-8
1,500
2.921875
3
[ "MIT" ]
permissive
#!/bin/bash # Set up nginx sudo amazon-linux-extras install nginx1.12 sudo cat << EOF > /etc/nginx/nginx.conf user nginx; worker_processes auto; error_log /var/log/nginx/error.log; pid /run/nginx.pid; # Load dynamic modules. See /usr/share/nginx/README.dynamic. include /usr/share/nginx/modules/*.conf; events { w...
true
53163eb78d191af0b7a7c1010821421835534678
Shell
DriveClutch/circleci-python
/tools/helm.sh
UTF-8
1,913
3.890625
4
[]
no_license
#!/bin/bash -e if [[ -f ".circleci/debuglog" ]]; then set -x fi # If this repo doesn't contain a .helm directory, then no need to continue if [[ ! -d ".helm" ]]; then echo "Helm directory does not exist, skipping packaging" exit 0 fi # Figure out where we are and if we should be interacting with HELMREPO DOREMO...
true
0e78c9c939511129d7b27c2f49e660727db939b3
Shell
kenyroj/LinuxScript
/Initial.sh
UTF-8
2,043
3.59375
4
[]
no_license
#!/bin/bash LocalPath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" source $LocalPath/ColorAnsiBash.sh source $LocalPath/AKenScript.sh # ==== Alias ==== alias ls='ls --color=auto -F' alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' alias ..='cd ...
true
47fab1ae31672fa617342be1b0823e189ce41b2a
Shell
Brundeco/kaa-gent-html-mail
/post_deployment_staging.sh
UTF-8
1,302
3.421875
3
[]
no_license
# Versioned post-deployment commands # To run this, use `bash post_deployment_staging.sh` # Atomic commands are marked using (A) # TODO: document extra commands or project-specific needs # Install nvm, or try to update if already installed echo "Installing or updating nvm ..." curl -o- -s https://raw.githubusercontent...
true
f0a4d0b1c10a3534ec7cb47eb8a2cd60f7ba7681
Shell
yaakov-h/CRBoilerplate
/BuildScript.sh
UTF-8
798
3.328125
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash PROJECT_NAME='CRBoilerplate' SDKS="iphoneos iphonesimulator" BUILD_ROOT='build' TARGET_NAME="${PROJECT_NAME}" PROJECT_FILE="${PROJECT_NAME}.xcodeproj" BUILD_TMP="${BUILD_ROOT}/tmp" pushd . if [ ! -d "${BUILD_TMP}" ] then mkdir -p "${BUILD_TMP}" fi for SDK in ${SDKS} do BUILD_DIR="${BUILD_TMP}/b...
true
6d85b49b13c88cebff8159f0de596e5ce30059e0
Shell
skimhellmuth/Cell-type-ieQTL-pipeline
/Run_eigenmt.sh
UTF-8
1,354
3.015625
3
[]
no_license
#!/bin/bash ## Script uses modified version of eigenmt to match francois' pipeline of generating final output files ## usage: module load python/3.7.1; trait=Neutrophils; for i in 1; do tissue=$(sed -n ''$i'p' tissues_${trait}.txt); qsub -cwd -V -j y -p -10 -N ei.${tissue} -pe smp 23 -l h_rt=18:00:00 -l mem=100G -m a ...
true
cad9f3f74654f07ce05d4f63d19a97c9052480c8
Shell
alvin0918/gin_api
/shell/start.sh
UTF-8
481
3.28125
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash HOME=`pwd` STR="{$HOME}/reptile" PID=`ps -ef | grep "reptile" | grep -v grep | awk '{print $2}'` case "$1" in "-c") $STR = "{$STR} -c {$2}" ;; "start") $STP ;; "stop") kill -15 $PID ;; "restart") kill -s SIGUSR1 $PID ;; ...
true
f3a9cb8c747ae476d79bbcdc16784070b682cbb2
Shell
michaeljsmalley/osx-setup-scripts
/xcode_uninstall.sh
UTF-8
578
4.0625
4
[]
no_license
#!/bin/bash info="[info]" warning="[warning]" error="[error]" appdir="/Applications" check_root() { if [[ $EUID -ne 0 ]]; then echo "$error This script must be run as root" 1>&2 exit 1 fi } uninstall_app() { [ ! -d $appdir/Xcode.app ] && echo -e "$info Nothing to remove. Exiting..." && ex...
true
8f7622c3a703a2a743a16226776b754f66151481
Shell
lunaruan/flow
/tests/lazy-mode-ide-dependency/test.sh
UTF-8
583
2.625
3
[ "MIT", "CC-BY-4.0" ]
permissive
#!/bin/bash printf "\\nServer should start in fs lazy mode\\n" start_flow . --lazy-mode fs assert_ok "$FLOW" status --strip-root printf "\\nFocus a file\\n" assert_ok "$FLOW" force-recheck --focus focused.js assert_errors "$FLOW" status --strip-root printf "\\nEdit a dependency\\n" cp tmp1/dependency.js dependency....
true
e88b8afdf7ac8d151ab339b016c0a2d04d933feb
Shell
GoCodingIcreated/newspapper
/alert/telegram/send_alarm.sh
UTF-8
1,022
3.5625
4
[ "MIT" ]
permissive
#!/bin/bash DIRNAME=$(dirname $0) TOKEN=$(cat $DIRNAME/token.txt) # curl -s https://api.telegram.org/bot$TOKEN/ # My chat id CHAT_ID=128578085 MESSAGE=$1 if [ -z "$MESSAGE" ]; then echo "ERROR: Empty message." exit 1 fi MESSAGE=$(echo "$MESSAGE" | sed 's/"/\\"/g' \ | sed 's/\[/\\\\[/g' | sed 's/\]/\\\\...
true
519128189a69fbef53596c03fcd1cd2116e1d91a
Shell
nemtsov/requirejs-project-template
/build.sh
UTF-8
246
3.328125
3
[ "MIT", "BSD-3-Clause" ]
permissive
#!/bin/bash function usage { echo "Usage: $0 <project-name>" } if [ -z "$1" ]; then usage exit 1 fi if [ ! -d "$1" ]; then echo "$0: project '$1' does not exist" usage exit 1 fi ./requirejs/build/build.sh $1/scripts/app.build.js
true
f6b1313b12bb8bf369a9ad703970c56ffd2bbef6
Shell
ekstremedia/timelapse
/tools/canon-dslr-hook-script
UTF-8
549
3.453125
3
[]
no_license
#!/bin/sh self=`basename $0` outdir=images outfilename=$SHOTNAME # get from environment vars mkdir -p "$outdir" case "$ACTION" in init) #echo "$self: INIT" # exit 1 # non-null exit to make gphoto2 call fail ;; start) #echo "$self: START" ;; download) #echo "$self: DOWNLOAD" ext="${ARGUMENT##*.}" ...
true
1c1ddb131d0ea76c5a7ff068ddc47d12ac143c84
Shell
DeikeLab/multilayer
/working_example/produce.sh
UTF-8
338
3.53125
4
[]
no_license
#!/bin/bash # This is the compile script OUTFOLDER="./f$1" # Note that space is needed between = and [] if [ "$2" = "clean" ] then rm -r $OUTFOLDER echo "Directory cleaned!" else mkdir -p $OUTFOLDER make -f Makefile OUTPUT=$1 #rm the copy of the source code to avoid version error #rm ./$1.c ...
true
a254ac6b0e1049a44c4ecbb67fc66dd44238eacc
Shell
aivarasko/k8s-from-scratch
/1_make_binaries.sh
UTF-8
7,250
3.453125
3
[ "MIT" ]
permissive
#!/bin/bash set -euo pipefail IFS=$'\n\t' [[ -z "${TRACE:-}" ]] || set -o xtrace source config.sh function install_go() { APP='go' tmp_dir=$(mktemp -d -t go-XXXXXXXXXX) wget https://dl.google.com/go/go"${GO_VERSION}".linux-amd64.tar.gz -O "${tmp_dir}/go${GO_VERSION}.linux-amd64.tar.gz" cp sha256sum "${tmp_d...
true
ef2e13dba87be3c1730e12dd569293482dbf7558
Shell
mendhak/pash
/compiler/pash_runtime_quick_abort.sh
UTF-8
11,061
3.890625
4
[ "MIT" ]
permissive
#!/bin/bash ## File directory RUNTIME_DIR=$(dirname "${BASH_SOURCE[0]}") still_alive() { jobs -p | tr '\n' ' ' } log() { pash_redir_output echo "$$: (QAbort) " "$@" } # Taken from: https://stackoverflow.com/a/20473191 # list_include_item "10 11 12" "2" function list_include_item { local list="$1" local ...
true
74c49e6f7c5c4af212b2690fa03e9dcba928daaf
Shell
hubrigant/dotfiles
/config_masters/zshrc
UTF-8
4,996
2.96875
3
[]
no_license
DEBUG=${DEBUG:-false} if $DEBUG; then echo "-------------------------" >> ~/tmp/loginpaths.txt echo "zshrc> Start of execution" >> ~/tmp/loginpaths.txt echo "zshrc> PATH: ${PATH}" >> ~/tmp/loginpaths.txt echo "zshrc> path: ${path}" >> ~/tmp/loginpaths.txt fi # export TRY_THEMING=p10k # enable powerleve...
true
043f8e87fc3b2ffb4871a90e6753c0ee86487024
Shell
paul-levy/SF_diversity
/batchDescr.sh
UTF-8
8,944
3.21875
3
[]
no_license
#!/bin/bash ### README # Have you set the dataList name? # Have you set the phAdv name? # Have you set the RVC name?# # Have you set the descriptive fit name? # Have you set the modelRecovery status/type? ### Go to descr_fits.py first # arguments are # 1 - cell # # 2 - dispersion (index into the list of dispersio...
true
0d1990edf218f1ad1b48c4f59cbf89201d42a1c0
Shell
trapexit/TempleOS
/TempleOSCD/Linux/GodPassage
UTF-8
319
3.578125
4
[]
no_license
#!/bin/bash #This prints a random Bible passage. if [ ! -f Bible.TXT ]; then echo "Downloading Bible.TXT..." wget http://www.templeos.org/Wb/Home/Wb2/Files/Text/Bible.TXT echo "Done." fi LINE=$(shuf -en 1 {1..100000} --random-source=/dev/urandom) echo "Line $LINE:" tail -n $LINE Bible.TXT | head -n 16
true
b7fb0cdf492b46912ddf8c75dbf86479881daf98
Shell
roman-neuhauser/dotfiles-zsh
/.zsh/functions/redir
UTF-8
786
3.671875
4
[]
no_license
#! zsh function redir # redir [OPTS] [-0 FILE] [OPTS] [-1 FILE] [OPTS] [-2 FILE] CMD [ARG...] # OPTS: # -A open following fds using > # -a open following fds using >> # -C open following fds under 'setopt noclobber' # -c open following fds under 'setopt clobber' setopt localoptions ...
true