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
1baf1719bf086000454077c6c4f318c13b6fb766
Shell
Mrtlearns/Docker
/update_dns.sh
UTF-8
1,857
3.453125
3
[]
no_license
# Guide : https://www.cloudsavvyit.com/3103/how-to-roll-your-own-dynamic-dns-with-aws-route-53/ # 1. Install AWS CLI if not present and AWS configure. Install sudo yum install jq -y # 2 Upload script below use script below as update_dns.sh # 3 Make excutable chmod +x and chmod 777 # 4 crontab -e (last line of sc...
true
2745d0f085b8069cbb1dda21d18914cffd67e735
Shell
Rockwc/book
/zsh/fast/.bin/atop
UTF-8
728
2.625
3
[ "ISC" ]
permissive
#!/bin/zsh if (($# == 0)) { # cpu su -c "export LD_LIBRARY_PATH=$PREFIX/lib; export PATH=$PREFIX/bin; export HOME=$PREFIX/../home/.config/android/top_cpu; export TERM=xterm; export LANG=en_US.UTF-8; stty columns $COLUMNS; stty rows $LINES; top" } elif [[ $1 == 0 ]] { # org su -c "export LD_LIBRARY_PATH...
true
d03626e057674e36e932b3b981e7c11ab9f59d50
Shell
perguth/raspi-file-buoy
/update-trackers.sh
UTF-8
1,869
3.984375
4
[ "MIT" ]
permissive
#!/bin/bash # Save this file under: `/opt/etc/transmission/torrent-added.sh` # Change rights: `chown debian-transmission:debian-transmission /opt/etc/transmission/torrent-added.sh` # Make it executable: `chmod +x /opt/etc/transmission/torrent-added.sh` # # Add following strings to `/opt/etc/transmission/settings.json`...
true
ad28ff8a453074fce82ac6e4854850b1e84afcd3
Shell
Rosling-lab/kungsangen
/scripts/clustselect.sh
UTF-8
1,876
4
4
[]
no_license
#!/usr/bin/env bash # helper script to extract given sequences from bam files # the names of the sequences to select are taken from stdin # command line parameters are: # n uc bamdir bamsuffix outdir bamprefix ... # n - integer index of this cluster # uc - path to the .uc (uclust format) file from dereplicating the sou...
true
0944620eae1bee202d67663155d3f32d69b73371
Shell
DaanWielens/pushbullet-shell
/pushfile.sh
UTF-8
1,386
3.4375
3
[]
no_license
#!/bin/sh { token='YOUR_KEY_HERE' verbose=0 while getopts ":f:n:t:" opt; do case $opt in f) FILE=$OPTARG >&2 ;; n) NAME=$OPTARG >&2 ;; t) TYPE=$OPTARG >&2 ;; esac done echo "Pushfile starting..." echo "--------------------" echo "Sending upload request..." curl --silent -...
true
da2c3ff4ca4f046d221bcb6edc67f39cbf14de93
Shell
pablodelhoyoTECH/eb-java-scorekeep
/1-create-bucket.sh
UTF-8
228
2.828125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -eo pipefail BUCKET_ID=$(dd if=/dev/random bs=8 count=1 2>/dev/null | od -An -tx1 | tr -d ' \t\n') BUCKET_NAME=beanstalk-artifacts-$BUCKET_ID echo $BUCKET_NAME > bucket-name.txt aws s3 mb s3://$BUCKET_NAME
true
8f15d20735263181aa8467b2d117e840964c086e
Shell
GianlucaBortoli/PROSIT_V2.0
/test/test_all
UTF-8
4,944
3.0625
3
[]
no_license
#!/bin/bash ########################## # COMMAND LINE TOOL TEST # ########################## ############################################################################# #Test Case 1: #File: test_case_1.txt #Distribution: Normal #Average: 29338.9071 us #Standard deviation: 3689.523...
true
a76e15734372416e886ae7b983a5e170010237c0
Shell
ArleneWard/dotfiles
/scripts/install
UTF-8
532
3.390625
3
[]
no_license
#!/bin/bash cd .. for name in *; do target="$HOME/.$name" if [[ $name == 'bin' ]]; then # Harcoded bin reference target="$HOME/$name" fi if [[ $name != 'misc' && $name != 'README' && $name != 'scripts' ]]; then echo "Creating $target" if [ -e...
true
5ca9871ccb7d1d218a802f61ef97b84ce7ffd6d7
Shell
omario61/Execution-Time-Prediction
/spark-swat/functional-tests/connected_components/test-all.sh
UTF-8
541
2.75
3
[ "BSD-2-Clause" ]
permissive
#!/bin/bash set -e APP=connected_components NEXECUTORS=$(cat $SPARK_HOME/conf/slaves | wc -l) # SPARK_LOG_FILE=$SWAT_HOME/logs/overall/$APP/spark # SWAT_LOG_FILE=$SWAT_HOME/logs/overall/$APP/swat SPARK_LOG_FILE=$SWAT_HOME/logs/scalability/$APP/$NEXECUTORS/spark SWAT_LOG_FILE=$SWAT_HOME/logs/scalability/$APP/$NEXECUT...
true
2457dbb97c901f7f79f0e6244a0ab145ea5941d9
Shell
owoloch/git-checker
/.github/scripts/functions.sh
UTF-8
1,275
3.984375
4
[]
no_license
#!/bin/bash RED="\e[41m" GREEN="\e[42m" BOLD="\e[1m" DEFAULT="\e[0m" failed=0 total=0 function check() { (( total++ )) if [ "$1" != 0 ] ; then (( failed++ )) echo "❌ Failed" return 1 else echo "✅ Passed" return 0 fi } function pattern() { echo -n "➡️ $2 " ...
true
1c09fa4ac759fd34555917dc5f6983fb892f1927
Shell
paultag/www-bin
/start-app-failwrapper
UTF-8
474
3.265625
3
[]
no_license
#!/bin/bash # Copyright (c) Paul Tagliamonte, 2012, Expat. if [ "x$UID" == "x0" ]; then echo "Please don't serve as root." exit 1 fi APP="$1" echo "STARTING $APP" cd /srv/www/ start-app $APP RET=$? if [ $RET -ne 0 ]; then mailx -s "Failure on uWSGI app $APP." tag@pault.ag <<EOF Howdy there, I'm your frie...
true
9691007556af7b696676892baeaaedc3035764a6
Shell
duyanning/ropevm
/jolden/em3d-revised2/genlog
UTF-8
727
2.640625
3
[]
no_license
#!/usr/bin/env sh minivmrunbin > b.txt 2>&1 x=0 while [ $x -lt 40 ] do grep -n "#$x" b.txt > b$x.txt x=`echo "$x + 1" | bc` done #egrep '#5 use spec|#5 spec msg|#5 comt spec|#5 veri spec|#5 reset spec' b.txt > specsnapshot.txt #egrep '#5 use spec|#5 spec msg|#5 reset spec' specsnapshot.txt > spec.txt #egrep '#5 c...
true
d404a4a30c1097e4df20e26738abb802bfd0f3d7
Shell
kisaragychihaya/rpi_squashfs
/rpi_script.sh
UTF-8
2,634
3.9375
4
[ "MIT" ]
permissive
#!/bin/bash if [ ! -f "/proc/device-tree/model" ]; then echo "Pls Run this script on RPi" exit 2 fi if [[ "$(cat /proc/device-tree/model | grep \"Raspberry\")" == "" ]];then echo "Pls Run this script on RPi" exit 2 fi if [ -z "$(cat /proc/filesystems | grep squashfs)" ];then echo "Kernel DOES NOT SUPPORT squ...
true
6c072a1dbef483994bc66f73c72ddcde65258fa4
Shell
categorical/qamar
/setup.d/yasm.sh
UTF-8
407
2.609375
3
[]
no_license
#!/bin/bash . `dirname $0`/env.sh import 'out' readonly URI='http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz' readonly DEST='/opt/yasm' cachegetfile "$URI" 'regdest' readonly PYTHON2=/opt/python27/bin/python2 pushd "$regdest" >/dev/null||exit 1 ./configure \ --prefix="$DEST" \ PYTHON="$PYTHON2" \ &...
true
9cd1b75207d4b9091b9365b4c876743e5a7d4fb6
Shell
dapeng-soa/dapeng-soa
/dapeng-container/dapeng-container-impl/dockerBuild.sh
UTF-8
472
3.40625
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash #脚本目录 basedir=`pwd` dirname $0|grep "^/" >/dev/null if [ $? -eq 0 ];then basedir=`dirname $0` else dirname $0|grep "^\." >/dev/null retval=$? if [ $retval -eq 0 ];then basedir=`dirname $0|sed "s#^.#$basedir#"` else basedir=`dirname $0|sed "s#^#$basedir/#"` fi ...
true
6f11e67246de2d0ff10b6bd289b260af08d2435c
Shell
adki/DeepLearningOnRaspberryPi-20200630
/codes/caffe-v1-projects/mnist.LeNet/scripts/train_lenet.sh
UTF-8
205
2.84375
3
[]
no_license
#!/bin/bash # train_mnist.sh <CAFFE_HOME> <SOLVER> set -e CAFFE_HOME=$1 SOLVER=$2 echo "${CAFFE_HOME}/build/tools/caffe train --solver=${SOLVER}" ${CAFFE_HOME}/build/tools/caffe train --solver=${SOLVER}
true
e3da8fa83b94bf57a5fafb418c9dd0b9af0f2566
Shell
livingyang/imagemagick
/_move_to_letter.sh
UTF-8
270
3.8125
4
[]
no_license
#!/usr/bin/env bash is_PNG_file() { fileName=$1; if [ "PNG" == ${fileName##*.} ]; then return 0; else return 1; fi } for fileName in ./*; do if is_PNG_file $fileName; then echo $fileName; mv $fileName ${fileName/.PNG/.png}; fi done
true
af1f06cacbd1e831954c1b2a748cc653c073bcd2
Shell
Tech-XCorp/bilder
/packages/moab.sh
UTF-8
14,121
3.4375
3
[]
no_license
#!/bin/sh ###################################################################### # # @file moab.sh # # @brief Build information for moab. # # @version $Rev$ $Date$ # # Copyright &copy; 2012-2017, Tech-X Corporation, Boulder, CO. # See LICENSE file (EclipseLicense.txt) for conditions of use. # #####################...
true
94290cb35af3daccbbc375b2d0e944b48abb7a64
Shell
kubeplusplus/kubernetes
/scripts/__utils.sh
UTF-8
2,567
3.515625
4
[ "Apache-2.0" ]
permissive
# !/usr/bin/env bash set -e export SOURCE_FOLDER="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; cd .. ;pwd -P )" # Define your script profile export RC_FILE=${RC_FILE:-"$HOME/.bashrc"} if [ ! -f "$RC_FILE" ];then echo "$RC_FILE is not exist!"; exit; fi # Define your kube folder export KUBE_FOLDER=${KUBE_FOLDER:-"$HOME/....
true
cb7cb44e1fdff84d0380477c1685d2ee9aec93a9
Shell
daheige/hgshell
/break_test.sh
UTF-8
457
3.328125
3
[]
no_license
#!/bin/bash #在shell脚本中可以执行命令 rm -rf file_two file_list=(file_one file_two) for file in ${file_list[@]}; do if [ -f "$file" ]; then echo "$file is file" break fi done file_list=(file_s file_two file_one) #声明一个数组 for file in ${file_list[@]}; do if [ $file != "file_one" ]; then echo ...
true
e3f7b04b7501aa6d0e62ff5f9e34b0b15848a5b5
Shell
jimstedman/dotfiles
/run_first.sh
UTF-8
283
3.09375
3
[]
no_license
#!/bin/bash # run from root to install needed packages using apt if [ "$(id -u)" != "0" ]; then echo "This script installs needed packages using apt-get, please run as root." 2>&1 exit 1 fi apt-get -y install zsh tmux vim update-alternatives --set editor $(which vim)
true
aac3c3b719e87d0d3128095913f96cfd5c987cb9
Shell
rohit-bindal/openroberta-lab
/Docker/openroberta/scripts/analysis/serverStateOverview.sh
UTF-8
540
3.09375
3
[ "MIT", "GPL-3.0-only", "Apache-2.0" ]
permissive
( cd /proc for pid in [0-9]* do echo "$(ls /proc/$pid/fd/ | wc -l) $pid" done \ | sort -rn -k1 | head -5 \ | while read -r fdcount pid do command=$(ps -o cmd -p "$pid" -hc) printf "pid: %5d fd: %5d cmd: %s\n" "$pid" "$fdcount" "$command" case "$command" in ...
true
1a329ff1e2e01484cc5f80bc663a3954321b6958
Shell
syhan/scripts
/cf/pre_live.sh
UTF-8
338
2.671875
3
[]
no_license
#!/bin/sh if [ ! -f ~/.domain_password ]; then echo "Please first use \necho <Domain Password> | base64 > ~/.domain_password\n to generate your password file" exit fi PASSWORD=$(cat ~/.domain_password | base64 -d) cf api https://api.cf.eu10.hana.ondemand.com cf login -u yihan.song@sap.com -p $PASSWORD -s IoTTra...
true
8371003bf9799de55bc1a10610caf2dc40c63ff9
Shell
cxbn12/ntu-nlp
/server/install.sh
UTF-8
359
3.015625
3
[]
no_license
#!/bin/bash ENV_NAME=ml-web-demo # create environment if ! conda env create --file environment.yml --name ${ENV_NAME} then exit fi source ~/anaconda3/etc/profile.d/conda.sh conda activate ${ENV_NAME} python_base=~/anaconda3/envs/${ENV_NAME}/lib/python3.7 cd ${python_base} || exit # fix _gdbm module not found erro...
true
fe60d9c81befb0d98859a802887a9819816d4834
Shell
necla-ml/gen-dnn
/nwarn.sh
UTF-8
519
2.875
3
[ "Apache-2.0", "BSD-3-Clause", "Intel" ]
permissive
#!/bin/bash # strip line number info0rmation from log files to compare # build logs and debug cmake issues # Example: # ./nln.sh build-sx.log > bb.log if [ -f "$1" ]; then awk '/Unvectorized/{next}/incorrect ftrace/{next}/and ignored.$/{next}/clause simplified.$/{next}/fatil(/{echo "ERROR";echo "FATAL";print;next}/...
true
0a1cb8f4023edf974db80ea38d6afd19dd4982c6
Shell
ZeroXbot/MemeBot
/convert.sh
UTF-8
163
2.984375
3
[ "MIT" ]
permissive
#!/bin/bash for f in audio_2/*.wav do fname=$(basename "$f") fname="${fname%.*}" dca-rs --raw -i $f > audio/${fname}.dca echo "Converted $f" done
true
df7bfaf72268e2455446f27614a06feecc9eba3f
Shell
gitbeyond/ansible_roles
/system_secure/files/check_syslog_file.sh
UTF-8
2,063
3.40625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash SYSLOGD_FLAG=`ps -ef |egrep ' syslogd '|egrep -v "grep"|wc -l`; SYSLOGNG_FLAG=`ps -ef |egrep "syslog-ng"|egrep -v "grep syslog-ng"|wc -l`; RSYSLOGD_FLAG=`ps -ef | egrep "rsyslogd" | egrep -v "grep" |wc -l`; if [ "$SYSLOGD_FLAG" != 0 ]; then LOGDIR=`if [ -f /etc/syslog.conf ];then cat /etc/syslog.c...
true
a3d27262d11aef8d8018262e3d6679a5e21e4dd8
Shell
SoxKeepYouWarm/Reliable-Transport-Protocols
/scripts/experiment_one_sr.sh~
UTF-8
2,228
2.90625
3
[]
no_license
#!/usr/bin/bash rm -R ./experiment_one_sr mkdir ./experiment_one_sr CONSTANTS="-m 1000 -t 50 -c 0.2" ERROR_LOG="./experiment_one_sr/error_log.txt" for window in 10 50 do for loss in 0.1 0.2 0.4 0.6 0.8 do echo "starting experiment one SR: loss ${loss} window: ${window}" ./run_experiments -p ../davidtow/sr ${CONST...
true
bfa0c6e9494e4f47dd1128d570cd8dc1a967a4f7
Shell
ZielinskiLukasz/vagrantbox-lamp
/mysql_setup.sh
UTF-8
1,538
3.234375
3
[]
no_license
#!/bin/bash ### # # mysql_setup.sh # # based on rrosiek/install_mysql.sh # Helper script which role is to install MySQL and PHPMyAdmin # Other packages are installed with ansible # ### # Variables DBHOST=localhost DBNAME=dbname DBUSER=dbuser DBPASSWD=test123 # MySQL setup for development purposes ONLY sudo debconf-s...
true
53905f3c718b1eadd65d841e588bf66c8db49f86
Shell
krattai/AEBL
/core/patches/ap009012/ihdn_play.sh
UTF-8
3,526
2.890625
3
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
#!/bin/bash # runs updates # # Copyright (C) 2014 IHDN, Uvea I. S., Kevin Rattai # # This file will be superceded by the l-ctrl file as far as # control of the system, as l-ctrl will be a cron job. This # script may become depricated, although it might continue a # useful, future function for loose processes that are ...
true
0c8b9f643dc2d9bf753671996dc4560280f8ade8
Shell
onlytiancai/codesnip
/txt/shell/network.sh
UTF-8
588
3.09375
3
[]
no_license
#!/bin/bash #network #Mike.Xu while : ; do time='date +%m"-"%d" "%k":"%M' day='date +%m"-"%d' rx_before='ifconfig eth0|sed -n "8"p|awk '{print $2}'|cut -c7-' tx_before='ifconfig eth0|sed -n "8"p|awk '{print $6}'|cut -c7-' sleep 2 rx_after='ifconfig eth0|sed -n "8"p|awk '{print $2}'|c...
true
56a509f8915d931e59adc2676a68092ef2a3faba
Shell
CoderNight/tampa-coder-night-march-2017
/003/lcd_shpec.bash
UTF-8
8,067
3.21875
3
[]
no_license
# Requires https://github.com/rylnd/shpec library=./lcd source "${BASH_SOURCE%/*}/$library" 2>/dev/null || source "$library" unset -v library describe defa it "creates an array from a heredoc" defa samples <<'EOS' one two EOS expected='declare -a samples='\''([0]="one" [1]="two")'\' assert equal "$expec...
true
4e7b8f3fde74fb0bee012a0d5306a6ffff02e7ba
Shell
micha/vim-config
/bin/git-change-committer.sh
UTF-8
429
2.609375
3
[]
no_license
#!/bin/sh git filter-branch -f --env-filter ' an="$GIT_AUTHOR_NAME" am="$GIT_AUTHOR_EMAIL" cn="$GIT_COMMITTER_NAME" cm="$GIT_COMMITTER_EMAIL" if [ "$GIT_COMMITTER_EMAIL" = "micha@thinkminimo.(none)" ] then cn="Micha Niskin" cm="asdf@ubergibson.com" fi if [ "$GIT_AUTHOR_EMAIL" = "micha@thinkminimo.(none)" ] then a...
true
d706890ab902c016808d1c6f7b59fc86e06e02ad
Shell
abellotti/container-ext-auth
/container-httpd/docker-assets/appliance-initialize.sh
UTF-8
574
2.796875
3
[]
no_license
#!/bin/sh # Source OpenShift scripting env [[ -s ${CONTAINER_SCRIPTS_ROOT}/container-deploy-common.sh ]] && source "${CONTAINER_SCRIPTS_ROOT}/container-deploy-common.sh" # Prepare initialization environment prepare_init_env # Create log directory and symlink from app setup_logs # Create Apache certs directory and s...
true
74dbd6314c2f938ce3975872633b351bd38b47a6
Shell
thomas-mc-work/welder-contrib
/modules/rbenv/setup.sh
UTF-8
1,738
3.21875
3
[]
no_license
#!/bin/sh # # Installs rbenv, ruby-build, rben-vars + the specified ruby version # set -xeu [[ -f setup/config-variables ]] && source setup/config-variables sudo apt-get update && sudo apt-get install -y \ autoconf \ automake \ bison \ build-essential \ curl \ exuberant-ctags \ git-core \ libc6-dev \ ...
true
2af93fdb0bf40763abe71f0fefe0d529df844729
Shell
adoyle-h/lobash
/tools/gen-changelog
UTF-8
932
3.828125
4
[ "Apache-2.0", "LicenseRef-scancode-unknown" ]
permissive
#!/usr/bin/env bash # vim: set ft=sh set -o errexit set -o nounset set -o pipefail set -o errtrace (shopt -p inherit_errexit &>/dev/null) && shopt -s inherit_errexit SCRIPT_DIR="$(cd -P -- "$(dirname -- "$0")" && pwd -P)" readonly SCRIPT_DIR changelog=$SCRIPT_DIR/../CHANGELOG.md _lobash.is_gnu_sed() { sed --versio...
true
6464d6d687519e4f41ac46266d1cd8c3d76ca67a
Shell
crawler99/coding_exercises
/Samples/cmake_debug.sh
UTF-8
316
2.65625
3
[]
no_license
#!/bin/sh BUILD_DIR="build" mkdir -p ${BUILD_DIR} cd ${BUILD_DIR} rm -fr debug mkdir debug cd debug cmake \ -DCMAKE_BUILD_TYPE=Debug \ -DGCC_ROOT=/usr \ -DBUILD_TESTS=ON \ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ ../..
true
4cfcaf9e0356ab10a65bacfaafe7aeeacc45e646
Shell
peakqi/Extended-Phase-Graph
/epg33_run_step2_nonregularisation.sh
UTF-8
136
2.5625
3
[]
no_license
#!/bin/sh a=1 while [ "$a" -lt 177 ] do fsl_sub -q long.q matlab -r "epg33_step2_nonregularisation($a)" a=`expr $a + 1` done
true
e24643402e47b3db78b997ffc8c535e3ceebd468
Shell
aplascencia-ns/HighlyAvailableWebsite
/tools/ap_ops
UTF-8
557
2.9375
3
[]
no_license
#!/usr/bin/env bash # Init variables action="$1" process_name="$2" account_name="$3" # ops.sh get sshconfig nearsoft if [ "$action" == "get" ]; then if [ "$process_name" == "sshconfig" ]; then sh ./ssh_config/ssh_config.sh $account_name sh ./ssh_config/merge_files.sh $account_name else ...
true
f38c33d1b149ed7bdaec75621d7b02070c71dc36
Shell
fadein/dotzsh
/tasks/EXAMPLE.zsh
UTF-8
7,238
3.828125
4
[]
no_license
#!/bin/env zsh PURPOSE="EXAMPLE Zsh task" VERSION="***" DATE="***" AUTHOR="***" # # Don't change these assignments - they are very important to the functioning # of tasks, and they must be made at the toplevel of this script. # PROGNAME captures the value of $0 right here since it varies depending upon # which fu...
true
f27692efe70eb73219d8efa7d25fb2da81f825d5
Shell
Oksanatishka/42_init
/scripts/04
UTF-8
1,330
4
4
[]
no_license
#!/bin/bash # Write a script which monitors the modifications made to the /etc/crontab file # and sends an e-mail to root if the file is modified. Create a scheduled task to # run this script everyday at midnight. # apt install git # Install mailutils using "apt-get install mailutils" # s2 hash sum before modified ...
true
cc0f6b2a8d8b9a1f8a2732db0c5deaab1c59d858
Shell
jabdoa2/helm-charts
/backup/docker/entrypoint.sh
UTF-8
754
2.953125
3
[]
no_license
#!/bin/ash # allow root login sed -i -e 's/^root:!:/root::/' /etc/shadow # copy keys cp /keys/ssh_host_ed25519_key.pub /etc/ssh/ssh_host_ed25519_key.pub echo "" >> /etc/ssh/ssh_host_ed25519_key.pub cp /keys/ssh_host_ed25519_key /etc/ssh/ssh_host_ed25519_key echo "" >> /etc/ssh/ssh_host_ed25519_key chmod 0600 /etc/ssh...
true
545a73fb3e9639edc09720dc0a50ef632ac1b225
Shell
mrirecon/enlive
/01_02_03_smallfov/brain/8_create_sens_figure.sh
UTF-8
1,559
3.359375
3
[]
no_license
#!/bin/bash set -euo pipefail source ../../FONT.sh source opts.sh #first argument is both dir name and output name DIR="$1" cd ${DIR} Y=$(identify -format "%[fx:h]" ./r_mm_1.png) #set density. 72 means 1pt is 1 pxl DENSITY=$( echo 'scale=5; 72/192*'$Y'*7/5' | bc) FONTSIZE=$( echo 'scale=0; 192/6' | bc) SPACING=$( ech...
true
2cef1e6d24052d2e26a8bbf43e8e6ede6b8353b7
Shell
christopher-demarco/hello-serverless
/bin/create-tag.sh
UTF-8
291
3.984375
4
[]
no_license
#!/bin/bash set -e # Create a tag using the contents of the VERSION file in the toplevel # of the repo. # Prompt the user for the tag description. VERSION=$(cat VERSION) read -e -p 'Tag description: ' DESC echo Pushing $VERSION as $DESC git tag -a $VERSION -m "$DESC" git push --tags
true
1cebdde1a3ae69ce6f6500a23c890efca1f0e75d
Shell
delafuentelorena/FJD_germlineVariantCalling
/utilities/SNV_pipeline_local.sh
UTF-8
42,185
3.171875
3
[]
no_license
#!/bin/sh ################################ ### FJD pipeline - Haplotype ### ################################ # REQUIRED MODULES AND DATABASES: export SFT=/mnt/genetica3/marius/pipeline_practicas_marius/software alias bwa='$SFT/bwa/bwa' alias samtools='$SFT/samtools/samtools' alias picard='java -jar $SFT/picard/build...
true
1d59459b425750299454a80ba8a226f2bce10d60
Shell
PradeepTammali/Shell-Script
/DuplicateCSV.sh
UTF-8
470
3.53125
4
[]
no_license
#!/bin/sh # To create duplicates rows in csv file echo started at:`date +%T:%N` file=/home/pradeep/Desktop/sample.csv i=1; while [ $i -lt 1000000 ] do i=`expr $i + 1` # -q supresses the headers that normally get printed, -n 1 prints only the first line head -q -n 3000 $file >> output.csv done echo ended at...
true
948d69cb570ebf239812da023a7b8d134c46cce4
Shell
zhang-deep/ABBA
/experiments/deblurGan.sh
UTF-8
3,719
2.65625
3
[]
no_license
#!/usr/bin/env bash cd ../tools/DeblurGAN/ echo "method:$1" if [ $1 == 'mbAdv' ] then for kernelsize in `seq $2 5 $3` do for translation in `seq $4 0.1 $5` do # parameter: $1 sbAdv_bim, bim, fgsm, gblur dataroot=/path of project/results/dev/inceptionv3_inceptionv3_mbAdv_...
true
74e591f51b1456f05eb6171dd950b458d44df315
Shell
clownix/cloonix
/quickstart/create_cnt_kvm/cnt/fedora38
UTF-8
4,382
3.71875
4
[]
no_license
#!/bin/bash set -e releasever=38 basearch=x86_64 DISTRO=fedora${releasever} ROOTFS=/root/${DISTRO}.img MIRROR=http://distrib-coffee.ipsl.jussieu.fr/pub/linux/fedora/linux FEDORA_MAIN=${MIRROR}/releases/${releasever}/Everything/${basearch}/os FEDORA_MODULAR=${MIRROR}/releases/${releasever}/Modular/${basearch}/os FEDORA_...
true
d634c170d8b5e9fa025f8cb420b6923d24c43fd2
Shell
ClickHouse/ClickHouse
/tests/queries/0_stateless/02352_rwlock.sh
UTF-8
3,666
3.671875
4
[ "Apache-2.0", "BSL-1.0" ]
permissive
#!/usr/bin/env bash # Tags: no-parallel, no-fasttest, no-debug # Tag no-parallel -- to avoid running it in parallel, this will avoid possible issues due to high pressure # Test that ensures that WRITE lock failure notifies READ. # In other words to ensure that after WRITE lock failure (DROP), # READ lock (SELECT) avai...
true
fb35ac9f03a4d70d86b3091dd0e35ce3182f46f9
Shell
xuchengcheng926/nekonekostatus
/neko.sh
UTF-8
682
2.65625
3
[]
no_license
wget --version||yum install wget -y||apt-get install wget -y /usr/bin/neko-status -v||(wget https://github.com/nkeonkeo/nekonekostatus/releases/download/v0.1/neko-status_linux_386 -O /usr/bin/neko-status && chmod +x /usr/bin/neko-status) mkdir /etc/neko-status/ echo "key: 49b6c954-e5d5-4f72-a450-6af23f3fffd6 port: 900...
true
45b850c80c879f59aaf95b70f88e53772f21d355
Shell
woonpeng/airflow-dags-dev_env
/neo4j/scripts/restore.sh
UTF-8
1,457
3.703125
4
[]
no_license
#!/bin/bash set -euo pipefail # defaults BACKUP_FILENAME="" if [[ -z $graphname ]]; then echo "<graphname> must be specified in environment variables or as a parameter" >&2 exit 2 fi if [[ -z $backuppath ]]; then echo "<backuppath> must be specified in environment variables or as a parameter" >&2 exit 2 fi # ...
true
1c91cfd80c33a5d2947588aa85128bbaf76b6eb4
Shell
iRave/ParalleleProgrammierung
/Blatt_5/performanceA2.sh
UTF-8
930
3.03125
3
[]
no_license
#!/bin/bash rm out.txt avSingleTime=0 for((singleRun=0; singleRun<2; singleRun++)) do temp=$( { /usr/bin/time -f "%e" ./serial.o -args; } 2>&1 ) avSingleTime=$(bc -l <<<"$temp + $avSingleTime") done avSingleTime=$(bc -l <<<"$avSingleTime/2.0") avMultiTime=0 for((processCount=4; processCount<=2048; processCount*=2...
true
55a61e89cb5de00c0f7fb970dd9e43f161415a8d
Shell
mcclurmc/xcp-storage-managers
/iscsi-mgt/host/iscsi_ctrl.sh
UTF-8
7,412
3.859375
4
[]
no_license
#!/bin/bash ## This is the iscsi-specific configuration script ## to enable setup of iscsi-backed SRs if [ -z ${MY_HOSTNAME} ]; then MY_HOSTNAME=`hostname` fi ISCSIADM="/sbin/iscsiadm" INITIATORNAME_FILE="/etc/iscsi/initiatorname.iscsi" # Wait for device to appear iqn_wait() { TARGET_IQN=$1 count=0 w...
true
50845f062d530fc34479c4b34fe7ba9a76352e3a
Shell
FauxFaux/debian-control
/c/context/context_2018.04.04.20180416-1_all/postinst
UTF-8
4,289
3.625
4
[]
no_license
#!/bin/sh set -e dhit_libkpathsea_configured () { kpsewhich --version >/dev/null 2>&1 } case "$1" in configure) # dealing with doc link changes, bug #716892 # tex-common >=4 removes the link # /usr/share/texmf/doc -> /usr/share/doc/texmf # In addition, the preinst of tex-common renames the li...
true
20ac9e1a56e88779f4c389f4d328222da1b817df
Shell
muthuku/polyname
/polyname/cde.sh
UTF-8
226
2.84375
3
[ "MIT" ]
permissive
#!/bin/bash #echo 'Input a file name' #read input file=$1 while read line; do echo $line done < $file cat $file cde extract $file -o $file.json #cde tokenize sentences $file #cde tokenize words $file #cde pos tag $file
true
43c0759a586c468b9475768f68df557662ffafc6
Shell
jingwenw/net-automation
/cfg.tcng/flasher/launch_tcng_build_only.sh
UTF-8
1,886
3.515625
4
[ "BSD-2-Clause" ]
permissive
#!/bin/bash # # Prepare the global environments used for TCNG build tools. # # NOTE: the followings can be pre-configured, otherwise default will be used: # - $WORKSPACE # - $TCNG_REPO_ASIC # - $TCNG_REPO_MIDDLEWARE # - $TCNG_REPO_TUNETSYS # - source $TCNG_CFG_DIR/cfg.tcng/source_me_first_tcng_env.sh # ...
true
7228e1d330cc46513698052408c9263339ca6c65
Shell
Tech-Learner07/Juice-shop-Automator-Docker-
/juice-shop.sh
UTF-8
1,355
4.1875
4
[]
no_license
#!/bin/bash SRV="http://127.0.0.1:"$1 # To show the link on terminal show_link() { while [ true ]; do # check whether the host is up or not if [ "`wget $SRV -O /dev/null -S --quiet 2>&1 | grep '200 OK'`" != "" ]; then # If is up the show the link printf "\e[1;92m[\e[0m*\e[1;92m] Juice-Shop ;) :\e[0m\e[1;77m %s\e[0m...
true
e1bf42a33d69a2cbf23c5b19b45ac4758d0f83ec
Shell
ivankristianto/ivankristiantocom
/bin/up
UTF-8
847
4
4
[]
no_license
#!/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" CMD="docker-compose -f docker-compose.yml" CONF_DIR=config/docker/compose while [[ $# -gt 1 ]]; do key="$1" case $key in -e|--env) ENV="$2" shift ;; -f|--frontend) FRONT="$2" shift ;; --) EXTRA_ARGS=" $...
true
23d9d142887f0b0068883ff60ab1ca23772ab550
Shell
liujiamingustc/phd
/docker/microservices/nodejs/example/DEVOPS_MS_JS-docker-node-master/test-build.sh
UTF-8
1,620
3.96875
4
[ "Apache-2.0", "MIT" ]
permissive
#!/usr/bin/env bash # # Run a test build for all images. set -uo pipefail . functions.sh cd "$(cd "${0%/*}" && pwd -P)" || exit; IFS=' ' read -ra versions <<< "$(get_versions . "$@")" if [ ${#versions[@]} -eq 0 ]; then fatal "No valid versions found!" fi for version in "${versions[@]}"; do # Skip "docs" and ot...
true
d0ea4ac67816e487458d5691ebb1d4c9de113a5f
Shell
shikishima-TasakiLab/tensorflow-jetson-docker
/docker/run-docker.sh
UTF-8
4,001
4.0625
4
[ "MIT" ]
permissive
#!/bin/bash CONTAINER_NAME="tensorflow" CONTAINER_CMD="" DOCKER_ENV="" USER_ID=$(id -u) PROG_NAME=$(basename $0) TF_VERSION="2.0" declare -ar USABLE_VERSIONS=("1.13" "1.14" "1.15" "2.0") function usage_exit { cat <<_EOS_ 1>&2 Usage: $PROG_NAME [OPTIONS...] OPTIONS: -h, --help このヘルプを表示 -v, -...
true
0d5d339776f83b59693a4141eeb5279aedce69ad
Shell
LauraMaguire/hoppingSim
/example/rHopPBSpando.sh
UTF-8
3,793
3.25
3
[]
no_license
# Script to run run_bindobs. # # Copy this script, customize it and then submit it with the ``qsub'' # command. For example: # # cp pbs-template.sh myjob-pbs.sh # {emacs|vi} myjob-pbs.sh # qsub myjob-pbs.sh # # PBS directives are fully documented in the ``qsub'' man page. Directives # may be specified on the ``qsub'' ...
true
cf18d2f578ff5ba900ed28fa2390732341a4daf2
Shell
Sunine-yang/test_weather
/aqi_weather_location_tests/minutes_test/guangzhou_minutes_start.sh
UTF-8
262
3.140625
3
[]
no_license
#!/bin/bash ps_out=`ps -ef | grep 'shanghai_minutes' | grep -v 'grep' | grep -v $0` result=$(echo $ps_out | grep "guangzhou_minutes") if [[ "$result" != "" ]];then echo "Running" else paths=`pwd` echo $paths python3 $paths/guangzhou_minutes.py fi
true
e889a1abd3c7a96ed6d6a950090023862aac591c
Shell
vuhung/06-email-captinh
/Ma nguon/zcs-8.0.2_GA_5570-src/ZimbraServer/src/libexec/configrewrite
UTF-8
391
3.21875
3
[]
no_license
#!/bin/bash source /opt/zimbra/bin/zmshutil || exit 1 zmsetvars zmconfigd_listen_port NC=`which nc 2>/dev/null`; NC=${NC:-`which netcat 2>/dev/null`} echo REWRITE $@ | $NC -w 120 localhost ${zmconfigd_listen_port} > /dev/null 2>&1 rc=$? # If nc fails to connect, run zmconfigd directly if [ $rc -ne 0 ]; then /opt/z...
true
652e7488256cd2c651eb52d164b97501083ceee6
Shell
jamiepg1/cf_nise_installer
/common/start_processes.sh
UTF-8
597
3.359375
3
[ "MIT", "Apache-2.0" ]
permissive
#!/bin/bash -ex sudo /var/vcap/bosh/bin/monit sleep 5 for process in \ postgres \ nats do sudo /var/vcap/bosh/bin/monit start $process sleep 30 done; sudo /var/vcap/bosh/bin/monit start all echo "Waiting for all processes to start" for ((i=0; i < 120; i++)); do if ! (sudo /var/vcap/bosh/bin/mon...
true
76d77b67939fdff8bf4a2c2131f4963e22488db1
Shell
mmcmahon13/deep-metadata-extraction
/src/processing/preprocess_grotoap_full.sh
UTF-8
1,179
2.875
3
[]
no_license
#!/usr/bin/env bash #!/bin/bash export DATA_DIR="/iesl/canvas/mmcmahon/data/" # python grotoap_to_tfrecords.py --out_dir $DATA_DIR/pruned_pmc/train-30-lex-xlabels --load_vocab # $DATA_DIR/pruned_PMC_min_10.txt --grotoap_dir /iesl/canvas/mmcmahon/data/GROTOAP2/grotoap2/dataset/train --bilou --use_lexicons additional...
true
bb25fbb044af421f848a9d750f8fe7b777be5d11
Shell
gganis/tools
/bin/tunnel
UTF-8
972
3.984375
4
[]
no_license
#!/bin/sh # Create a SSH tunnel on host $1 using local port $2 of type $3 # # tunnel host [port] [static|dynamic] [rport] # tunnel port [dynamic|static] [host] [rport] # # Defaults for port and type are respectively, 3000 and static # if test "x$1" = "x-h"; then echo "Syntax:" echo " tunnel port [dynamic|stati...
true
e499615013e93ecb219eb67e446da206a0b145af
Shell
thtceys/cyberhunter
/pages/04web_exploitaton_tools/webexptools.sh
UTF-8
4,417
2.640625
3
[]
no_license
#!/bin/bash banner() { clear printf "\n" printf "\n" printf "\e[1;77m _ __ __ ______ __ _ __ __ \e[0m\n" printf "\e[1;77m| | / /__ / /_ / ____/ ______ / /___ (_) /_____ _/ /_...
true
355c60fc815510cb0c1acbd6fa77a1513a2f46bb
Shell
sindrets/dotfiles
/.config/scripts/git-file-history
UTF-8
922
4.25
4
[]
no_license
#!/usr/bin/env sh if [ "$#" -eq 0 ]; then echo "usage: git-file-history <FILE> <NUM-COMMITS> [START-COMMIT]" exit fi GIT_CMD=$([ ! -z "$GIT_CMD" ] && echo "$GIT_CMD" || echo "git") file_path="$1" file_name="$(basename "$file_path")" num_commits="$2" start_commit=$([ ! -z "$3" ] && echo "$3" || echo "") output...
true
2dafb2644b619e59c8c3be5410c9a87a62c7e5b8
Shell
louisqiao/gnatsd
/scripts/cross_compile.sh
UTF-8
625
3.09375
3
[ "MIT" ]
permissive
#!/bin/bash go get github.com/mitchellh/gox go get github.com/tcnksm/ghr export APPNAME="gnatsd" export OSARCH="linux/386 linux/amd64 linux/arm darwin/amd64 solaris/amd64 windows/386 windows/amd64" export DIRS="linux_386 linux_amd64 linux_arm darwin_amd64 solaris_amd64 windows_386 windows_amd64" export OUTDIR="pkg" g...
true
4a6ed9886b742c08eb96459086a28e543cbe632e
Shell
petronny/aur3-mirror
/skippy-xd/PKGBUILD
UTF-8
1,120
2.703125
3
[]
no_license
# Contributor: Loui Chang <louipc dot ist at gmail company> # Contributor: rxvt <artwithin@gmail.com> pkgname=skippy-xd pkgver=0.5.0 pkgrel=4 pkgdesc="A full-screen task-switcher for X11, similar to Apple's Expose." url="http://thegraveyard.org/skippy.php" license=('GPL') depends=('libxrender' 'libxcomposite' 'libxdam...
true
916d6c72c80d157b4901c154ecca0c7fe8c4e8dd
Shell
rsync-k8s/rsync
/daemon/entrypoint.sh
UTF-8
408
3.640625
4
[]
no_license
#!/bin/sh set -e RSYNC_USERNAME=${RSYNC_USERNAME:-user} RSYNC_PASSWORD=${RSYNC_PASSWORD:-pass} echo "$RSYNC_USERNAME:$RSYNC_PASSWORD" > /etc/rsyncd.secrets chmod 600 /etc/rsyncd.secrets # Check and run if any script is available at /entrypoint.d path. for f in /entrypoint.d/*; do case "$f" in *.sh) echo "$0: ...
true
e23d22a53acdd97efc77dccce6cbcf6d29fe5258
Shell
nicobrinkkemper/gabr.sh
/example/example.sh
UTF-8
264
3.515625
4
[ "MIT" ]
permissive
source ./usage.sh # sets the default usage function for all files in this directory # 'example' must be given as argument if [ -n "${1:-}" ] && ! [ "${1}" = 'usage' ]; then declare usageFiles="" # disable file listing for arguments after 'example' argument fi
true
50a74cc69d0507c8a10590f7beda0a2d6ffa8c99
Shell
babadanial/BashTestingScripts
/runSuite/runSuite.sh
UTF-8
1,771
4.09375
4
[]
no_license
#!/bin/bash # print usage message if wrong # of arguments if [ ${#} -ne 2 ]; then echo Usage: ${0} suite_file program >&2 exit 1 fi # conducts tests for filestem in $(cat "${1}"); do HASARGS=$((0)) HASINPUT=$((0)) ls -l | egrep "^.r.*${filestem}.out" > /dev/null if [ ${?} -ne 0 ]; then echo ...
true
622e535e2e3628253c242ec277a17413f9210bef
Shell
platdesign/uberdeploy
/test/test.sh
UTF-8
615
3.4375
3
[]
no_license
#!/bin/sh # Only a litte test # # - Show active version # - Create a project # - Make some changes # - Deploy it # - Run it locally # - Display logs # - Destroy it # - Show help TMPDIR=`mktemp -d 2>/dev/null || mktemp -d -t 'mytmpdir'`; ( cd "${TMPDIR}"; uberdeploydev -v uberdeploydev create "test"; cd "test"...
true
f887b0185f8be5195d2d0283976ff6b73724dd36
Shell
RogerioDosSantos/productivity_scripts
/mount_gogs_folder.sh
UTF-8
368
3.5
4
[]
no_license
#!/bin/bash echo "### Gogs - Data folder mount ###" # Ensure that run as root if [ "$EUID" -ne 0 ]; then echo "This program must be run with administrator privileges. Aborting" exit fi # Go to the directory where the bash file is cd "$(dirname "$0")" echo "- Running from $(pwd)" mkdir /data mkdir /data/gogs mo...
true
4b3bd82b236e3735f72df1360e29be352edfc922
Shell
n0use/sh
/brew-shadow
UTF-8
2,397
3.828125
4
[]
no_license
# shellcheck shell=bash bsl_debug=0 _date() { date '+%Y-%m-%d--%H-%M-%S' } _brew-shadow-load() { pkg="$1" [ -z "${pkg}" ] && { echo "Usage: brew-shadow [init|load] pkg"; return 1; } _env="${HOME}/sh/brew.d/${pkg}/vars.env" echo "check for $_env" if [ -f "${_env}" ] ; then _tmp_env="/...
true
50c8c5b717ef89e7d67a92209d7f5b35a7c415d7
Shell
ZanderGit/Lab9
/waitForButtonPress.sh
UTF-8
152
2.859375
3
[]
no_license
#!/bin/bash i=1 while [ $i == 1 ]; do i=$(gpio read 4) done sleep .01 while [ $i == 0 ]; do i=$(gpio read 4) done #echo "BUTTON HAS BEEN PRESSED"
true
5ee1ba92833cf810feccdae8e68b0ca6f1c873ae
Shell
NisalPriyanka/Unix_KeyLoggger
/logger.sh
UTF-8
653
2.640625
3
[]
no_license
#!/bin/bash #-------------------------------------# # # # DEVELOPED BY : NISAL PRIYANKA # # # #-------------------------------------# if [[ $1 == 'stop' ]]; then #run the parser script [TO key DECODE] python parse.py kill $(ps aux | awk '/[b]ackup/ {print $2}') exit #exit the scr...
true
1204c8f571cf250d6959cd3bda3b095412cf0601
Shell
maxkao/docker-src-cli
/build.sh
UTF-8
498
3.984375
4
[]
no_license
#!/bin/sh # # Usage: build.sh [version] # # If version is omitted, fetch the latest from GitHub. # set -eo pipefail readonly REPO=sourcegraph/src-cli VERSION="$1" if [ "$VERSION" = "" ] ; then VERSION=$(curl --silent "https://api.github.com/repos/$REPO/releases/latest" \ | jq -r .tag_name) fi echo "-- Buildin...
true
38d74b259ee641a3107cf3fce4168266e2206c69
Shell
crawlerclub/dxy2019nCoV
/bin/get.sh
UTF-8
464
2.9375
3
[]
no_license
#!/bin/sh # @author: Zhanliang Liu # @description: get https://3g.dxy.cn/newh5/view/pneumonia hourly HOME=/home/zliu #url="https://3g.dxy.cn/newh5/view/pneumonia" url="https://ncov.dxy.cn/ncovh5/view/pneumonia" echo "Starting download ${url}" CURR_PATH=`cd $(dirname $0);pwd;` cd $CURR_PATH ts=`date +%Y%m%d%H%M...
true
20078b247bc8b6541493fc5270569f37a1eb9257
Shell
brunofontes/linuxShortcuts
/Backup/listBackups.sh
UTF-8
200
2.9375
3
[]
no_license
if [ $1 ]; then sudo borg list $1 else echo echo "ERROR: Backup folder argument is missing. Use folder name to display backup set or FOLDER_NAME::BACKUP_SET to display files." echo fi
true
bae0ddac8e9e58afe4d93dc501d7d186c4b6658d
Shell
BrendaGleasoner/dikutools
/vm/welcome.sh
UTF-8
383
3
3
[]
no_license
#! /usr/bin/env nix-shell #! nix-shell -i bash -p sshpass set -euo pipefail MESSAGE=$1 PORT=1337 sshpass -p "hamster2" ssh \ -p ${PORT} \ -o UserKnownHostsFile=/dev/null \ -o StrictHostKeyChecking=no \ -o LogLevel=ERROR \ root@localhost "bash -c \" apt-get update apt-get -y install toilet echo $MESSAGE | t...
true
e3e77ad6dbcb56722a8b7b6031896e9001a4f3eb
Shell
cdn-img/gopanel
/rootfs/usr/lib/php/php7.1-fpm-reopenlogs
UTF-8
309
3.03125
3
[]
no_license
#!/bin/sh CONFFILE=/etc/php/7.1/fpm/php-fpm.conf [ -r /etc/default/php7.1-fpm ] && . /etc/default/php7.1-fpm CONF_PIDFILE=$(sed -n 's/^[[:space:]]*pid[[:space:]]*=[[:space:]]*//p' $CONFFILE) PIDFILE=${CONF_PIDFILE:-/run/php/php7.1-fpm.pid} [ -r "$PIDFILE" ] && kill -USR1 $(cat "$PIDFILE") > /dev/null exit 0
true
4dbfb4d2bca73734178fe78ccfec643e86b8a5dd
Shell
rikima/bin
/backup.sh
UTF-8
291
3.6875
4
[]
no_license
#!/bin/sh # # mv backup # # dirname=$1 date=$(date +%y%m%d) if [ -z $dirname ] ; then echo "please input backup directory or file" exit fi if [ -f $dirname.bk ] || [ -d $dirname.bk ] ; then echo "remove:$dirname" rm -rf $dirname.bk fi mv $dirname bk${date}.$dirname
true
746c100903fdbbfe009ca870369935482a5e9162
Shell
kaimago/openshift-backup
/build-docker-image.sh
UTF-8
1,395
3.5625
4
[ "MIT" ]
permissive
#!/bin/bash OPENSHIFT_BACKUP_VERSION=latest OC_VERSION=latest DOWNLOAD_ALWAYS=0 GITHUB_NAME=gerald1248 for dependency in jq curl head unzip; do if [ -z $(which $dependency) ]; then echo "Missing dependency '$dependency'" exit 1 fi done if [ ! -d downloads/ ]; then mkdir downloads fi if [ ! -f download...
true
fe66c9a2a163f456cb1d57ab02813b95dae97f5a
Shell
tongluobing/Data-driven-tractography
/example_pipeline.sh
UTF-8
2,773
2.9375
3
[]
no_license
#!/bin/bash module load fsl-uon/binary/5.0.11 module load connectome-uon/workbench-1.3.2 module load python-img/gcc6.3.0/2.7.15 subject_list="/gpfs01/home/ppxet1/scripts/NMF_paper/pipeline/subject_list.csv" results_dir="/gpfs01/home/ppxet1/tests/pipeline_output" scripts_dir="/gpfs01/home/ppxet1/scripts/NMF_paper/pip...
true
eabae8d8bdeff144208215a830014c03bcfdec04
Shell
aurex-linux/ausias-user-manager
/strip_codes
UTF-8
203
3.171875
3
[]
no_license
#!/bin/sh strip_chars(){ echo "$1" |sed -e "s%ñ%ny%g;s%Ñ%NY%g" |iconv --to-code ASCII//TRANSLIT |sed -e "s%^[[:blank:]]*%%;s%[[:blank:]]*$%%" } cat - |while read l ; do strip_chars "$l" done exit 0
true
86b20ac30d9cef44c838a238f3a901f650edbfb8
Shell
m-sc/yamcs-docker
/docker-common
UTF-8
542
3.765625
4
[]
no_license
#!/bin/bash -e [ -n "$DOCKER_COMMON" ] && return || readonly DOCKER_COMMON=1 SCRIPTPATH=$(dirname ${BASH_SOURCE[0]}) pushd $SCRIPTPATH > /dev/null . common require_command "docker" function docker_build { local target=$1 info "building docker image: '$target'" docker build -t=$target . && success "built docker ...
true
ec761d34ad387b83abc2f86ce615dcc18d410d70
Shell
liming01/shell4hawq
/hadoop_init.sh
UTF-8
1,238
3.6875
4
[]
no_license
#!/bin/bash if [ -z "$HADOOP_ABBR" ]; then echo "[FATAL]: -Please firstly run: \". path4hadoop.sh\" or \". path4gphd.sh\"!" exit 1 fi # Fetch absolute path to this script and current directory pushd . > /dev/null SCRIPT_PATH="${BASH_SOURCE[0]}"; while([ -h "${SCRIPT_PATH}" ]) do cd "`dirname "${SCRIPT_...
true
6de111450cbc0652474263fbec21942572e6749d
Shell
mrchapp/ci-job-configs
/lite-tf-m/submit-test.sh
UTF-8
1,172
3.25
3
[]
no_license
#!/bin/sh set -ex export PATH=$HOME/.local/bin:$PATH dir=$(dirname $0) sudo apt-get -qq -y install jq python3-pip # "yq" the Python version, https://github.com/kislyuk/yq, requires jq # Used to replace image url in the job template. pip3 install yq # "yq" the Go version, https://github.com/mikefarah/yq #wget -q http...
true
d603558d5adcda127993e0c8f6c835c4f974f9c8
Shell
patrickfarias/ritchie-formulas
/templates/create_formula/languages/terraform/src/unix/formula/formula.sh
UTF-8
1,059
3.59375
4
[ "Apache-2.0" ]
permissive
#!/bin/sh # shellcheck disable=SC2116 # shellcheck disable=SC2039 runFormula() { if [ -f /.dockerenv ] ; then cd /rit/tf-files || exit export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin else cd tf-files || exit fi # Export TF VAR to Uppercase for e in $(printenv); do if ...
true
43567616c55b445198a976ee13ff89c43ea70e49
Shell
ltfafei/myShell_Script
/Install_Tasla(cent).sh
UTF-8
710
2.578125
3
[]
no_license
#!/bin/bash # Write by afei # 1.install Tasla 440 #wget http://cn.download.nvidia.com/tesla/440.64.00/NVIDIA-Linux-x86_64-440.64.00.run touch /etc/modprobe.d/blacklist.conf cat >> /etc/modprobe.d/blacklist.conf << EOF blacklist nouveau blacklist lbm-nouveau options nouveau modeset=0 alias nouveau off alias lbm-nouvea...
true
dd4ac90426dc1c644d43fd31d224601896e4ac54
Shell
arnabs542/leetcode-35
/src/main/java/com/myleetcode/linux/word_frequency/Solution.sh
UTF-8
300
2.734375
3
[]
no_license
# Read from the file words.txt and output the word frequency list to stdout. # https://leetcode.com/problems/word-frequency/discuss/55462/Solution-using-awk-and-pipes-with-explaination awk '\ {for(i=1; i<=NF; i++){Dict[$i]++;}}\ END\ {for(i in Dict){print(i, Dict[i]);}\ }' words.txt | sort -nr -k 2
true
5ed2cd6dba4562cc1151a20291cd46ea3982c7d6
Shell
haoxiaozi/AG35-LLP
/ql-ol-crosstool/scripts/env/target-env.sh
UTF-8
414
3.203125
3
[]
no_license
export QL_FAKEROOT=1 if [[ ! -d "${QL_SDKPATH}/../ql-ol-rootfs" && -f "${QL_SDKPATH}/../ql-ol-rootfs.tar.gz" ]]; then printf "Extracting the rootfs..." mkdir -p ${QL_SDKPATH}/../ql-ol-rootfs ql_fakeroot tar -xzf ${QL_SDKPATH}/../ql-ol-rootfs.tar.gz -C ${QL_SDKPATH}/../ql-ol-rootfs echo "Done." fi ...
true
455b43d73e8519269d0c583782c8218c21b1f557
Shell
lakadev/jarvis-montre-moi
/install.sh
UTF-8
885
3.0625
3
[]
no_license
#!/bin/bash # This file will be automatically sourced at the installation of your plugin # Use only if you need to perform changes on the user system such as installing software jv_debug "Downloading websocketd" jv_pg_mm_www_path="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/www if [[ "$platform" == "linux" ]]; t...
true
c353ec5ed6c4874a2e7d309b5c4dc754382e5dcc
Shell
SuLab/genewiki
/config/gunicorn_start
UTF-8
674
3.125
3
[ "MIT" ]
permissive
#!/bin/bash #/bin/gunicorn_start NAME="genewiki_app" LOGFILE=/home/ubuntu/webapps/genewiki/logs/gunicorn.log LOGDIR=$(dirname $LOGFILE) DJANGO_SETTINGS_MODULE=genewiki.settings DJANGO_WSGI_MODULE=genewiki.wsgi DJANGODIR=/home/ubuntu/webapps/genewiki VENVDIR=/opt/genewiki-venv/bin/activate USER=deploy GROUP=deploy NU...
true
8169c222338341f60c8fd0fc9c486aa83cad48ca
Shell
matcls/holbertonschool-higher_level_programming
/0x10-python-network_0/5-post_params.sh
UTF-8
166
2.515625
3
[]
no_license
#!/bin/bash # Send a POST request to the given URL, and display the body of the response. curl -sX POST -d "email=hr@holbertonschool.com&subject=I will always be here for PLD" "$1"
true
1845abae0c2d5d7f8bb3c831a72f7c4f4a7e20ce
Shell
cha63506/mydot
/plugins/mongoctl.bash
UTF-8
4,200
3.203125
3
[]
no_license
# NAME: # mongoctl - Manage MongoDB servers and replica sets using JSON configurations! # INSTALL and CONFIGURE # web page: # - https://github.com/mongolab/mongoctl # Installing mongoctl # Dependency: # - pip // https://github.com/mon...
true
12ff1194982145b2797acad353d1eba1d03c7999
Shell
1Blackdiamondsc/LitecoinNode
/debian/debian-remove-statuspage.sh
UTF-8
613
3.28125
3
[ "MIT" ]
permissive
#!/bin/bash #change working directory cd $HOME #remove website files echo "Removing node status page website files" rm -r -f -v $DEBIAN_WEBSITE_DIR/banner.png rm -r -f -v $DEBIAN_WEBSITE_DIR/bootstrap.css rm -r -f -v $DEBIAN_WEBSITE_DIR/favicon.ico rm -r -f -v $DEBIAN_WEBSITE_DIR/style.css rm -r -f -v $DEBIAN_WEBSITE...
true
961d16bab45bc0bef43925e5f0270ae9262f66bf
Shell
ValentijnvdBeek/dotfiles
/dotfiles/.scripts/backup.sh
UTF-8
445
3.734375
4
[]
no_license
#!/bin/bash # Runs a backup of all important files: # - RSync documents folder with local NAS # - Sync dotfiles, commit, and push to remote DATE=$(date) # Backup with rsync echo "Backing up to local NAS..." rsync -azP "/home/zohar/Documents" $USER@192.168.0.142:/home/$USER/ # Sync dotfiles echo "Sycning dotfiles......
true