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
71b86e8806fd6e694e2bd2d2384723eee30b3fda
Shell
keshavkakarla/music
/recipes/hal/sampleAppFolder/restartHalIfDead.sh
UTF-8
408
3
3
[ "Apache-2.0" ]
permissive
dir=$PWD ps aux > $dir/HalLog$1.out halId=`grep "hal.jar $1" $dir/HalLog$1.out | awk '{ print $2 }'` #echo $halId if [ -z "${halId}" ]; then # echo hal dead java -jar $dir/hal.jar $1 $dir> $dir/hal$1.out & fi sleep 3 ps aux > $dir/HalLog$1.out halId=`grep "hal.jar $1" $dir/HalLog$1.out | awk '{ print $2 }'` if [ ...
true
c94636bcf090ef749b786551decae730aa99a5f2
Shell
pombredanne/nix-prefetch-github
/test-pypi-install
UTF-8
975
3.453125
3
[]
no_license
#!/usr/bin/env bash INSTALL_ONLY="false" while getopts "i" options; do case "${options}" in i) INSTALL_ONLY="true" ;; esac done set -e VERSION=$(cat src/nix_prefetch_github/VERSION) function upload_check() { nix-shell --command 'python setup.py sdist' nix-shell --co...
true
9866ea622d90ae46468064ad7354d2d2141172da
Shell
laydros/homefiles
/bin/obsdvol
UTF-8
586
2.609375
3
[]
no_license
#!/bin/sh # # https://www.romanzolotarev.com/bin/vol # Copyright 2017 Roman Zolotarev <hi@romanzolotarev.com> # case "$1" in up) sndioctl output.mute=0; sndioctl output.level=+0.1 ;; down) sndioctl output.mute=0; sndioctl output.level=-0.1 ;; incup) sndioctl output.mute=0; sndioctl output.level=+0.05;; incdown)...
true
5008692f0df435ad0f7d37906c870e6339a52bbf
Shell
hilbix/cryptspeed
/setupallcryptos.sh
UTF-8
349
3.09375
3
[ "LicenseRef-scancode-warranty-disclaimer", "BSD-2-Clause", "LicenseRef-scancode-public-domain" ]
permissive
#!/bin/bash # # This Works is placed under the terms of the Copyright Less License, # see file COPYRIGHT.CLL. USE AT OWN RISK, ABSOLUTELY NO WARRANTY. die() { echo "ERROR: $*" >&2 exit 1 } [ 0 = "`id -u`" ] || die "must be root" for a in . . . . . do find /lib/modules/`uname -r`/kernel/crypto -name '*.ko' | xargs...
true
196f23dae2da1e84f5982a0c5ebf5eb23fffd5ea
Shell
Citon/urtbod
/server/urtbod-newuser
UTF-8
1,121
3.953125
4
[ "LicenseRef-scancode-warranty-disclaimer", "BSD-2-Clause" ]
permissive
#!/bin/sh # urtbod-newuser - Create a new URTBOD tunnel server user. NEWHOSTNAME=${1} if [ X${NEWHOSTNAME} = X ]; then echo "You must specify a hostname for the new remote client" exit 1 fi echo "Please paste the new remote client's SSH public key below and hit ENTER" while read -r PUBKEY; do if [ "X${P...
true
7e2ba31dc425a512d30f28e71eed9fe552da236f
Shell
wanhuihui2021/bio
/Capture_QC
UTF-8
15,014
3.453125
3
[]
no_license
#!/bin/bash function help() { cat<<END Usage: $(readlink -f ${0}) [options] [arg] Required: --rawfq1 [raw fq1 file] --rawfq2 [raw fq2 file] --cleanfq1 [clean fq1 file] --cleanfq2 [clean fq2 file] --sortbam [sort.bam] --dupbam [dup.bam(mark)] --uniquebam [unique.bam] --ontargetbam [ontarget.bam] --readybam [...
true
42ead03d9f4659ce2822a716a70c9a9169ebd3d0
Shell
cc-syncsuite/syncsuite
/build.sh
UTF-8
1,334
3.453125
3
[]
no_license
#!/bin/sh recursive_build_call() { $(cd $1; ./build.sh $2) } build_dep() { recursive_build_call ./scripts/gen_cpio build } build_generic_cpiolist() { ./scripts/gen_initramfs_list/gen_initramfs_list.sh $(pwd)/generic/initramfs > cpiolist cat ./generic/initramfs_squashed >> cpiolist } build_cpio() { ./scripts/g...
true
264df9a6b0e50051cbbe87c224fa4493942fef87
Shell
Akemi-Homura/ShellScripts
/Chapter12/ex12-10/ex12-10.sh
UTF-8
367
3.609375
4
[]
no_license
#!/bin/zsh # # greeetings # greetings program version 1 # A sample program using the if-then-elif construct # This program displays greetings according to the time of the day # hour=`date | cut -d ' ' -f 4 | cut -d : -f 1` if [ "$hour" -lt "12" ] then echo "GOOD MORING" elif [ $hour -lt 18 ] then echo "GOOD A...
true
621d9828c2abf2941d2fd84ea173a802fa8ed3bd
Shell
manishwadkar/Codin_club_backup
/Patterns/Day2/zipcode.sh
UTF-8
155
3.109375
3
[]
no_license
#!/bin/bash -x pincode=483269 pattern="^[1-9][@!]{1}[0-9]{4}$" pattern1="^[1-9][0-9]{5}$" if [[ $pincode =~ $pattern1 ]] then echo yes else echo no fi
true
79f1571a1b7fb423f8ba3ac01385d6e453ca9ff5
Shell
delkyd/alfheim_linux-PKGBUILDS
/fiat-git/PKGBUILD
UTF-8
874
2.53125
3
[]
no_license
# Maintainer: Myles English <myles at rockhead dot biz> pkgname=fiat-git pkgdesc="Supports generation of arbitrary order instances of the Lagrange elements on lines, triangles, and tetrahedra." pkgver=20161027 pkgrel=1 _branch=master arch=('i686' 'x86_64') url="https://bitbucket.org/fenics-project/fiat" license=('LGPL'...
true
72b8b465aa0d9a4a98a1e57e28a0b0244de36ee6
Shell
pablor0mero/RedireccionIO
/redirigirIO/script.sh
UTF-8
204
3.140625
3
[]
no_license
#!/bin/sh echo "Ingresar numero" read numero sum=0 sd=0 while [ $numero -gt 0 ] do sd=`expr $numero % 10` sum=`expr $sum + $sd` numero=`expr $numero / 10` done echo "La suma de los digitos es $sum"
true
1435552deb62cee8db6ba8d16b1537d7fb159a33
Shell
NVIDIA/gpu-operator
/tests/cases/experimental-runtime.sh
UTF-8
1,026
3.359375
3
[ "Apache-2.0" ]
permissive
#! /bin/bash # This test cases configures the nvidia-experimental runtime as the default runtime for # Docker containers. SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/../scripts && pwd )" source ${SCRIPT_DIR}/.definitions.sh TOOLKIT_CONTAINER_NVIDIA_RUNTIME="nvidia-experimental" if [[ "${CONTAINER_RUNTIME}"...
true
aeda06de478c27d4858b004395cf11e62d8faa4c
Shell
erikenbody/Bioinformatics_Scripts
/RNAseq/Transcript_quant/Star_doCounts/fix_ReadsPerGene.sh
UTF-8
917
2.890625
3
[]
no_license
#!/bin/bash #SBATCH -N 1 #SBATCH -n 1 #SBATCH -e fix_readspergene.err # File to which STDERR will be written #SBATCH -o fix_readspergene.out # File to which STDOUT will be written #SBATCH -J fix_readspergene # Job name #SBATCH --mail-type=ALL # Type of email notification- BEG...
true
e1174d04ed695eb2010a1c3dd486255bc98a4446
Shell
jpsutton/pcbsd
/src-sh/pc-metapkgmanager/metaset/pcbsd/NVIDIA-Legacy-173/post-remove.sh
UTF-8
200
2.828125
3
[]
no_license
#!/bin/sh # Enable loading the nvidia binary driver grep '^nvidia_load="YES"' /boot/loader.conf >/dev/null 2>/dev/null if [ $? -eq 0 ] ; then sed -i .bak '/nvidia_load="YES"/d' /boot/loader.conf fi
true
4fbaecef3abb570a5e0bc0334f6e7ff534fc5d53
Shell
daviddliu/THetA_luigi
/pipeline/scripts/runBICseq.sh
UTF-8
824
3.359375
3
[ "MIT" ]
permissive
#!/bin/bash #============================================================================== set -e # source $config OUT_DIR=$1 TUMOR_CONC=$2 NORMAL_CONC=$3 #BICseq_INPUT="$baseDir/bicseq.input" BICseq_INPUT=$4 PREFIX=$5 ### # Create BIC-seq input ### #if [ ! -f "$BICseq_INPUT.config" ]; then # pushd "PipelineSof...
true
b2efb6671c8e5972a76264071aa099f55fc5f53e
Shell
Vic-Dev/storefront
/scripts/update-dependency.sh
UTF-8
3,720
4.4375
4
[ "MIT" ]
permissive
#!/usr/bin/env bash set -eo pipefail version= die() { local exit_code=1 local OPTIND=1 local opt while getopts "c:" opt; do case "$opt" in c) exit_code="$OPTARG" ;; esac done shift $((OPTIND - 1)) echo "ERROR:" "$@" >&2 exit $exit_code } info() { echo "===>" "$@" }...
true
31c1936355b11ddfd406a062dc588aa8dcdfdd14
Shell
BonJovi1/Bash-Scripting-1
/q4.sh
UTF-8
171
3.5
4
[]
no_license
#!/bin/bash file=$1 number=`cat $file | grep -v ^$ | wc -l` for((i=1;i<=$number; i++)) do var=`cat $file | grep -v ^$ | head -n $i | tail -n -1` echo "$i) $var" done
true
a061d76b13f8856f689e1c5fbfd133528779f70c
Shell
nicksacco17/QPU
/transfer.sh
UTF-8
887
3.1875
3
[ "MIT" ]
permissive
#!/bin/bash PC_HOME="D:/QPU/" SC_HOME="nsacco@txe1-login.mit.edu:/home/gridsan/nsacco/QPU/" SRC=$1 DST=$2 # Transfer files Host --> Supercloud if [ "$SRC" == "PC" ] && [ "$DST" == "SC" ]; then echo "Transferring Host to Supercloud..." # Transfer include folder scp -r ${PC_HOME}"include/" ${SC_HOME} ...
true
03c3bbb28796b945762777e4f4c9db9e136184b8
Shell
icyflame/softwares-to-be-installed
/formatUSB.sh
UTF-8
427
3.34375
3
[]
no_license
#!/bin/bash df -h echo "Which drive would you like to format?" read drive echo '------------------------' echo '------------------------' echo "you have decided to format $drive" echo '------------------------' echo '------------------------' echo "We will format it to FAT 32 FileSystem" echo "If you are okay ...
true
f317012cf67beecf1b8b3072a7a1b1ca9fdbaeba
Shell
vohramanav/DGSM_PCE_MD
/Codes/MD/extract_energy.bash
UTF-8
211
3.0625
3
[]
no_license
#!/bin/bash for f in $1/*.log do INPUT="$(basename $f .log)" echo $INPUT | awk -F"_" '{printf "%s",$2 >> "energy.txt";}' awk -F" " '$1=="500000"{printf " %s %s\n",$(NF-1),$NF >> "energy.txt";}' $f done
true
effa1bbdc202c0651a18aa81de553a9250f2fd98
Shell
tacow/setup
/utils/Valgrind
UTF-8
211
3.125
3
[]
no_license
#!/bin/sh CMD_NAME=$(basename $0) if [ $# -lt 1 ] then echo "${CMD_NAME} [program]" exit fi valgrind --trace-children=yes --time-stamp=yes --tool=memcheck --leak-check=full --log-file="valgrind.%p" $*
true
a498629a4f5e260091f7d473b01cd833ff609b79
Shell
ticktac-project/uppaal-to-tchecker
/ci-scripts/setenv-common.sh
UTF-8
212
2.65625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash export INSTALL_DIR=${HOME}/install export BUILD_TYPE=Debug export NB_CPUS=$(getconf _NPROCESSORS_CONF) if test -z "${NB_CPUS}"; then NB_CPUS=2 fi export CTEST_PARALLEL_LEVEL=${NB_CPUS}
true
9eadc529dd1f43f2e1fe2c745b73bb9d5506bd54
Shell
vdbg/cli-example-nodejs
/auto_off.sh
UTF-8
865
3.671875
4
[]
no_license
#!/bin/bash config_file="bt.config" [ -f "$config_file" ] || { echo "$config_file file not found."; exit 1; } . "$config_file" [ -n "$SMARTTHINGS_CLI_TOKEN" ] || { echo "SMARTTHINGS_CLI_TOKEN is not set."; exit 1; } export SMARTTHINGS_CLI_TOKEN [ -n "$ST_DEVICE_ID" ] || { echo "ST_DEVICE_ID is not set."; exit 1; ...
true
30b1445e5f61a4aeb7a1bfd7236da02ef7729dd4
Shell
bennylb/machine-conf
/bin/emc-wrap.sh
UTF-8
188
2.625
3
[]
no_license
#!/usr/bin/env sh EC_BIN=/run/current-system/sw/bin/emacsclient if [ -z "$SSH_AUTH_SOCK" ]; then export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) fi exec "$EC_BIN" "$@"
true
573c6d4d995753cf18b9257b4f470d16dacdfae0
Shell
stajichlab/DrylandAlgae_Genomes
/pipeline/00_init_download.sh
UTF-8
1,256
3.234375
3
[]
no_license
#!/usr/bin/bash #SBATCH -p short -N 1 -n 8 module unload miniconda2 module load miniconda3 # make sure we have python3 module unload perl # weird problems with perl 5.22.0 on the biocluster system module load parallel # need parallel installed to run steps in parallel CPUS=$SLURM_CPUS_ON_NODE if [ -z $CPUS ]; then C...
true
9424bd322542e939edebaf7db9232be60b74793b
Shell
a2b2codershub/a2b2rnd
/FacebookApp/project/mac_build_deploy_n_package_release_qt5
UTF-8
1,400
2.828125
3
[]
no_license
#!/bin/bash MY_PATH="`dirname \"$0\"`" cd "$MY_PATH" rm -R -f ../out/release #Build source ~/Qt5.2.0/5.2.0/clang_64/bin/qmake app.pro -r -spec macx-g++ CONFIG+=release eval /usr/bin/make -f Makefile clean eval /usr/bin/make -f Makefile #copy the icon file to app resource cp -f ../Resources/icon.icns ../out/release/...
true
6dcdbb70dbd291c4b7b9ad45999889e260f3f604
Shell
LeidiniceSilva/shell
/regcm_pos/comp_eca_cdo_tn90p.sh
UTF-8
1,265
3.0625
3
[]
no_license
#!/bin/bash #__author__ = 'Leidinice Silva' #__email__ = 'leidinicesilva@gmail.com' #__date__ = '01/01/2021' #__description__ = 'Calculate extreme index with ECA_CDO' echo echo "--------------- INIT CALCULATE EXTREME INDICES ETCCDI ----------------" echo TMIN_RF="tasmin_amz_neb_HadGEM2-ES_historica...
true
52108a7bb969cf96a7ce120c39ccd05d55c4a31b
Shell
Far00qM/jenkins-ci-cd-terraform-docker
/base/userdata_shell
UTF-8
1,741
2.734375
3
[]
no_license
#!/bin/bash wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add - echo deb https://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list sudo apt-get update sudo apt install openjdk-8-jdk -y sudo apt-get install jenkins -y sudo service jenkins start wget -qO...
true
5cd353a11d6fc93075c5216e99a414eb01a14563
Shell
rlrq/MINORg
/build_minorg.sh
UTF-8
3,489
3.84375
4
[ "MIT" ]
permissive
#!/bin/bash DIR=/mnt/chaelab/rachelle/scripts/minorgpy cd ${DIR} ## build wheel BUILD_PYTHON=0 ## push latest wheel to (test)pypi PUSH_PYTHON=0 ## update Dockerfile with latest wheel UPDATE_DOCKERFILE=0 ## build docker image BUILD_DOCKER=0 ## push latest docker image to Docker Hub PUSH_DOCKER=0 while (( "$#" )); do...
true
7ce726c8ef255f021e83ed56ff896de331653b25
Shell
sjha2048/xrootd-python
/tests/test-suite/ts_pyxrootd/tc/run_pytest/init.sh
UTF-8
1,774
3.390625
3
[]
no_license
#!/bin/bash source /etc/XrdTest/utils/functions.sh log "Initializing test case on slave" @slavename@ "..." if [[ @slavename@ =~ client1 ]]; then PYVER=2.4.3 elif [[ @slavename@ =~ client2 ]]; then PYVER=2.5.6 elif [[ @slavename@ =~ client3 ]]; then PYVER=2.6.6 elif [[ @slavename@ =~ client4 ]]; then PYVER=2.7....
true
2624070484292e028815023dc8df3435d0616db0
Shell
junaid18183/nagios-plugins
/Mysql/check_mysql_slaves.sh
UTF-8
1,304
3.640625
4
[]
no_license
#!/bin/sh STATE_OK=0 STATE_WARNING=1 STATE_CRITICAL=2 STATE_UNKNOWN=3 STATE_DEPENDENT=4 mysqlpath='/usr/bin' crit="No" null="NULL" ok="Yes" user=root pass=@toor8 #Hostname=127.0.0.1 usage1="Usage: $0 -u user -p password -H Hostname" #echo $usage1 exitstatus=$STATE_WARNING #default while test -n "$1"; do...
true
5a5794dccb83f2f625126debba9136a134a1094c
Shell
aryanarayantiwari/basic-shell-programs
/else1.sh
UTF-8
484
3.046875
3
[]
no_license
#!/bin/sh echo "APPLE" echo "BANANA" echo "GRAPES" echo "MANGO" echo "GUAVA" echo "SELECT A FRUIT FROM ABOVE LIST:" read fruit case "$fruit" in "APPLE") echo "You have selected $fruit.The price is 200Rs/kg." ;; "BANANA") echo "You have selected $fruit.The price is 50Rs/dozen." ;; "GRAPES") echo "You have selected $fru...
true
31678179f59352b95a98170b5a5b77091f6a9744
Shell
jing-tw/lab-kaldi
/local_install.sh
UTF-8
411
2.984375
3
[]
no_license
#!/bin/bash echo "Prepare the build environment" git clone https://github.com/kaldi-asr/kaldi.git kaldi --origin upstream sudo apt-get -y install g++ zlib1g-dev automake autoconf libtool subversion libatlas3-base sudo ln -s -f bash /bin/sh curdir=`pwd` echo "Build ..." cd $curdir/kaldi/tools/extras/ ./check_dependen...
true
925d0529a5b1383b956ad3e6454f08096351b2f3
Shell
GlasslabGames/Platform
/scripts/server_update_root.sh
UTF-8
1,260
3.8125
4
[]
no_license
#!/bin/bash # verify ran as root if [ "$(id -u)" != "0" ]; then echo "This script must be run as root" 1>&2 echo "run \"sudo -s\"" 1>&2 exit 1 fi TODAY=`date +'%Y_%m_%d-%H_%M_%S'` WEBAPP_DIR="/home/dev/webapps" ROOT_DIR="/home/dev/github/Root" START_TOMCAT="service tomcat7 start" STOP_TOMCAT="service tomcat7...
true
530aacdf30d38a7de97058fea5a5d734ebc9250b
Shell
MrTrick/FireEngine
/config.example/install/fireengine
UTF-8
4,185
3.65625
4
[]
no_license
#!/bin/bash # chkconfig: 2345 80 05 # description: FireEngine # ### BEGIN INIT INFO # Provides: fireengine # Required-Start: $syslog $remote_fs # Required-Stop: $syslog $remote_fs # Should-Start: $local_fs # Should-Stop: $local_fs # Default-Start: 2 3 4 5 # Default-Stop...
true
6eb75440a1823264844afe1196152b83ce70e8ce
Shell
Darwin2011/GPU-Test-Farmer
/scripts/caffe_bench/run_single.sh
UTF-8
1,745
3.5625
4
[]
no_license
#!/bin/bash #set -x cd /home/caffe/caffe_bench template_name=$1 batch_size=$2 iterations=$3 gpuid=$4 template_filename=`echo $template_name | awk -F/ '{print $NF}'` template_filename_without_ext=`echo $template_filename | awk -F'.' '{print $1}'` Caffe_Source=$5 nvprof=$6 Caffe_BIN="" log_dir="" if [ "$Caffe_Source" =...
true
28fa2321eb87da845625ff9b3ad9d9655a39a89a
Shell
bradpendley/Shell-scripts
/makedir
UTF-8
396
3.65625
4
[]
no_license
#!/bin/bash if [ $# -gt 0 ]; then dir=$1 else read -p "Initial directory:" dir fi if [ ! -d $dir ]; then echo "Intial directory is invalid" echo "Please try again" exit elif [ -d "$dir/Data" ]; then read -p "Path exists [c to cancel or o to overwrite]" r if [ r != "o" ]; then exit fi fi rm -r "$di...
true
e909f0fd62553c080b8070fd63fe6773988d3aef
Shell
Legun/scripts
/start_batch.sh
UTF-8
5,443
3.421875
3
[]
no_license
#!/bin/bash PROJECT_NAME="leon3mp" EN64="--64bit" READ_WRITE_SETTINGS="--read_settings_files=on --write_settings_files=off" GIT_REPO="$HOME/triumph40n_git" ASIC_CONFIG="$HOME/triumph40n_git/rtl/inc/global_config_dsp.inc" JIC_CONF="output_file_sl340.cof" ERROR_PRINT=1 #Check map or fit logs for errors if [[ $1 == errm...
true
42ccb8f01337a6d6908a497dd45b8440ca500dfe
Shell
aland3v/bash-code
/ifelifelsefi2.sh
UTF-8
330
3.40625
3
[]
no_license
#!/bin/bash # Uso de if, elif, else, fi. edad=0 echo "Ejemplo de sentencia if-else" read -p "Indique cúal es su edad: " edad if [ $edad -le 18 ]; then echo "La persona es adolescente" elif [ $edad -ge 19 ] && [ $edad -le 64 ]; then # Condición doble echo "La persona es adulta" else echo "La persona es adulto ma...
true
e39a3a16ddac28adaf30c83f2ddd51ebef1e59f8
Shell
Salsabil007/my_repo
/script6.sh
UTF-8
85
3.09375
3
[]
no_license
#! /bin/bash for i in *; do if [ -f "$i" ];then echo "$i" | grep -q [0-9] fi done
true
0728219fc961f789e21945e1134193c564745a52
Shell
TortoiseGit/tortoisesvn
/ext/TortoisePlink/Buildscr.cv
UTF-8
1,372
3.28125
3
[ "MIT" ]
permissive
# -*- sh -*- # Build script to scan PuTTY with the downloadable Coverity scanner # and generate a tar file to upload to their open-source scanning # service. module putty # Scan the Unix build, on a 64-bit system to differentiate as much as # possible from the other scan of the cross-platform files. delega...
true
15ef18fe19826077d325b551e5a678512fb69c11
Shell
psachin/system-config
/bin/android-run-test
UTF-8
281
2.890625
3
[]
no_license
#!/bin/bash instr=$(android-select-instrumentation "$1") classes=$(cd $(lookup-file -e "bin/classes") find . -iname "*$2*.class" | rm-last-nl | perl -npe 's!^./!!; s!/!.!g; s/\.class$//;' | tr '\n' ',') shift 2 set -x adb shell am instrument "$@" -w -e class $classes $instr
true
fde3369e1ac6395132536032c0119363ec9285ed
Shell
groupby/gb-tracker-client
/scripts/deploy_browser.sh
UTF-8
1,174
3.1875
3
[ "MIT" ]
permissive
#!/bin/bash NAME="gb-tracker-client" NAME_ON_CDN=${NAME} CURRENT_VERSION="$(cat package.json | jq -r .version)" CURRENT_VERSION_MAJOR="$(cat package.json | jq -r .version | cut -d '.' -f 1)" DEPLOY_DIR="staged_for_deploy" GCS_BUCKET=$1 npm run buildForBrowser mkdir ${DEPLOY_DIR} # Make major version and specific v...
true
80854805fd394dcdea956ed0c29eb7f6205c24ab
Shell
antimike/dotscripts
/install.sh
UTF-8
13,185
3.953125
4
[]
no_license
#!/bin/bash # TODO: Implement query history / results caching # Useful for usage (helptext) and debugging __FILE__="$(readlink -m "${BASH_SOURCE[0]}")" __DIR__="$(dirname "${__FILE__}")" __NAME__="$(basename "${__FILE__}")" # Some basic IO error() { printf '%s\n' "$@" >&2 && return 1 || return -1 } die() { err...
true
a66cb6b60be8eeef5d8140bcff56ee3e4e817c62
Shell
barleychan1988/ChangeFileToCreateTime
/批量加密压缩文件夹/zipEncrpy.sh
UTF-8
697
3.875
4
[]
no_license
#!/bin/bash #### 将指定的文件夹下的文件夹加密为对应的zip文件 #### 如:aaa文件夹下有d1、d2和d3三个文件夹,则如下命令将生产d1.zip、d2.zip和d3.zip三个文件 #### zipEncrpy.sh aaa root_dir=$1 cd $root_dir echo $root_dir echo "begin zip directory...." for file in *; do na=$(echo "$file" | tr ' ' '_') ### 将文件名中的空格转化为_ if [[ $file != $na ]]; then mv "$...
true
8e573b705769d0daea379c9e5d42eb693d4cdfa1
Shell
VLABSGNIRD/LabIntegrationKit
/lik-release-0.5.0/ovpl-kit/scripts/centos_prepare_ovpl.sh
UTF-8
1,125
3.984375
4
[]
no_license
#!/bin/bash # Script to setup a fresh installation of CentOS to run OVPL # Installs: Dependencies: python-devel, git, pip; mongodb; openvz. # check if script is run as root if [[ $UID -ne 0 ]]; then echo "" echo "$0 must be run as root!" echo "Exiting.." exit 1 fi # check if meta directory exists if [[ ! -d "...
true
094d1720f1d721e29c8b776a11a52fda5286dc05
Shell
RuoAndo/nii-cyber-security-admin
/session/session-category-by-gpu/do.sh
UTF-8
1,621
2.828125
3
[]
no_license
DATE=`date --date '4 day ago' +%Y%m%d` echo $DATE ./build-traverse.sh traverse6 mkdir $DATE echo "copying..." time cp /mnt/data2/${DATE}/all-org ./${DATE}/ cd ${DATE} echo "spliting files..." time split -l 5000000 all-org rm -rf all-org cd .. time CUDA_VISIBLE_DEVICES=1 ./traverse6 ./${DATE} cp tmp-social-networking...
true
6f742c71c5319e193bad21b02fc4fe463238ed45
Shell
JBlaschke/cctbx_deployment
/opt/cctbx/work/ls49_interactive.sh
UTF-8
1,233
2.5625
3
[]
no_license
#!/bin/bash -l #SBATCH -q special # regular or special queue #SBATCH -N 1 # Number of nodes #SBATCH -t 01:10:00 # wall clock time limit #SBATCH -J test_gpu_job #SBATCH -L SCRATCH # job requires SCRATCH files #SBATCH -C gpu #SBATCH -A m1759 # allocation #SBATCH -G 8 # devices per node #SB...
true
db7e34442595ffbe8a46fbc796fb509aaad026ff
Shell
silvertoken/docker
/minecraft-forge/start.sh
UTF-8
499
3.09375
3
[ "MIT" ]
permissive
#!/bin/sh set -e usermod --uid $UID minecraft groupmod --gid $GID minecraft chown -R minecraft:minecraft /opt/minecraft/data /opt/minecraft/start-minecraft chmod -R g+wX /opt/minecraft/data /opt/minecraft/start-minecraft while lsof -- /opt/minecraft/start-minecraft; do echo -n "." sleep 1 done mkdir -p /home/mi...
true
c6ed4742c468c23b99cf71597abd65968e0fbef5
Shell
airenas/secure-file
/example/oneFile/start.sh
UTF-8
235
2.640625
3
[ "BSD-3-Clause" ]
permissive
#!/bin/sh set -e echo Running startup script ./check-decrypt-file -f secretFile.txt echo Showing secret data from file cat secretFile.txt #exec ./cmd echo Waiting for terminate trap 'exit 143' SIGTERM while true; do sleep 1; done
true
1b74b403f6ecf0a3ae5eff26ecad8b7994a8c83d
Shell
albertschwarzkopf/helm-pipeline
/gh-scripts/extract-gh-release.sh
UTF-8
195
3.4375
3
[]
no_license
#!/bin/bash set -e if [ $# -lt 2 ] ;then echo "Usage: <filename> <dstfolder>" exit 1 fi SRC_FILE="$1" DST_FOLDER="$2" mkdir -p $DST_FOLDER tar -xvzf $SRC_FILE --strip 1 -C $DST_FOLDER
true
ac8e7e5fb9e646ddfe60149e79e43ab587c72f8c
Shell
devmemore/digO_letsdoit
/create_venv.sh
UTF-8
569
3.4375
3
[]
no_license
MODE=$1 if [ ! -z ${MODE+x} ]; then MODE=local fi echo $MODE PYTHON_VERSION="3.6.3" PYTHON_SOURCE=Python-${PYTHON_VERSION} PYTHON_BIN=${PYTHON_SOURCE}/python if [ ! -d "${PYTHON_SOURCE}" ]; then wget https://www.python.org/ftp/python/${PYTHON_VERSION}/${PYTHON_SOURCE}.tgz tar xzf "${PYTHON_SOURCE}.tgz" cd ${P...
true
b32eaf779e31ff4b9496e28620f6329fa05707b5
Shell
nsg/shdeploy
/local/71-connections.bash
UTF-8
217
3.0625
3
[ "MIT" ]
permissive
#!/bin/bash # Setup connections (if needed) for host in $hosts; do if ! ps -ef | grep ssh | grep $host | grep -q waitfor; then echo "Setup persistent connection to $host" remote_command $host waitfor & fi done
true
f40aa420a5ee28aebfb5465b20158de1d002b75d
Shell
upfront710/yardstick
/yardstick/benchmark/scenarios/networking/ping6_find_host.bash
UTF-8
676
2.640625
3
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
#!/bin/bash ############################################################################## # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this d...
true
f6e0faec514815c3e9f17470deb886ce5eac523d
Shell
dcs4cop/xcube-docker
/scripts/install_xcube.sh
UTF-8
630
3.125
3
[ "MIT" ]
permissive
#!/bin/env bash if [[ $XCUBE_INSTALL_MODE == "branch" ]]; then git clone https://github.com/dcs4cop/xcube cd xcube || exit git checkout "${XCUBE_VERSION}" mamba env create . source activate xcube && pip install . cd .. rm -rf xcube elif [[ $XCUBE_INSTALL_MODE == "github" ]]; then wget https://github.c...
true
040ea4d6c3cd052a901d3a8b6ebcc5716fb37a88
Shell
kevinmiles/dotfiles
/bin/_git/dtrace-fs
UTF-8
206
2.75
3
[]
no_license
#!/bin/bash if [[ $# -eq 0 ]]; then >&2 echo "usage:" >&2 echo " $0 -o <outfile> -c <command>" >&2 echo " $0 -o <outfile> -p <pid>" exit 1 fi sudo -E dtrace -s ~/.config/dtrace/fs-access.d "$@"
true
91ef546413a2f120392a0df9eeb58f0e3053589a
Shell
mbinary-toys/csdn-tools
/postPic.sh
UTF-8
655
2.9375
3
[]
no_license
#!/bin/bash # debug on, print exected cmds set -x bucket=mbinary #`qin domains $bucket` srcpath=/mnt/c/Users/mbinary/gitrepo/csapp-lab/bomb/src # ${repo}"/csapp/bomb/src" get /csapp/bomb/src why? post="csapp-bomb-lab-report.md" path=/mnt/d/blog/blog/source/_posts/csapp-bomb-lab-report.md read title < `sed "s/tit...
true
7a4af57d0bd8e3c92c1b28e134b3949d1991ddba
Shell
reyjrar/music_manager
/contrib/music_manager.init
UTF-8
1,418
3.78125
4
[]
no_license
#!/bin/bash # music_manager - this script starts and stops music_manager with starman # # chkconfig: - 85 15 # description: Music Manager # processname: starman # pidfile : /var/run/music_manager.pid # Source function library. . /etc/rc.d/init.d/functions export starman="/opt/perl/current/bin/starman" export ...
true
ace287f142e3d947e35014ca44b8bc70979c9e2f
Shell
delkyd/alfheim_linux-PKGBUILDS
/readpdf-git/PKGBUILD
UTF-8
667
3.125
3
[]
no_license
## Maintainer: realasking pkgname=readpdf-git pkgver=0.2 pkgrel=2 pkgdesc='A simple script for pdf reading on tty / CLI, framebuffer, fbi and poppler are needed.' arch=(x86_64 i686) url='https://github.com/realasking/tty_pdf_reading' license=('GPLv3') depends=('poppler' 'fbida') source=() md5sums=() _proj=https://gith...
true
bc56478c7031d7206dca3025778de6712f4e6ab0
Shell
Livshitz/HelperScripts-macos
/say.sh
UTF-8
238
3.046875
3
[ "MIT" ]
permissive
#!/bin/bash set -e && set -o pipefail && cd `pwd` text=$1 output=${2:-say.mp3} voice=${3:-Carmit} echo "options: $text, $output, $voice - ${@:3}" say -v $voice $text -o temp.aiff lame -m m temp.aiff $output rm temp.aiff afplay $output
true
445b3b8b99c7da9d4a9efc9372cc45ef0220c909
Shell
Seltzer/hyperactive-mouse-wrangler
/package.sh
UTF-8
137
2.78125
3
[]
no_license
workingDir=$(pwd) targetDir=$(mktemp -d) for f in background.js manifest.json do cp $f $targetDir done echo Output to: $targetDir
true
9a9b55c6d116137a933a8bf66fa3c67015864a9a
Shell
toonjohners/FW_Config_Grabber
/FW_config_grabber/.profile
UTF-8
2,352
2.953125
3
[]
no_license
ORACLE_BASE=/opt/oracle; export ORACLE_BASE ORACLE_HOME=/opt/oracle/product/11.2.0/client_1; export ORACLE_HOME TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN LD_LIBRARY_PATH=$ORACLE_HOME/lib; export LD_LIBRARY_PATH EDITOR=vi; export EDITOR umask 022 ulimit -c unlimited # JAVA settings JAVA_HOME=/usr/java/jdk...
true
12930c65e23d93eac5a9cd0c2fda06edd39eb5ed
Shell
jeroenvandijk/elephantdb-playground
/bin/ip
UTF-8
298
2.890625
3
[]
no_license
#!/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # Using a java way of looking up the ip address is probably more reliable (although slower booting) than # # ifconfig | grep 'inet ' | cut -d' ' -f2 | tail -n 1 # echo $(cd $DIR/../util; lein run -m util.core/local-hostname)
true
cfb01508b92b995670cc4af4a47f8cac5609c0ea
Shell
rvangala936/eemapi
/docker/build_save.sh
UTF-8
332
3.546875
4
[]
no_license
#!/bin/sh usage() { echo "Usage: $0 release" exit 1 } if [ $# -ne 1 ] ; then usage else export release=$1 fi echo "Build and Push eemapi:"${release}" to Docker repo" docker build -t eemapi:${release} . #docker tag eemapi:${release} ericgoebelbecker/eemapi:${release} #docker push ericgoebelbecker/eemapi:...
true
3cf73374fe8885f5d89107ed502d4749532d1ca2
Shell
ninedotnine/util
/despace
UTF-8
618
4
4
[]
no_license
#!/bin/dash # removes spaces from filenames # dependencies: sed if [ "$#" -lt 1 ]; then echo "needs an argument" exit 1 fi while [ "$#" -gt 0 ]; do oldname="$1" newname=$(echo "$oldname" | sed 's/ /_/g') if [ ! -e "$oldname" ]; then echo "$oldname not found..." exit 2 elif [...
true
1487cb11c0c11e9fbae7ab8b2af22f4711a55623
Shell
jaohaohsuan/kubernetes-on-arm
/images/luxas/go/build.sh
UTF-8
386
3.15625
3
[ "MIT" ]
permissive
cd "$( dirname "${BASH_SOURCE[0]}" )" # Use the version file cp ../../version.sh . # Build the image docker build -t luxas/go . # Make the filesystem CID=$(docker run -d luxas/go /bin/bash) # Get go and gofmt docker cp $CID:/goroot/bin . # Kanske inte alltid finns rm -rf _bin # Rename the directory to the standar...
true
bcb7c68173bb266ed4e0985b09b9ebf63e7aacb8
Shell
a1exw0ng/yassp-server
/debian/yassp-server.postinst
UTF-8
585
3.640625
4
[ "MIT" ]
permissive
#!/bin/bash set -e USERNAME=yassp-server GROUPNAME=yassp-server CFG_DIR=/etc/yassp-server case "$1" in configure|reconfigure) addgroup --system $GROUPNAME adduser --system --no-create-home -ingroup $GROUPNAME $USERNAME if [ ! -f $CFG_DIR/example.cfg ]; then mkdir -p $CFG_DIR cp /usr/share/yassp-server/c...
true
a2462a343630e8576cc7d8ac3ac7e6fd9d5e99ad
Shell
mattneary/Mimesis
/lib/publish.sh
UTF-8
541
3.75
4
[]
no_license
#!/bin/bash file=${1-mimesis} if ! [ -e ~/.gist ]; then echo "You need to login to Github to publish." gist --login fi repo=`echo -e "Mimesis Recording\nTitle: $file" | gist -f mimesis.txt` hash=`echo "$repo" | grep -o "\/[a-z0-9]\+\$" | grep -o "[a-z0-9]\+"` ( git clone "git@gist.github.com:/$hash.git" .mimesis-g...
true
5caa909b444482c50c0e9b96919aa69c3e22f8bc
Shell
Justasic/cia-vc
/cia/htdocs/clients/svn/ciabot_svn.sh
UTF-8
4,347
3.453125
3
[]
no_license
#!/bin/sh # # This is a CIA bot client script for Subversion repositories, # delivering via email. See below for usage and customization information. # # -------------------------------------------------------------------------- # # Copyright (c) 2004-2005, Micah Dowty # All rights reserved. # # Redistribution and use ...
true
948f0dc3f47df175388c7c68ebe0c928516d8455
Shell
Fanneyyy/hgop2015
/bin/deploy.sh
UTF-8
478
3.453125
3
[]
no_license
#!/bin/bash echo Connecting to Test Environment echo Running $1 on port $2 on $3 ssh vagrant@$3 " (echo Removing currently running images && docker kill tictactoe$2 && docker rm tictactoe$2 && echo Pulling newest docker image && docker pull fanneyyy/tictactoe:$1 && echo Running newest docker image && docker r...
true
8bccfb62dbe17279683f0a0e2b1d39339ee9d43b
Shell
killzoner/randokiak
/pulsar-elastic-sink/create-connector-pulsar.sh
UTF-8
1,325
3.46875
3
[]
no_license
#!/bin/bash set -e # this script is run in a postStart lifecycle hook # see https://stackoverflow.com/questions/44140593/how-to-run-command-after-initialization # see https://pulsar.apache.org/docs/en/next/io-elasticsearch-sink/ # create config echo ' configs: elasticSearchUrl: "http://elasticsearch:9200" ind...
true
1f7f3db7e82caca09f8fa4d9b95eb7a72b51d67b
Shell
annapinyaeva/os13
/l13.sh
UTF-8
189
2.953125
3
[]
no_license
#!/bin/bash lockfile="./lock.file" exec {fn}>$lockfile echo "lock" until flock -n ${fn} do echo "not lock" sleep 1 flock -n ${fn} done for ((i=0;i<=6;i++)) do echo "work" sleep 1 done
true
9e69e68c2be21ef98f93c9e061da717140da7219
Shell
mirrexagon/mirrexagon.github.io
/music/_scripts/encode_vorbis.sh
UTF-8
424
3.375
3
[]
no_license
#!/usr/bin/env bash MUSIC_DIR=~/archive/finished_music/music process_limit=16 # TODO: Re-encode if tags have changed. # --- pushd ${MUSIC_DIR} for src in *.flac; do OGG_PATH=$(echo ${src} | sed 's/\.flac$/\.ogg/') if [ ! -e $OGG_PATH -o ${src} -nt $OGG_PATH ]; then ffmpeg -y -i ${src} $OGG_PATH & ...
true
f975b00e303988fee0d5c0d5d3d322197aead1a1
Shell
chenq182/NOTE
/ubuntu/mysql/status_db.sh
UTF-8
139
2.703125
3
[]
no_license
#!/bin/bash set -o nounset cd $(dirname $0) source context_ SQL="SHOW DATABASES;" mysql -h${HOSTNAME} -P${PORT} -u${USERNAME} -e"${SQL}"
true
8ba0891b109c9b87634411cc6cc512787a3cd843
Shell
pc200397827/COMP2101
/bash/improveddice.sh
UTF-8
1,171
4.28125
4
[]
no_license
#!/bin/bash # # this script rolls a pair of six-sided dice and displays both the rolls # # Task 1: # put the number of sides in a variable which is used as the range for the random number # put the bias, or minimum value for the generated number in another variable # roll the dice using the variables for the range ...
true
85d993ecc8dbedfaa34228d15a4bc80b9d0ca701
Shell
maxjacobsontest/dotfiles
/handy_functions
UTF-8
278
3.359375
3
[]
no_license
#!/usr/bin/env sh # create and change into a directory function md () { mkdir -p "$@" && cd "$@"; } function gogofmt () { for f in $(git status --short | awk '{print $2}'); do gofmt -w $f done } # specless ag function sag () { ag $1 --ignore "*_spec.rb" --ruby }
true
6c2348586807b7fe67064766cd6966a087fe4ad9
Shell
dustinspecker/argo-prometheus-example
/add-gmail-receiver.sh
UTF-8
963
2.859375
3
[ "MIT" ]
permissive
#!/bin/bash if [ -z "$GMAIL_USERNAME" ]; then echo "ERROR: GMAIL_USERNAME must be set" >&2 exit 1 fi if [ -z "$GMAIL_PASSWORD" ]; then echo "ERROR: GMAIL_PASSWORD must be set" >&2 exit 1 fi # create ~/alertmanager-main-secret.yaml cat <<EOF > ~/alertmanager-main-secret.yaml apiVersion: v1 kind: Secret metad...
true
d4c5bc44140ad0ff4015e93088bcc60e1c27d388
Shell
foo-foo/epitech-projects
/UNIX_system_programming/PSU_2014_lemipc/man
UTF-8
1,399
3.03125
3
[]
no_license
\033[1mNAME\033[0m\n \t lemipc - simulate a battle between processes\n\n\033[1mSYNOPSIS\033[0m\n \t \033[1mlemipc\033[0m -\033[1mh\033[0m -\033[1mi\033[0m -\033[1mt\033[0m number of teams -\033[1mp\033[0m number of players -\033[1mm\033[0m map size\n\n\033[1mDESCRIPTION\033[0m\n \t The \033[1mlemipc\033[0m program simu...
true
e178b3724237fc41cb9bea33acdf522c2d12868b
Shell
tokayseo/MNService
/create_service.sh
UTF-8
779
3.359375
3
[]
no_license
#!/bin/sh ## # Script to deamons as a service. ## # Check for deamon argument if [[ $# -eq 0 ]] ; then echo 'You must provide the DEAmon argument' echo ' Usage: ./create_service.sh polisd polis-cli .poliscore polis.conf' echo exit 1 fi echo "Creating It ALL!!!" sudo touch /etc/systemd/system/mn.serv...
true
9e5606edd058a4fbe1f8aa78c179f5c84890ffcc
Shell
za3k/short-programs
/delink
UTF-8
515
4.25
4
[ "CC0-1.0" ]
permissive
#!/bin/bash # Removes one layer of symlink, preserving the names of the symlink while [ $# -gt 0 ]; do if [ -L "$1" ]; then link="$1" dir="$(dirname "$1")" target="$(readlink -f "$link")" if [ -e "$target" ] then cp -P -a --remove-destination "$target" "$link" ...
true
90c652ba5fe3129bd6cb82b41e8fd6c31b1537d6
Shell
ipfs/kubo
/test/sharness/t0109-gateway-web-_redirects.sh
UTF-8
12,933
3.015625
3
[ "Apache-2.0", "MIT" ]
permissive
#!/usr/bin/env bash test_description="Test HTTP Gateway _redirects support" . lib/test-lib.sh test_init_ipfs test_launch_ipfs_daemon ## ============================================================================ ## Test _redirects file support ## ====================================================================...
true
1dc042f8ca2b505fb30081dfecb6666d6275ae44
Shell
zezip/scibert
/scripts/train_allennlp_local.sh
UTF-8
1,551
3.125
3
[ "Apache-2.0" ]
permissive
# Run allennlp training locally, serializes to /path/to/needs_citation/models/scibert # Run from scibert root as 'bash scripts/train_allennlp_local.sh <GPU #>' # # edit these variables before running script DT=$(date '+%d-%m-%Y_%H-%M-%S') PARENT_DIR=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P ) PROJECT_ROOT="$(dirn...
true
7037604ac1ee5eeb4def6615d2790aa44eda2042
Shell
abuecker/prez-ihc
/bin/s3-sync
UTF-8
1,511
3.578125
4
[ "MIT" ]
permissive
#!/bin/sh set -e #------------------------- # Copy files to the bucket #------------------------- # Sync the 'dist/' directory to the bucket aws s3 sync --acl public-read --delete dist/ $AWS_S3_BUCKET # Copy the text/plain files # FILES="SHA TIMESTAMP apiHost" # for FILE in $FILES # do # echo "- text/plain: $AWS_S...
true
27c063860440351ed08b1a8fd7b860ed9e300eb4
Shell
Mocarice/KCCI-lecture
/Oracle_Install_Script/make_oracle_init_script.sh
UTF-8
1,732
2.75
3
[]
no_license
################# # # # # 자동 스크립트 작성 # # # # ################# #!/bin/sh echo "/etc/oratab" sleep 2 touch /etc/oratab echo "orcl:/home/oracle/db/product/12.1.0/dbhome_1:Y" >> /etc/oratab echo "/etc/sysconfig/orcl.oracledb" sleep 2 touch /etc/sysconfig/orcl.oracledb cat >> /etc/s...
true
31f4c23929fbd7d7195a67217aed088af4dc0d46
Shell
theodrim/dotfiles
/server/setup/install-common.sh
UTF-8
499
3.28125
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -o errexit set -o nounset set -o pipefail # this script installs some common utilities export DEBIAN_FRONTEND=noninteractive # enable non-free and contrib repos (necessary for things like nvidia drivers) add-apt-repository non-free add-apt-repository contrib # update and then install utils, d...
true
2fd015a10eaa3f04d66767cf6e083d534c6211c9
Shell
mountash/openssl_local_ca
/bin/19.combine_crl_and_chain.pem
UTF-8
580
3.5625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash CUR_DIR=$PWD source variables.sh source helpers.sh cd $RF if [ ! -f $INT_ROOT_CERT_CHAIN ]; then error "No certificate chain found in $INT_ROOT_CERT_CHAIN" exit 1 fi if [ ! -f $INT_CRL ]; then error "No Certificate Revokation List found in $INT_CRL" exit 1 fi if [ -f $INT_CRL_CHAIN ]; ...
true
3879efd9ae7290bba994118691c3ccd3121786dc
Shell
crowdsecurity/crowdsec
/test/bats/10_bouncers.bats
UTF-8
1,471
2.890625
3
[ "MIT" ]
permissive
#!/usr/bin/env bats # vim: ft=bats:list:ts=8:sts=4:sw=4:et:ai:si: set -u setup_file() { load "../lib/setup_file.sh" } teardown_file() { load "../lib/teardown_file.sh" } setup() { load "../lib/setup.sh" ./instance-data load ./instance-crowdsec start } teardown() { ./instance-crowdsec stop } ...
true
6d8316f052372b8f45ebe3ada944df3e4ee447fa
Shell
longshorej/akka-management-example
/kubernetes/install.sh
UTF-8
405
2.609375
3
[]
no_license
#!/usr/bin/env bash set -e cd "$(dirname "${BASH_SOURCE[0]}")/../" minikube status || { echo 'minikube not running' && exit 1; } eval $(minikube docker-env) echo '* building app1' (cd app1 && sbt docker:publishLocal) docker images echo '* building app2' (cd app2 && sbt docker:publishLocal) echo '* applying k8...
true
b1ef2abbb051ea19ad9b0df88084d7d4cb43bbe2
Shell
Jxrgxn/dotfiles
/.dotfiles/xcode/xccheck.sh
UTF-8
427
3.234375
3
[ "MIT" ]
permissive
#!/bin/bash -e #------------------------------------------------------------------------------- # # xcode/xccheck.sh # Validate Xcode application binary integrity using `spctl` # #------------------------------------------------------------------------------- for xcode_version in $(ls -d /Applications/Xcode*.app) do ...
true
178fd8eef3a3d4f5a296c9fc53f7a8be6503a945
Shell
haam3r/RF_IDS_Lab1_Scripts
/scripts/web.sh
UTF-8
7,536
3.609375
4
[]
no_license
#!/bin/bash attacker="pwdsink.deeppacketcorp.lab" while true; do if [ -f /root/running/red_ips.txt ]; then echo "File /root/running/red_ips.txt exists" attackerip=$(head -n 1 /root/running/red_ips.txt) break else echo "File /root/running/r...
true
85e5a3a7882e54eb865ec1744c231619143ba0dc
Shell
ytaragin/incangold-server
/build.zsh
UTF-8
387
2.90625
3
[]
no_license
#!/usr/bin/zsh rm -rf builddir mkdir builddir codedirs=('lib' 'handlers' ) for d in $codedirs; do for f in $d/*; do # dirs+=$f echo $f npx @redneckz/slice-node-modules -e $f --exclude 'aws-*' --zip temp.zip unzip -n -q temp.zip -d builddir cd builddir zip -r -u in...
true
6df672825e222d162c18f3822a4a4127d3fedb56
Shell
CharlesXu/noop-lo
/scripts/analyse_perf_test.sh
UTF-8
588
2.796875
3
[]
no_license
#!/bin/bash echo $1 python split.py $1 for i in `seq 1 10` do python analyse.py $i.perf.txt >$i.analyse.txt done rm -rf total.analyse.txt tests[1]='bitcount' tests[2]='bubble_sort' tests[3]='coremark' tests[4]='crc32' tests[5]='dhrystone' tests[6]='quick_sort' tests[7]='select_sort' tests[8]='sha' tests[9]='stream...
true
50876711749e933136afaf844f20b538fdde91da
Shell
luagui/SistemasOperativos
/FicherosP3/schedsim/script.sh
UTF-8
981
3.453125
3
[]
no_license
echo "Introudza el nombre del archivo a ejecutar:" read filename cd examples/ while [ ! -f $filename ] do echo "No se encuentra el archio especificado." echo "Introudza el nombre del archivo a ejecutar:" read filename done cd .. echo "Introudza el numero de cpus que desea simular:" read numcpus while [ $numcp...
true
18ed75b9d28fd6fc685649e7bb07387325d609e2
Shell
nagarajanmolrao/mca_1_unix_lab
/script_4b.sh
UTF-8
485
3.578125
4
[]
no_license
clear if [ $# -eq 0 ] then printf "Invalid arguments" else if [ $# -eq 1 ] then dir=`pwd` elif [ $# -eq 2 ] then dir=$2 fi if [ -f $1 ] then inode=`ls -i $1 | cut -d " " -f 1` printf "hard link of $1 are:\n" find $dir -inum $inode find $dir -type l -ls |tr -s " " |grep $1 |cut -d " " -f 12 > soft ...
true
bb84898f5ac93961361e903dbe63f3fdb0bdf9c0
Shell
meilihao/learn_syslinux
/isolinux/isolinux-basic.sh
UTF-8
1,367
3.328125
3
[]
no_license
#!/usr/bin/env bash set -e #set -x echo -e "--- start isolinux-basic.sh ---\n\n" # https://www.chengweiyang.cn/2011/08/13/create-linux-system-iso/ # https://wiki.gentoo.org/wiki/Syslinux SyslinuxRoot=../syslinux-root DemoRoot=isolinux-basic mkdir -pv ${DemoRoot} rm -rf ${DemoRoot}/isolinux || true mkdir -pv ${DemoRo...
true
aa52025e32be183b25bef7d6ff914b26a0d2920f
Shell
MattClarke131/dotfiles
/scripts/delete-swp.sh
UTF-8
479
3.765625
4
[]
no_license
#!/usr/bin/env zsh #### DESCRIPTION: Finds and deletes all .swp files within current directory (and its children) num_processes=$(ps -aux | grep vim | wc -l) if [ $num_processes -gt 1 ] then echo "You have vim sessions running!" echo "(Ignore the grep process)" echo "$(ps -aux | grep vim)" echo "" echo "Proc...
true
15164c29c60f92e06bcd05a417efd712a6822c55
Shell
neikei/SpectrumScaleVagrant
/setup/demo/script-80.sh
UTF-8
794
3.40625
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/bash # Improve readability of output echo "=========================================================================================" echo "===>" echo "===> Running $0" echo "===> Authorize the default GUI admin to manage ACLs" echo "===>" echo "=============================================================...
true
a8ae37b2f5ae65a3d6050c51d5d673850b52adce
Shell
yunxing/qcheck
/mk-release.sh
UTF-8
344
3.125
3
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
#!/bin/sh echo "usage: mk-release [VERSION]" VERSION="$1" echo "archiving for version $VERSION" EXCLUDES="--exclude=.git --exclude=_build --exclude=man --exclude=doc --exclude=.*.sw* --exclude setup.data --exclude setup.log" OUTPUT="qcheck-$VERSION".tar.gz PREFIX="--transform s+^\./+qcheck-$VERSION/+" tar cavf $OUT...
true
2cf4d3b6a2f29cb6ac45bbbd557d59695bb26e73
Shell
mffrench/rippled
/Builds/DockerPlay/rdde
UTF-8
6,050
4
4
[ "ISC", "MIT-Wu", "MIT", "BSL-1.0" ]
permissive
#!/bin/sh OS=`uname` if [ "$OS" != "Linux" ]; then echo "Unfortunately your $OS is currently not supported..." exit 1 fi which docker > /dev/null if [ $? -ne 0 ]; then echo "$0 needs docker... Exit." exit 1 fi docker ps -a > /dev/null if [ $? -ne 0 ]; then echo "$0 needs working docker... Check ...
true
b257ca0cb4dac492ff4754c3f77b6b8e216b6d8f
Shell
jeromepin/dotfiles
/.bashrc.d/50_functions.sh
UTF-8
600
2.875
3
[]
no_license
#!/usr/bin/env bash b64e () { printf "$1" | base64 printf "" } b64d () { printf "$1" | base64 --decode printf "\n" } simple_http_server () { python3 -m http.server 8000 --bind 127.0.0.1 } # broot --print-shell-function bash function br { local cmd cmd_file code cmd_file=$(mktemp) if ...
true