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
1339dd6ff1cb248bfe4192c03eb394903a56433b
Shell
nculwell/Taskmaster
/server/recreatedb.sh
UTF-8
294
2.515625
3
[]
no_license
#!/bin/sh # Sending stdout to /dev/null gets rid of success messages, # leaving error (and notice) messages to get displayed. echo Drop and recreate database. su postgres -c "psql -f dropandcreatedb.sql" || exit 1 echo Create schema. su nate -c "psql -d taskmaster -f dbsetup.sql" >/dev/null
true
56bf8d2edf022aba6ec2166d1a8fa7f1ba97b1e8
Shell
cvpcs/gentoo-overlay
/games-emulation/epsxe/files/epsxe
UTF-8
2,035
3.4375
3
[]
no_license
#!/bin/sh PSEMUDIR=GAMES_LIBDIR/psemu EPSXEDIR=GAMES_PREFIX_OPT/epsxe mkdir -p ~/.epsxe cd ~/.epsxe cleanlinks mkdir -p memcards bios cfg cheats snap sstates patches plugins shopt -s nullglob for f in `find "${EPSXEDIR}" -maxdepth 1 -type f -printf '%f '` ; do [[ -e "${f}" ]] && continue ln -s "${EPSXEDIR}/${f}" ...
true
810b5eb7d82153a5118d4da01f9ab486d6af252d
Shell
Honga1/discriminator
/src/chapters/chapter3/Part2Screen3/audio/convert.sh
UTF-8
182
3.03125
3
[]
no_license
for i in *.mp3; do name=$(echo "$i" | cut -d'.' -f1) echo "$name" ffmpeg -i "$i" -c:a libopus -b:a 128k "${name}.caf" ffmpeg -i "$i" -c:a libopus -b:a 128k "${name}.ogg" done
true
53c5591a2e99cbbdf92f9d36c1b4e434e46497bb
Shell
AhmedSakrr/marla-server
/src/feed.sh
UTF-8
175
2.609375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash echo -en "GET / HTTP/1.1\r\n" echo -en "Host: localhost:$port\r\n" echo -en "\r\n" IFS=' ' read statusline while true; do read line echo $line>>REP done
true
9597d815930eadcea1989ef2b3016878e65209e7
Shell
jeffduda/brain-behavior-change-processing
/Reconstruction/ME_rmsdiff.sh
UTF-8
1,569
3.640625
4
[]
no_license
#!/bin/bash # --------------------------------------------------------------- # ME_RMSDIFF # # Use FSL's rmsdiff command to compute motion metrics on a list of xform matrices # # Created: M Elliott 8/2012 # --------------------------------------------------------------- Usage() { echo "" echo "Usage: `basename...
true
c2b3eceb306f11b2fac34db4ffe139e50f29ad4c
Shell
louismeunier/statistics
/scripts/generate_all_statistics.sh
UTF-8
326
2.71875
3
[]
no_license
#!/bin/bash # server must be running port=${STATISTICS_PORT:-8080} # Download db export ./scripts/get_db_export.sh echo "Deleting existing statistics" curl -X DELETE "http://localhost:${port}/statistics" -H "accept: */*" # Sql stats ./scripts/generate_sql_statistics.sh # Python ./scripts/generate_python_statisti...
true
01164a0f64f3842870674b99df3d6414e2bb9159
Shell
nicholasjackson/docker-consul-envoy
/compatibility/test.sh
UTF-8
1,489
3.25
3
[ "MIT" ]
permissive
#!/bin/bash echo "Testing Consul Envoy Compatibility" echo "" echo "Consul Version | Envoy Version | Routing | Traffic Split" echo "-------------- | ------------- | ------- | -------------" #consul_version=("1.8.3" "1.8.2" "1.8.0" "1.7.2") #envoy_version=("1.15.0" "1.14.4" "1.14.2" "1.13.2" "1.13.1" "1.13.0" "1.12.4...
true
9056e99ac42b94e533b2d73f21fb8da24231df70
Shell
Goutham-hub605/payload-generator
/generate.sh
UTF-8
998
2.984375
3
[ "MIT" ]
permissive
#!/bin/bash echo " only for educational purpose" echo "(1) windows payload" echo "(2) linux payload" echo "(3)android payload" echo "" read -p "Enter you number: " pay echo "" echo"" echo "Pls wait" if [ $pay == 1 ] then echo "Creating payload for windows" read -p "Enter your lhost: " s read -p "Enter your lport: " s1...
true
ca81df7233bfb61e144d2df81819c1ffd7da43c8
Shell
thamjieying/ShellScriptTutorial
/lesson23.sh
UTF-8
292
3.59375
4
[]
no_license
#! /bin/bash # Functions # function name(){ # command1 # } # name (){ # command1 # } function print(){ echo $@ # all the arguments echo $1 # first argument echo $2 # secont argument } quit(){ echo "quitting" exit } print "hello" "foo" quit echo "This should not be called"
true
e398b62630e0b1a810f58eaec76b588d4f214b4a
Shell
ashish456747/shell-scripting
/variables.sh
UTF-8
185
2.859375
3
[ "MIT" ]
permissive
#! /bin/bash #SYSTEM VARIABLES echo $BASH echo The bash version is $BASH_VERSION echo $PWD echo $HOME #USER DEFINED VARIABLES name=MARK age=10 echo The name is $name and age is $age
true
888477c3d9c6fe2f24a4f9a7a8b76badedbf5e1b
Shell
mi11km/setup-isucon-aws-env
/terraform/setup.sh
UTF-8
988
3.421875
3
[]
no_license
#!/bin/bash webhook_url= # todo set discord webhook url ssh_key_name=id_rsa_ec2 number_of_server=4 username=ubuntu send_ip() { ip=($(terraform apply -auto-approve -var "ami_id=$1" | grep -Eo '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | tail -${number_of_server} | tr '\n' ' ')) # send ssh connect command to...
true
70b891c7ff212eaffbef2b52d82b1c998fe5c52b
Shell
supreet-s8/SPRINT
/Contact_US/Contact_US.sh
UTF-8
2,217
2.78125
3
[]
no_license
#!/bin/sh ##Script will fetch mail from rubix database Descending Order. #CNT_1=`ssh -q root@10.23.80.136 "java -jar /opt/tms/nae-spw/WEB-INF/lib/sqltool-2.2.9.3.jar --driver=org.hsqldb.jdbcDriver --sql='SELECT * FROM CONTACTUS ORDER BY ID DESC;' rubix "|sed 1d|sed 1d |awk '{print $1}'|head -1` CNT_1=`ssh -q root@...
true
1f864630b3e933f1b44c251d98dfb3d42d8cc046
Shell
loceee/OSXCasperScripts
/cfgScripts/cfgsysAddPrinterAdmin.sh
UTF-8
273
3
3
[]
no_license
#!/bin/bash # pass it a domain group, or default to everyone (all user accounts on computers) # everyone is good for staff / student macs # group="${4}" [ -z "${group}" ] && countycode="everyone" dseditgroup -o edit -n /Local/Default -a ${group} -t group lpadmin exit 0
true
439ecb55c0744a7aeb98409a2952d85dcbdc63dd
Shell
schlitzered/pylogchop
/contrib/init.d/pylogchop
UTF-8
536
2.953125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash source /opt/rh/rh-python34/enable start() { pylogchop start } stop() { pylogchop quit } reload() { pylogchop reload } case "$1" in start) start ;; stop) stop ;; reload) reload ...
true
7adf86063c17c8e32a126ce5add7534094614a37
Shell
jhass/PKGBUILDs
/shards-git/PKGBUILD
UTF-8
1,002
2.75
3
[]
no_license
# Maintainer: Jonne Haß <me@jhass.eu> pkgname=shards-git pkgver=v0.17.3.r2.geac9adf pkgrel=1 pkgdesc="The package manager for the Crystal language (git version)" arch=('x86_64' 'aarch64') url="https://github.com/crystal-lang/shards" license=('Apache') conflicts=('shards') provides=('shards') depends=('libyaml' 'git' 'l...
true
f6cd58197e9b0a5eadfd9edba6c0fcddb7240a91
Shell
MaritimeResearchInstituteNetherlands/VisTrails
/vistrails/tests/run_on_mac.sh
UTF-8
531
3.5
4
[ "BSD-3-Clause" ]
permissive
#!/bin/bash if [ -z "$1" ] then echo "usage: $0 <app_path>" exit 65 fi APP_PATH=$1 shift THIS_DIR=`dirname $0` PYTHON_EXEC_PATH="Contents/MacOS/python" RESOURCES_PATH="Contents/Resources" if [ ! -e "$APP_PATH/$RESOURCES_PATH" ] then echo "$APP_PATH/$RESOURCES_PATH does not exist" exit 66 fi if [ ! -...
true
4c301b729a6ec835aa264df6f3d96bd6714b7e95
Shell
akatsos/harokopio-apt-station
/WeatherDir/scripts/delete_audio_maps_passes.sh
UTF-8
437
2.734375
3
[ "MIT" ]
permissive
#!/bin/bash #Deletes older than 1 day audio files(wav) ,maps(png) and passes #Is scheduled to run every Monday and Thursday with a cronjob #This happens so the RaspPi never runs out of storage space find /home/pi/WeatherDir/maps -type f -mtime +1 -name '*.png' -delete find /home/pi/WeatherDir/audio -type f -mtime +1...
true
1a8cb6a9711aeaae607e3402a745d5e60a164ae1
Shell
shubh0209/Project1
/script.sh
UTF-8
533
2.515625
3
[]
no_license
#!/bin/bash sudo yum update -y sudo yum install docker -y sudo systemctl enable docker sudo systemctl start docker sudo mkdir -p /nginx cd /nginx sudo bash -c "echo 'Hello World, I am nginx server which serves static content, running using docker on ec2 instance managed by terraform and build using jenkins, deployed in...
true
7fd68b1f061f15310b6f719ca13e201a95cfa03a
Shell
fenixdecorare/fenix-brand
/preppng.sh
UTF-8
25,463
3.09375
3
[]
no_license
#!/bin/bash PROGNAME=${0##*/} currentsvgcolors() { # Color schema baseado no estudo feito em http://colorschemedesigner.com # representa as cores actuais nos svg obtidas com -f # [IMPORTANTE] Altere manualmente after -[ce]? para mudar svgs # [IMPORTANTE] All svg's have to be passed throught: # inkscape -...
true
64ea4f3600ee92619a61f059b7647826b875c211
Shell
ergo-dubito/dotfiles-6
/coffee.sh
UTF-8
15,682
3.765625
4
[ "MIT" ]
permissive
#!/usr/bin/env bash #coffee.sh #THINGS TO ADD: # - install applications function instead of repeated code in each function # - potentially add .files to be installed # - add function to verify signature of applications before install # - checksum function for applications that have checksums online, again # instea...
true
7a7106e3853c5cb512a3c49ed0a218a6d889e193
Shell
uint0/aws-mysfits-all-in-one
/scripts/build_container.sh
UTF-8
688
3.15625
3
[]
no_license
#!/bin/sh set -e mm_aws_accountid=$(aws sts get-caller-identity --query Account --output text) mm_aws_region=$(aws configure get region) mm_container_name="mythicalmysfits/service" mm_ecr_url=$mm_aws_accountid.dkr.ecr.$mm_aws_region.amazonaws.com echo "(1/4) Building Container" docker build -t $mm_container_name $(d...
true
a803046a97c3efe365d135eabe0fd1eb7a393588
Shell
kergoth/dotfiles
/semi-external/scripts/sherlock
UTF-8
196
2.515625
3
[]
no_license
#!/bin/sh set -eu cd "$(git-get https://github.com/sherlock-project/sherlock 2>/dev/null)" if [ ! -e Pipfile.lock ]; then pipenv install -r requirements.txt fi pipenv run ./sherlock.py "$@"
true
e16fd75cd485a81b67ccb64e00066563ac676d1c
Shell
mej571/MCTF-video-coding
/src/mctf.sh
UTF-8
715
3.265625
3
[]
no_license
#! /bin/bash ## Add a final symbol. function end { (echo -e "" >&2) # (echo -n "" >&2) exit } # (echo -en "" >&2) if [ -z "$*" ]; then (echo -e "" >&2) (echo -e "+-------------+" >&2) (echo -e "| MCTF parser |" >&2) (echo -e "+-------------+" >&2) (echo -e "" >&2) (ec...
true
39a6d99aae38cf0f9247a4793c155a0577b2b8bb
Shell
tpruzina/ifj14
/scripts/release.sh
UTF-8
1,230
3.046875
3
[]
no_license
#!/bin/bash if [ $# -ne 1 ]; then echo "supply login name as parameter" && exit 1 else make || exit 1 echo "########## creating ${1}.zip" #tar uklada veci vcetne cesty takze si vytvorime .tmp adresar mkdir -p .tmp && cd .tmp || exit 1 cp \ ../rozdeleni \ ../rozsireni \ ../src/Makefile \ ../src/ast.c ...
true
2d5bf3e04d3a0e34a3567c40d38d5c55449b18ee
Shell
cleka/colossus-titan
/Colossus/bin/runinternal
UTF-8
640
3.171875
3
[]
no_license
#! /bin/sh # # A simple wrapper to run a bunch of games inside the same JVM # Can run each game from scratch, or all of them from the same # savegame file. # IROUNDS=5 if [ $# -gt 0 ] then IROUNDS=$1 shift fi echo "Starting Colossus to run internally $IROUNDS games." if [ $# -gt 0 ] then FILE=$1 echo "Gam...
true
f34b158ec2c098da2ee42d791e01fc35d992e6b6
Shell
ozel/batchpix
/batchpixel.sh
UTF-8
1,282
3.140625
3
[]
no_license
#!/bin/sh abort=0; #echo -n "Checking FTDI Drivers..." #if [ -f "/usr/local/lib/libftd2xx.so" ] && [ -f "/usr/lib/libftd2xx.so" ] && [ -f "/usr/local/lib/libftd2xx.so.1.1.12" ]; then #echo " OK."; #else #echo " NOT FOUND!"; #echo -n "Installing FTDI Drivers (requires root permissions)..."; #sudo cp _other_/dri...
true
0f5e753b2edf63dc60aa65bb4772c41df8d73a4e
Shell
curranjm/umbalgo
/deploy.sh
UTF-8
580
3.09375
3
[]
no_license
#!/usr/bin/env bash set -v WD=$(pwd) PARSE=${WD}/tools/parser.py IN=${WD}/src/algo OUT=/var/www/html/ rm -rf ${OUT}/* mkdir -p ${OUT}/js/algo pushd . cd ${IN} for f in *.js do ${PARSE} $f ${OUT}/js/algo/$f done popd pushd . cd src ../node_modules/.bin/babel -d ${OUT}/js/libs libs ../node_modules/.bin/babel -d ${O...
true
a889855d08c4024ce6cde14e70cde429c39c2eb8
Shell
cwru-robotics/turtlebot-estimation
/scripts/setupEnvironment
UTF-8
585
2.59375
3
[]
no_license
#!/bin/bash scripts_dir="$HOME/thesis/scripts" xilinx_install_dir="$HOME/Applications/Xilinx" dtc_install_dir="$HOME/thesis/xlnx_sources/dtc" u_boot_install_dir="$HOME/thesis/xlnx_sources/u-boot-xlnx" source $xilinx_install_dir/Vivado/2016.1/settings64.sh source $xilinx_install_dir/SDK/2016.1/settings64.sh export CR...
true
904b7d57cc0816c331e746266ebf9777c655c1b1
Shell
paragsahu/brigde-labz-assignment
/Day-5,6/headtail.sh
UTF-8
113
2.9375
3
[]
no_license
#!/bin/bash -x x=$(( RANDOM % 2 )); if [ $x -gt 0 ]; then echo "$x It's HEAD" else echo "$x It's TAILS" fi
true
e0d4fa698f574c28941d0a19766d111bb37dd751
Shell
carze/vappio
/vappio-scripts/vp-checkandterminate-cluster
UTF-8
335
2.859375
3
[]
no_license
#!/bin/bash #USAGE: vp-checkandterminate-cluster true mycluster #Terminate cluster if [ "$1" == "1" ] || [ "$1" == "true" ] then if [ "$2" == "local" ] then vp-terminate-cluster --cluster=$2 --auth-token=`generateAuthToken.py /mnt/keys/devel1.pem.pub` else vp-terminate-cluster --cluster=$2 ...
true
31efd1242f4cc913dc13a6dc6bfac4c02553db61
Shell
cmantas/asap.cslab
/experiments/spark_kmeans_text.sh
UTF-8
3,326
3.265625
3
[]
no_license
#!/bin/bash source $(dirname $0)/config.info #loads the parameters source $(dirname $0)/common.sh #loads the common functions output_file="spark_kmeans_text.out" input_dir=~/Data/ElasticSearch_text_docs TOOLS_JAR=~/bin/lib/asapTools.jar #create HDFS files hadoop_input=/user/$USER/input/kmeans_text_seqfiles hdf...
true
57a7146b0429e2b027f9b10cf0295f27937f1435
Shell
nickali/configs
/zsh/zshrc
UTF-8
2,117
3
3
[]
no_license
export PATH="/usr/local/sbin:/usr/local/bin:$PATH" # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. # Initialization code that may require console input (password prompts, [y/n] # confirmations, etc.) must go above this block; everything else may go below. if [[ -r "${XDG_CACHE_HOME:-$H...
true
ac8bb414fe3b1e11ebe6aa08fc9e1b6006c5b549
Shell
schu/habitat-demo-service
/plan.sh
UTF-8
377
2.78125
3
[]
no_license
pkg_name=demo-service pkg_origin=schu pkg_version=0.10.0 pkg_description="Habitat demo service" pkg_maintainer="schu" pkg_deps=("core/glibc") pkg_build_deps=("core/go" "core/make") pkg_bin_dirs=("/usr/bin") do_build() { make } do_install() { install -m 0755 -D "demo-service" "$pkg_prefix/usr/bin/demo-service" i...
true
0d5661f92e678d58e1191c77ca1db33bc5c03661
Shell
vorlock/a-config-mgmt
/bin/deploy-clusters.sh
UTF-8
511
2.640625
3
[]
no_license
#!/bin/bash for cname in aks eks gke; do export KUBECONFIG=${HOME}/work/kpmg/multicloud/${cname}-kubectl.conf #kubectl apply -f - <<EOF cat > /tmp/dupa.${cname} <<EOF apiVersion: configmanagement.gke.io/v1 kind: ConfigManagement metadata: name: config-management spec: # clusterName is required and must...
true
170b11443584a2d88db5dc002a154722dac520e5
Shell
Japrin/cancer
/repseq/run.MiXCR.sh
UTF-8
3,336
3.171875
3
[]
no_license
#!/bin/bash sDir=`dirname $0` iniFile="$sDir/../parameter/init_human.sh" optBam=false while getopts b opt do case $opt in b) optBam=true ;; '?') echo "Usage: $0 invalid option -$OPTARG" echo "Usage: $0 [-b bamfile] <outDir> <sampleID> <fq1> [fq2]" exit 1 ;; esac done shift $((OPTIND-1)) if [ $...
true
34d39421bcd2b07a1e8e69d12b39e4343a6000d2
Shell
arangodb/1mDocsPerSec
/doit2.sh
UTF-8
913
2.578125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash function waitvoll() { while [ `date +%S` != "00" ] ; do echo Waiting for full minute... sleep 0.5 done } export ACTION="WARMUP" export READPERCENTS=100 waitvoll ./run.sh ${ACTION} 0 export ACTION="READ" export READPERCENTS=100 waitvoll ./run.sh ${ACTION}1x20 0 waitvoll ./run.sh ${ACTION}1x40 0 0...
true
f45a693469bccfcb1806f173eb566a3b3a9b0b01
Shell
TommoCrabb/Telly-Wangler
/downloader.bash
UTF-8
3,540
4.46875
4
[]
no_license
#!/usr/bin/env bash # set -x # Use these as tags to format text from the "echo -e" command (eg: echo -e "This is some ${RED}red${REG} text.") RED='\033[0;31m' # Red BLU='\033[0;34m' # Blue PUR='\033[0;35m' # Purple REG='\033[0m' # Regular (use this as a closing tag) this_file=$( readlink -e "${0}" ) this_dir=$( di...
true
deb02be2d06aba7af94fbd48c561aa3b68905b11
Shell
michael-pryor/Hologram
/deploy/package
UTF-8
461
3.4375
3
[ "Apache-2.0" ]
permissive
#!/bin/sh -e DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SOURCE_PATH="${DIR}/.." DEST_PATH="${DIR}/../builds" if [ ! -d "${DEST_PATH}" ]; then mkdir "${DEST_PATH}" fi cd "${SOURCE_PATH}" now=$(date +"%d_%m_%Y_%H_%M_%S") DEST_FULL_PATH="${DEST_PATH}/hologram_server_${now}.tgz" tar czvfh "${DEST_FULL_PA...
true
6ac09c4d55c5906d1567903f3917ee670aa8b5c6
Shell
mizdra/isucon10
/sokkyou/deploy_nginx.sh
UTF-8
330
2.5625
3
[]
no_license
#!/bin/bash source ./sokkyou/sokkyou.sh echo "⚡️ Deploy nginx" for REMOTE in ${NGINX[@]}; do echo "🚀 Deploy nginx ($REMOTE $USER)" RSYNC conf/nginx/nginx.conf /etc/nginx/nginx.conf RSYNC conf/nginx/sites-available/isuumo.conf /etc/nginx/sites-available/isuumo.conf ssh $REMOTE "sudo systemctl restart nginx" d...
true
ead0079e6d4e71aa1379261b39547132cf09e158
Shell
enesutku07/lfscript
/scripts/blfs-18652-unchecked/fuse2
UTF-8
1,431
3.203125
3
[ "MIT" ]
permissive
#!/bin/bash # The instructions in this file are extracted from # 'Beyond Linux From Scratch' (2017-04-29 / r18652) but are modified for use # with LFScript 4 which installs the software to a fake root directory. # # Beyond Linux From Scratch is released under the MIT license. # Copyright (C) 2001-2017, The BLFS Develo...
true
eaaee1df5506d588802ccf313361f89f8c3cf4b2
Shell
liloman/heal-bitrots
/tests/test_helper.bash
UTF-8
1,813
3.21875
3
[]
no_license
#!/usr/bin/env bash # LC_ALL=en_US.UTF-8 # LANGUAGE=en_US.UTF-8 LANG=C check_fail() { local temp=/tmp/bats.log > $temp for line; do echo "$line" >> $temp done cat /tmp/.heal_bitrot.log >> $temp } generate_bitrot() { local dest=$1 temp=/tmp/temp-base local -i count=$(($2*100)) per...
true
98e7eedd9071c1654c3e06dfc1d2483be739b186
Shell
fourjs-oe/genero_gas_centos_docker
/docker_build_genero_image.sh
UTF-8
1,594
3.796875
4
[]
no_license
#!/usr/bin/env bash fail() { echo "$@" exit 1 } # Docker image name GENERO_DOCKER_IMAGE=${GENERO_DOCKER_IMAGE:-genero} # Defaults HOST_APACHE_PORT=${HOST_APACHE_PORT:-8080} ##### Apache file where passwords will be stored APACHE_AUTH_FILE=${APACHE_AUTH_FILE:-apache-auth} ##### gasadmin user password for apache...
true
5058424bae30e9a505c6ebbdeb4eb92053133e87
Shell
fnivek/Scripts
/shebang
UTF-8
754
4.28125
4
[]
no_license
#!/bin/bash print_usage () { printf "Usage: $0 [options] file\n\t-p python\n\t-s sh\n\t-b bash\n\t-h help\n" exit 0 } # Parse options while getopts :psb opt; do case $opt in p) p=${OPTARG} ;; s) s=${OPTARG} ;; b) b=${OPTARG} ;; *) print_usage ;; esac done # Parse file if [[ $(($# - $O...
true
891626ed87a6950d7071a8aa814118120d9beaea
Shell
jbuchbinder/gophotobooth
/photobooth-montage.sh
UTF-8
861
3.5625
4
[]
no_license
#!/bin/bash # photobooth-montage.sh # @jbuchbinder # # Create a photobooth-style montage of the four photos created by gophotobooth. # Specify list of directories (without ending slashes) to create photobooth # composites. # # Requires: # - imagemagick's 'montage' utility # - dcraw SIZE=1000 EXT="CR2" for dir in $*; ...
true
a7bc0df21e7b66eb79fc870908fd9508b8b96bfe
Shell
andriykutsevol/Linux-Buildroot-ARM
/files_patch/etc/init.d/sysfs.sh
UTF-8
7,450
3.359375
3
[]
no_license
#!/bin/sh #echo "We are: $0 : $1" if [ -e /proc ] && ! [ -e /proc/mounts ]; then mount -t proc proc /proc #echo " mount -t proc proc /proc" fi if [ -e /sys ] && ! [ -e /sys/kernel ] && grep -q sysfs /proc/filesystems; then mount sysfs /sys -t sysfs #echo " mount sysfs /sys -t sysfs" fi #echo " From sysf...
true
897a82624795d4b391b0fe957d2823de59a68f5d
Shell
orenlivne/ober
/primal/src/system/bin/to-unix-path
UTF-8
140
3.4375
3
[]
no_license
#!/bin/bash # Convert a Windows path to a Unix Path. Useful on Cygwin. if [ $OSTYPE == 'cygwin' ]; then cygpath -w $1 else echo $1 fi
true
77b1cde0c080ad70fad6a9ed7437dd7ffbb374c4
Shell
starlingx/utilities
/tools/collector/scripts/collect_host
UTF-8
16,659
3.390625
3
[ "Apache-2.0" ]
permissive
#! /bin/bash ######################################################################## # # Copyright (c) 2016-2021 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # ######################################################################## # make these platform.conf variables global. # values are loaded ...
true
adf7b7f6256372654bcdf394d02e76d2bf857734
Shell
Thiefyface/-_-
/buckets.sh
UTF-8
3,351
3.71875
4
[]
no_license
#!/bin/bash -x if [ -z $1 ]; then echo "[x.x] Usage:" echo "$0 <fuzz_binary> <fuzz_binary_options>" exit fi mkdir crash_logs 2>/dev/null mkdir crash_logs/asan_dir 2>/dev/null mkdir crash_logs/segv_dir 2>/dev/null mkdir crash_logs/other_dir 2>/dev/null mkdir crash_logs/dups 2>/dev/null mk...
true
3a8abced034bc9a0950b1d4aa5b4af19de507d9b
Shell
kotobot/memsql-docker-quickstart
/memsql-entrypoint.sh
UTF-8
310
2.90625
3
[]
no_license
#!/bin/bash set -e if [ "$1" = "memsqld" ]; then # Start up the cluster memsql-ops start memsql-ops memsql-start --all memsql-ops memsql-list # Tail the logs to keep the container alive exec tail -F /memsql/master/tracelogs/memsql.log /memsql/leaf/tracelogs/memsql.log fi exec "$@"
true
7a910599f6c45cb5544a48badea37adf0683d45a
Shell
fitzfitsahero/fitzfitsahero
/scripts/twitterXML.sh
UTF-8
248
2.671875
3
[]
no_license
#!/bin/sh # This script pulls down an xml feed of the supplied user as the first command line option # The .twittercreds_ file has the format- username:password curl -u `cat .twittercreds_fitz` http://twitter.com/statuses/user_timeline/$1.xml
true
e03e87a092f5559eb6023cfaa4f17c8cd32fcd8d
Shell
Zacharis278/music-madness
/manifests/scripts/generate-sha.sh
UTF-8
174
2.75
3
[]
no_license
#!/bin/bash set -e # Capture the SHA of the built client content SHA=`find ./bracket -type f -print0 | xargs -0 shasum | shasum` # Return as JSON echo "{\"sha\": \"$SHA\"}"
true
5c2d975848162f62352e663b4f48e0808e1ea9d7
Shell
loknjinu13/week4scripts
/README.md
UTF-8
502
2.9375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash -x #week4scripts title="Week4scripts" RIGHT_NOW=$(date +"%x %r %z") TIME_STAMP="updated on $RIGHT_NOW by $USER" #### Functions drive_space () { echo "<h3> Filesystem Space </h3>" echo "<pre>" df echo "</pre>" } SWAP_File () { echo "<h3>SwapFile space allocation</h2>" echo "<pre>" dd if=/dev/zero of=cache1 ...
true
020d16e764c2d4af5c2a15a40b818d304d215af2
Shell
longlonghash/fluidex-backend
/stop.sh
UTF-8
964
3.375
3
[]
no_license
#!/bin/bash set -uex source ./common.sh DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)" EXCHANGE_DIR=$DIR/dingir-exchange PROVER_DIR=$DIR/prover-cluster STATE_MNGR_DIR=$DIR/rollup-state-manager FAUCET_DIR=$DIR/regnbue-bridge function kill_tasks() { # kill last time running tasks: ps aux | gr...
true
9b5065a21eff34c5efb18bb969405b14010a6315
Shell
hughec1329/135_project
/stripnet.sh
UTF-8
217
2.734375
3
[]
no_license
#!/bin/bash # script to strip out peeps belonging to top nets. nets=$(cat ./topnets | awk -F " " '{print $2}') # top 100 nets for t in $nets do ./getnet.sh /home/hugh/data/fb_mhrw.txt $t echo "done " $t done
true
d6e524ec119d258d5aeeba1ed75bd1c2915e9157
Shell
hanson007/LOL
/projectdata/apis/updata_app/templates/git_pull.sh
UTF-8
3,352
3.234375
3
[]
no_license
#!/usr/bin/env bash ##################### # version: 0.1 # name: xuebk # time: 2017-05-30 # help: 系统更新程序. ##################### # 加载系统层变量 source ~/.bash_profile # 基础变量 cd `dirname $0` # 本程序执行目录 BIN_DIR=$(cd "$(dirname "$0")"; pwd) # #### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ####...
true
5b7a64238b80e62fa96128be7546c8429ac38535
Shell
delkyd/alfheim_linux-PKGBUILDS
/python-algopy/PKGBUILD
UTF-8
1,485
2.5625
3
[]
no_license
# Contributor: Hector <hsearaDOTatDOTgmailDOTcom> pkgbase=python-algopy pkgname=('python2-algopy' 'python-algopy') pkgver=0.5.3 pkgrel=1 pkgdesc='A tool for Algorithmic Differentiation (AD) and Taylor polynomial approximations.' url='http://packages.python.org/algopy/' license=("BSD") arch=('any') depends=() makedepe...
true
8b100ff18c2d8060a3c698b2f010454df50c4e6c
Shell
Rephot/pterodactyl-images
/games/entrypoint.sh
UTF-8
1,443
3.5
4
[ "MIT" ]
permissive
#!/bin/bash cd /home/container sleep 1 # Make internal Docker IP address available to processes. export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'` # Update Source Server if [ ! -z ${SRCDS_APPID} ]; then if [ ! -z ${SRCDS_BETAID} ]; then if [ ! -z ${SRCDS_BETAPASS} ]; then ./steamcmd...
true
13a886a560b2da9fffc30cc9a558aef4d90eacc9
Shell
tbbrown/GradientDistortionUnwarpOnly
/CheckForGdcFiles.sh
UTF-8
2,200
4.625
5
[]
no_license
#!/bin/bash # # Function description # Show usage information for this script # usage() { local scriptName=$(basename ${0}) echo "" echo " Usage: ${scriptName} --checkdir=<check-dir>" echo "" } # # Function description # Get the command line options for this script # # Global output variables # ${...
true
600ce902049c4104337b2b0f3d6bb04ece6677f5
Shell
velociraptor014/Scripts
/BASH/theconditionofdeath.sh
UTF-8
620
3.59375
4
[]
no_license
#!/bin/sh echo "Ce script étudie l'usage des conditions IF-FI" echo "---------------------------------------------" echo "Alors, nous allons prendre un exemple :" # ------------------------------------------------- echo "Choisissez entre 'on', 'off' et 'middle'" read DEATH echo "You have choosen $DEATH" echo PLEASE sle...
true
22d5362580e1481bea3fa1c4f3b02cf8aff1371d
Shell
itga/mip-microservices-infrastructure
/demo/frontend/portal/run.sh
UTF-8
416
2.796875
3
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "GPL-3.0-only", "MIT", "AGPL-3.0-only" ]
permissive
#!/bin/bash set -e META_DB_PROJECT=${META_DB_PROJECT:-~/Workspace/GitLab/mip-private/meta-db} SCIENCE_DB_PROJECT=${SCIENCE_DB_PROJECT:-~/Workspace/GitLab/mip-private/adni-merge-db} rsync -ar --delete --exclude=".keep" --exclude=".git" $META_DB_PROJECT/ src/meta-db/ rsync -ar --delete --exclude=".keep" --exclude=".gi...
true
5523fa672adf0e8977b1a2bc96dde16f9ab49423
Shell
FSMaxB/lfs-me-repos
/blfs-7.5/dmenu-4.5
UTF-8
515
3.046875
3
[]
no_license
#!/bin/bash pkgname=dmenu pkgver=4.5 pkgver_postfix= sources=( "http://dl.suckless.org/tools/${pkgname}-${pkgver}.tar.gz" ) sha1sums=( '70c1a13b950b7b0cb1bc35e30c6e861a78359953' ) lfs_me_prepare() { tar -xf "${sources_dir}/${pkgname}-${pkgver}.tar.gz" -C "$build_dir" cd "${build_dir}/${pkgname}-${pkgver}" } ...
true
ece0508e976f79ac3e09db3b151003de687b7bdb
Shell
BenjaminAbdi/NNVoiceActivityDetector
/bash_scripts/oggToWav.sh
UTF-8
275
3.375
3
[]
no_license
search_dir="./" folder="./output/" base_name="fable" cpt=0 for filename in `ls $search_dir`; do filename_without_ext="${filename%.*}" let cpt=cpt+1 if [[ $filename == *".ogg"* ]] then #echo $filename "sound-"$cpt".wav" sox $filename -c 1 "sound-"$cpt".wav" fi done
true
8b06401ed396c9f33640d90e8cd3c061b58bd244
Shell
mug31416/PubAdmin-Discourse
/src/SEGmodel/sensitivityRandCondModelRuns.sh
UTF-8
1,058
2.625
3
[]
no_license
#!/usr/bin/env bash export F=2001 export H=101 export mt="cond_rand" export mt1="cond_svm" date > log.summary_${mt}.txt echo ${mt} >> log.summary_${mt}.txt for feat in wlf_f4bert_head wlf_head bert_head wlf_bert_head f7bert_head; do for l in CHANGE_IN_RULE NO_CHANGE_IN_RULE; do python -u trainModel.p...
true
20368272af022572c33e8b69287a9c8ace4d31f4
Shell
tanelpak/skriptimine
/praks9/yl2
UTF-8
250
2.671875
3
[]
no_license
#!/bin/bash # #kujund echo -n "Sisesta ridade arv: " read r echo -n "Sisesta tärnide arv read: " read t for (( i = 1; i <= $r; i++ )) do echo -n "$i" for (( j = 1; j <= $t; j++ )) do echo -n "*" done echo "" done # #skripti lõpp #
true
a2d6f211930629c68209abdb18f1b5f6556f9070
Shell
ikhaliq42/GridCellModel
/manuscripts/pnas/SI_text/src/copy_to_dropbox.sh
UTF-8
239
2.9375
3
[]
no_license
#!/bin/bash dst_dir=~/Dropbox/Independent_grids_and_gamma/noise/ files=" SI_text.pdf " # Copy to dropbox echo "Copying to main figures to dropbox..." echo $files echo ls $dst_dir for f in $files do cp -rv $f $dst_dir done
true
7a0391287dbbaf6e422b330b41cfeae3383e47c0
Shell
jamyspex/dotfiles
/.aliases.sh
UTF-8
1,321
3.390625
3
[]
no_license
# If fasd is installed and in use, add a bunch of # aliases for it. if command -v fasd >/dev/null 2>&1; then # Any alias a='fasd -a' # Show/search/select alias s='fasd -si' # Directory alias d='fasd -d' # File alias f='fasd -f' # Interactive directory selection alias sd='fasd...
true
19bd809441364df4fd77e3483e616eb0579b2777
Shell
AsherBond/cato
/tools/tag_release_and_bump.sh
UTF-8
593
4.0625
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -x ## this script is to be run in a local git repo only version=$1 if [ "$version" = "" ] ; then echo "usage: $0 <version>" exit 1 fi REPO_HOME=`git rev-parse --show-toplevel` # 'latest' version git tag -d latest git push origin :refs/tags/latest # supplied version git tag -d $vers...
true
ba6a2e20860090e805c2a2680ad30322582feeda
Shell
24HOURSMEDIA/docker-dxstack1-synced
/docker/php-fpm/start.sh
UTF-8
360
2.828125
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env sh export DX_PHPFPM_EXTRA_CONF_DIR=$DX_VOLUME_ETC/php-fpm.d mkdir -p $DX_PHPFPM_EXTRA_CONF_DIR # copy example file to extra conf dir if not exist if [ -f "$DX_PHPFPM_EXTRA_CONF_DIR/www.conf.example" ]; then echo "" else cat ./php-fpm/etc/php-fpm.d/www.conf.example | ./parse_env.sh > $DX_PHPFPM_EXTR...
true
eb4549e5d204a5964c400e3a56dda8ed4c37c6b9
Shell
Azkali/BananaPi
/BananaCreator/bashHelper.sh
UTF-8
654
2.78125
3
[]
no_license
#!/usr/bin/env bash wget -q -O - https://apt.mopidy.com/mopidy.gpg | sudo apt-key add - && sudo wget -q -O /etc/apt/sources.list.d/mopidy.list https://apt.mopidy.com/stretch.list && wget https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/adafruit-pitft.sh && curl https://raw.githubuserc...
true
39c777b7c034378e78b6c4194deedc8ecac4ba9d
Shell
SettRaziel/wrf_archlinux
/wrf_run/data_fetch/gfs_fetch.sh
UTF-8
3,381
3.953125
4
[ "Zlib", "JasPer-2.0", "Libpng", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash # This script loads the required input data for a 180 h forecast run # ${1} matches the required date yyyymmdd # ${2} matches the required timestamp # ${3} is the storage path # ${4} is the model resolution [0p25, 0p50, 1p00] # ${5} the time period for the model run # define terminal colors . "${COLOR_PAT...
true
e07004b38bb110091b5b1cad7ef95bc7aba91385
Shell
jiaedu/student
/sh/setup-named-chroot.sh
UTF-8
1,969
4.1875
4
[]
no_license
#!/bin/bash ROOTDIR_MOUNT='/etc/localtime /etc/named /etc/pki/dnssec-keys /etc/named.root.key /etc/named.conf /etc/named.dnssec.keys /etc/named.rfc1912.zones /etc/rndc.conf /etc/rndc.key /usr/lib64/bind /usr/lib/bind /etc/named.iscdlv.key /run/named /var/named /etc/protocols /etc/services' usage() { echo echo 'Th...
true
6b73ecc65243e851794300339ae107b22350c38f
Shell
mike-sandler/git_hooks
/.git_hooks/tests/pre-commit_docs_test.bash
UTF-8
827
3.328125
3
[]
no_license
#!/usr/bin/env bash USE_HOOKS="docs" . test_helper documented_code=" # class A description\n class A\n # method doc\n def meth; end\n\n # method doc\n def meth2; end\n end\n " undocumented_code=" class A\n def meth; end\n def meth2; end\n end\n " test_decline_documentation(){ m...
true
4e088c2076dce6fcdc35932258eaf567fbd0b3d0
Shell
fermi-lat/rootUtil
/apps/TRY
UTF-8
421
2.75
3
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env sh clear cmd="cel$1.exe" cd ../cmt make || exit . setup.sh cd ../apps export PATH=../${CMTCONFIG}:${PATH} if [ $1 != "Convert" -a $1 != "Inspect" ] ; then celInspect.exe test.cel.root echo "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%" fi $cmd test.cel.root if [ $1 != "Convert" -a $1 != "Inspect...
true
c405a822a8a6d120074a023716adca1ea57e8a80
Shell
yzotov/centos7-cuda-spark-daemon
/wait-spark.sh
UTF-8
909
3.3125
3
[]
no_license
#!/usr/bin/env bash sbin="`dirname "$0"`" sbin="`cd "$sbin"; pwd`" . "$sbin/spark-config.sh" # get arguments command=$1 shift instance=$1 shift . "$SPARK_PREFIX/bin/load-spark-env.sh" if [ "$SPARK_IDENT_STRING" = "" ]; then export SPARK_IDENT_STRING="$USER" fi export SPARK_PRINT_LAUNCH_COMMAND="1" # get log ...
true
db94d793619593acb94e4fa5476fe7f98a0e2dad
Shell
cwonrails/dotfiles
/trusty/.bashrc
UTF-8
4,216
3.40625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # Enables distinguishing between Mac (Darwin) and Linux export PLATFORM=$(uname -s) # Set command prompt options PS1="\n\u @\h [\d \@]\n\w " # Enable command prompt coloring export CLICOLOR=1 # Set vim as default editor export EDITOR='vim' # Enable vi mode in shell set -o vi # Enable bash alia...
true
4689e1d8213301f832ba6a425c5b649ad5bc6408
Shell
WYWLMayo/consolidate
/consolidate.sh
UTF-8
19,324
3.515625
4
[]
no_license
echo "Please select the Organism for database searching:" PS3_OLD=$PS3 PS3="Please make a selection=> "; export PS3; select Database in Mouse Human Zebra_fish None do case $Database in Mouse) LB_1="Mouse";LB_2="musculus";LB_3="mouse"; DB="MM";Uniq="Mm.seq.uniq";break;; Human) LB_1="Homo";LB_2="Huma...
true
30fe4b678132dcfaf91da90eac96aea8db5289d0
Shell
dawnbreaks/taomee
/hadoop/game-report/eqin/webapp/hero_search_v2
UTF-8
2,040
3.078125
3
[]
no_license
#!/bin/sh . /etc/profile PROJECT=$1; STARTTIME=$2 ENDTIME=$3 MIMIID=$4 GAMEZONE=$5 REMOTE_EXEC_SQL="mysql -ugamereport -pOH2%wx12KB --skip-column-names --host=192.168.71.45" DB="hadoopdailyresult" #YM=`echo $TIME | sed "s/-/\t/g" | awk '{print $1$2}'` #YM=`date -d "${STARTTIME}" +%Y%m` RESULTFILE="search_result" ...
true
102ec01e2ca5662b7fa4f597f51883560fb58f87
Shell
giagulei/IReS-Platform
/asap-platform/asap-server/asapLibrary/operators/Wind_Distribution_Computation_Spark/Wind_Distribution_Computation_Spark.sh
UTF-8
828
2.546875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash <<INFO Author : Papaioannou Vassilis Last update : 28/ 03/ 2016 Previous updates : 09/ 02/ 2016 Platform : ASAP IReS Github : https://github.com/project-asap/IReS-Platform Work package : Telecom analytics Github : https://github.com/project-asap/telecom-analytics/blob/current/docs/PeakDetecti...
true
036fd0e6659787025d5ca386d30963457b6ae0df
Shell
AgoraIO/API-Examples
/.github/ci/build/build_mac_ipa.sh
UTF-8
3,562
2.984375
3
[ "MIT" ]
permissive
CURRENT_PATH=$PWD # 获取项目目录 PROJECT_PATH="$( cd "$1" && pwd )" cd ${PROJECT_PATH} && pod install if [ $? -eq 0 ]; then echo " pod install success" else echo " pod install failed" exit 1 fi # 项目target名 TARGET_NAME=${PROJECT_PATH##*/} KEYCENTER_PATH=${PROJECT_PATH}"/"${TARGET_NAME}"/Common/KeyCenter.swift...
true
cd64b8563fae29aa4006bb4cdcdc368812a34fcf
Shell
PalakPartani/UserRegistrationProblem
/UserRegistration.sh
UTF-8
1,068
3.703125
4
[]
no_license
#!/bin/bash -x echo "Welcome to user registration problem " userNamePattern="[A-Z]{1}[A-Za-z]{2,}" emailIdPattern="^[A-Za-z]*([.|+|-|_]?[A-Za-z]+)?[@]{1}[A-Za-z]{2,}[.]{1}[A-Za-z]{2,}([.]?[A-Za-z]{2,})?$" checkNumber="^[1-9]{2}\s?[1-9]{1}[0-9]{9}$" checkPassword="^[A-Za-z]{8}" checkPassword="^[A-Z]{1,}[A-Za-z]{8,}$" #...
true
2044cbe5e84eca78ace802ea679fcb6b4e0bc9f6
Shell
tnakaicode/jburkardt
/fd1d_advection_ftcs/fd1d_advection_ftcs.sh
UTF-8
376
2.734375
3
[]
no_license
#!/bin/bash # g++ -c fd1d_advection_ftcs.cpp if [ $? -ne 0 ]; then echo "Errors compiling fd1d_advection_ftcs.cpp" exit fi # g++ fd1d_advection_ftcs.o -lm if [ $? -ne 0 ]; then echo "Errors linking fd1d_advection_ftcs.o" exit fi # rm fd1d_advection_ftcs.o mv a.out ~/bincpp/$ARCH/fd1d_advection_ftcs # echo "Exec...
true
8de070a0cce9c6c23a33bacf64279b8ad0143b3f
Shell
digoal/bottledwater-pg
/build/bottledwater-docker-wrapper.sh
UTF-8
620
2.671875
3
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
#!/bin/sh POSTGRES_CONNECTION_STRING="hostaddr=$POSTGRES_PORT_5432_TCP_ADDR port=$POSTGRES_PORT_5432_TCP_PORT dbname=postgres user=postgres" KAFKA_BROKER="$KAFKA_PORT_9092_TCP_ADDR:$KAFKA_PORT_9092_TCP_PORT" if [ -n "$SCHEMA_REGISTRY_PORT_8081_TCP_ADDR" ]; then SCHEMA_REGISTRY_URL="http://${SCHEMA_REGISTRY_PORT_808...
true
9f04fe6c26ac73181982d63019bff9d018419b8f
Shell
LRelar/cwr_last
/run.sh
UTF-8
440
3.328125
3
[]
no_license
rm -rf corFiles/*/*.cor rm -rf corFiles/*/*.log rm -rf result date="$(date)" for i in $(find champs -maxdepth 1 -name *.s); do ./asm $i >> corFiles/our/run$date.log f="$(basename -s .s $i)" echo "$f" chmod 777 champs/$f.cor mv champs/*.cor corFiles/our ./asm-school $i >> corFiles/school/run$date.log chm...
true
488f0d940895f6e758bac3e87f9f5e4e5a91493e
Shell
hashbang/shell-etc
/network/if-down.d/upstart
UTF-8
332
2.9375
3
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
#!/bin/sh -e if [ -e /lib/lsb/init-functions ]; then . /lib/lsb/init-functions fi if ! init_is_upstart; then exit 0 fi # Let's ignore meta entries (ifdown -a) if [ "$ADDRFAM" = "meta" ]; then exit 0 fi initctl emit -n net-device-down \ "IFACE=$IFACE" \ "LOGICAL=$LOGICAL" \ "ADDRFAM=$ADDRFAM" \ "METH...
true
9f8e78be4a9000680dd262fd215e3c1205dd597b
Shell
shuangyichen/tmp
/fedml_experiments/distributed/fedavg/run_fedavg_pytorch.sh
UTF-8
684
2.53125
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash CLIENT_NUM=$1 WORKER_NUM=$2 MODEL=$3 DISTRIBUTION=$4 ROUND=$5 EPOCH=$6 BATCH_SIZE=$7 LR=$8 DATASET=$9 DATA_DIR=${10} CLIENT_OPTIMIZER=${11} CI=${12} PROCESS_NUM=`expr $CLIENT_NUM + 1` echo $PROCESS_NUM #hostname > mpi_host_file mpirun ...
true
6c795a2ca32df519710522df206e4f6645dde8ff
Shell
badboy/whatrustisit
/build.sh
UTF-8
1,125
3.875
4
[]
no_license
#!/bin/bash if command -v gsed 2>/dev/null; then SED=gsed else SED=sed fi stable() { rustup toolchain add stable >&2 rustup run stable rustc --version | egrep -o '1\.[0-9]+\.[0-9]+' } beta() { rustup toolchain add beta >&2 rustup run beta rustc --version | \ $SED 's/.\+\(1\.[0-9]\+\.[0-9]\+[^ ]*\).*/...
true
e5984bc2aef5d9f56eb1581a59d92be016654f2f
Shell
panoptesDev/Panoptes_master
/scripts/build-downstream-projects.sh
UTF-8
2,722
3.546875
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # # Builds known downstream projects against local panoptes source # set -e cd "$(dirname "$0")"/.. source ci/_ source scripts/read-cargo-variable.sh panoptes_ver=$(readCargoVariable version sdk/Cargo.toml) panoptes_dir=$PWD cargo="$panoptes_dir"/cargo cargo_build_bpf="$panoptes_dir"/cargo-build-b...
true
55a952a111271fefc9fbfed3cd018f271cb67564
Shell
arenadata/gpdb
/src/bin/pg_rewind/sql/pg_xlog_symlink.sql
UTF-8
1,895
3.40625
3
[ "LicenseRef-scancode-rsa-md4", "OLDAP-2.8", "HPND-sell-variant", "BSD-4-Clause-UC", "Zlib", "LicenseRef-scancode-zeusbench", "LicenseRef-scancode-openssl", "bzip2-1.0.6", "LicenseRef-scancode-ssleay-windows", "Beerware", "LicenseRef-scancode-mit-modification-obligations", "LicenseRef-scancode-...
permissive
#!/bin/bash # This file has the .sql extension, but it is actually launched as a shell # script. This contortion is necessary because pg_regress normally uses # psql to run the input scripts, and requires them to have the .sql # extension, but we use a custom launcher script that runs the scripts using # a shell inste...
true
8e7a9f407cb224fcd01ed159bf33c5a020721063
Shell
janxb/ServerUtils
/lxd-create
UTF-8
1,485
3.859375
4
[ "Unlicense" ]
permissive
#!/bin/bash set -e if [ "$#" -ne 2 ]; then echo "Illegal number of parameters." echo "Usage: lxd-create IMAGE_NAME CONTAINER_NAME" echo "Example: lxd-create ubuntu:lts c1" echo "Example: lxd-create images:debian/bullseye c1" exit 1 fi lxc launch $1 $2 echo "Updating package lists" lxc exec $2 -- apt-get u...
true
41247264cce26f8307e3df9b06198e8c393a1e5b
Shell
noah/dotzsh
/09_xorg
UTF-8
670
2.84375
3
[]
no_license
# poor man's display manager # if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then # ~/.xinitrc decides which wm to use exec startx > ~/logs/startx.log 2>&1 else # don't start keychain if logging in from tty # [[ -f ~/.ssh/id_dsa ]] && /usr/bin/keychain --timeout 999999 --quiet --nogui ~/.ssh/id...
true
d1f55f328c5d4152503f58fddfb0e24d20e1d8e0
Shell
aristidetraian/debiansetup
/vidscript.sh
UTF-8
210
3.125
3
[]
no_license
#!/bin/bash #FILES=/path/to/* for f in `ls -d */` do echo "Processing $f file..." cp vid.v1.py $f cd $f python vid.v1.py cd .. # take action on each file. $f store current file name done
true
d129b326d5c09ecd33c88a191b8bdc7ff87fc9a1
Shell
tridactyl/tridactyl
/scripts/common.sh
UTF-8
1,863
4.0625
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # Accepts no arguments # Returns git-add'ed files as a list of filenames separated by a newline character cachedTSLintFiles() { git diff --cached --name-only --diff-filter=ACM "*.ts" "*.tsx" ":(exclude)*.d.ts" ":(exclude)tests/*" ":(exclude)*test.ts" ":(exclude)e2e_tests/*" } # Accepts no argu...
true
4aeae808dce1f02525a72d92256c389a1e4cba60
Shell
marqusm/bash-scripts
/utils/sync.sh
UTF-8
1,027
3.65625
4
[ "MIT" ]
permissive
#!/usr/bin/env bash set -e # Constants and default values ROOT_NAME="<ROOT_FOLDER>" WORKING_FOLDER_NAME="<WORKING_FOLDER_NAME>" FILE_PREFIX="<FILE_PREFIX>" FILE_EXTENSION=".dat" SERVER_PATH="<SERVER_PATH>" PASSWORD="<PASSWORD>" BANDWIDTH_LIMIT="<BANDWIDTH_LIMIT>" CIPHER_ALGORITHM="AES256" # Parameters if [ -n "$1" ] ...
true
16e10271dc397673726913f0028099cd4f9d9e2a
Shell
paulpierre/MacShiny-Reversed
/Double click to install.pkg_/MacShinyFull-SOURCE/InstallGS/InstallGS.pkg/postinstall
UTF-8
7,718
2.71875
3
[]
no_license
#!/bin/sh # postinstall.sh echo "Presets\scripts\gsScripts\postinstall" echo "PID: $$; PPID: $PPID; Args: $(ps -o args= $$)" if [ -f "/tmp/.cyanDebug/_enableInstallScriptTrace" ]; then set -x fi ########################### Sending Last Logs >> #sendLastLogsScriptPath="/Library/Application Support/CyanSoft/gsservi...
true
c7ebfd0c6755503551c7fead996c25740877d197
Shell
d-green/dcm4chee-cdw-raspberry
/gpiofs
UTF-8
2,284
3.375
3
[]
no_license
#!/bin/bash LOGFILE=/srv/dcm4chee-cdw/server/default/log/gpioisofs.log gpiobutton=0 # pins 9/11 gpioled=2 # pins 13/14 waittime=60 # sec to blinking waiting gpiosetup() { gpio mode $gpioled out gpio mode $gpiobutton in gpio mode $gpiobutton up #pullup resistor } gpiowaitbutton() { while [ `gpio read...
true
39742141521364fcda61e26c73ba06d23b4bebe5
Shell
ievanh6/final-project-public
/scripts/06_trimmomatic.sh
UTF-8
943
3.328125
3
[]
no_license
#!/bin/bash # trim paired end reads in parallel # Info on the Trimmomatic tool available here: # http://www.usadellab.org/cms/index.php?page=trimmomatic # https://github.com/timflutre/trimmomatic # Naupaka Zimmerman # nzimmerman@usfca.edu # November 6, 2017 # call script like so: "bash 06_trimmomatic.sh data/fastq/*...
true
5d3421f4ec61985710fcb163d6fa5b4346118141
Shell
HasanAbbadi/config
/scripts/pix/sxort
UTF-8
716
3.75
4
[]
no_license
#!/bin/sh bySize(){ du -ah | sort -h -r | cut -f2- | sed 1,2d | sxiv -t -; } byName(){ ls | sxiv -t -; } byType(){ ls -1 *.png ; ls -1 *.jpeg ; ls -1 *.jpg ; ls -1 *.gif | sxiv -t -; } byTime(){ ls -t | sxiv -t -; } Shuffle(){ ls | shuf | sxiv -t -; } helpMe(){ echo "Please provide an argument: --size | ...
true
0c369834ee2f877c753742e5f3e370533396f34f
Shell
gabrielplicks/planutils
/planutils/packages/TEMPLATE/install
UTF-8
459
3.09375
3
[ "MIT" ]
permissive
#!/bin/bash # No need to install planutils dependencies # No need to check if already installed # The install script will be run from the package's directory # To use if root is required #[ "$UID" -eq 0 ] || (echo "installation requires root access"; exec sudo "$0" "$@") # Install general linux dependencies # Gener...
true
3fe6cf1c33589eb5b7fe50b893bbbdd2f27aeb24
Shell
NithyaKoka/FTP-Connection_data_migrations
/test.sh
UTF-8
169
3.0625
3
[]
no_license
#!/usr/bin/env bash cd #location for d in */*.xml ; do echo "Checking the xml file in $d directory for the contol characters" perl -i -pe 's/[[:cntrl:]]//g' $d; done
true
cf418017632ccbf8cb12f39933d44e58b35de206
Shell
cipek/xDrone
/scripts/setup.sh
UTF-8
707
2.578125
3
[]
no_license
#! /bin/sh sudo apt-get update sudo apt-get -y update sudo apt-get docker docker-engine docker.io sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable" curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo apt-get up...
true