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
57dd32b8f916c55970256bb3b255a3fb9294625f
Shell
smart-patrol/python-template
/scripts/push_ecr.sh
UTF-8
1,368
3.3125
3
[ "MIT" ]
permissive
#!/bin/bash REPO_NAME_DEFAULT=docker-image ACCOUNT_ID_DEFAULT=$(aws sts get-caller-identity --query Account --output text) AWS_REGION_DEFAULT=$(aws configure get region) REPO_NAME=${1:-${REPO_NAME_DEFAULT}} AWS_ACCOUNT_ID=${2:-{ACCOUNT_ID_DEFAULT}} AWS_REGION=${3:-${AWS_REGION_DEFAULT}} # repository must exist and lo...
true
9f189ec7a7656e6a1094359325b9915a64a9b978
Shell
Nitinrajyadav/CFML-CI-2019
/tests/ci/scripts/ci-helper-acf.sh
UTF-8
553
3.171875
3
[ "MIT" ]
permissive
#!/bin/bash CONTROL_SCRIPT='coldfusion10/cfusion/bin/coldfusion' PLATFORM_DIR="coldfusion10" WEBROOT="coldfusion10/cfusion/wwwroot" MY_DIR=`dirname $0` source $MY_DIR/ci-helper-base.sh $1 $2 case $1 in install) echo "Fixing ACF install directory..." grep -rl "/opt/coldfusion10/" --exclude-dir=$WEBROOT . | xargs ...
true
dbfa501a071a210c4126d204324ad1564a4bb474
Shell
mrodalgaard/alfred-network-workflow
/tests/dnsTests.bats
UTF-8
1,926
3.09375
3
[ "MIT" ]
permissive
#!/usr/bin/env bats . src/helpers.sh load variables @test "getDNS: get current DNS list" { run getDNS "$DNS" [ "$output" = "8.8.8.8 / 8.8.4.4 / 192.168.1.1" ] } @test "parseDNSLine: parse a single dns config line" { run parseDNSLine "Google DNS:8.8.8.8,8.8.4.4" IFS='~' read -r -a ARRAY <<< "$output" [ "$st...
true
f58a9046a24360386323121f084729c60adfe1e4
Shell
skasn/cenpb
/code/process_trace.sh
UTF-8
1,882
3.5
4
[ "MIT" ]
permissive
#!/bin/bash #SBATCH -n 1 #SBATCH --cpus-per-task=4 #SBATCH --time=24:00:00 DDIR=$1 HMMFN=$2 MINL=141 MAXL=201 NPROC=4 # E-value and overlap # thresholds for parsing HMM outputs ETHR=10 OTHR=40 cd ${DDIR} if [ ! -d hmm ]; then mkdir hmm fi HOPTS="${MINL} ${MAXL} ${NPROC}" for F in fasta*.gz; do FPFX=`...
true
ca0ef36ec586247e5447921a7b47910a1670bf90
Shell
delkyd/alfheim_linux-PKGBUILDS
/garchdeps-git/PKGBUILD
UTF-8
780
2.890625
3
[]
no_license
# Maintainer: Matthew Gamble pkgname=garchdeps-git pkgver=2013.09.21 pkgrel=1 pkgdesc="Tool that shows dependencies of Arch Linux packages in a graphical format" arch=('any') url="http://bruno.adele.im/projets/garchdeps" license=('GPL3') # Previously graphviz was a hard dependency. This was unnecessary, as the script ...
true
962c08d61bbc3b19b688968450e5e4b181d06203
Shell
abicky/fluentd-daemon-service-example
/fluentd-forwarder/entrypoint.sh
UTF-8
1,002
3.859375
4
[]
no_license
#!/bin/sh #source vars if file exists DEFAULT=/etc/default/fluentd if [ -r $DEFAULT ]; then set -o allexport . $DEFAULT set +o allexport fi # If the user has supplied only arguments append them to `fluentd` command if [ "${1#-}" != "$1" ]; then set -- fluentd "$@" fi erb /fluentd/etc/${FLUENTD_CONF}...
true
1a9adf077f99e81dd63bc95211cf1915b9d8011a
Shell
mijime/dotfiles
/scripts/scalabin-installer
UTF-8
617
2.828125
3
[]
no_license
#!/usr/bin/env bash set -ue bin_dir=${HOME}/bin if [[ ! -f "${bin_dir}/coursier" ]]; then curl -L -o "${bin_dir}/coursier" https://git.io/coursier fi chmod +x "${bin_dir}/coursier" "${bin_dir}/coursier" bootstrap \ --java-opt -Xss4m \ --java-opt -Xms1G \ --java-opt -Dmetals.client=coc.nvim \ org.scalameta...
true
bef5ca31606755c173180dfab576f9eeae0d67d8
Shell
LoicMarechal/GMlib
/utilities/gmlpart.sh
UTF-8
431
3.390625
3
[ "LicenseRef-scancode-philippe-de-muyter", "MIT" ]
permissive
#!/bin/sh if [ $# -ne 2 ] then echo "gmlpart source.meshb nb_parts" exit 1 fi inputbase=`basename $1 .meshb` metismesh=${inputbase}_metis.mesh outname=${inputbase}$2"parts" if [ ! -f "$metismesh" ] then echo "convert" $1 "to" $metismesh meshb2metis -in $1 -out ${inputbase} fi mpmetis -gtype=nodal ${metismes...
true
b43cd6370dfb8c981132981542dd8869df2aee2a
Shell
Feynman27/HIMuonSkimming
/MuonSlimming/WmunuMonteCarlo/mergeFiles.sh
UTF-8
519
2.71875
3
[]
no_license
#!binbash if [ -e input.txt ] then rm input.txt fi ls -m -U user.tbalestr.NTUP_HI.mc11_2TeV.PythiaWmunu_1Lepton.DataOverlay.Slimmed.2013.03.19.v01.*/*root* --color=never > input.txt;tr -d '\n' <input.txt> input2.txt;mv input2.txt input.txt echo "Merging Wmunu MC in Data..." root -l -q -b hadd.C+ echo "Done.Clean...
true
e2627f6a6e82b5dc0cd4963e7f7aab31cdf58244
Shell
12019/WISEAgent
/build/tools/PortingBuild/CheckoutAndComplieSource.sh
UTF-8
639
3.484375
3
[]
no_license
#!/bin/bash USERNAME=$1 PASSWD=$2 echo "================================================" echo " Check Out SUSI Driver from SVN" echo "================================================" svn co https://172.20.2.44/svn/ess/SUSI/SUSI_4.0//SUSI/SourceCode \ --username ${USERNAME} --password ${PASSWD} if [ "$?" -ne "0...
true
de1c8bbed95d9d7ce2fc100226c74636a1a6a31c
Shell
Axway/elasticsearch-docker-beat
/start.sh
UTF-8
273
3.1875
3
[ "Apache-2.0" ]
permissive
#!/bin/sh if [[ "${1:0:1}" != '-' ]]; then echo "Overriding command: $@" exec $@ fi PROGRAM=/etc/dbeat/dbeat set -- $PROGRAM "$@" cd /etc/dbeat echo "Starting configuration file updater" ./updater || exit 1 cat /etc/beatconf/dbeat.yml echo "Starting dbeat: $@" exec $@
true
16690d968fa3b438e959de85f624364bb63c0c81
Shell
exodious/bats-mock
/test/mock_set_status.bats
UTF-8
914
2.984375
3
[ "Unlicense" ]
permissive
#!/usr/bin/env bats load mock_test_suite @test 'mock_set_status requires mock to be specified' { run mock_set_status [[ "${status}" -eq 1 ]] [[ "${output}" =~ 'Mock must be specified' ]] } @test 'mock_set_status requires status to be specified' { run mock_set_status "${mock}" [[ "${status}" -eq 1 ]] [[ "...
true
88b479d9f046e0dc433fd43678c49e55d21436cd
Shell
oconnor663/dotfiles
/bin/kblinks
UTF-8
626
2.828125
3
[]
no_license
#! /bin/bash set -e -u -o pipefail username="${1:-}" if [ -z $username ] ; then echo need a username exit 1 fi if [ -z "${local:-}" ] ; then base="https://keybase.io" else base="http://localhost:3000" fi uid="$(curl --silent "$base/_/api/1.0/user/lookup.json?username=$username" \ | python -c "import json...
true
7ce215cfc6a017b093eb63725883697e9c82793a
Shell
ml6team/connexion
/release.sh
UTF-8
558
3.21875
3
[ "Apache-2.0" ]
permissive
#!/bin/sh if [ $# -ne 1 ]; then >&2 echo "usage: $0 <version>" exit 1 fi set -o errexit set -o xtrace python3 --version git --version version=$1 if [[ "$OSTYPE" == "darwin"* ]]; then sed -i "" "s/__version__ = .*/__version__ = '${version}'/" */__init__.py else sed -i "s/__version__ = .*/__version__ = '${...
true
427b99a10db6818bc4e7597d6f5daba191f17225
Shell
bereziat/heimdali-test
/inr2h5/tests.sh
UTF-8
2,753
3.609375
4
[]
no_license
#!/bin/bash case $# in 0) cat <<EOF Performs some tests on inr2h5/h52inr commands Usage is: $0 (float|double|unsigned|signed|bits|packed|exponent) if SILENT env variable is defined, print only the test result EOF exit ;; esac [ -z "$SILENT" ] && set -x extg ../lena.inr >lena.inr -y 200 case $1 in float) ...
true
91dbad84320f6292dead0efbb52fa4ed4d9d7b38
Shell
joeblew99/postgres-migrator
/src/db/unschedule_pgcron_jobs.sh
UTF-8
631
3.53125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e unschedule_pgcron_jobs() { # Set script variables local PG_SERVER=$1 if [[ ! ${PG_SERVER} ]]; then echo "Restore database server name is required." exit 1 fi local PG_DATABASE=$2 if [[ ! $PG_DATABASE ]]; then echo "Backup database name is required." exit 1 fi local PG_USER=$3 i...
true
695b033322bed6ff4aa4e000c8f4f27f65e81298
Shell
alisw/AliRoot
/ITSMFT/ITS/FT2/aliroot_fastMC
UTF-8
1,454
3.4375
3
[]
permissive
#!/bin/bash free echo _____________________________________________ echo "HOME IS $HOME" ls $HOME length=`echo $HOME |wc -c` if (( $length >= 100 )) ; then echo "WARNING: The home directory $HOME is longer than 100 char" OLDHOME=$HOME NEWHOME="/tmp/alien_home_dir.${ALIEN_PROC_ID}" echo "CHANGING ...
true
11f80800e17ceff3200a0301fbb0cf5815fba9c3
Shell
xprime480/projects
/tools/csvtools/test/ec_tester.sh
UTF-8
425
2.71875
3
[]
no_license
#!/usr/bin/bash EXE=../equ_columns.py SAMPLEDIR=./sample CONTROLDIR=./control ROOT=${1} VERS=${2} KEY1=${3} KEY2=${4} INPUT_FILE=${ROOT}.csv SAMPLE_FILE=${SAMPLEDIR}/${ROOT}_${VERS}.txt CONTROL_FILE=${CONTROLDIR}/${ROOT}_${VERS}.txt STD_OUT=${SAMPLE_FILE} source ./do_the_test.sh do_the_test \ ${EXE} \ "${FL...
true
ad01af99e2e0eafc86f8304ff3219861e48e4cd8
Shell
tbernacchi/scripts-bash
/scripts/get-metricas-vmware.sh
UTF-8
960
3.125
3
[]
no_license
#!/bin/sh # Script que invoka (executa) PS no servidor monitinfra01 para coletar o status do VMWare suas VMs # permitindo a identificacao e uma rapida recuperacao em caso de falha na virtualizacao como o # shutdown do DC # Autor: Ambrosia Ambrosiano # mail: ambrosia.ambrosiano@tabajara.com.br / ambrosia@gmail.com # ...
true
9d50a1ecd06d71c9460e5f5378eb96057d1dbfec
Shell
akemery/initiation_to_linux
/findfile/run
UTF-8
1,041
3.234375
3
[]
no_license
#!/bin/bash random_input=`getinput @random` set -- $random_input # Get the random value and convert it to index in files data set rand1=`echo "$1" | grep -Eo '[+-]?[0-9]+([.][0-9]+)?'` rand2=`echo "$2" | grep -Eo '[+-]?[0-9]+([.][0-9]+)?'` index1=`bc <<< "scale=0; (($rand1)*100)%3" | awk '{printf("%d\n",$1)}' ` index2...
true
dd347bab4455cab52fceed26aac3b7dd701b681c
Shell
jandrovins/PRESTO-automatization
/apps/cfitsio.sh
UTF-8
659
2.546875
3
[]
no_license
#!/bin/bash export ROOT_DIR=$(pwd) source /share/apps/intel/setvars.sh --config=${ROOT_DIR}/config.txt export CC='icx' CFLAGS='-march=sandybridge -O3 -Ofast -fp-model fast' F77='ifort' FFLAGS='-f77rtl -fast' # cfitsio compilation mkdir -p /share/apps/cfitsio/3.49 cd /share/apps/cfitsio/3.49 wget http://heasarc.gsfc.na...
true
9393041df442b74e0a1b121acebf1df2b835512b
Shell
sunliang711/init
/tools/lamp/ubuntu1404wordpress.sh
UTF-8
958
3.390625
3
[]
no_license
#!/bin/bash if (($EUID!=0));then echo -e "Need $(tput setaf 1)root$(tput sgr0) priviledge!$(tput setaf 1)\u2717" exit 1 fi rm /tmp/latest.tar.gz >/dev/null 2>&1 rm -rf /var/www/html/wordpress >/dev/null 2>&1 wget https://wordpress.org/latest.tar.gz -O /tmp/latest.tar.gz tar -C /var/www/html -xzvf /tmp/latest....
true
22d59974f1fac0a3c79a26d54063846c3ec654ce
Shell
yeasinopu17/LinuxShellCommand-ScriptBible
/Ch12Scripts/test20.sh
UTF-8
327
3.15625
3
[]
no_license
#!/bin/bash # testing the file dates # -nt file is newer than if [ test19.sh -nt test18.sh ]; then echo "The test19 file is newer than test18" else echo "The test19 file is older than test18" fi # -ot file is older than if [ test17.sh -ot test19.sh ]; then echo "The test17 file is older than the test19fi...
true
27b28683e3c633fd0b05d806a1afae5d3cbc0bcd
Shell
jayagami/T4SEfinder
/pred_all_model.sh
UTF-8
1,827
3.109375
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash # usage: ./pred_all_model.sh Acession_Number (e.g. NC_009494) acc=$1 res=results/$acc fasta=$res/sequence.fasta pssmdir=$res/pssm_files #################################################### mkdir -p $res echo "Downloading protein sequences corresponding to Accession number: "$acc" ..." efetch -db nuccore -i...
true
c90fdbfa3226c819defb41a6ec9345b537da6526
Shell
ARHEIO/typescript-aws-lambda
/scripts/delete-lambda.sh
UTF-8
781
3.21875
3
[ "MIT" ]
permissive
#!/bin/bash lambdaName=${PWD##*/} echo "Deleting lambda $lambdaName" aws lambda delete-function --function-name $lambdaName echo "Finished deleting lambda $lambdaName" attachedPolicies=$( aws iam list-attached-role-policies --role-name $lambdaName ) echo "The following policies are attached" $( echo $attachedPolicie...
true
69c1c0c68828ab56294676aebff721d1db13173f
Shell
wicadmin/Goldenorb
/luci-app-hotspot/files/usr/lib/hotspot/inrange.sh
UTF-8
1,660
3.578125
4
[]
no_license
#!/bin/sh . "/lib/functions.sh" log() { logger -t "In Range" "$@" } rm -f /tmp/hot1 cnt=0 trm_ifstatus="false" while [ ${cnt} -lt 20 ] do trm_ifstatus="$(ubus -S call network.wireless status | jsonfilter -l1 -e '@.*.up')" if [ "${trm_ifstatus}" = "true" ] then break fi cnt=$((cn...
true
b3c806644a72a3b9ceb09a4315e9705cd2830280
Shell
apache/hudi
/docker/hoodie/hadoop/hive_base/entrypoint.sh
UTF-8
4,975
3.046875
3
[ "CC0-1.0", "MIT", "JSON", "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-unknown" ]
permissive
#!/bin/bash # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "Licen...
true
657a79417cdb31c82d0358a09749de92f12ff7a8
Shell
metwork-framework/mfext
/layers/_checksum_helper.sh
UTF-8
1,037
3.953125
4
[ "BSD-3-Clause" ]
permissive
#!/bin/bash ARCHIVE_FILE=$1 CHECKSUM_TYPE=$2 CHECKSUM_VALUE=$3 if ! test -f ${ARCHIVE_FILE}; then exit 1 fi if test "${CHECKSUM_TYPE}" = "NONE"; then if test -s ${ARCHIVE_FILE}; then echo "No checksum to compute but size > 0 => success" exit 0 else echo "Empty file" exit 1...
true
2217cca801fb8318ae6609b8ec04f9f5802985d5
Shell
dijkman/MinifyAllCli
/bin/versionUpdater.sh
UTF-8
1,903
3.9375
4
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash #~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~#~# # SCRIPT: versionUpdater.sh # USAGE: bash versionUpdater.sh | ./versionUpdater.sh # PURPOSE: Shell script that finds the actual version, and replaces the old ...
true
27fc5519ed360d3c89f5d9cb798b8dc9047a6e50
Shell
imekuto/node_dev
/provision-script/install_expect.sh
UTF-8
285
2.515625
3
[]
no_license
COMMAND='export DEBIAN_FRONTEND=noninteractive' echo $COMMAND && eval ${COMMAND} COMMAND='sudo -E apt update' echo $COMMAND && eval ${COMMAND} COMMAND='sudo -E apt upgrade -y' echo $COMMAND && eval ${COMMAND} COMMAND='sudo -E apt install expect -y' echo $COMMAND && eval ${COMMAND}
true
3e7a3a5265db870f382cb61a5c841b3e03bea081
Shell
Molmed/multiseq-ds
/scWGBS/scripts/get_cpg_islands.sh
UTF-8
322
2.59375
3
[]
no_license
#!/bin/bash #download and format cpg islands wget -qO- http://hgdownload.cse.ucsc.edu/goldenpath/hg38/database/cpgIslandExt.txt.gz | gunzip -c > hg38.cpg.txt awk '{print $2 " " $3 " " $4}' hg38.cpg.txt > hg38.cpg.positions.txt sed -i 's/chr//g' hg38.cpg.positions.txt sed -i '1i chr start end' hg38.cpg.positions.txt...
true
886962e6055ac5dd8ef0606f6a56b5ee90027010
Shell
BillUtada/leetcode-python-solution
/localrun.sh
UTF-8
2,185
3.90625
4
[]
no_license
#!/bin/bash SUCCESS_CASE=0 FAILED_CASE=0 # check case, change filename to filename---OK if success function check_case_result() { result=$(awk 'END {print}' $1) if [ ${result} == "OK" ]; then let SUCCESS_CASE+=1; mv $1 $1"--------OK" else let FAILED_CASE+=1; mv $1 $1"------...
true
563b97d9e9f64d3cdfff8b5535645cf1344c709e
Shell
GrayHat12/LoanSpringAssignment
/buildAndRun.sh
UTF-8
380
3.3125
3
[]
no_license
#!/bin/bash ENV=$1 VERSION=$2 if [[ ${VERSION} = "" ]]; then VERSION="0.0.1" fi if [[ ${ENV} = "" ]]; then echo "Building the project pointing to local environment" ./gradlew clean build else echo "Building the project pointing to ${ENV} environment" ./gradlew clean build fi echo `pwd` echo "St...
true
e710ffdadbd9101c0d2b6859dbe4b196322510cc
Shell
DJaySathe/CloudBurst
/script2.sh
UTF-8
274
3.34375
3
[]
no_license
#!/bin/sh #### # This script automatically creates user accounts with random passwords. # # Author: Russ Sanderlin # Date: 01/21/15 # ### # Declare local variables, generate random password. hostip=$1 username=$2 flag=$3 if [ "$3" = "1" ] then echo "random pw" else echo "1" fi
true
f11463d9d3df8989cd924d8056b20616c0c7b617
Shell
lassetraberg/SensumUdred
/run.sh
UTF-8
256
3.109375
3
[]
no_license
#!/usr/bin/env bash dir=${PWD##*/} if [[ $dir != "SensumUdred" ]]; then echo "ERROR: Must be in root of project, SensumUdred directory" exit 1 fi echo "Compiler..." ./scripts/unix/compile.sh $@ echo "Starter program..." ./scripts/unix/launch.sh
true
efbe758c00ecadd014e80aeee11d2b9be58fd4bb
Shell
jonathanmak/embla
/postprocess/report.sh
UTF-8
906
3.34375
3
[]
no_license
#! /bin/sh tracebase=$1 dirname=$2 # fname=$2 # fromline=$3 # toline=$4 basefname=`basename $fname` rundir=`pwd` cd $dirname tracename=${rundir}/${tracebase}.trace repname=${rundir}/${tracebase}.tex tmpname=${rundir}/${tracebase}_tmp ptrname=${tracename}_${basefname}_${fromline}-${toline} pfname=${basefname}_${from...
true
2cbd491a5b5e593e0b22c62149b34c7bbc8b2afb
Shell
salamp/SlackBot
/auto.sh
UTF-8
6,769
3.5625
4
[]
no_license
#!/bin/bash api='https://slack.com/api' jq='./jq' statusfile='status.conf' configfile='config.conf' if [ -e "$configfile" ]; then . "$configfile" else cat - > "$configfile" <<-CONFIGFILE # Bot token token='xoxb-xxx-xxx' # Team full access token ttoken='xoxp-xxx-xxx-xxx-xxx' # Webhook hook='https://hooks...
true
c6d1c176f2f20cc146fb131b3a91c64f8e9b4735
Shell
shmilee/vivo-Y13L
/rom-base/update-patch-script/merge_patch.sh
UTF-8
6,305
3.53125
4
[]
no_license
#!/bin/bash shopt -s extglob in_array() { local s for s in ${@:2}; do if [[ $s == $1 ]];then return 0 fi done return 1 } mesge() { local arrow=$1 msg1="$2" msg2="$3"; shift; shift; shift if [[ $arrow == '1' ]]; then printf "==>\e[1m\e[32m ${msg1} \e[0m${msg2}" ...
true
5580e928eda0211b6c825dfa97efb9ac1c415063
Shell
aar10n/Lemon-OS
/Ports/buildport.sh
UTF-8
167
2.875
3
[ "BSD-2-Clause" ]
permissive
export JOBCOUNT=$(nproc) if [ -z "$LEMON_SYSROOT" ]; then echo "error: LEMON_SYSROOT not set" exit fi export LEMON_PREFIX=/system . ./$1.sh unpack buildp
true
311e0808c1accdcedefc49826a517a72f5673095
Shell
larsla/bash2rest_example
/scripts/users/GET_.sh
UTF-8
433
3.765625
4
[]
no_license
#!/bin/bash mkdir -p /tmp/users # check if we are called as part of fetching a user object CALLED_NAME=`basename $0` ID=`echo $CALLED_NAME |sed 's|GET_||' |sed 's|\.sh||'` if [ -n "$ID" ]; then if [ -f /tmp/users/${ID} ]; then cat /tmp/users/${ID} |jq . else echo '{"result": "error", "reason": "no such us...
true
ec9417fcf5db1171f1fd16658cd9fa13f862f982
Shell
blank-blank/graylog_ansible_roles
/run_playbook.sh
UTF-8
204
3.015625
3
[]
no_license
playbook_name="$1" playbook_file="${playbook_name}.yml" #check args if [ $# -ne 1 ] then echo "Usage: run_playbook.sh profile_name" exit 1 fi ansible-playbook -i "localhost," -c local $playbook_file
true
2a91dc35e473f9826c3be6db2575fe93d34246ca
Shell
mp3splt/mp3splt-web
/mp3splt-project/branches/mp3splt-project_0.8.2__2.5.2/scripts/bsd_rc.sh
UTF-8
982
3.359375
3
[]
no_license
#!/bin/sh echo "This script must not be run (see its content)" exit 1 #at the end of the /etc/rc file : ########### mp3splt-project packages rm -rf /etc/make_packages echo "I will compile the packages in 5 seconds..." echo "Press Enter to cancel" touch /etc/make_packages /etc/rc.mp3splt& read NAME rm -rf /etc/make_p...
true
321a72e37ab5326da1c40191dd70775215c82398
Shell
SeattleTestbed/attic
/branches/repy_v2/benchmarking-support/benchmark-blockstore.sh
UTF-8
1,153
3.359375
3
[ "MIT" ]
permissive
#!/bin/bash # Used to automate benchmarking TEST="Block Store Server" # Command to run for seclayer SEC_CMD="python repy.py restrictions.full encasementlib.repy" NORM_CMD="python repy.py restrictions.full" SEC_LAYERS="all-logsec.py ip-seclayer.py forensiclog.repy" SERVER="dylink.repy librepy.repy blockstore.py armon...
true
d0ca9b1caeef285114d75a67030c4dae09e91b08
Shell
Joshua-Anderson/travis-vagrant-images
/install/virtualbox.sh
UTF-8
362
2.5625
3
[]
no_license
#!/bin/bash # Downloads and installs virtualbox SCRIPTDIR=$(dirname $0) mkdir -p $SCRIPTDIR/../downloads curl -o $SCRIPTDIR/../downloads/virtualbox.dmg 'http://dlc.sun.com.edgesuite.net/virtualbox/4.3.14/VirtualBox-4.3.14-95030-OSX.dmg' hdiutil mount $SCRIPTDIR/../downloads/virtualbox.dmg sudo installer -package /Volu...
true
1cd4c298710d6e566c4d92852869cc7c6c44ca09
Shell
vikigenius/voidwoken
/actions/zsh/ziminstall
UTF-8
294
2.546875
3
[]
no_license
#!/bin/sh export ZIM_HOME=${ZIM_HOME:-$HOME/.local/share/zim} export ZDOTDIR=${ZDOTDIR:-$HOME/.config/zsh} export ZSH_CACHE_HOME=$HOME/.cache/zsh mkdir -p $ZIM_HOME wget https://github.com/zimfw/zimfw/releases/latest/download/zimfw.zsh -O $ZIM_HOME/zimfw.zsh zsh $ZIM_HOME/zimfw.zsh install
true
bc739b18bffc1e5bdb8944c38036678457e42e90
Shell
dianlight/addon-plex
/plex/rootfs/etc/cont-init.d/webtools.sh
UTF-8
807
2.890625
3
[ "MIT" ]
permissive
#!/usr/bin/with-contenv bashio # ============================================================================== # Home Assistant Community Add-on: Plex Media Server # Enables the WebTools plugin if the user requested that # ============================================================================== if bashio::config...
true
ab98ce975a707b7b1501f1b45b149686b8e14fbc
Shell
Imran01000/shell_programs
/arrays/Random.sh
UTF-8
559
3.34375
3
[]
no_license
#!/bin/bash -x #To print the 2nd minimum and maximam value from the array. for(( count=0;count<10;count++)) do r=$(($RANDOM%900+100)); a[count]=$r; done echo "${a[@]}"; second_max=${a[0]}; second_min=${a[0]}; max=${a[0]}; min=${a[0]}; for(( count=0;count<10;count++)) do if (($max < ${a[count]})) then s...
true
6460f52ef837549c420143ec189c0969579f15cf
Shell
ppyTeam/armsoft
/acme/acme/install.sh
UTF-8
1,804
3.640625
4
[]
no_license
#! /bin/sh source /koolshare/scripts/base.sh alias echo_date='echo 【$(TZ=UTC-8 date -R +%Y年%m月%d日\ %X)】:' DIR=$(cd $(dirname $0); pwd) # 判断路由架构和平台 case $(uname -m) in armv7l) if [ "`uname -o|grep Merlin`" ] && [ -d "/koolshare" ] && [ -n "`nvram get buildno|grep 384`" ];then echo_date 固件平台【koolshare merlin armv7...
true
c51d75c68c5011097d83d768e84b0717827e4f2d
Shell
rlauer6/google-drive-mailer
/create-custom-role.sh
UTF-8
3,579
4.0625
4
[]
no_license
#!/bin/bash # -*- mode: sh -*- # Example script to create a role for the Lambda to assume that allows # access to the mail bucket, creation of CloudWatch logs and the SSM # key that holds credentials # create-role.sh policy-name role-name bucket ssm-key region # Example: # create-role.sh google-drive-mailer-...
true
361cf615a6dec9ccd1bd444ba8884b4c20823a36
Shell
mm4tt/k8s-util
/k8s-tests/golang-kubemark-test.sh
UTF-8
3,398
3.234375
3
[ "MIT" ]
permissive
#!/bin/bash set -euo pipefail if [ $# -ne 2 ] then echo "Usage: ${0} <run-name> <num-nodes>" exit 1 fi run_name=${1?} golang_commit= num_nodes=${2:-2500} log() { echo $1 | ts | tee -a ${log_file}; } apply_patch() { cl_id=${1?} revision=${2?} echo "Applying patch ${cl_id} at revision ${revision}" w...
true
63cdf0c09771610272b6171e6fb84592075a6b17
Shell
newrain7803/yuki-emby-crack
/sign/selfsign_ca.sh
UTF-8
566
2.828125
3
[]
no_license
#!/bin/bash echo -e "\n初始化Ca目录\n" mkdir -p ./demoCA/{private,newcerts} && \ touch ./demoCA/index.txt && \ touch ./demoCA/serial && \ echo 01 > ./demoCA/serial echo -e "\n生成 CA 根密钥\n" openssl genrsa -out ./demoCA/private/cakey.pem 2048 echo -e "\n自签发 CA 根证书\n" openssl req -new -x509 -key ./demoCA/private...
true
908658e41a1a9e5c4eee56d1587c74fdc3f92a1c
Shell
xuanngo2001/drupal-examples
/d8-create-empty-module.sh
UTF-8
1,293
4.03125
4
[]
no_license
#!/bin/bash set -e # Description: Create empty module structure. script_name=$(basename "${0}") module_name=$1 # Error handling. cmd_eg=$(printf "%s\n%s\n%s\n" \ " e.g. ./${script_name} <MODULE_NAME>"\ ) if [ -z "${module_name}" ]; then echo "Error: Module name can't empty. Allow...
true
4263b5988eda2960b4fd7cb9e1961f5ac17d413d
Shell
microsoft/WebTemplateStudio
/.githooks/pre-commit
UTF-8
210
2.765625
3
[ "MIT" ]
permissive
#!/bin/sh PREFIX="pre-commit:" cd ./src/client/ echo "$PREFIX Execute client Lint" if ! yarn lint; then exit 1 fi cd ../extension/ echo "$PREFIX Execute extension Lint" if ! yarn lint; then exit 1 fi
true
7f8e1e054cd903c8a84548c1aeebee2f9ffb85bd
Shell
gggah/Random_generation
/Fibre_src/analyse.sh
UTF-8
523
3.015625
3
[ "MIT" ]
permissive
#!/bin/sh #./analyse.sh analyze 0601 5 10 #./analyse.sh analyze 0601 6 pcdata.dat dir=/mnt/sdb1 direction=df cd $dir cd $2 if [ ! -d $direction ];then mkdir $direction fi cd $direction c1=`echo $2 |cut -c 1`;#echo -e "c1=$c1\t" c2=`echo $2 |cut -c 2`;#echo -e "c2=$c2\t" c3=`echo $2 |cut -c 3`;#echo -e "c3=$c3\t" c4...
true
04950fa58f614c580f9e422d125894643b9c7e0f
Shell
abaty/TrackCorrRun2
/Condor/submit_pp.sh
UTF-8
1,790
2.84375
3
[]
no_license
if [ $# -ne 0 ] then echo "Usage: ./psort.sh <trackqual> <file-list> <tag> <nmin> <nmax> <pttrigmin> <pttrigmax> <ptassmin> <ptassmax>" exit 1 fi now="Corrections_$(date +"%Y_%m_%d__%H_%M_%S")" njobs=10 mkdir $now cp ../TrkCorrInputFile.txt $now cp ../src/calcCorr.C $now cp ../src/TrkSettings.h $now cp ../src/pre...
true
82c9442f0c361cb85ccf7cd0f984a88e97c33f63
Shell
graspfunc/graspfunc
/src/run_intra_group.sh
UTF-8
1,403
3.3125
3
[]
no_license
#!/bin/bash # this assumes that the input files are arranged in subdirectories: g1, g2, ... DIRS=$1/g* # enable this for all groups # DIRS=$1 # enable this for just one group for d in $DIRS do echo "***********************************************************************************" echo $d echo "*******...
true
f9b0a666ef3b91803bf6a796fa7f11cb7b04fce9
Shell
Kodehuset/mygitbackup
/mygitbackup.sh
UTF-8
1,992
4.15625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash SCRIPT_NAME="MyGitBackup" SCRIPT_VERSION="Alpha 1" echo "$SCRIPT_NAME v. $SCRIPT_VERSION" # Load user configuration if [ ! -f ~/.mygitbackup ] then echo "ERROR: Unable to locate configuration parameters. Please configure $SCRIPT_NAME via ~/.mygitbackup" exit 0 fi source ~/.mygitbackup echo "Checking.....
true
2408790ddb733fe8af74fa49bf6518046212e28e
Shell
tmillsclare/zk
/bin/maven.javadoc
UTF-8
1,028
3.4375
3
[]
no_license
#!/bin/bash # #{{IS_NOTE # Purpose: # To build javadoc per jar file for maven repository # Description: # History: # August 22 11:13 2011, Created by simon #}}IS_NOTE # #Copyright (C) 2011 Potix Corporation. All Rights Reserved. # #{{IS_RIGHT #}}IS_RIGHT # maindir="$(pwd)" version=$1 if [ "$2" == "" ] ; then ve...
true
3cb79438e4d327f7db4d3cbd7f4d7fe1ee0887d3
Shell
bjanderson70/sfdx-misc
/bin/funcs.sh
UTF-8
17,334
3.34375
3
[ "BSD-3-Clause" ]
permissive
<<<<<<< HEAD #!/usr/bin/env bash ############################################################################ # Copyright (c) 2020, Salesforce. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # #...
true
b2e2eeed307c8dbbd7978ccded170980d68eabf5
Shell
beaconzhang/yagami..ko
/yagamiko/bin/generate_nginx_conf.sh
UTF-8
629
3.125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # set global variables project name and path export YGM_APP_NAME=yagamiko export OPENRESTY_HOME=/usr/local export YAGAMI_HOME=/freeflare/trunk/foundation/server/lua/yagami #echo $OPENRESTY_HOME #echo $YAGAMI_HOME PWD=`pwd` NGINX_FILES=$PWD"/nginx_runtime" mkdir -p $NGINX_FILES"/conf" mkdir -p $NGINX_...
true
d779673ff25ef114dec581228a8853b462404712
Shell
sin6pi7/hexp-web
/pre-commit.sh
UTF-8
191
2.671875
3
[]
no_license
#!/bin/sh # Install yourself on first execution if [ ! -f .git/hooks/pre-commit ]; then ln -s ../../pre-commit.sh .git/hooks/pre-commit fi # Lint and tests check npm run lint && npm test
true
c2231d6c1b27dfd4b0939faa4292ec7581a520c2
Shell
pinard/paxutils
/scripts/level-1.10
UTF-8
5,628
4.0625
4
[]
no_license
#!/bin/sh # # Run this script as root on the machine that has the tape drive, to make a # level-1 dump containing all files changed since the last full dump. # # If you give `now' as an argument, the dump is done immediately. # Otherwise, it waits until 1am. # # You must edit the file `backup-specs' to set the paramet...
true
6b84960515a494fb27c9a4576a08d09a7a6d1b81
Shell
plavin/sst-autoinstall
/install_sst.sh
UTF-8
2,745
3.609375
4
[]
no_license
set -euo pipefail TOP=$(pwd) SRCDIR=$TOP/source INSTALLDIR=$TOP/install DEFFILE=$TOP/sstdefs.sh LOGS=$TOP/logs # Pull In Urls . configure_urls.sh echo "Source code will be placed in $SRCDIR" echo "Programs will be installed in $INSTALLDIR" echo "Necessary environment variables will be placed in $DEFFILE" rm -f sstd...
true
8ea532ef9609a3642bf6d97e5907ce6c985ab5f0
Shell
knowrob/docker
/scripts/update-log-data
UTF-8
954
2.703125
3
[]
no_license
#!/bin/bash wget -r ftp://open-ease-stor.informatik.uni-bremen.de #EXPERIMENTS="pick-and-place simulation robosherlock chemlab mocap"# #for exp in $EXPERIMENTS; do # # Export mongo data from open-ease to json # mongoexport --host data.open-ease.org --port 27017 \ # --db $exp --collection tf -o ease.$ex...
true
b70fd1215c04c761b94c6183d8f5de70128a4466
Shell
kemalsami/python-mongoDB
/callPython.sh
UTF-8
1,780
3.78125
4
[]
no_license
#!/bin/bash #initialization with default values SERVICE='cpu_util' #function to print the help info printusage() { echo "This plug-in uses the OpenStack Ceilometer API to let Nagios query Ceilometer metrics of VMs." echo "usage:" echo "ceilometer-call -s metric_name -t nagios_warning_threshold -T nagios_crit...
true
ba29b747d86214de9ae19a0d37e79c34835f7486
Shell
sigrlami/pegnet
/initialization/fundEC.sh
UTF-8
763
3.046875
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # # Default is to fund a simulation EC address for testing # Replace the EC address and the FCT address with your own to initialize a PegNet # on the Factom MainNet EC="EC3TsJHUs8bzbbVnratBafub6toRYdgzgbR7kWwCW4tqbmyySRmg" FCT="FA2jK2HcLnRdS94dEcU27rF3meoJfpUcZPSinpb7AwQvPRY6RL1Q" # Imports address...
true
b9d7f5c1b33c7d8bfc97081d05d6c43e152d6cf9
Shell
lfos/calcurse
/test/todo-001.sh
UTF-8
286
3.03125
3
[ "BSD-2-Clause" ]
permissive
#!/bin/sh . "${TEST_INIT:-./test-init.sh}" if [ "$1" = 'actual' ]; then "$CALCURSE" --read-only -D "$DATA_DIR"/ -t | sort elif [ "$1" = 'expected' ]; then ( echo 'to do:' sed '/^\[-/d; s/^\[\([0-9]\)\] \(.*\)/\1. \2/' "$DATA_DIR"/todo ) | sort else ./run-test "$0" fi
true
5309bf3abb0edb8fb8a3c5faaa7116365acd2819
Shell
ntd/aur-fedora-mingw
/aur/afm-mingw-w64-makedepends/PKGBUILD
UTF-8
3,140
3.1875
3
[ "MIT" ]
permissive
# Maintainer: Nicola Fontana <ntd@entidi.it> # # This package automatically pulls in the makedepends needed for MinGW # cross-building and provides the following helper stuff: # # - pkg-config wrappers # - CMake configurations for MinGW # - configure wrappers # # It borrows ideas from the mingw-filesystem Fedora packag...
true
14315c8440f85d9a9f58475b41aa880f18686018
Shell
builddouble/util
/scripts/count.sh
UTF-8
154
3.015625
3
[]
no_license
#!/bin/bash echo "0" > cnt.txt echo $CNT for i in `seq $1` do CNT=`cat cnt.txt` CNT=$(($CNT + 1)) echo $CNT > cnt.txt echo $CNT done
true
23200ad1821afdf9ef0f04a1989b4b8d66c9d445
Shell
flaviobarci/dotfiles
/.zshrc
UTF-8
2,705
3.1875
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/barci/.oh-my-zsh" export EDITOR="nvim" export FZF_BASE=/usr/bin/fzf # Set name of the theme to load --- if set to "random", it will # load a random theme e...
true
13c535a835ed8928f48eb22d5cecb34b09fb3158
Shell
ShubhamKul14/assignment-probs9
/day10/arithmatic.sh
UTF-8
603
3.15625
3
[]
no_license
declare -A dict declare -a arr read -p "ENTER A : " a read -p "ENTER B : " b read -p "ENTER C : " c c1=$(($a+$b*$c)) c2=$(($a*$b+$c)) c3=$(($c+$a/$b)) c4=$(($a%$b+$c)) echo -e "\n( a + b x c ) : $(($a+$b*$c))" echo -e "\n( a x b + c ) : $(($a*$b+$c))" echo -e "\n( c + a / b ) : $(($c+$a/$b))" echo -e "\n( a % b + c ...
true
6d9e4beccf53d76b7b4fe997a1f60640ee491276
Shell
Boukefalos/dotfiles
/install.sh
UTF-8
400
3.1875
3
[ "MIT" ]
permissive
#!/usr/bin/env bash echo "Installing dotfiles" echo "Initializing submodule(s)" git submodule update --init --recursive if apropos "package manager" | grep -q apt; then echo -e "\n\nUsing APT package manager" source install/apt.sh fi source install/terminfo.sh source install/ruby.sh source install/link.sh ...
true
2be6dd9dd68285d6e93ee7b9ae4fc0b4e699b2b2
Shell
AncientMariner/LearningMongoDB
/docker/prepareContainers.sh
UTF-8
358
2.515625
3
[ "MIT" ]
permissive
#!/bin/sh echo "preparing tomcat container" cd ../ && mvn clean package -Dmaven.test.skip=true && cd - && cp ../target/LearningMongoDB.war tomcat/ cd tomcat/ docker build -t tomcat . rm LearningMongoDB.war cd ../ echo "preparing mongo container" cd mongo/ pwd unzip ../../primer-dataset.json.zip -d . docker build -t ...
true
c47dcbf8e8779407a6da6acb41e1f92fbd1b396f
Shell
hristogenev/devtunnel-cli
/DevTunnelMultipleSession.sh
UTF-8
1,210
3.625
4
[]
no_license
#!/bin/bash red=$'\e[1;31m' grn=$'\e[1;32m' end=$'\e[0m' domain=$1 os=$2 input="DeviceList.txt" readLineIndex=0 while IFS= read -r line || [ -n "$line" ] do deviceIdArray[readLineIndex]=$line readLineIndex=$((readLineIndex+1)) done < "$input" prep_term() { unset term_kill_needed trap 'handle_term' TER...
true
1332ec3eaa2877db9204484b7cfaf94618e773f5
Shell
markstoehr/lstm_acoustic_embedding
/BUILD.sh
UTF-8
706
3.328125
3
[]
no_license
# get data TIMIT=~/Data/timit if [ -z $1 ] ; then basedir=`pwd` else basedir=$1 fi echo "Building directory in $basedir" datadir=$basedir/data mkdir -p $datadir # get word list # python data_preparation/collect_timit_words.py $TIMIT/test $datadir/test_wordlist # python data_preparation/collect_timit_words.py...
true
4de989ce7502a03479437e6dd46a27b56829c617
Shell
Chenmengpin/scRNASeq-CNVCaller
/preprocessing/vcfCaller.sh
UTF-8
687
2.875
3
[]
no_license
#!/bin/bash #Script to generate the vcf file for HoneyBADGER # Variables for the scripts FASTA=/home/bkw2118/extDrive/tools/cellranger-5.0.0/reference/refdata-gex-GRCh38-2020-A/fasta/genome.fa BAM=/mnt/disks/ext/scRNASeq-CNVCaller/data/cellRangerOutput/outs/possorted_genome_bam.bam OUT=/mnt/disks/ext/scRNASeq-CNVCalle...
true
2b685fa2a995a1573648ba0c1ce89dbc44c19c51
Shell
delippi/PhD-globalRadarOSSE
/arch_NEXRAD/run_clean.ksh
UTF-8
1,006
2.65625
3
[]
no_license
#!/bin/ksh -x set -x set -e pdy=$PDY cyc=$cyc PSLOT="NEXRAD-2018092300-2018100700" typeset -Z2 cyc ROTDIR="/gpfs/hps2/ptmp/Donald.E.Lippi/fv3gfs_dl2rw/2018092300/$PSLOT" CDATE=${pdy}${cyc} cd /gpfs/hps3/emc/meso/save/Donald.E.Lippi/PhD-globalRadarOSSE/arch_NEXRAD cd $pdy/$cyc cat << EOF > ./clean_NEXRAD.t${cyc}z.${C...
true
16a0be7ae04167a45d4ea405df74f4fe5feefe58
Shell
petronny/aur3-mirror
/pacmanlog2gource-git/PKGBUILD
UTF-8
1,101
2.9375
3
[]
no_license
# Maintainer: matthiaskrgr <matthias · krueger _strange_curved_character_ famsik · de # address: run echo "matthias · krueger _strange_curved_character_ famsik · de" | sed -e 's/\ _strange_curved_character_\ /@/' -e 's/\ ·\ /./g' pkgname=pacmanlog2gource-git pkgver() { cd pacmanlog2gource git describe --tag...
true
86872977889287e4b1fc29310a4039899cf4c43f
Shell
RSEnergyGroup/azure.devops.virtual-environments
/images/linux/scripts/installers/homebrew-validate.sh
UTF-8
848
3.53125
4
[ "MIT" ]
permissive
#!/bin/bash -e ################################################################################ ## File: homebrew-validate.sh ## Desc: Validate the Homebrew can run after reboot without extra configuring ################################################################################ # Validate the installation ec...
true
35db3328a23f420d2d1008b17a011941a5715728
Shell
roshal/dotfiles
/user/.config/bash/bash-config.sh
UTF-8
1,352
2.8125
3
[]
no_license
### if not running interactively do not do anything ! echo "${-}" | grep --quiet i && return ### variables PATH="${BASE}" # # https://classic.yarnpkg.com/en/docs/cli/global#adding-the-install-location-to-your-path PATH="${HOME}/.yarn/bin:${PATH}" PATH="${HOME}/.local/bin:${PATH}" ### heterogeneous test -e "${HOM...
true
1b16f76dc6677d5cfb21d80f9fc823f46c48e06f
Shell
SanmiAndreSofa/maldi_amr
/amr_maldi_ml/scripts/sort_files.sh
UTF-8
397
3.640625
4
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash # # Script for sorting result files into their respective directories, # creating them in the process if they do not exist. This is one way # to ensure that results files are collated nicely. if [ -z ${1+x} ]; then exit fi ROOT=$1 for MODEL in 'lightgbm' 'lr' 'rf' 'svm-linear' 'svm-rbf'; do m...
true
90f73815b2d276d0717ac79518d4cb94c61a518a
Shell
oraclecloudbricks/endevour_webinar
/functions/create_venv.sh
UTF-8
401
3.078125
3
[ "UPL-1.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
# Copyright (c) 2021 Oracle and/or its affiliates. #!/bin/bash # All rights reserved. The Universal Permissive License (UPL), Version 1.0 as shown at http://oss.oracle.com/licenses/upl # setup_env.sh # # Purpose: Setup Python Virtual Environments to work with Functions if [ "$#" -ne 1 ]; then echo "Missing system...
true
0633a4fc8b127ddf48f7b0110d02b7dabbd9f265
Shell
Aghost/BuffOverflow
/generate_shellcode/generate_shellcode.sh
UTF-8
332
3.5
4
[]
no_license
#!/bin/sh # '\x41' = 'A' # '\x90' = no-op # $1 = int times # $2 = str characterto add to string print_chars() { str="" for i in `seq $1`; do str=$str$2 done printf "$str" #./Buffo.out $str } if [ $# -lt "1" ]; then return; fi if [ $1 -gt "1" ]; then print_chars $1 '\x41' else e...
true
ae82430610e8f460342df74dd5c3758002765d85
Shell
dokku-alt/mongodb-dockerfiles
/start_mongodb.sh
UTF-8
748
3.359375
3
[]
no_license
#!/bin/bash set -e if [[ ! -f /opt/mongodb_password ]]; then echo "No mongodb password defined" exit 1 fi if [[ ! -f /opt/mongodb/initialized ]]; then mkdir -p /opt/mongodb /usr/bin/mongod --bind_ip=127.0.0.1 --dbpath=/opt/mongodb --noauth --fork --syslog DB_PASSWORD="$(cat "/opt/mongodb_password"...
true
3a769da331104d03edee4eb67d966294d4f50c28
Shell
devops-life/shell_python
/doc/Service/nginx/Nginx的平滑升级.sh
UTF-8
1,538
2.5625
3
[]
no_license
Nginx的平滑升级 1、查看当然版本 #cd /usr/local/nginx/ #进入Nginx安装目录 # sbin/nginx -V #查看版本 nginx version: nginx/0.7.60 configure arguments: –user=www –group=www –prefix=/usr/local/nginx –with-http_stub_status_module –with-http_ssl_module #编译项 得到原来./configure 的编译项 2.下载最新版 前往查看最新版,http://nginx.org/en/download.html #cd /...
true
cf36bfca4f2939c79270375cd24d710f5f0bc2a5
Shell
cottrell/consul_examples
/simple_service
UTF-8
1,566
2.734375
3
[]
no_license
#!/bin/bash # https://www.consul.io/api/agent.html DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # PORT=$($DIR/get_free_port.sh) curl --request PUT --data @$DIR/check_pinggoogle.json http://localhost:8500/v1/agent/check/register curl --request PUT --data @$DIR/service_httpserver.json http://localhost:8500/v...
true
f3b45790ff86987046f218d4ec272c6bcf64c879
Shell
sinofeng/niagara-load-balancer
/prototype/mininet/exNgFull.sh
UTF-8
2,518
2.921875
3
[]
no_license
# vip is 10.6.1.1 # direct 10.0/16 to 10.4.1.1 and 10.1/16 to 10.5.1.1 hswitch_id=0000000000000001 s1_id=0000000000000002 s2_id=0000000000000003 # let dumb switches direct vip to sswitches if [ "$1" == "rt" ]; then curl -X POST -d '{"destination":"10.6.1.1/16", "gateway":"10.4.1.1"}' http://localhost:8080/router/...
true
d43ffee9e4b22cdeb7c9ee2ee29206cc73b3c2cf
Shell
SPriyal/work
/github/script/shell/ApipooldCtrl.sh
UTF-8
877
3.4375
3
[]
no_license
#! /bin/sh ip_name='127.0.0.1' do_kill() { echo shutdown > /dev/tcp/${ip_name}/8014 sleep 2 killall -9 apipoold >/dev/null 2>&1 } do_stop() { do_kill } do_start() { tempdate=`date +%Y%m%d'-'%T` # cp -a ../log/*log ../log/logbak cp ./apipoold ./apipoold.$tempdate ...
true
7158a3a489d70f079355b2a6eddd9687937b3eb3
Shell
Schibsted-Tech-Polska/svd.travis-commands
/bin/tasks/run-php-cs-fixer.sh
UTF-8
272
2.796875
3
[]
no_license
#!/usr/bin/env bash set -e # skip this step if previous has failed if [ "$TRAVIS_TEST_RESULT" = "1" ]; then exit; fi # add code BELOW this line PHPCSFIXER_DIR="$TRAVIS_BUILD_DIR/vendor/friendsofphp/php-cs-fixer" $PHPCSFIXER_DIR/php-cs-fixer --dry-run --verbose fix
true
047909e07f8bf8f86ac375fbec74a752c70b5315
Shell
luckyraul/puppet-zabbix
/templates/scripts/iostat-cron.sh.erb
UTF-8
719
3.40625
3
[]
no_license
#!/bin/bash ################################## # Zabbix monitoring script # # Info: # - cron job to gather iostat data # - can not do real time as iostat data gathering will exceed # Zabbix agent timeout ################################## mkdir -p /var/lib/zabbix-agent-ops # source data file DEST_DATA=/var/lib/za...
true
ffc2bd1cb188c4bfcd83393fa13f1f49d7e313f1
Shell
airstack/core
/core/build/core-slashpackage-install
UTF-8
1,618
3.96875
4
[ "MIT", "Apache-2.0" ]
permissive
#!/bin/sh ###* # Slashpackage install helper script. # # Use this function to install packages from an Airstack compatible slashpackage collection. # # Use: core-slashpackage-install PACKAGE_NAME_1 PACKAGE_NAME_2 # Examples: core-slashpackage-install haproxy # core-slashpackage-install openssh-server wget # #...
true
e5390c56770b1d8898018371f96b8738918cdb89
Shell
oiramario/nanopi-m4-ubuntu-docker
/run.sh
UTF-8
439
2.59375
3
[]
no_license
#!/bin/bash # #set -x NANOPI4_DISTRO=$(pwd)/distro [ ! -d $NANOPI4_DISTRO ] && mkdir -p $NANOPI4_DISTRO NANOPI4_DEVKIT=/opt/devkit [ ! -d $NANOPI4_DEVKIT ] && sudo mkdir -p $NANOPI4_DEVKIT docker run -it \ -v $NANOPI4_DISTRO:/root/distro \ -v $NANOPI4_DEVKIT:/root/devkit \ -v $(pwd)/scripts:/root/scripts...
true
8bea0bb3bae07019f0b970b488826593a45f05dc
Shell
HariTharmalingam/tharmalingam_harishanth_M1_2020_admin
/Exercice_6/script.sh
UTF-8
963
4.28125
4
[]
no_license
#!/bin/bash groupStatus = "notDefined" function listGroups() { for group in $(cat /etc/group ) do tmp=$( echo $group | cut -d: -f1) if [ $1 = $tmp ];then $groupStatus = "exists" else $groupStatus = "dontExists" fi done if [ $groupStatus = "dontExists" ] && [ $2 = "add" ];then ...
true
94c2f6a1c19e1c6282bfb9e90fe137ba9b88ac77
Shell
akshshar/xr-app-manager
/src/installhelpers/helper1/setup_vrfforwarding.sh
UTF-8
3,053
3.796875
4
[]
no_license
#!/bin/sh # # /etc/init.d/setup_vrfforwarding.sh # Subsystem file for "Vrf forwarding" service # # chkconfig: 2345 96 05 # description: Port forwarding across vrfs/netns # # processname: VrfForwardingService # config: /misc/app_host/helpers/vrf_forwarding/config.json # pidfile: /var/run/vrf_forwarding.pid # source fun...
true
e2313849b08c5df523859191851d9162066e9d73
Shell
OwenLiGithub/nocalhost
/scripts/build/dep/installer-job
UTF-8
620
3.28125
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -eu -o pipefail VERSION=${VERSION:-$(git describe 2>/dev/null | sed 's/refs\/tags\///' | sed 's/\(.*\)-.*/\1/' | sed 's/-[0-9]*$//' || true)} GIT_COMMIT_SHA=`git describe --match=NeVeRmAtCh --always --abbrev=40 --dirty` DOCKERFILE="deployments/dep-install-job/Dockerfile" TARGET="dep-installer-j...
true
770be0581d17cc86b6a71b7be4ede79f9b21ca04
Shell
stevenctl/env
/pre-commit
UTF-8
578
3.375
3
[]
no_license
#!/bin/sh changed() { echo $(git --no-pager diff --name-status --no-color --cached | awk '$1 != "D" { print $2 }') } listgo() { echo $(changed \ | grep -v vendor \ | grep '.go$' \ | grep -v '.pb.go' \ | grep -v '.gen.go') } fix_goimports() { ! command -v goimports && exit 0 gofiles=$(listgo) ...
true
adeb05fc3691ff8d83d17e0ce82f8bec0aa7c330
Shell
kdaily/Agora
/get-data-local.sh
UTF-8
499
2.875
3
[ "MIT" ]
permissive
[ -d ../data/ ] || mkdir ../data/ # Version key/value should be on his own line DATA_VERSION=$(cat package.json | grep data-version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]') synapse cat --version $DATA_VERSION syn13363290 | tail -n +2 | while IFS=, read -r id version; do synapse ge...
true
f4d5af971a442e1fa59c32b9ba07326cdf8aad18
Shell
rongcheng2017/coolcar
/server/genProto.sh
UTF-8
1,209
2.96875
3
[ "Apache-2.0" ]
permissive
function genProto { DOMAIN=$1 SKIP_GATE_WAY=$2 PROTO_PATH=./${DOMAIN}/api GO_OUT_PATH=./${DOMAIN}/api/gen/v1 mkdir -p $GO_OUT_PATH protoc -I=$PROTO_PATH --go_out=paths=source_relative:$GO_OUT_PATH ${DOMAIN}.proto protoc -I=$PROTO_PATH --go-grpc_out=paths=source_relative:$GO_OUT_PATH ${DOMAI...
true
81c1cc37788a2306b56178769d258a491b342fd0
Shell
yajamon/dotfiles
/bin/build-latest-vim
UTF-8
716
3.453125
3
[]
no_license
#!/bin/bash readonly VIMREPO=$(ghq root)/github.com/vim/vim if ! test -d $VIMREPO; then echo "Not foind $VIMREPO" >&2 exit 1 fi cd $VIMREPO git fetch --all --prune if [ $(git rev-parse master) = $(git rev-parse origin/master) ]; then param="" while [ -z $param ]; do echo -n "Already up-to-dat...
true
2a7365f1155d97659667e84b1dd0a3af9878ab75
Shell
mnvoh/OpenStreetMap-Docker
/postgres/docker-entrypoint.sh
UTF-8
1,163
4.09375
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # This script will run as the postgres user due to the Dockerfile USER directive set -e # Setup postgres CONF file source /setup-conf.sh # Setup ssl source /setup-ssl.sh source /setup-database.sh # Setup pg_hba.conf source /setup-pg_hba.sh # Running extended script or sql if provided. # Useful...
true