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
957a38849beee787f493362bdcac43d410cf01c7
Shell
rust-random/book
/tests/generate.sh
UTF-8
303
2.875
3
[ "MIT", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
mkdir -p src cat << EOF > src/lib.rs #![allow(non_snake_case)] #[macro_use] extern crate doc_comment; EOF for doc in ../src/*.md do NAME=$(basename $doc .md) NAME=${NAME//./_} NAME=${NAME//-/_} echo -e "doctest\041(\"../$doc\");" > src/$NAME.rs echo "mod $NAME;" >> src/lib.rs done
true
37cdbd9cee261d076cb99fcdc7a458aac8a7a989
Shell
amusecode/amuse
/src/amuse/community/ph4/src/test_nstab.sh
UTF-8
443
3.4375
3
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
#!/bin/bash # Check that the Fortran and C versions of nstab actually return the # same results! Run n random tests. n=100 if (( $# > 0 )); then n=$1 ; fi make -f Makefile.ph4 test_nstab i=0 bad=0 while (( $i < $n )); do i=$((i+1)) s=`./random_nstab` f=`ftest_nstab $s` c=`ctest_nstab $s` if [ $...
true
f8e3685c405e08bcb47c039c9552d421dec2e868
Shell
mdjnewman/dotfiles
/bin/gnucash-price-quotes.sh
UTF-8
600
3.25
3
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
#!/usr/local/bin/bash export PATH=/usr/local/bin:$PATH # Not strictly, but my .bash_profile does require it if ((BASH_VERSINFO[0] < 4)); then echo "Sorry, you need at least bash-4.0 to run this script." >&2; exit 1; fi export HOME=/Users/mnewman . "$HOME/.bash_profile" > /dev/null OUT="$(/Applications/Gnucash.app/...
true
596b97f00706577125707b42cdabae7d6e4b4bec
Shell
yuuki/mackerel2route53
/script/envfile
UTF-8
408
3.8125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e -o pipefail # - Usage: # envfile ENV_FILE_PATH CMD # # - ENV_FILE format # $ cat /etc/default/aws # AWS_ACCESS_KEY_ID='xxxxxx' # AWS_ACCESS_SECKRET_KEY='yyyyyy' # AWS_REGION=ap-northeast-1 env_file_path="$1" cmd="${@:2:($#-1)}" if [ -z "${cmd}" ]; then echo 'CMD required' >&2 exit 1 fi f...
true
6caccd7e60ca8a8aa0352a28dc49126de699e5b8
Shell
hjanime/Xert_paper
/NGS_downstream/master/master_DiffEnrichment.sh
UTF-8
3,730
3.6875
4
[ "MIT" ]
permissive
#!/bin/bash # Master script for differential binding analysis using Diffbind and diffReps cnt_dir='' atac_dir='' cnt_peaks='' atac_peaks='' work_dir=$(pwd)'/' path='' help() { echo "Performs differential binding analysis for CUT&Tag and ATAC-seq." echo echo "Syntax: ./master_diffEnrichment.sh [-a|b|c|d|p|t|h]...
true
ae4fd5b2a6555584ae512c3ca8ef267ab5ad4a12
Shell
jeaye/safepaste
/tool/clean-expired
UTF-8
337
3.65625
4
[]
no_license
#!/usr/bin/env bash set -eu dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" function usage { echo "usage: $0 <paste directory>" exit 1 } [ ! $# -eq 1 ] && usage for paste in $(find "$1" -mmin +0 -type f | egrep -v 'burn|disable'); do # Only remove if it's writeable [ -w "$paste" ] && rm -fv "$paste" "$...
true
0bee5c8ad5b40326623a948be56044589c625e48
Shell
peterfpeterson/dotfiles
/bin/watchman.sh
UTF-8
3,115
4.25
4
[ "MIT" ]
permissive
#!/bin/sh ###################################################################### # Script to run [watchman](https://facebook.github.io/watchman/) ###################################################################### help () { echo "usage: watchman.sh <command> [texfile]" echo "" echo "help Show this hel...
true
96d45c4a07608491c32843b1498be03f7930b26d
Shell
petronny/aur3-mirror
/crack/PKGBUILD
UTF-8
946
2.640625
3
[]
no_license
# Contributor: Lex Black <autumn-wind at web dot de> # Contributor: Arno Rehn <arno@arnorehn.de> pkgname=crack pkgver=0.10 pkgrel=1 pkgdesc="LLVM based scripting language" arch=(i686 x86_64) url="http://code.google.com/p/crack-language/" license=('MPL') depends=('llvm-crack') makedepends=('mesa' 'pcre' 'gtk2' 'sdl' 'l...
true
41c197bb2cedf60980dfee0857fc7621db24b229
Shell
danielwii/benkyo
/bin/update_assets.sh
UTF-8
409
2.625
3
[]
no_license
#!/bin/bash set -ex echo '[x] update assets...' if type yarn 2>/dev/null; then yarn fi rm -rf ui/static/libs ui/static/fonts mkdir -p ui/static/libs mkdir -p ui/static/fonts cp -f node_modules/bulma/css/bulma.css ui/static/libs/bulma.css cp -f node_modules/font-awesome/css/font-awesome.css ui/static/libs/font-awes...
true
0c3d8bc1f029ace213cb4b2c0355d5d9c5db6671
Shell
Ellian-aragao/IFB-EDA
/2_Listas/compileLibrary.sh
UTF-8
2,191
4.03125
4
[ "Unlicense" ]
permissive
#!/bin/bash #faz a compilação da biblioteca compile_library() { echo 'Compilando biblioteca LinkedList' gcc -c $compileFlags /home/ellian/code/faculdade/ed1/2_Listas/LinkedList/linkedList.c /home/ellian/code/faculdade/ed1/2_Listas/LinkedList/testInterface/testLinkedListInterface.c } # gera binário final utilizand...
true
c8cf2c994a80fafa556b3fa3b507a29769840ef7
Shell
erezhuri/erez-py
/bash_examples/Telnet_Basic_Test.sh
UTF-8
8,116
3.484375
3
[]
no_license
#!/bin/sh # the set of soubroutines below/above help to test the FIXation envitonment # # two ways are appearing for that. 1) randlomly test issues. 2) specifically # # test the things related to certain Jira items, for example # # Please note, that what is tested is easily modified via chaning the it...
true
673435fbaa0fafff653f16bb8e184a078e6a247f
Shell
DheerajJoshi/cloud-platform-how-out-of-date-are-we
/updater-image/update.sh
UTF-8
1,591
3.578125
4
[ "MIT" ]
permissive
#!/bin/sh NAMESPACE="how-out-of-date-are-we" API_KEY_SECRET="how-out-of-date-are-we-api-key" main() { set_api_key helm_releases terraform_modules documentation repositories } set_kube_context() { aws s3 cp s3://${KUBECONFIG_S3_BUCKET}/${KUBECONFIG_S3_KEY} /tmp/kubeconfig kubectl config use-context ${KU...
true
cd45fbdd1e872a8f8dc392ae1684098d73a3bb43
Shell
benbacon/terraform-jitsi
/publicnetwork/install_jitsi.tpl
UTF-8
2,662
3.28125
3
[]
no_license
#!/bin/bash set -e export DEBIAN_FRONTEND=noninteractive export HOSTNAME="${domain}" echo "${certificate}" > /etc/ssl/$HOSTNAME.crt echo "${key}" > /etc/ssl/$HOSTNAME.key chmod 644 /etc/ssl/$HOSTNAME.* echo -e "nameserver 1.1.1.1\nnameserver 1.0.0.1" >> /etc/resolv.conf # Harden SSH sed -i 's/#PermitRootLogin prohib...
true
3c6f096fb4a1738d561075ff3f2046bc88d9b8e8
Shell
DavidCohen17/ImpalaToGo
/bin/gen-cache-dataset.sh
UTF-8
191
2.828125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # $1 output path # $2 number of files # $3 size in Kilobytes for i in `seq 1 $2`; do dd if=/dev/urandom of=$1/output$i.dat bs=1024 count=$3 done
true
450529da696b5495986eb1289ef349b724e8ec2c
Shell
acg/trigger
/package/docs
UTF-8
275
2.953125
3
[]
no_license
#!/bin/sh shout() { echo "package/docs: $*" >&2; } barf() { shout "fatal: $*"; exit 111; } safe() { "$@" || barf "cannot $*"; } #### MAIN umask 022 test -d package || barf "no package directory" exec package/build -c compile-doc -s doc -d html -b make ${1+"$@"} exit 111
true
bcc5afd785703c56aa30a4b7b1dd36b033210b0b
Shell
RobinAlgayres/beer
/recipes/zrc2019/decode_beer.sh
UTF-8
2,273
3.53125
4
[ "MIT" ]
permissive
#!/usr/bin/env bash ####################################################################### ## SETUP if [ $# -ne 3 ]; then echo "usage: $0 <wav_dir> <embedding_dir> <clean>" exit 1 fi # Directory structure datadir=data_run feadir=features_run expdir=exp wav=$1 embedding_dir=$2 # Data db=zrc2019 dataset=test...
true
badeb6fa4ecd5af82d0f7189be728482c8a9869e
Shell
guduhanyan/QRSdetection
/perf_test.sh
UTF-8
346
3
3
[]
no_license
#!/bin/bash NUM_TESTS=10 cd ./src make clean make cd ../test make clean make rm perf_report.txt touch perf_report.txt export OMP_NUM_THREADS=4 for (( i=1; i<=$NUM_TESTS; i++ )) do echo "Test no. $i" make run cat qrs_log.txt >> perf_report.txt done cd .. ./perf_test_report.py -b ./test/perf_report.txt -t Q...
true
61a5e2a6d3b5d1b47d5cad74f0207df5a72ab515
Shell
haobtc/blockstore
/bin/check_tail_cnt.sh
UTF-8
487
3.28125
3
[]
no_license
#!/bin/bash netname=$1 . setup-env.sh tip_height=`python bin/get_tip_height.py $netname` start_height=`expr $tip_height - 200` python bin/check_cnt_txes.py $netname $start_height 300 | grep 'cnt mismatch' | awk '{print $3}' | tee /tmp/mismatch.txt cnt=`wc -l /tmp/mismatch.txt|awk '{print $1}'` echo `date` checkin...
true
de3c9fb1510f83c4ccd489c41058286935a0236f
Shell
Xceptance/XLT-Packer
/scripts/common/xlt-home/start-xlt.sh
UTF-8
2,533
4.1875
4
[ "MIT" ]
permissive
#!/bin/bash # What is my name? SCRIPTNAME=`basename $0` # Some defaults AGENT_PREFIX=ac DOWNLOAD_ARCHIVE=xlt.zip START_PORT=8500 PASSWORD_FILE=/home/xlt/.acpass ARCHIVE_LOCATION="${1}" TARGET_DIR="${2}" AGENT_DIR="$TARGET_DIR/ac" function help() { echo "Start XLT." echo " xlt-archive-file : Archive conta...
true
9bdafb4ade6c6274f662ac1cd76ff0004785a442
Shell
bellmit/SVNrepo
/Invessence/modules/emailer/src/main/sh/stop_email.sh
UTF-8
271
2.90625
3
[]
no_license
#!/bin/sh LOG=/inv/log JAVA_HOME=/usr/bin LIB_HOME=/inv/services/lib LOG_HOME=/inv/log export CLASSPATH=${CLASSPATH}:${LIB_HOME} for jlist in "`ps -eaf | grep -i emailer | grep -v grep`" do id=`echo $jlist | gawk -F' ' '{print $2}'` echo kill $id kill -9 $id done
true
7791cd0f29fe4fb3fbbdb25879d82fac99118cb8
Shell
gadams999/iot-static-ip-endpoints
/source/run-all-tests.sh
UTF-8
1,628
3.109375
3
[ "LicenseRef-scancode-unknown-license-reference", "GPL-2.0-only", "Apache-2.0" ]
permissive
#!/bin/bash # # Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may not use # this file except in compliance with the License. A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or i...
true
8d84865feb5859a106d90a75ee3cc7a4aecbbe8a
Shell
Dhilibanachilles/Arithmetic-Computation
/arithmeticComputationq8.sh
UTF-8
617
3.515625
4
[]
no_license
#!/bin/bash -x read -p "Enter the vlaue of a :: " a read -p "Enter the vlaue of b :: " b read -p "Enter the vlaue of c :: " c declare -A results results[one]=$(( $a + $b *$c )) results[two]=$(( $a * $b + $c )) results[three]=$(( $c + $a / $b )) results[four]=$(( $a%$b *$c )) #Array i=0 a[i++]=${results[one]} a[i++]=...
true
b57165f98e73f1d92c37eb23e5e1e4ac02e7576a
Shell
pixelastic/oroshi
/config/zsh/aliases/jump.zsh
UTF-8
228
2.828125
3
[]
no_license
# Mark / Jump # Source: https://jeroenjanssens.com/navigate/ export MARKPATH=$HOME/.marks alias m='mark' alias mR='unmark' alias ml="ls $MARKPATH" function j { cd -P "${MARKPATH}/$1" 2>/dev/null || echo "No such mark: $1" }
true
84e865c1abc379f86f071f1e0905686cf0c1b8e8
Shell
RussBabb/rocket2020
/setup/conky/grid
UTF-8
143
2.78125
3
[]
no_license
#!/bin/bash GRID=$($HOME/bin/conky/get-grid) GRIDCH=$(echo $GRID | grep -i JJ00) if [ -z "$GRIDCH" ]; then echo $GRID else echo "NO GPS" fi
true
1a66534a62e7df8d56b9ef72a26fa217e9222974
Shell
sushantmimani/reverse_proxy
/run.sh
UTF-8
309
3.203125
3
[]
no_license
#!/usr/bin/env bash control_c() # run if user hits control-c { echo "Bring down service and freeing up associated volumes" docker-compose down -v } trap control_c SIGINT if pip install --user -r requirements1.txt && python unit_tests.py ; then docker-compose up else echo "Tests failed" fi
true
be690d8dfac63f3e15adc84fb72bd083114ca49f
Shell
yejunhai/helloworld
/CPU内存利用率.sh
UTF-8
172
2.703125
3
[]
no_license
#!/bin/bash #CPU利用率: $cpu cpu=`top -n 1|awk '/%Cpu/{printf("%.2f%\n",(100-$8))}'` #内存利用率: $mem " mem=`free|awk '/Mem:/{printf("%.2f%\n",($2-$4)/$2*100)}'`
true
b189a9454b18e29610d8a4df7c0d99bb2263c82e
Shell
AppSecAI-TEST/lightfish
/.travisci/testtravis
UTF-8
250
2.75
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env sh for stage in unittest integrationtest systemtest do export BUILDSTAGE=$stage for action in install before_script test after_script do echo Running $stage / $action .travisci/script $action done done
true
e1945d583fa21f99d03eb2be9910d13a6edd3356
Shell
kokorinosoba/dotfiles
/etc/init/setup/terminal-solarized.sh
UTF-8
247
2.625
3
[]
no_license
#!/usr/bin/env bash # install solarized color scheme to default terminal readonly TMPDIR=${TMPDIR%/} git clone https://github.com/tomislav/osx-terminal.app-colors-solarized.git $TMPDIR/Solarized && open $TMPDIR/Solarized/Solarized\ Dark.terminal
true
f587fc09880e24d389a321bfd6a0ea360df804f9
Shell
atweiden/voidpkgs
/srcpkgs/jitterentropy-rngd/template
UTF-8
701
2.625
3
[ "Unlicense", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain" ]
permissive
maintainer="nox" pkgname="jitterentropy-rngd" version=1.2.8 revision=1 short_desc="Jitter RNG Daemon" homepage="https://www.chronox.de/jent.html" license="BSD-3-Clause, GPL-2.0-only" distfiles="https://www.chronox.de/jent/$pkgname-$version.tar.xz" checksum="c4480c67d888fd9c6c9c3bcf06c785578ad81984ec978da3c33d16aa019664...
true
92692832ba3d4ffb2d7dfd3f5cc48c5fdfeabe49
Shell
shahkamran/aws-cloudwatch-custom-monitor-scripts
/aws_cloudwatch_publish.sh
UTF-8
2,477
3.171875
3
[]
no_license
#!/bin/sh # # SQL Metrics max_connections=$(/usr/local/bin/mysqlmon.sh max_connections) max_used_connections=$(/usr/local/bin/mysqlmon.sh max_used_connections) threads_connected=$(/usr/local/bin/mysqlmon.sh threads_connected) connections=$(/usr/local/bin/mysqlmon.sh connections) # # OS Metrics Memory_Utilisation=$(free...
true
e813589872cae3036cf713e6df70f6e1dc2147e5
Shell
mstange22/Exercism
/bash/resistor-color-trio/resistor_color_trio.sh
UTF-8
999
4.03125
4
[]
no_license
#!/usr/bin/env bash declare -A number_map=( [black]=0 [brown]=1 [red]=2 [orange]=3 [yellow]=4 [green]=5 [blue]=6 [violet]=7 [grey]=8 [white]=9 ) main () { sum="" # check colors and add digits for color in $1 $2; do ! [[ ${number_map[$color]} ]] && { echo "invalid color"; exit 1; } s...
true
bf22ccf6cfb67c1df53531602865ee9614cb9785
Shell
lewis8879456/astralgate
/packages/net/astral/files/lib/keeper-utils.sh
UTF-8
1,002
3.5625
4
[]
no_license
#!/bin/sh [ -e /etc/functions.sh ] && . /etc/functions.sh || . ./functions.sh keeper_generate_config() { local enabled local secret local storage config_get enabled $1 enabled config_get secret $1 secret config_get storage $1 storage echo "uid = root gid = root use chroot = yes pid file = /var/run/rsy...
true
dbdf6bcd45a9b8614602eb0d6b7c210c169e0683
Shell
DavidHerel/OSY
/hw1/hw1.sh
UTF-8
1,645
4.125
4
[]
no_license
#!/bin/bash #declaring functions write_file(){ if [ -L "${input:5}" ]; #lookin for a file then rdl=$(readlink ${input:5}) echo "LINK '${input:5}' '${rdl}'" elif [ -f "${input:5}" ]; #lookin for a symbolic link then number_lines=$(wc -l < "${input:5}") ...
true
b482a16797fb1317633f2555031b7705dc9022ca
Shell
RakhithJK/research-automation
/dumpbootargs
UTF-8
1,034
3.390625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash INFILE="$1" COMPANION=$(ls | grep "$1.ARM64") COMPANION="$COMPANION" if ! [ -f "$COMPANION" ]; then if ! [ -f "$INFILE" ]; then echo "Usage: $0 [kernelcache]" exit 1; else echo "Analyzing kernel..." jtool2 --analyze "$INFILE" > /dev/null COMPANION=$(ls | grep "$1.ARM64") COMPANION="$C...
true
c3bbafc95e20f2363bb51c97cb6e1f3b7cb156b7
Shell
jhliberty/AAF
/build/tools/FilterLog_i686Linux
UTF-8
2,024
2.90625
3
[]
no_license
#! /bin/bash ############################################################################### # # $Id: FilterLog_i686Linux,v 1.4 2009/06/01 11:46:49 stuart_hc Exp $ $Name: V116 $ # # The contents of this file are subject to the AAF SDK Public Source # License Agreement Version 2.0 (the "License"); You may not use this ...
true
b6e16aa6563713d9635d4101db2b1c832e2601b5
Shell
ChrisHarte/dotfiles
/.zshrc
UTF-8
2,732
2.75
3
[]
no_license
# Oh my zsh integration ZSH=$HOME/.oh-my-zsh # Plugins plugins=(git rbenv) #ZSH_THEME="agnoster-light" ZSH_THEME="robbyrussell" # Completion dots COMPLETION_WAITING_DOTS="true" # Disable autocorrect on enter unsetopt correct_all # Now load oh-my-zsh source $ZSH/oh-my-zsh.sh # Show completion on first TAB setopt m...
true
bf7ca2cfc96a3ed9774eceaca40a50622830ecbe
Shell
gobattle/oh-my-zsh
/custom/example.zsh
UTF-8
439
2.765625
3
[ "MIT" ]
permissive
# Add yourself some shortcuts to projects you often work on # Example: # # brainstormr=/Users/robbyrussell/Projects/development/planetargon/brainstormr # Making SSH_AUTH_SOCK Work Between Detaches in Tmux if [ ! -z "$SSH_AUTH_SOCK" -a "$SSH_AUTH_SOCK" != "$HOME/.ssh/agent_sock" ] ; then unlink "$HOME/.ssh/agent_so...
true
73b2860f6ce55369b301e96710955b327b72e91e
Shell
isahakukamil/reuben_scripts
/sec_module2/x11.sh
UTF-8
1,275
3.828125
4
[ "MIT" ]
permissive
#!/bin/bash #---MOP WORK PACKAGE TAG: WP022BISV3--- #---DESC: #---SETTING X11 PROTOCOL FORWARDING--- #---SCRIPT BY REUBEN A. BOAKYE #SIGNUM: EBOAREU--- #---All scripts run are logged into a single log file called "script.log" #with file path /var/log/script.log--- file=/etc/ssh/sshd_config if test -f "$file"; then...
true
4f46080a7895be318b4bb10bdc19dee2852d2eff
Shell
abhimanyuZ/WiFiAutoLogin
/WifiLogin.sh
UTF-8
276
2.6875
3
[ "MIT" ]
permissive
#!/bin/bash curl -k -s --data "RequestType=Login&UE-Username=Your_Username&UE-Password=Your_Password" https://scg.ruckuswireless.com:9998/SubscriberPortal/login | grep 'Sign Out' &> /dev/null if [ $? == 0 ]; then echo "WiFi logged in!" else echo "Not connected to WiFi!" fi
true
da2004a4fd253ff00beb646eb810f4d6a23812da
Shell
SeltmannSoftware/BrickPiES
/brickpies.sh
UTF-8
3,893
3.515625
4
[]
no_license
#!/bin/bash operation=$1 shift for var in "$@" do case "$var" in led) case "$operation" in disable) echo "Disabling power LED...editing /boot/config.txt" if grep -q '#enable_uart=1' /boot/config.txt; then echo 'Power LED support already disabled!'; el...
true
42bbe202f0f32095e5a24b22944de53e7c240f89
Shell
zap0xfce2/Scripts
/Sicherung.sh
UTF-8
2,027
3.609375
4
[]
no_license
#! /bin/sh # # einzutragen mit crontab -e # 25 23 * * * /root/Sicherung.sh # ########################## ## Konfiguration Anfang ## ########################## # Welches Verzeichnis soll gesichert werden? quelle=/daten # Welches Medium soll gemountet werden? externehdd=/dev/sdx1 # Mailadresse des Admins adminmail=...
true
5fd1b0e8e23b0526976b714e1fdeac8cd04f9c56
Shell
JasonGross/coq-debian-build-scripts
/ocaml-stuff/03-build-debian-only-source.sh
UTF-8
326
3.03125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash set -ex . versions.sh for i in ${DSCS} ${DEBIAN_DSCS}; do FOLDER="$(to_folder_name "$i")" pushd "debian-sources/$FOLDER" || exit $? EXTRA_ARGS="$(extra_debuild_args_for "$i")" debuild --prepend-path "$(dirname "$(which jbuilder)")" -d ${EXTRA_ARGS} -S || exit $? # -us -uc popd...
true
8d843b622254bc64e5c44285926769701e561c5b
Shell
eyhl/issm
/trunk/externalpackages/doxygen/install.sh
UTF-8
343
3.140625
3
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
#!/bin/bash set -eu #Some cleanup rm -rf install src mkdir install #Download latest version svn co https://svn.code.sf.net/p/doxygen/code/trunk src #Configure doxygen cd src && ./configure --prefix "$ISSM_DIR/externalpackages/doxygen/install" if [ $# -eq 0 ]; then make else make -j $1 fi #Install doxygen make ins...
true
e254490fce76a6dd795e05b6920138eef273a3ff
Shell
pedrohenriquepires/dotfiles
/hyper/install.sh
UTF-8
243
3.375
3
[]
no_license
#!/bin/bash DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) source=$DIR/.hyper.js target=$HOME/.hyper.js if [ ! -L "$target" ]; then echo "Copying $source to $target" yes | cp -rf $source $target fi echo "Hyper setup successful."
true
726d9a2e5a4aa5c43bc14be9023c833df3739d45
Shell
BowenLi1994/Interactive-Graph-Search
/experiment/script/wide1000.sh
UTF-8
561
2.8125
3
[]
no_license
#!/bin/bash COMMAND=../sequence METHOD1=outdegree METHOD2=baseline METHOD3=comprehensive METHOD4=compared DATASET=combine1000 OUT_PATH=/home/bowen/igs_result/wide1000/ $COMMAND $METHOD2 $DATASET > ${OUT_PATH}${DATASET}_${METHOD2}.result & $COMMAND $METHOD3 $DATASET 1 > ${OUT_PATH}${DATASET}_${METHOD3}.result & $COMM...
true
f1d1dad4b995238766c0065ecd7d70c820a02a20
Shell
ros4hri/ros4hri
/deploy_pipeline.sh
UTF-8
827
3.515625
4
[]
no_license
#! /bin/bash set -e # enable error checking -> while return on first error set -o errexit INSTALL_PREFIX=`pwd`/ros4hri-dev if [ -d "$INSTALL_PREFIX" ]; then rm -rf $INSTALL_PREFIX fi mkdir -p $INSTALL_PREFIX if [ -d "tmp-dev" ]; then rm -rf tmp-dev fi mkdir -p tmp-dev && cd tmp-dev ### 1. Clone & compile...
true
24a497cd2dccbecfea99ab2d56d29a67ec83a03d
Shell
agoessling/defaults
/setup_linux.sh
UTF-8
2,426
3.296875
3
[]
no_license
#!/bin/bash # Exit on errors, undefined variables, and pipe failures. set -euo pipefail source "$(dirname "$0")/terminal_config.sh" # install apt packages. sudo apt-get update sudo apt-get -y install \ git \ pip \ tmux \ dconf-cli \ uuid-runtime \ npm \ python3-venv \ # Install tmux conf...
true
610090f5b911f8ce047fcb07679065f3d1111fc3
Shell
edgarxue/shell
/zabbix_config_backup.sh
UTF-8
1,588
3.296875
3
[]
no_license
#!/bin/bash # # for : back up zabbix config # by: edgar # #================================================================ source /etc/bashrc source /etc/profile #================================================================ # config mysql basic message MySQL_USER= MySQL_PASSWORD= MySQL_HOST= MySQL_PORT=3306 MySQ...
true
0fd37259638e33fd1b73d4ef8d031f0ac6d2ffb4
Shell
fherbine/sysAdmin42
/init/scripts/04
UTF-8
419
2.890625
3
[]
no_license
#!/bin/bash if [ -e "/var/log/mdchk" ] then md5sum /etc/crontab > /tmp/mdchk diff /tmp/mdchk /var/log/mdchk > /tmp/mddf df=`cat /tmp/mddf` if [ "$df" = "" ] then echo "no changes" else echo "The file /etc/crontab has been updated." | mail -s crontab_updt root fi md5sum /etc/crontab > /var/log/mdchk else c...
true
e786cef1594023ab7f084404c86551c14e4ed9ae
Shell
kramse/kramse-labs
/web-security/programs/menu.sh
UTF-8
877
2.890625
3
[ "BSD-2-Clause" ]
permissive
#!/bin/sh stty erase "ˆH" kill "ˆU" intr "ˆC" tabs echo stty erase "ˆH" kill "ˆU" intr "ˆC" tabs /usr/ucb/uptime echo trap "" 2 cat /v/adm/motd echo "Enter help for command list." while true do trap continue 2 echo "research gateway> \c" if read line then case "$line" in "") continue;; esac set -- $line ...
true
f3c65b92990c8840a80530901be093ec3b1eb82c
Shell
yujiny97/Mushroom_classification
/0714(57data)newversion/cnt.sh
UTF-8
119
2.6875
3
[]
no_license
#!/bin/bash for x in `find ./train/ -maxdepth 2 -mindepth 1 -type d -print` do echo $x, `find $x -type f|wc -l`; done
true
f6929cc4b9b503f9a3781a7b2707cef0f7e309e8
Shell
marcelloc/Unofficial-pfSense-packages
/pkg-e2guardian5/files/usr/local/pkg/e2guardian_rc.template
UTF-8
1,266
3.203125
3
[]
no_license
#!/bin/sh # $FreeBSD: ports/www/e2guardian-devel/files/e2guardian.in,v 1.6 2012/01/14 08:57:12 dougb Exp $ # PROVIDE: e2guardian # REQUIRE: NETWORKING SERVERS squid # KEYWORD: shutdown # Define these e2guardian_* variables in one of these files: # /etc/rc.conf # /etc/rc.conf.local # /etc/rc.conf.d/e...
true
c6c6b3a780e6308d6bdf448911eb22bf38f3e8c8
Shell
Ting007/xml-security
/versions.alt/orig/v2/xml-security/depends.sh
UTF-8
505
2.625
3
[ "Apache-2.0", "BSD-2-Clause", "Apache-1.1" ]
permissive
#!/usr/local/bin/bash CLASSPATH=/nfs/spectre/u5/aristot/subjects/lib:./build/classes for i in ../../common/libs/*.jar do CLASSPATH=$CLASSPATH:$i done export CLASSPATH java junit.textui.SelectiveTestRunner -names ${1} | sed -e 's/^[0-9]*:[ ]*//' -e 's/\.[^.]*$//' | sort -u | ( while read LINE do DLIST="${DL...
true
b5528a4a616ac5b64f5e82a859f4941f9b7416f8
Shell
yahoopete/redirector
/tools/full_tests.sh
UTF-8
868
3.3125
3
[ "MIT" ]
permissive
#!/bin/sh set -e . tools/env status "DEPLOY_TO=$DEPLOY_TO" mappings="dist/full_tests_mappings.csv" status "Combining all known mappings into $mappings ..." mkdir -p dist { { IFS=, read titles while read site rest do cat data/mappings/$site.csv done } < d...
true
5994fe8819b3f3c50ec4f1cd72fcbaf3e8e0195a
Shell
gnowledge/gstudio-docker
/scripts/code-update.sh
UTF-8
2,845
3.5
4
[]
no_license
#!/bin/bash #This script calls various scripts inside the gstudio container for the updation of codes # Following variables are used to store the color codes for displaying the content on terminal black="\033[0;90m" ; red="\033[0;91m" ; green="\033[0;92m" ; brown="\033[0;93m" ; blue="\033[0;94m" ; purple="\033[0;95m"...
true
2bc80218e949df2a0bfe92218b6e8941095315f6
Shell
cloudfoundry-attic/mega-ci
/scripts/ci/run-consats/task
UTF-8
4,192
3.25
3
[ "Apache-2.0" ]
permissive
#!/bin/bash -exu export ROOT="${PWD}" export CONSUL_RELEASE_VERSION="99999+dev.$(date +%s)" export STEMCELL_VERSION="$(cat ${ROOT}/stemcell/version)" export TURBULENCE_RELEASE_VERSION="$(cat ${ROOT}/turbulence-release/version)" export BOSH_AWS_CPI_RELEASE_VERSION="$(cat ${ROOT}/bosh-aws-cpi-release/version)" export LA...
true
8cda373b60b812718766823248991e421acabb11
Shell
demokratikollen/demokratikollen
/provision/windows.sh
UTF-8
1,617
3.703125
4
[]
no_license
#!/bin/bash # # Windows shell provisioner for Ansible playbooks, based on KSid's # windows-vagrant-ansible: https://github.com/KSid/windows-vagrant-ansible # # @todo - Allow proxy configuration to be passed in via Vagrantfile config. # # @see README.md # @author Jeff Geerling, 2014 # @version 1.0 # # Uncomment if behi...
true
38101bee1ae72a148f14de2a19e7ace80a36aa89
Shell
glamorous/dotfiles
/bootstrap.sh
UTF-8
2,089
4.125
4
[ "MIT" ]
permissive
#!/usr/bin/env bash execute_step() { show_header print_step $1 "$2" print_with_newline ask_for_confirmation "Are you sure you want to execute the script?" if answer_is_yes; then print_after_newline "" "print_with_newline" source "$MAIN_DIR/resources/steps/$3" else pri...
true
ebfe6779b24e4dfdb69fddcbcf793b1310f5756b
Shell
OlBiMaCooJam/heaven-games
/deploy.sh
UTF-8
1,060
2.90625
3
[]
no_license
#!/bin/bash DOCKER_APP_NAME=heavenApp DOCKER_DB_NAME=mydb #DOCKER_NGINX_NAME=heavenNginx EXIST_BLUE=$(docker-compose -p ${DOCKER_APP_NAME}-blue -f docker-compose.blue.yml ps | grep Up) EXIST_DB=$(docker-compose -p ${DOCKER_DB_NAME} -f docker-compose.db.yml ps | grep Up) #EXIST_NGINX=$(docker-compose -p ${DOCKER_NGI...
true
56de26d0f62f14a20b452ec0cfb3a4c0b30a0d6a
Shell
c10b10/sh
/[www]sitedown
UTF-8
564
3.703125
4
[]
no_license
#!/bin/bash dname= while [[ $dname = "" ]]; do echo -n "Enter site name (domain.com): " read dname done if [ -x /var/www/$dname ]; then # Disable site a2dissite $dname service apache2 restart # Remove files rm -rf /var/www/$dname # Remove database dbname=`echo $dname | sed 's/\./...
true
bcfb9cd60160076651095a4a65ffcca4642b46ce
Shell
akinozgen/bin
/openbsd_bin/vol
UTF-8
669
3.9375
4
[ "MIT" ]
permissive
#!/bin/sh # # http://github.com/mitchweaver/bin # # simple OpenBSD volume wrapper # usage() { >&2 echo 'usage: vol [-i] [-d] [-s]' ; exit 1 ; } inc() { mixerctl -q outputs.master=+"$1" ; } dec() { mixerctl -q outputs.master=-"$1" ; } get() { printf '%s%%\n' $(( $(mixerctl -n outputs.master) * 100 / 255 )) ; } _set()...
true
d23b04c0064ae998659727b0ec5a78e4fcd8899f
Shell
srichavalimsft/benchmarks
/scripts/aeron/remote-cluster-benchmarks
UTF-8
12,018
3.34375
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/usr/bin/env bash ## ## Copyright 2015-2021 Real Logic Limited. ## ## 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 b...
true
c78be3372f36a8dac229e5d7a1615431734f685e
Shell
ralucah/cachepj
/scripts/populate.sh
UTF-8
613
3.40625
3
[]
no_license
#!/bin/bash ################################### K=6 CHUNKS=(8 16 32) HTDOCS="/usr/local/apache2/htdocs/" SUDO="sudo" ################################### function populate_full { for C in ${CHUNKS[@]} do FULL=$(( $C * $K )) echo "Full: $FULL MB" $SUDO dd if=/dev/urandom of=$HTDOCS/$FUL...
true
8889ef11011847d0f4f35f00f985ae6bdbdd5790
Shell
wor/abs-repo
/aggregate/PKGBUILD
UTF-8
774
2.734375
3
[]
no_license
# Maintainer: josephgbr <rafael.f.f1@gmail.com> # Contributor: Mark Smith <markzzzsmith@yahoo.com.au> # Contributor: Esa Määttä <wor@iki.fi> pkgname=aggregate pkgver=1.0.2 pkgrel=3 pkgdesc="A tool for aggregating IPv4 CIDR networks" arch=('i686' 'x86_64') url="http://www.vergenet.net/linux/aggregate/" license="GPL" dep...
true
6c73b7886d72d7dcc2cc940901147f099f7ae5fe
Shell
pj0616/ctakes-docker
/bin/runReaderContainer.sh
UTF-8
296
3.078125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash if [ ! -f env_file.txt ]; then echo "ERROR: File env_file.txt not found." echo " This script (" $0 ") requires an env_file.txt file." exit 1 fi shared_dir=`pwd`/shared docker run --name i2b2-reader --env-file env_file.txt -v $shared_dir:/shared -d i2b2-reader
true
dba91ea49393279b7f717be6fd90568dc9b2474f
Shell
Gilwyad/mailnesia.com
/tools/psql-create-tables.sh
UTF-8
2,864
3.84375
4
[]
no_license
#!/bin/bash # This script can be run initially to create all tables and necessary relations. #arguments to psql psqlArgs="--tuples-only --no-psqlrc --username=mailnesia --quiet"; # Partitioning is used, the key being the id because that's the only # value that needs to be unique in the whole table across the partiti...
true
79a6c2d2a13b1859a4c713e00a170d43cbda6584
Shell
j0ma/morph-seg
/src/segment-with-categories.sh
UTF-8
4,198
3.921875
4
[]
no_license
#!/bin/bash set -euo pipefail # Created by argbash-init v2.8.1 # ARG_OPTIONAL_SINGLE([input]) # ARG_OPTIONAL_SINGLE([output]) # ARG_OPTIONAL_SINGLE([model-binary]) # ARG_OPTIONAL_SINGLE([model-type]) # ARG_HELP([<The general help message of my script>]) # ARGBASH_GO() # needed because of Argbash --> m4_ignore([ ### S...
true
d9b66eac85d4fb2fc8f9a08dafe863a725061c6d
Shell
pranav/cs5700
/Project3/ex2/Makefileex2.sh
UTF-8
334
3.03125
3
[]
no_license
#!/bin/sh VARIANT=$1 for file in $(ls $VARIANT); do latency=$(echo $(./latency.py $VARIANT/$file) | sed 's/ /,/g') droprate=$(echo $(./droprate.py $VARIANT/$file) | sed 's/ /,/g') throughput=$(echo $(./throughput.py $VARIANT/$file) | sed 's/ /,/g') echo $file ',' $latency ',' $droprate ',' $throughput | sed '...
true
6c08a182b2daed9cde604bbb5ff01a7f3e198baf
Shell
doc22940/ghindex
/00_create_watch_stream.sh
UTF-8
590
2.984375
3
[ "MIT" ]
permissive
#!/bin/bash # This script will create stream of repository_url -> watcher events # You will need to replace project id and destination table with your own: source ./scripts_config echo "Gathering watchers. Data will be saved to $WATCHERS_TABLE" # This should yield approximately 19M+ records bq --project_id $PROJECT_I...
true
9ccffce2da7671131201652868ac7bceda04dfff
Shell
kristersm/DMI
/shell_operators.sh
UTF-8
1,645
3.296875
3
[]
no_license
#!/bin/bash #4. piemers - izteiksmes (+,-,*,/) ar argumentiem a=$1 b=$2 echo "---- piemers Nr.4 ----" val41=`expr $a + $b` echo "$a + $b = " $val41 val42=`expr $a - $b` echo "$a - $b = " $val42 val43=`expr $a \* $b` echo "$a * $b = " $val43 val44=`expr $a / $b` echo "$a / $b = " $val44 val45=`expr $a % $b` echo "$a %...
true
d574e285bd9e217a4f243fd671fcfaffd3826138
Shell
CBIIT/HPC_DME_APIs
/src/hpc-server/hpc-ws-rs-test/src/test/dice/test-register/test-collection-registration/test-register-project-invalid-restricted-attribute/runme
UTF-8
744
3.046875
3
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash # Readme.txt # @author: George Zaki # # Copyright Leidos Biomedical Research, Inc # # Distributed under the OSI-approved BSD 3-Clause License. # See http://ncip.github.com/HPC/LICENSE.txt for details. # # Script to run this test # Usage: runme [no arguments] #import common functions source ../../...
true
0e81809633492a2abcae53a6029f88cd205cff7e
Shell
ruadapt/gpuheap
/local_test/merge_path/test.sh
UTF-8
586
3.375
3
[]
no_license
#!/bin/bash i=0 totalcases=26 for ((batchSize=32;batchSize<=2048;batchSize*=2));do max_blockSize=$(($batchSize<=1024 ? $batchSize:1024)) for ((blockSize=32;blockSize<=$max_blockSize;blockSize*=2));do printf "\r[%d/%d]" $i $totalcases RES=`./merge_path_test $batchSize $blockSize | tail -1 | cut ...
true
2fa0c477040e13161d28a15f9dc7a57b52ab5403
Shell
loikg/dotfiles
/.bin/yt2wanie
UTF-8
237
2.796875
3
[]
no_license
#! /bin/sh # # Download a video from youtube in mp3 # upload it to google drive # cd /tmp youtube-dl -x --audio-format mp3 --audio-quality 0 \ -o '%(title)s.%(ext)s' \ --exec 'dropbox_uploader.sh -p upload {} /Wanie && rm -f {}' $1
true
89758093d5e3b308ce4ff938ce8a41de917ed006
Shell
kmonticolo/ansible-role-pacemaker
/pacemaker/files/crm_mon_stats.sh
UTF-8
1,796
3.28125
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash # nagios returncodes: STATE_OK=0 STATE_WARNING=1 STATE_CRITICAL=2 STATE_UNKNOWN=3 while getopts “i:” OPTION; do case $OPTION in i) item=$OPTARG ;; ?) echo "UNKNOWN: Unknown argument: $1" exit $ST_UK ;; esac done # MANDATORY args if [ -z "$item" ]; then echo "UN...
true
b17312e618bfbd2ce36b68289c9c2a6d2366641a
Shell
thenightex/gitlab-ci-testing
/7-gitlab-docker-prod/runner-and-docker-host.sh
UTF-8
844
3
3
[]
no_license
#!/bin/bash # Setup Gitlab Runner, version 1 # INSTALL RUNNER curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh | sudo bash apt install gitlab-runner # INSTALL DOCKER-COMPOSE curl -L "https://github.com/docker/compose/releases/download/1.25.3/docker-compose-$(uname -s)-$(unam...
true
180b6ae6009c4056432e21ff2a6fe42f585bd3a6
Shell
mjipeo/ops
/install_dotfiles
UTF-8
2,322
2.96875
3
[]
no_license
#!/bin/bash YUM=/usr/bin/yum HOME_DIR=/home/rich BOOTSTRAP_DIR=/tmp/bootstrap PROD_DIR=$HOME_DIR/data/docs/fiveguys/prod DEV_DIR=$HOME_DIR/data/docs/fiveguys/dev-mjipeo LOG_DIR=$HOME_DIR/data/logs/fiveguys RPM=/bin/rpm YUM=/usr/bin/yum MAKE=/usr/bin/make CHKCONFIG=/sbin/chkconfig SERVICE=/sbin/service PYTHON=/usr/loca...
true
5905f11906cc7411bd616af94e0712113cfde2d3
Shell
sandeepraonayini/shell-scripts
/trap.sh
UTF-8
334
3.234375
3
[]
no_license
#!/bin/bash #This file is to show signals are can trap clear trap 'echo " .please use Q to exit"' SIGINT SIGTERM SIGTSTP while [ "$CHOICE" != "Q" ] && [ "$CHOICE" != "q" ]; do echo "MAINMENU" echo "1)choice one" echo "2)cjoice two" echo "3)choice three" echo "4) QUIT/EXIT" echo "" read CHOICE ...
true
5690fb35fcea27aaee343536b76379985dca4777
Shell
NIDObr/FatDefrag
/NidoDefrag
UTF-8
1,406
3.875
4
[ "BSD-3-Clause" ]
permissive
#!/bin/sh #------------------------------------------------------------------ # Author: nido # More: < https://github.com/NIDObr > # Version: 0.1.3-beta 12/07/2020 # Tested on: # GNU bash, versão 4.4.20(1)-release (x86_64-pc-linux-gnu) # Info: # Defragments FAT systems. # POSIX compatible # License: BSD-3-Clause Licen...
true
8833ad12e853eda7f539b8ca309510993ca1744d
Shell
devfsc/electrum-PAC
/contrib/build-wine/prepare-x11.sh
UTF-8
932
3.5
4
[ "MIT" ]
permissive
#!/bin/bash # Please update these links carefully, some versions won't work under Wine MINGW_SETUP_URL=https://ayera.dl.sourceforge.net/project/mingw/Installer/mingw-get-setup.exe X11_HASH_URL=https://github.com/akhavr/x11_hash/archive/1.4.tar.gz ## These settings probably don't need change export WINEPREFIX=/opt/win...
true
33a1126fa6381ec13ae48c25e6f32b389f0fb5d3
Shell
vallisneria/hknu2-system-programming
/Chapter7/4_모든_파일_처리/1_listdir.bash
UTF-8
515
3.515625
4
[]
no_license
#!/bin/bash # 7장 68페이지 # 모든 파일 처리 문제 1 # # 명령줄 인수로 주어진 디렉터리 내의 모든 서브디렉터리를 리스트하는 # bash script를 작성하라. 명령줄 인수가 없으면 현재 디렉터리를 대상으로 한다. if [ $# -eq 0 ] then ~/Documents/190428_bash_script/listdir.bash . elif [ -d $1 ] then cd $1 for file in * do if [ -d "$file" ] then echo "$file" ~/Documents/1904...
true
54e413b1b01da5a1423535a5137154898c5e3cda
Shell
edpzjh/jbosgi
/distribution/installer/src/main/resources/runtime/bin/run.conf
UTF-8
1,264
2.953125
3
[]
no_license
## -*- shell-script -*- ###################################################### ## ## ## JBossOSGi Bootstrap Script Configuration ## ## ## ####...
true
8a773b77512820643c164d71c83c40855bcbc4a9
Shell
ccozkan/bash-scripts
/themenuthatrulesthemall.sh
UTF-8
1,393
2.703125
3
[]
no_license
#!/bin/bash ##scriptin calismasi icin zenity gerek. file=$(zenity --width=720 --height=640 --list --title "the menu that rules them all" --text "Open..." --column File "yutup" "unutulmaz filmler" "kiybord" "clementine" "File Manager" "pavu" "lxrandr" "terminal" "2 saate kapan" "3 saate kapan" "hemen kapan amk" "alar...
true
aaaaf3cfb1cc667036548931b2e142db043acc98
Shell
aino/wfinstall
/install_redis
UTF-8
298
3.1875
3
[]
no_license
#!/bin/bash PREFIX=$HOME/opt/redis VERSION=2.6.2 NAME=redis-$VERSION cd $HOME/tmp if [ ! -e $NAME.tar.gz ]; then wget http://redis.googlecode.com/files/$NAME.tar.gz fi tar xzf $NAME.tar.gz cd $NAME make make PREFIX=$PREFIX install ln -s $PREFIX/bin/redis-server ~/bin/ mkdir $HOME/var/redis
true
e55ac6556bc4338f2b557bc4f6839aaf78e72c51
Shell
jvant/NAMD_Equilibration
/usefull_scripts/remove_files_from_all_dirs.sh
UTF-8
242
3.09375
3
[]
no_license
#!/bin/bash echo "What would you like to remove? Remember to be careful what you type!!!" read files var=$(ls ../put_pdbs_here) for i in $var do cd ../systems/${i:0:4}/ pwd echo ${i:0:4} echo " " rm $files cd - done
true
1d981186f0e9394f7397307718cfa0a815d41c7c
Shell
rustymyers/AppleDefaultScreensaver
/LaunchAgent.pkg/Contents/Resources/PAYLOAD/screensaver
UTF-8
2,740
3.125
3
[]
no_license
#!/bin/sh #* screensaverset #+ chris.gerke@gmail.com #+ #+ Description: Default Screensaver. #+ #+ Version: 1.0 #+ #+ History: #+ 1.0: Script. #+ #+ TODO: #+ * Add error checking? ME=$0 SCRIPT_DIR="$1/Contents/Resources" TARGET_DIR="$3" #+ // fix if [ -z "${TARGET_DIR}" ] || [ "${TARGET_DIR}" = "/" ]; then T...
true
9c7f5131ec780f4c2a88bd797726fd3efa6ed2a6
Shell
waagsociety/makingradio_backend
/ansible/deploy_app.sh
UTF-8
905
3.53125
4
[ "MIT" ]
permissive
MY_USER=${1} GIT_DIR="${2}" DEST_DIR="${3}" REPO="${4}" APP_DIR=${GIT_DIR}/app if [ ! -d "${GIT_DIR}" ] then sudo su $MY_USER -c "git clone ${REPO} ${GIT_DIR}" elif sudo su $MY_USER -c "git -C ${GIT_DIR} remote -v update" 2>&1 | grep master | grep 'origin/master' | grep 'up to date' >/dev/null then echo "Code not ...
true
c5946bbcc8fd80f92ad57ee915606c7fd6e0686d
Shell
zhongtouwang2019/alphaBetaLab
/examples/ww3/regularMesh/wwiiiRunCFSR/qsubSync.sh
UTF-8
682
3.734375
4
[ "MIT" ]
permissive
#!/bin/bash #script to submit to a pbs cluster a job and wait for its conclusion cmd=$1; sleepingTime=60; # 1 minutes date; echo "submitting command "$cmd; jobId=`qsub $cmd`; err=$?; if [ $err != 0 ] then echo "error submitting the job. Quitting"; exit; fi echo 'job id: '$jobId echo; while true; do qout=`qsta...
true
128f39114d5de0f2bbcc147a6b3a4c3110dea6b6
Shell
hantmac/Install_or_Update_Go_Automatically
/installOrUpdateGo.sh
UTF-8
595
3.40625
3
[]
no_license
# !/bin/bash if [ -z "$1" ]; then echo "usage: ./install.sh go-package.tar.gz" exit fi if [ -d "/usr/local/go" ]; then echo "Uninstalling old go version..." sudo rm -rf /usr/local/go echo "updating..." sudo tar -C /usr/local -xzf $1 else echo "Installing..." ...
true
df842c1d2be657276de39e909820e0c2d97912ac
Shell
CHENNA-REDDY12/docker-rabbitmq
/scripts/write-rabbitmq-config.sh
UTF-8
978
2.75
3
[]
no_license
#!/bin/bash # RABBITMQ_PORT=${RABBITMQ_PORT:-5672} INET_DIST_LISTEN_MIN=${INET_DIST_LISTEN_MIN:-55950} INET_DIST_LISTEN_MAX=${INET_DIST_LISTEN_MAX:-55954} # For reference: https://www.rabbitmq.com/configure.html cat > /etc/rabbitmq/rabbitmq.config <<EOF [ {rabbit, [{default_user, <<"$RABBITMQ_USER">>}, ...
true
ec26bf1ac82fbcaeed616bb338c8b8a74ea81af2
Shell
Sadashiv/interview_questions
/shellscript/while.sh
UTF-8
405
3.5625
4
[]
no_license
#!/bin/bash #while.sh Show the use of while loop set -x answer=y while [ "$answer" = "y" ] do echo "Enter the code and description" >/dev/tty read code description echo "$code | $description" >> newlist echo "Enter any mode (y/n):\c" >/dev/tty read anymore case $anymore in y*|Y*) answer=y;;...
true
4e54dc4d5ef55ce18d8ee1e32e4b9ea5a260b7c5
Shell
maxeasy2/repository
/nginx/docker.run
UTF-8
470
3.0625
3
[]
no_license
#!/bin/bash NGINX_VOLUME_PATH=/develop/docker IMAGE_NAME=firesh/nginx-lua #IMAGE_NAME=nginx:alpine #IMAGE_NAME=nginx:latest ALPINE_BASH_INSTALL=${1:-N} docker run -d --name nginx --rm -p 80:80 \ -v ${NGINX_VOLUME_PATH}/nginx/resource:/usr/share/nginx \ -v ${NGINX_VOLUME_PATH}/nginx/conf.d:/etc/nginx/conf.d \ -v ${NGIN...
true
0b3876e227f57554dcd1750851a48c2422a08ab9
Shell
aep/vag_reverse_engineering
/emulator/binrelease.sh
UTF-8
1,446
3.0625
3
[]
no_license
#!/bin/sh THIS=$(dirname $(readlink -f $0)) set -ex VER=0.8.5 APP=emulator rm -rf target/binrelease mkdir -p target/binrelease b(){ staticpie=$1 name=$2 rusttarget=$3 gcctarget=$4 export PATH=$PATH:/opt/toolchains/$gcctarget/bin/ export TARGET=${gcctarget} export TARGET_CC="/opt/toolcha...
true
cecc4dfe25bb763f7b0f68868e6e7cc9afa2b08e
Shell
ufcg-lsd/saps-scripts
/input-downloader/ufcg-default/get-station-data.sh
UTF-8
1,302
3.453125
3
[]
no_license
#!/bin/bash IMAGE_NAME=$1 IMAGES_DIR_PATH=$2 IMAGE_MTL_PATH=$IMAGES_DIR_PATH/$IMAGE_NAME"_MTL.txt" IMAGE_STATION_FILE_PATH=$IMAGES_DIR_PATH/$IMAGE_NAME"_station.csv" # Global variables SANDBOX=$(pwd) SEBAL_DIR_PATH=$SANDBOX/SEBAL CONF_FILE=sebal.conf LIBRARY_PATH=/usr/local/lib BOUNDING_BOX_PATH=example/boundingbox_v...
true
8d223d3545928c4764038ac37ab9f128a2aea711
Shell
jonesry/coreos-offline-installer
/src/installer
UTF-8
4,157
4.375
4
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
#!/bin/bash # Getting list of all hard disks ALLDEVICES="$(ls -1 /dev/sd?)" DEVICES="" INSTALLATIONDEVICE="" CLOUDCONFIGFILE="cloud-config.yml" IGNITIONFILE="coreos-install.json" clear echo "Please choose the device for CoreOS installation." select choice in ${ALLDEVICES} cancel do case "${choice}" in cancel) ...
true
6f357a48a7cfaa994126211ba5c334b625cff4aa
Shell
ocaml/ocaml-ci-scripts
/.travis-opam.sh
UTF-8
1,029
2.5625
3
[ "ISC" ]
permissive
( set +x; echo -en "travis_fold:start:prepare.ci\r"; ) 2>/dev/null # If a fork of these scripts is specified, use that GitHub user instead fork_user=${FORK_USER:-ocaml} # If a branch of these scripts is specified, use that branch instead of 'master' fork_branch=${FORK_BRANCH:-master} ### Bootstrap set -uex get() { ...
true
feccbd5b2accf1fe9b27cce9f2b98e27b0ad68fc
Shell
mano7onam/kotlin-native
/samples/gtk/build.sh
UTF-8
968
3.359375
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash DIR=$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd ) source "$DIR/../konan.sh" IPREFIX_macbook=-I/opt/local/include IPREFIX_linux=-I/usr/include if [ x$TARGET == x ]; then case "$OSTYPE" in darwin*) TARGET=macbook ;; linux*) TARGET=linux ;; *) echo "unknown: $OSTYPE" && exit 1;; e...
true
b617da964219b90b0b9bfa228c2e4cf9c64aa736
Shell
dabapps/django-db-queue-exports
/publish
UTF-8
512
3.234375
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash set -e rm -rf dist/ env/bin/pip install --upgrade setuptools wheel env/bin/python setup.py sdist bdist_wheel echo "Package built for distribution successfully..." read -p "Do you wish to publish the package to the Python Package Index? (If no, the package will be published to the TEST PyPi) - or press ...
true
758448b61f63ffd0e7d2237704c5bdecaea3791c
Shell
magodo/docker_practice
/postgresql/scripts/ha-pitr-archive-external/witness_main.sh
UTF-8
11,517
3.625
4
[]
no_license
#!/bin/bash ######################################################################### # Author: Zhaoting Weng # Created Time: Thu 09 Aug 2018 08:26:13 PM CST # Description: ######################################################################### MYDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")"&& pwd)" MYNAME="$(basename...
true
14ba8cd31f400cc8d082592e47726276ca3bba8a
Shell
restartus/global-lmic-reports-orderly
/scripts/publish_meffs
UTF-8
924
3.109375
3
[]
no_license
#!/usr/bin/env bash set -e DOCS_DIR=gh-meffs VERSION=$(git rev-parse --short HEAD) REMOTE_URL=git@github.com:mrc-ide/global-lmic-meffs.git TODAY=$(date "+%Y-%m-%d") DATE=${1:-$TODAY} export GIT_SSH_COMMAND="ssh -i ../.ssh/meffs/id_rsa" git -C ${DOCS_DIR} config user.email "oj.watson@hotmail.co.uk" git -C ${DOCS_DIR}...
true
616b6df44ab9e6a01fa56cf3fa37432bdde746ac
Shell
MichaelDBrown/pcf-concourse-pipelines
/tasks/config-healthwatch/task.sh
UTF-8
3,068
3.09375
3
[]
no_license
#!/bin/bash if [[ $DEBUG == true ]]; then set -ex else set -e fi chmod +x om-cli/om-linux OM_CMD=./om-cli/om-linux chmod +x ./jq/jq-linux64 JQ_CMD=./jq/jq-linux64 PRODUCT_PROPERTIES=$( echo "{}" | $JQ_CMD -n \ --arg opsmanager_url "$OPS_MGR_HOST" \ --argjson mysql_skip_name_resolve "$MYSQL_SKIP_NAME...
true