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
a5169c34b24405ed96664d02254dc6b1a104fc99
Shell
pappasam/npd
/c1_intro_programming/scripts/check_a2.sh
UTF-8
1,057
3.4375
3
[]
no_license
check_course_vars_loaded assignment_index="2" thisAssignment="$course_assignments/assignment_$assignment_index" check_assignment_started "$assignment_index" passing="true" links="" if [ ! -f "$thisAssignment/index.html" ]; then echo "Was expecting to find $thisAssignment/index.html" echo passing="false" ...
true
9e829a2796b86c61284bf31a352ba1eff5360dc4
Shell
DerBunman/docker_debuild
/gpg_init.sh
UTF-8
772
3.328125
3
[]
no_license
#!/usr/bin/env bash export GNUPGHOME=$(dirname $0)/data/volumes/home/.gnupg test -d && rm -r $GNUPGHOME mkdir -p $GNUPGHOME GPG_BIN=$(which gpg2) || GPG_BIN=$(which gpg) || { echo "error gpg not found" exit 1 } cat >$GNUPGHOME/batch <<EOF %echo Generating a basic OpenPGP key %no-ask-passphrase %no-protection Key...
true
1831fd56ae767dcd1670a8b3eefdc05012f36ac3
Shell
ZMpursue/OSX-KVM
/boot-passthrough.sh
UTF-8
2,337
2.953125
3
[]
no_license
#!/usr/bin/env bash # Special thanks to: # https://github.com/Leoyzen/KVM-Opencore # https://github.com/thenickdude/KVM-Opencore/ # https://github.com/qemu/qemu/blob/master/docs/usb2.txt # # qemu-img create -f qcow2 mac_hdd_ng.img 128G # # echo 1 > /sys/module/kvm/parameters/ignore_msrs (this is required) ###########...
true
f4595d49ca09382541a67882e78d147acc3e4e5a
Shell
Alanma23/Sze_CRCMetaAnalysis_mBio_2018
/code/kostic.batch
UTF-8
3,583
2.765625
3
[ "MIT" ]
permissive
#!bash #Load needed R module load R/3.3.3 module load sratoolkit/2.7.0 tempMothur=/nfs/turbo/schloss-lab/msze/axiom_home_stuff/bin/mothurV1.39.3/mothur/mothur DOWNDIR=data/raw/kostic WORKDIR=data/process/kostic REF=data/references # Need to add in a bunch of stuff on the study and what they were looking for. # Might ...
true
a924f1a145149d67d9534db8e9b5b76b72459645
Shell
krullun/mathTableRecitation
/stampspik.sh
UTF-8
718
3.28125
3
[]
no_license
#!/bin/bash #initial announcement espeak -ven+f3 -s150 "Your resting time starts now" -w table.wav aplay table.wav #signal to EEG setup through arduino #IMPORTANT: you may need to change ACM0 that arduino is using #It can be check by comparing the result of command "ls /dev/tty*" without quotes before and after plugi...
true
26815e8a1ab28ebca91d39fd3e307a94af1294bb
Shell
wikimedia/operations-software-homer-deploy
/scap/cmd.sh
UTF-8
187
2.546875
3
[]
no_license
#!/bin/bash set -eu BASE_PATH="/srv/deployment/homer" export VENV="${BASE_PATH}/venv" export DEPLOY_PATH="${BASE_PATH}/deploy" (cd "${DEPLOY_PATH}" && make -f Makefile.deploy deploy)
true
568c6ddbbe568eb51b0f147b90ba97ae76315006
Shell
svn2github/iup-iup
/tags/iup_3_6/iup/srcconsole/copy_all_dll
UTF-8
1,188
3.1875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash Copy_DLLs() { PLAT=$1 SYS=$2 LUA_SFX=$3 if [ $SYS == Win64 ]; then SFX=_64 PLAT=$PLAT$SFX fi echo $PLAT/$SYS/Lua$LUA_SFX mkdir ../bin/$SYS/Lua$LUA_SFX cp -f ../lib/$PLAT/*.dll ../bin/$SYS/Lua$LUA_SFX cp -f ../../cd/lib/$PLAT/*.dll ../bin/$SYS/Lua$LUA_SFX cp -f ../../im/lib...
true
39e8c12b168d9809a38bf9195d3bc98d924a4f0f
Shell
Nazrath10R/RetroMiner
/scripts/older/custom_report.sh
UTF-8
1,921
3.21875
3
[]
no_license
#!/bin/bash # java -Xmx200G -cp PeptideShaker-1.14.6.jar eu.isas.peptideshaker.cmd.ReportCLI -in "$DIR/pride_reanalysis/outputs/PXD004624/1.cpsx" -out_reports "$DIR/pride_reanalysis/reports/PXD004624/" -reports 9 DIR=/data/SBCS-BessantLab/naz/ cd /data/SBCS-BessantLab/naz/pride_reanalysis/outputs/ # FOLDERS=$(ls -...
true
ee88251fd3aae9a336ba44408cc9de4b0b6e5043
Shell
waynebhayes/SANA
/scripts/NAFpredict.sh
UTF-8
9,908
3.71875
4
[]
no_license
#!/bin/bash USAGE="$0 [-a] [-GO1freq k] gene2goWhich oldG1.el oldG2.el seqSim GO1 GO2 tax1 tax2 NAFthresh col1 col2 outName [files] NOTE: predictions go to outName-p, validations to outName-v, summary to stdout where: seqSim is the file with sequence similarities/orthologs used to eliminate predictions possible to pred...
true
047b4d5a86d1c8c3b76f2094861667be4b115346
Shell
tectronics/ath
/ath/build/get-version.sh
UTF-8
924
4.25
4
[ "Apache-1.1", "BSD-2-Clause" ]
permissive
#!/bin/sh # # extract version numbers from a header file # # USAGE: get-version.sh CMD VERSION_HEADER # where CMD is one of: all, major, libtool # # get-version.sh all returns a dotted version number # get-version.sh major returns just the major version number # get-version.sh libtool returns a version "libtool...
true
4c43dfc7f450b86d8107c6d328a0de31625c8047
Shell
silatiol/tesi
/src/utils.sh
UTF-8
1,160
3.96875
4
[]
no_license
#!/bin/bash function wait_emulator_to_be_ready () { boot_completed=false while [ "$boot_completed" == false ]; do status=$(adb wait-for-device shell getprop sys.boot_completed | tr -d '\r') echo "Boot Status: $status" if [ "$status" == "1" ]; then boot_completed=true else sleep 1 f...
true
5ab5911674d6a5d459572cbb75f1a495ae4148a5
Shell
touch-head-optimistically/golang_oracle_lib
/server_prebuild.sh
UTF-8
821
2.890625
3
[]
no_license
#/bin/bash #usage # source ./server_prebuild..sh echo '重要提示: 请不要直接./运行,为了确保其中的环境变量生效,应该使用: source ./server_prebuild.sh' # 由于danastudio-ants引入了oracle的包,首次编译时,需要针对不同编译平台进行CGO编译环境配置(只需配置一次,无需重复配置),这里以centos为例: # 1. Install oracle oci rpm -ivh oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm oracle-instantclien...
true
6004c8d56efc62dee39f23c4b5104b9218bd3075
Shell
kangapp/openPAI
/kafka/kafka/deploy/kafka-configuration/kafka-generate.sh
UTF-8
2,564
3.109375
3
[ "MIT" ]
permissive
#!/bin/bash # Copyright (c) Microsoft Corporation # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the Software without restriction, including without limitation # t...
true
b4630104c56b101794f7fc57eacce6a250068867
Shell
pabagan/knowledgebase
/hashicorp-vault/course/m7/3-configure-consul.sh
UTF-8
1,499
3.125
3
[ "MIT" ]
permissive
# You are going to need the consul binary to follow along here. # You can get it by going to https://www.consul.io/downloads # We are going to start up a basic instance of Consul and # get a token with permissions to generate new token. # You don't need to know much about Consul aside from the # fact it uses tokens ...
true
f681fbe0f70a31b7798030c90bdaf9c47da558f7
Shell
lawremi/RGtk2
/books/rgui/ch-gWidgets/makePackage.sh
UTF-8
191
2.6875
3
[]
no_license
#!/bin/sh ## move ex-*.Rnw files into package PACKAGEDIR=../ProgGUIinR/inst/Examples/ch-gWidgets/ for i in ex-gWidgets-*.Rnw; do R CMD Stangle $i; done cp ex-gWidgets*.R $PACKAGEDIR
true
a5428af562de3ee6115b23e366502ab7bd892c8d
Shell
sorz/dotfiles
/install.sh
UTF-8
2,040
3.53125
4
[]
no_license
#!/bin/bash cd ~/.dotfiles T=`stat -c %Y install.sh` git pull if [ $T != `stat -c %Y install.sh` ]; then exec ./install.sh fi # Git ln -svf ~/.dotfiles/git/.gitattributes ~ rm -f ~/.gitconfig GPGEXE='/mnt/c/Program Files (x86)/GnuPG/bin/gpg.exe' if [[ "`uname -r`" == *"microsoft"* ]] && [[ -x "$GPGEXE" ]]; then ...
true
af12c528762966634bf3f964eea77e5aba9e1ea1
Shell
asmitamthorat/shellcoding
/DAY6_advancedPrograms/factors_of_Number.sh
UTF-8
191
3.34375
3
[]
no_license
#! /bin/bash read -p "enter the number" num echo "factors are the following" for (( i=2; i<$num; i++)) do if [ $((num%i)) -eq 0 ] then echo $i fi done
true
7315e5a8b18087d3ed35b724805d8ed4a64455b4
Shell
MPC-SoK/frameworks
/mp-spdz/test_readme.sh
UTF-8
786
2.875
3
[ "MIT" ]
permissive
#!/bin/bash cd MP-SPDZ for i in mult3 innerprod xtabs; do ./compile.py $i || exit 1 done Scripts/setup-ssl.sh 3 mkdir -p Player-Data echo 14 > Player-Data/Input-P0-0 echo 12 > Player-Data/Input-P1-0 echo 8 > Player-Data/Input-P2-0 progs="./mascot-party.x ./hemi-party.x ./malicious-shamir-party.x ./shamir-party...
true
ed8aa2d8aee1e662ba590b9efb865fb4ed3fa886
Shell
littlet1968/div_scripts
/check_usage.sh
UTF-8
2,683
3.015625
3
[]
no_license
#!/bin/bash /usr/bin/top -n1 | /bin/grep -i -C3 cpu\(s\) | /usr/bin/tee "log.txt" string1=$(/bin/grep -i cpu\(s\) log.txt) string3=$(/bin/grep -i swap: log.txt) #=============================================================================== # Get CPU percent_used #===================================================...
true
f33761d453331c130d6b9c129fde9ce4edceac1d
Shell
alihanyalcin/edgex-go
/snap/hooks/install
UTF-8
10,504
3.390625
3
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
#!/bin/bash -ex # get the values of $SNAP_DATA and $SNAP using the current symlink instead of # the default behavior which has the revision hard-coded, which breaks after # a refresh SNAP_DATA_CURRENT=${SNAP_DATA/%$SNAP_REVISION/current} SNAP_CURRENT=${SNAP/%$SNAP_REVISION/current} # install all the config files from...
true
4ad30db8bd1aea8fa014e353aa6bb51c18f8a4c6
Shell
shakiyam/EMCC13.2
/start.sh
UTF-8
386
3.125
3
[ "MIT" ]
permissive
#!/bin/bash set -eu -o pipefail # Load environment variables envfile=.env if [ ! -f $envfile ]; then echo "File not found: $envfile" exit 1 fi # shellcheck disable=SC2046 export $(grep -v ^# < $envfile | xargs) sudo -u oracle "$ORACLE_HOME/bin/dbstart" "$ORACLE_HOME" sudo -u oracle "$ORACLE_MIDDLEWARE_HOME/bin/em...
true
e0f3484fba242d67675355c36a7b3b5e7086df87
Shell
openstack/charm-heat
/hooks/upgrade-charm
UTF-8
793
3.609375
4
[ "Apache-2.0" ]
permissive
#!/bin/bash -e # Wrapper to deal with newer Ubuntu versions that don't have py2 installed # by default. declare -a DEPS=('apt' 'netaddr' 'netifaces' 'pip' 'yaml' 'dnspython' 'openstackclient') # drop this when trusty support is ended. Only need python3 at that point release=$(lsb_release -c -s) if [ "$release" == "t...
true
a6bb2eb6272573d757fcc397a264b7502888cfcb
Shell
dohoang1102/ChromeIcon
/chrome
UTF-8
864
3.375
3
[]
no_license
#!/bin/sh # Author: willscott@gmail.com CHROME=/Applications/Chromium.app DATA="$HOME/Library/Application Support/Chromium" #CHROME=/Applications/Google\ Chrome.app #DATA="$HOME/Library/Application Support/Google/Chrome" # Make sure a profile was chosen if [ $# -eq 0 ]; then echo "Usage: $0 <profile> [--chrome-argum...
true
12f050d13fac2ff4ee986dd52136fdd23a26d291
Shell
yorkmena/ShellAssignmentOffice
/23.sh
UTF-8
195
3.484375
3
[]
no_license
#!/bin/bash echo "Enter directory" read dir if [ ! -d $dir ]; then echo "dir does not exist" exit 1 fi echo "Number of days" read n d=$(realpath $dir) find "$d"/* -maxdepth 0 -type f -mtime +"$n"
true
56d74895be06e6c21b6794cd7c76ab42c65fc45f
Shell
cyclestreets/cyclescape-chef
/local-cookbooks/cyclescape-backups/templates/default/run-backups.sh.erb
UTF-8
1,796
3.140625
3
[ "MIT" ]
permissive
#!/bin/bash set -e echo "Back up the shared directory, which includes uploaded images and documents" echo `date` tar -cjpf <%= @shared_filename %> -C /var/www/cyclescape/shared system openssl dgst -md5 <%= @shared_filename %> > <%= @shared_filename + ".md5" %> echo "Back up the only recently changed shared files" ec...
true
2f0954e5e1bc0afddd3b767f45c99c20843f22f1
Shell
natsuya-niki/docker-sample-php7.3-mysql5.7-redisc
/dockerfiles/redis/redis.sh
UTF-8
3,015
2.96875
3
[]
no_license
#!/bin/bash # 邪魔なファイルを削除。 rm -f \ /data/conf/r7000i.log \ /data/conf/r7001i.log \ /data/conf/r7002i.log \ /data/conf/r7003i.log \ /data/conf/r7004i.log \ /data/conf/r7005i.log \ /data/conf/nodes.7000.conf \ /data/conf/nodes.7001.conf \ /data/conf/nodes.7002.conf \ /data/conf/nod...
true
47bb8a1806ee6f7118e1073806bb26f7ce63cf70
Shell
fernfernfern/circleci-orbs
/scripts/dev-release.sh
UTF-8
687
3.25
3
[ "MIT" ]
permissive
#!/bin/bash -eo pipefail # COMMIT_RANGE=$(echo $CIRCLE_COMPARE_URL | sed 's:^.*/compare/::g') # echo "Commit range: " $COMMIT_RANGE # UPDATED_ORBS=$(git diff $COMMIT_RANGE --name-status | \ # sed -E 's/.*src\/(.+)\/.*/\1/' | \ # grep -vE '^[A-Z!?]{1,2}\s+') # for ORB in $UPDATED_ORBS; d...
true
0a5275126985f13e91a6cf3a03797aaf15eb9389
Shell
dtonthat2/chem160module21
/checkrange2.bash
UTF-8
166
3.296875
3
[]
no_license
#!/bin/bash if [ $1 -ge 100 ] && [ $2 -le 1000 ]; then echo "Arguments give reasonable range" else echo "Range given ($1 to $2) not in (100 to 1000)" exit 1 fi
true
d8ac59280b85945e1dcc7d358a158f25019f8199
Shell
lsst-camera-dh/mutils
/bin/plotTestShorts.sh
UTF-8
1,364
3.828125
4
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash # #------------------------------------------------------------------------ function usage { cat <<-EOM Usage ${0##*/} rebPath startTime rebPath ~ <subsystem>/<bay>/Reb[012] quote time if it contains spaces Options: -h (print help msg) -d <duration> EOM exit 1 } if [ $# -lt 2 ]; then ...
true
97a1d217c3ceefd9c619c23593adfdf7baf71ac1
Shell
mebbert/Dark_and_Camouflaged_genes
/scripts/00_GET_BAMS/realign_minimap2.ogs
UTF-8
1,364
3.28125
3
[]
no_license
#!/bin/bash #$ -cwd #$ -N realign #$ -q <queue> #$ -M email@institution.edu #$ -pe threaded 16 #$ -l h_vmem=32G #$ -j y #$ -notify source $HOME/.bash_profile bam=$1 ref=$2 ref_tag=$3 out=$4 mkdir -p $out echo "`date` Realign $1 running on `hostname`" regex="SM:([A-Za-z0-9_\-]+)" RG=$(samtools view -H $bam | grep ...
true
1c38fb7237817793b846e855623f63e042561ef1
Shell
wdwatkins/pgml_temperature_prediction
/slurm/lake_optimize.slurm
UTF-8
1,317
2.75
3
[]
no_license
#!/bin/bash #SBATCH --job-name=kabet # name that you chose #SBATCH -p normal # the partition you want to use, for this case prod is best #SBATCH -A cida # your account #SBATCH -o shellLog/slurm-%A_%a.out #SBATCH --time=00:10:00 # time at which the process will be cancelled if unfi...
true
16a151cbad448e1b254f8f371ba5719e066e08ae
Shell
sibis-platform/ncanda-data-integration
/scripts/crond/front-hourly-script
UTF-8
2,225
3.5625
4
[ "BSD-3-Clause" ]
permissive
#!/bin/bash -l ## ## See COPYING file distributed along with the ncanda-data-integration package ## for the copyright and license terms ## qa_args="$*" # Set the SIBIS environment variable to the data integration repo export SIBIS=`realpath $(dirname $0)/../../` XNAT_FLAG=1 IMPORT_FLAG=1 [ -r $HOME/.bashrc ] && . ...
true
b9111106b7968b924f323507138d0a2cc7a357b5
Shell
iaintshootinmis/CitrixConfig
/citrixfix
UTF-8
2,022
4.03125
4
[]
no_license
#! /bin/bash ####################################################################################################### # Author: Justin McAfee # # Contact: me@justinmcafee.com # # Purpose: Download certificates for Citrix Recevier, move to folder and set perms. # # Date: 24JAN2021 ...
true
96b271438725c1d1b996c32ed340f5969ea6595f
Shell
jaysencryer/SysSet
/Hardware.fun
UTF-8
10,229
3.4375
3
[]
no_license
#! /bin/sh # # Hardware.fun V1 # # 31/7/2002 :- altered InstUPS to be less ambiguous # altered InstNetCard to bomb out with proper error message # if config file not complete. # # 13/10/2004 :- v3.000b updated gigabit driver TestFun () { echo "Banana" return 1 } ###############################################...
true
9299b384a41ec5439312b0ca0335b0915f08eb5e
Shell
lodenrogue/covid-cli
/test/test_county
UTF-8
1,149
2.953125
3
[ "MIT" ]
permissive
#! /bin/bash source xunit curl() { cat county/base.csv } test_county_all() { result=$(../covid -t all) expected=$(cat county/base.csv) assert_equals "$expected" "$result" } test_single_county() { result=$(../covid -t snohomish) expected=$(cat county/single_county.csv) assert_equals "$expected" "$result" } t...
true
e44ada694ae57298c739f66dad91455e0a7bb23d
Shell
italiangrid/storm-deployment-test-gpfs
/remote/run.sh
UTF-8
1,429
3.6875
4
[]
no_license
#!/bin/bash set -ex trap "exit 1" TERM MODE=$1 PLATFORM=$2 STORM_REPO=$3 STORAGE_ROOT_DIR=$4 HOSTNAME=$5 MODE="${MODE:-"clean"}" PLATFORM="${PLATFORM:-"centos6"}" if [ -z "$STORAGE_ROOT_DIR" ]; then echo "Need to set STORAGE_ROOT_DIR" exit 1 fi if [ -z "$HOSTNAME" ]; then echo "Need to set HOSTNAME" exit 1 ...
true
9484272f0224cc97e62f5832251af3e353ed3ee4
Shell
yaoyaoding/lecture
/2018-01-17-THU-simu/day1/data/chess/fc.sh
UTF-8
249
3.09375
3
[]
no_license
#!/bin/bash A="attack" B="brute" for((i=1;;i++)) do ./yprod.py > input ./${A} < input > ${A}.out ./${B} < input > ${B}.out diff ${A}.out ${B}.out > /dev/null if [ $? -ne 0 ] then echo $i N exit else echo $i Y cat ${A}.out fi done
true
e8dfe70b220864d9d68d8c4fad870d6a4834812d
Shell
b-ggs/i3config
/bootstrap.sh
UTF-8
218
3.234375
3
[]
no_license
#!/bin/sh dir=$PWD installdir=~ files=".i3 i3blocks scripts xrandr" for file in $files; do rm -rf $installdir/$file echo "Linking $dir/$file to $installdir/$file." ln -s $dir/$file $installdir/$file done
true
5f93bfe961b6aaac14c0ee9c2dd0b6784dc714f0
Shell
VernitaJ/git-katas
/submodules/setup.sh
UTF-8
464
3.5625
4
[ "MIT" ]
permissive
#!/usr/bin/env bash SCRIPT_PATH="$( cd "$(dirname "$0")" ; pwd -P )" echo ${SCRIPT_PATH} EXERCISE_DIR=${SCRIPT_PATH}/exercise if [ -d ${EXERCISE_DIR} ]; then rm -rf ${EXERCISE_DIR} fi mkdir ${EXERCISE_DIR} cd ${EXERCISE_DIR} mkdir component cd component git init touch component.h git add component.h git commit...
true
6d7a52ec6f0f96c0d808c081dce98b94c37b4585
Shell
Samyuktha1995/Action-Detection
/utility/splitVideo.sh
UTF-8
305
2.9375
3
[]
no_license
#!/usr/bin/env bash A=0 DURATION="$(ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 sample.mp4)" DURATION=${DURATION%.*} CLIPLENGTH=10 while [ $A -le $DURATION ] do ffmpeg -ss $A -i sample.mp4 -t $CLIPLENGTH -c:v libx264 output-${A}.mp4; let "A=A+$CLIPLENGTH" done
true
781cf2978b0815c7ec6cf4200ca809cc7405c6c5
Shell
espressif/esp-afr-sdk
/tools/windows/tool_setup/build_installer.sh
UTF-8
1,306
4.09375
4
[ "GPL-2.0-only", "Apache-2.0" ]
permissive
#!/usr/bin/env bash # # Script to build the IDF Tools installer for Windows with Inno Setup. # This script should be executed inside wine-innosetup docker image. # # - Downloads all tools to install into the "dist/" directory # - Downloads 7z and idf_versions.txt # - Runs ISCC under wine to compile the installer itself...
true
12baa5824972790fe36aa0f5dd9beebaf3ecade0
Shell
rajneesh44/Programs
/Lab.sh
UTF-8
561
3.625
4
[]
no_license
#!/bin/sh echo "Enter the max number you want to see in the pattern" read num1 num2=2 ans=$((num1*num2)) ans=`expr $ans + 1` a=0 echo "Printing the pattern ..." while [ "$a" -lt "$ans" ] do if [ "$a" -le "$num1" ] then b="$a" while [ "$b" -ge 0 ] do echo -n "$b " b=`expr $b -...
true
7d63374be5688ddb070677e25f271183662e7755
Shell
jussi-kalliokoski/dotfiles
/install.sh
UTF-8
1,866
3.71875
4
[]
no_license
#!/usr/bin/env sh OS=`uname` if [ "${OS}" == "Darwin" ]; then OS="osx" else OS="linux" fi if [ ! -d ~/.dotfiles ]; then git clone --recursive https://github.com/jussi-kalliokoski/dotfiles ~/.dotfiles fi OLD_PWD=`pwd` cd ~/.dotfiles if [ "$PREFIX" == "" ]; then PREFIX="/usr/local" fi # link, confirm...
true
66bb66d6a422a77a3c97484ab897823c2312df19
Shell
iphilgood/DockSTARTer
/scripts/run_compose.sh
UTF-8
1,636
3.9375
4
[ "MIT" ]
permissive
#!/bin/bash set -euo pipefail IFS=$'\n\t' run_compose() { local PROMPT PROMPT=${1:-} local QUESTION QUESTION="Would you like to run your selected containers now?" info "${QUESTION}" local YN while true; do if [[ ${CI:-} == true ]] && [[ ${TRAVIS:-} == true ]]; then info ...
true
0017f5f2d3118d075068d1242c9ae1822aea205a
Shell
aqing1987/s-app-layer
/sh/samples/check-os-type.sh
UTF-8
138
2.953125
3
[]
no_license
#!/bin/bash if [ $(getconf WORD_BIT) = '32' ] && [ $(getconf LONG_BIT) = '64' ] ; then echo "64 bit OS" else echo "32 bit OS" fi
true
8c17d35a744a0dcf47634bc37cdcd25636229037
Shell
elgenie/dot-files
/shell/bash_aliases
UTF-8
1,049
2.71875
3
[]
no_license
# -*- sh -*- # Section: Editing alias e="$EDITOR" alias em="emacs" alias ec="emacsclient -c --alternate-editor=''" alias ebc="emacs -batch -f batch-byte-compile" # Section: Git alias g="git" alias gr="grep -ri" alias gdc="git diff -U6 --cached" alias grn="grep -rin" alias grl="grep -ril" alia...
true
54fc899f41972126b85a4d57166d9d2dbebf3f14
Shell
daumann/timeline-maps
/buildingGeojson/listRaw.txt
UTF-8
2,777
2.953125
3
[]
no_license
#!/bin/bash blue='\033[0;34m' yellow='\033[1;33m' green='\033[0;32m' red='\033[0;31m' NC='\033[0m' # No Color re='^[0-9]+$' #umap=# COPY leaflet_storage_datalayer FROM '/home/aumannd/my-app/subjects.csv' CSV; rawurlencode() { local string="${1}" local strlen=${#string} local encoded="" for (( pos=0 ; pos<st...
true
280a7090e2e821d86fb435c465d27759057c52f6
Shell
du-ulises/Proyecto-en-JavaCC-m6800-family-master-
/m6800-family-master/changelog.sh
UTF-8
912
3.34375
3
[]
no_license
#!/bin/bash file="" array=($(git tag -l)) length=${#array[@]} tags="" if [ $length -gt 1 ] then tags="${array[length-2]}..${array[length-1]}" elif [ $length -gt 0 ] then tags="${array[length-1]}" fi file+="**Changes**\n\n" file+=$(git --no-pager log $tags --pretty=format:"\n- [(%h)]($CI_PROJECT_URL/commit/%H...
true
e7b521eae9c75876965cfb07ebaab5cc9434dc83
Shell
benbariteau/dotfiles
/files/bashrc
UTF-8
435
2.796875
3
[]
no_license
if [ -f ~/.bashrc.local ]; then source ~/.bashrc.local fi alias ls="ls --color=auto" alias tmx="tmux attach -t" alias gitsh="tpol git" function mvim() { vim -p `git status --porcelain | sed -ne 's/^ M //p'` } function grim() { vim +/$1 -p $(git grep -l $1) } # my own binaries export PATH=$PATH:$HOME/b...
true
2da4d39cf09031eb8b9744ec66130973b82abd4f
Shell
ravero/setup
/setup_network.sh
UTF-8
1,629
4.59375
5
[]
no_license
#!/bin/bash #------------------------------------------------------------------------------ # Network Setup # # This script will set defaults for network connections on the computer. # It will list the identified networks on the computer and apply and ask # each one to apply settings. #-------------------------------...
true
d67d73dc7035712c70110f5617ba6c9ff409b759
Shell
davidbstein/spotsdk
/scripts/setup.bash
UTF-8
944
3.734375
4
[ "MIT" ]
permissive
read -p " This is a destructive operation if you already have a .SpotifyModified.app in this directory. Continue (Y/n)? " -n 1 -r echo if [[ $REPLY =~ ^[Nn]$ ]] then exit 1 fi echo " copying Spotify.app into local directory as .SpotifyModified.app " SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" rm ...
true
6b326919e5f55c9c59e80b569c52c617036f197f
Shell
mathpopo/Ultra-Fast-Face-Detector-1MB
/TNN-Face-Detector/build_aarch64_linux_face_detector.sh
UTF-8
294
2.6875
3
[]
no_license
#!/bin/bash CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ TNN_LIB_PATH=./TNN/scripts/build_aarch64_linux/ rm -r build mkdir build cd build cmake .. \ -DCMAKE_C_COMPILER=$CC \ -DCMAKE_CXX_COMPILER=$CXX \ -DCMAKE_BUILD_TYPE=Release \ -DTNN_LIB_PATH=$TNN_LIB_PATH make -j4
true
dbe239073d4a0b4399ce9e763d026ba0a166b9a3
Shell
ausnimbus/openshift-origin-cartridge-ioncube
/bin/control
UTF-8
711
3.390625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash -e source $OPENSHIFT_CARTRIDGE_SDK_BASH function start { nohup $OPENSHIFT_IONCUBE_DIR/bin/monitor > /dev/null 2>&1 & echo $! > $OPENSHIFT_IONCUBE_DIR/pid/run.pid echo "IonCube is loaded..." } function stop { kill -9 `cat $OPENSHIFT_IONCUBE_DIR/pid/run.pid` echo "IonCube will no longer be auto loa...
true
5f7d2de613ff2d1c0b75a71682cdbc8da0e95103
Shell
Quillshot/Torque2D
/tgb/CleanDSO.command
UTF-8
443
2.578125
3
[ "MIT" ]
permissive
#!/bin/bash cd `dirname "$0"` echo -n "Deleting all compiled script files... " find . -iname "*.dso" -delete echo "done." echo -n "Deleting all cached fonts... " find . -iname "*.uft" -delete echo "done." echo -n "Deleting all saved keybinds... " find . -iname "bind.cs" -delete echo "done." echo -n "Deleting all s...
true
ec53a3384aa8d866e80fb0b3989095c9090f930a
Shell
wtraylor/HadCM3B_60ka_for_LPJ-GUESS
/sort_nc_files_chronologically.sh
UTF-8
948
3.8125
4
[ "CC0-1.0", "CC-BY-4.0" ]
permissive
#!/bin/bash # SPDX-FileCopyrightText: 2021 W. Traylor <wolfgang.traylor@senckenberg.de> # # SPDX-License-Identifier: MIT # # Sort the HadCM3B output files in the argument list chronologically, using # the filename pattern. # # Author: Wolfgang Traylor <wolfgang.traylor@senckenberg.de> # The problem is that the years...
true
826fe1302568d598947d30ded208411b94f6d845
Shell
fflooos/Misc_auto_installer
/init_bind.sh
UTF-8
4,078
3.484375
3
[]
no_license
#!/bin/bash IP_RANGE="\t\t127.0.0.1/8\\;\\ \t\t127.0.1.1/8\\;\\ \t\t192.168.0.0/24\\;\\" DOMAIN="yourdomain.com" DOMAIN_IP="192.168.0.205" DNS_SERVER="${HOSTNAME}" echo "Bind installation & config _ @fslab 20160426-16:43" echo "Installing bind9..." sudo apt-get update -q -y && sudo apt-get -q -y inst...
true
451f48441f2ffec675622007d8cfb094ddd2ed38
Shell
Maarc/ansiblOSX
/scripts/download_as_pdf.sh
UTF-8
909
3.25
3
[]
no_license
#!/bin/bash # Script to Download Google Drive Documents as pdf and compress them set -e set -u set -o pipefail #set -x # SET THIS FOR DEBUGGING GDRIVE_REMOTE='drive' LOCAL_DOWNLOAD_FOLDER='/Users/mzottner/Downloads/' GOOGLE_DRIVE_ID=$(pbpaste | perl -n -e'/([-\w]{25,})/ && print $1') OBJECT_NAME=$(rclone -vv backend...
true
2a334bd3b263986c6aef00479ab7c5ad40a04767
Shell
ComputationalAdvertising/tech-stacks
/tools_glog/build.sh
UTF-8
355
3.28125
3
[]
no_license
#!/bin/bash set -o pipefail set -o errexit SCRIPT_DIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd) PROJECT_DIR=$SCRIPT_DIR if [ ! -d ${PROJECT_DIR}/build ]; then mkdir -p $PROJECT_DIR/build; fi cd $PROJECT_DIR/build cmake -D CMAKE_C_COMPILER=`which gcc` -D CMAKE_CXX_COMPILER=`which g++` $PROJECT_DIR make echo "==...
true
603781088a5b4bff9e67f7da93ca1a131298d40e
Shell
sinewalker/dotfiles
/init/20_suse_zypper.sh
UTF-8
1,169
3.390625
3
[ "MIT", "CC-BY-4.0" ]
permissive
# SUSE-only stuff. Abort if not SUSE. is_suse || return 1 # Update Zypper. e_header "Updating Zypper" cat <<EOM You will need to enter the root password for installing packages. If you don't know the root password, just press Enter to skip these. EOM e_header "Refreshing Zypper repos" sudo zypper --quiet refresh ...
true
3c60020ab1601382f8c6ebb01a7fdd1445a30031
Shell
AsthaTyagiU/Parquet_Reader_Script
/Parquet_Reader_Script/install_R.sh
UTF-8
557
2.65625
3
[]
no_license
#!/bin/bash #installing R sudo apt-get install software-properties-common sudo add-apt-repository main sudo add-apt-repository universe sudo add-apt-repository restricted sudo add-apt-repository multiverse sudo apt-get update sudo apt-get install -y build-essential libssl-dev libxml2-dev libcurl4-openssl-dev sudo apt ...
true
ababa687207591ab0e4f110402b53675413b70ba
Shell
convoyinc/apollo-cache-hermes
/scripts/include/shell.sh
UTF-8
275
3.5
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash (( __SHELL_INCLUDED__ )) && return __SHELL_INCLUDED__=1 export OPTIONS_FLAGS=() export OPTIONS_ARGS=() for argument in "${@}"; do if [[ "${argument}" =~ ^- ]]; then OPTIONS_FLAGS+=("${argument}") else OPTIONS_ARGS+=("${argument}") fi done
true
1a55c01d70fc35ea186b498a72b7153d01395d46
Shell
denil1111/JSint
/testFile
UTF-8
652
3.625
4
[ "MIT" ]
permissive
#!/bin/sh echo "\033[1;34m" Now Test all files in text folder "\033[0m" FILES=`ls test/*.js` i=0 suc=0 for d in $FILES; do i=$[$i+1] filename=`basename $d .js` node < test/$filename.js > test/$filename.out resfile="test/$filename.out" echo "\033[1m" Test $i "\033[0;35m" $filename.js : "\033[0m""\c" if diff test...
true
07882917e88390c181cac8927ac85b5b94abeee3
Shell
sarva/puppet-mongodb
/files/check-shard-db
UTF-8
207
2.5625
3
[]
no_license
#!/bin/bash db=$1 mongorouter=`cat /etc/mongorouter.conf | tr "\n" "," | sed -e 's/.$//g'` echo "db.printShardingStatus()" | mongo $mongorouter/admin --quiet | grep '"_id" : "'$db'", "partitioned" : true'
true
b7e98b9a803c876a21af371b1fb0f51f6b6e286f
Shell
kpelelis/onevone
/install_public.sh
UTF-8
1,255
3.25
3
[]
no_license
#!/bin/bash command_exists () { type "$1" &> /dev/null; } apt-get update apt-get upgrade apt-get autoremove PIP=/usr/local/bin/pip if command_exists pip ;then echo 'pip already installed updating' $PIP install --upgrade pip else apt-get install python3-dev build-essential easy_install pip fi if command_exis...
true
250ea2e1c2e45028e316a86ae25a5bf64b62724a
Shell
latextemplates/Handin-LaTeX-template
/src/aftercompile.sh
UTF-8
1,705
3.703125
4
[ "LPPL-1.3c" ]
permissive
cd $sourceDir; echo "$mainDir"; function tex_compile(){ pushd . >/dev/null; cd "$CTANDir" outHandle "Error in latexmk $1" latexmk -pdf "$1.tex" -outdir="./bin" --shell-escape -interaction=nonstopmode -f cp "bin/$1.pdf" ./ rm -rf bin/ popd >/dev/null; } # --- # - handin.sty : The handin package # - handin-d...
true
6e2b71bd5403223305a471d6acb47b17fe2266b8
Shell
Joel2B/Intel-Galileo
/scripts/build-debian-from-scratch.sh
UTF-8
7,543
3.640625
4
[ "MIT" ]
permissive
#!/bin/sh KERNEL=$1 if [ -z $KERNEL ]; then echo "No kernel supplied" echo "to build the kernel run the script build-kernel.sh" exit 0 fi IFS='_' read -r kernel_name p2 p3 << EOF $KERNEL EOF id_kernel=$( echo $kernel_name | sed -e "s/linux-image-//g") linux_headers=$( echo ${kernel_name}_${p2}_${p3} | sed ...
true
430b240a60209e131683f233b95f4a9882e23b7d
Shell
epcim/dotfiles
/home/bin/svn_ignore-recursive
UTF-8
1,175
4.125
4
[]
no_license
#!/bin/bash # Recursively find and set svn:ignore on files or folders. # If the file was already version it will be removed from the repository # and keep the local copy (can be overridden). # This does not perform the final commit so you can review the changes # using svn status. # # $1 pattern to ignore # $2 remove t...
true
c42f66e64849bb9378e2d20f866b089273efd8e6
Shell
eduardomarcial/mass-create-branch-aws-codecommit
/createbranch.sh
UTF-8
1,015
3.578125
4
[]
no_license
#!/bin/bash # # Autor: EDUARDO # Criar branch em todos os repositórios # Lista nome dos repositorios for REPONAME in $(aws codecommit list-repositories|grep repositoryName|cut -d\" -f4); do # Repo da vez echo "$REPONAME - Repositorio da vez." >>/tmp/logcreatebranch.log 2>&1 # Lis...
true
44db93efe229c32decee4f4ff609dce9354d304f
Shell
yuri91/stm32f40x-rs
/gen-api.sh
UTF-8
558
2.78125
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
#!/bin/sh svd2rust -i resources/STM32F40x.svd > src/lib.rs # Reformat compiler attributes removing unnecessary spaces # Remove spaces from # [ attribute ] => #[attribute] and add \n sed -i 's/\s*# \[ \([^]]*\) \]/\n#[\1]/g' src/lib.rs # Remove spaces from # ! [ attribute ] and add \n sed -i 's/\s*# ! \[ \([^]]*\) \]/...
true
2a2f724167d2806cc0d63ae96c330328d84b4e2e
Shell
Jinzai-solution/SALVATOR_SHELL
/board-salvator/DU/index.sh
UTF-8
3,537
2.796875
3
[]
no_license
#!/bin/sh # display unit device driver autotest shell-script set -a #set -x case "$1" in 1) echo "1)" $(dirname $0)/exec_du.sh 001_du_check_dmesg.sh sleep 3 ;; 2) echo "2)" $(dirname $0)/exec_du.sh 002_du_check_interrupt.sh sleep 3 ;; 3) echo "3)" $(dirname $0)/exec_du.sh 003_du_ram_display_image_on_hdmi0.sh sleep...
true
8c3d3d61e3409e1337c02ef47454f12eac01256f
Shell
Gilbert-Gb-Li/sage-bigdata-audit
/bigdata-audit/src/main/resources/assemblies/bin/core.sh
UTF-8
3,009
3.6875
4
[]
no_license
#!/usr/bin/env bash BASE="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )" ################################ # params ################################ #parse comand name, app name, app parameter OPERATE=$1 shift APP_PARAMS=$@ ################################ # constants ################################ #opts APP_...
true
f9c6f8d4008ebc563c2d4185ac06b489c4b04725
Shell
arfletcher/creport
/lib/creport/ignore-uptodate-wordpress
UTF-8
779
4.21875
4
[]
no_license
#!/bin/ksh # Post process the wordpress version script thowing away those that are # up to date. # # Used with "creport old-wordpress-versions" VERS=/var/lib/misc/wordpress-curent-versions # Find the most recent wordpress versions # Dont update the versions more that once a day because they lock us out if [ ! -f "...
true
b2b1af34d919ee6d1d6337fbfc6722fd7aa1a217
Shell
Asura-one/tools
/autossh/autossh
UTF-8
1,696
4.125
4
[ "MIT" ]
permissive
#!/bin/bash # set -x # 'Tag|Descript|Alias|IP|Username|Port|Password' # $ 'test|测试|test|192.168.1.1|root|22|password' > ~/.autosshrc # # @usage # $ autossh // List Server # $ autossh 1 // Login Num n Server AUTO_SSH_CONF=~/.autosshrc if [[ $(cat "${AUTO_SSH_CONF}") == "" ]]; then echo -e "\033[1;31m# ...
true
71a6281159363d1ba93013928f40b069b152d5db
Shell
GioCS17/pi3_brams
/install_grads_v2_2.sh
UTF-8
9,922
3.328125
3
[]
no_license
#!/bin/sh # Based on http://cola.gmu.edu/grads/gadoc/supplibs2.html # 26-10-2020 ROOT_PATH=/home/galvitez/brams_workspace/tools GRADS="${ROOT_PATH}/grads" SUPPLIBS="${GRADS}/supplibs" function module_loads { echo "Loading modules" module load openmpi/2.1.6 module load gcc/5.5.0 module load cmake/3.16.5 } ...
true
f274ef1cc1006ca9994debf604bac7b1abf916a4
Shell
damaainan/Reading
/philosophy/Buddhism/2.sh
UTF-8
924
2.984375
3
[]
no_license
#!/bin/bash #sed -n '1,2p' 心经.md | awk '{for (i=1; i<=length($1); ++i) if (substr($1, i, 1) > "\177") {print substr($1, i, 2) "\t中文"; ++i;} else {print substr($1, i, 1) "\tNot Chinese Character";}}' sed -n '1,2p' 心经.md | awk '{for (i=1; i<=length($1); ++i) if (substr($1, i, 1) > "\177") {print substr($1, i, 1) "\t中文"...
true
3abb631f0d88a45ca8e03e6b484c997631817e32
Shell
amargaritov/PTEMagnet_AE
/evaluation/show_results.sh
UTF-8
532
3.578125
4
[ "MIT" ]
permissive
RESULTS_DIR="$1" if [ -z "$1" ] then RESULTS_DIR=$REPO_ROOT/evaluation/results fi echo "Using results from $RESULTS_DIR" if [ ! -d $RESULTS_DIR ]; then echo "can't find directory with the results. Are you sure it exists?" else for i in $(ls $RESULTS_DIR); do pushd $RESULTS_DIR/$i > /dev/null; avg_time=$(...
true
9f359a58ca15125a443a650aabe89cf42aca523a
Shell
CmsHI/ElectroWeak-Jet-Track-Analyses
/ShellScripts/Performance/runPrintRunLumiEvent.template.sh
UTF-8
1,001
3.125
3
[]
no_license
#!/bin/bash runCmd="./ShellScripts/myRun.sh" progPath="./Performance/printRunLumiEvent.exe" inputFileTmp="Configurations/filelists/Pythia8_AllQCDPhoton30Flt30_Hydjet_Cymbal_MB_HINPbPbWinter16DR_FOREST.list" inputFile="${inputFileTmp/.list/_TMP.list}" cat $inputFileTmp | head -10 > $inputFile configFiles=( "Configura...
true
47b1bd755e7707ae0ede0c7513c7d28d98432767
Shell
dtinth/eXceedGit
/newuser
UTF-8
240
3.046875
3
[]
no_license
#!/bin/bash USERNAME=$1 DIR=/git/users/$USERNAME PASSWORD=$2 set -e set -v useradd -d $DIR -m -s /usr/bin/git-shell "$USERNAME" echo "$USERNAME:$PASSWORD" | chpasswd sudo -u "$USERNAME" git init --bare "$DIR/repo.git" cd "$DIR/repo.git"
true
7ad4a0b85283f52a01885152effb971b7dbae1eb
Shell
zhongzhd/ont_m6a_detection
/optimal_cut-off_selection/compare_tools.sh
UTF-8
1,176
2.875
3
[]
no_license
#!/bin/bash validated_set_bed=path_to_validated_set cp coordinate_transformation/compare_tools/*chr1.bed . #choose sites for file in *chr1.bed do awk '$5>=5' $file > ${file%%1.bed}2.bed done #calculate F1 socres for file in *chr2.bed do bedtools intersect -a $file -b $validated_set_bed -wa -s -u > ${file%%chr2.bed}...
true
8ba54349b6249e46efee239201e7aee4daccf07e
Shell
Fattouche/Stratocumulus
/src/service_images/django/cumulus-docker-entrypoint.sh
UTF-8
3,386
3.890625
4
[]
no_license
#!/bin/bash if [ "$1" == "INIT" ] then # User's cumulus config and code is mounted into /cumulus cd /cumulus if [ ! -d "django" ] then mkdir django fi # Only run if Django project folder doesn't already exist if [ ! -d "django/${CUMULUS_PROJECT_NAME}" ] then cd django django-admin startp...
true
555a3a3d6b24c62e11b6c58116f10880a0e70155
Shell
ercanlab/chromosome_conformation_capture
/homer_hic_analysis.sh
UTF-8
9,368
3.4375
3
[ "MIT" ]
permissive
#!/bin/sh # #SBATCH --verbose #SBATCH --job-name=homer_hic #SBATCH --output=/scratch/mrp420/reports/slurm_homerhic_%j.out #SBATCH --error=/scratch/mrp420/reports/slurm_homerhic_%j.err #SBATCH --time=24:00:00 #SBATCH --nodes=1 #SBATCH --mem=125GB #SBATCH --mail-type=ALL #SBATCH --mail-user=mrp420@nyu.edu #-------------...
true
b4087915534df7a4ece2a7d1bc9720c5044dbe5d
Shell
epandurski/cmbarter
/docker/configure_nginx.sh
UTF-8
495
2.703125
3
[]
no_license
#!/bin/bash # # This file is used by "Dockerfile.proxy". set -e envsubst '$PROXY_PASS_TO:$CMBARTER_HOST' < /etc/nginx/nginx.template > /etc/nginx/nginx.conf if [[ -e /run/secrets/cert.pem ]] && [[ -e /run/secrets/key.pem ]]; then cp /run/secrets/cert.pem /run/secrets/key.pem /etc/nginx/ssl/ fi iptables -P INPUT DR...
true
29623ae897730915d2173c20f5ea607fccd5964a
Shell
ajneu/fractionizer
/images/latex2xml/latex2xml.sh
UTF-8
1,059
3.53125
4
[ "MIT" ]
permissive
#!/bin/sh ## http://www.albany.edu/~hammond/demos/Html5/arXiv/lxmlexamples.html ## sudo apt-get install latexml ## sudo apt-get instal xmlstarlet # used below to remove the footer pname=`basename $0` if [ "$#" != "1" ] ; then echo "Usage: ${pname} stem-name" exit 1 fi stem="$1" if [ ! \( -f "${stem}....
true
920815bd295beeb2b6d6858a46c8b649546b786d
Shell
Aeronavics/ValleyForge
/bld/code_compliance/checkfuncs_structurename
UTF-8
8,438
3.90625
4
[]
no_license
#!/usr/bin/env bash # Copyright (C) 2011 Unison Networks Ltd # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This...
true
58351213b2bda92be23e78049cf0bc84cda290b9
Shell
alher11/tool_santet_sms
/santet.sh
UTF-8
2,297
2.8125
3
[]
no_license
#!/bin/bash echo Selamat datang tod, Siapa nama lu? #tulisan keluar read nick #membaca yang ditulis sleep 0.03 echo " _.-^^---....,,-- " sleep 0.03 echo " _-- jika ada --_ " sleep 0.03 echo " < kendala >) " sleep 0.03 echo " | hubungi | " sleep 0.03 echo " \._ fb: lilu...
true
659c50f1d42023918eea6adad5605130121d7514
Shell
0x384c0/Experiments-iOS-CoreML
/image_classifier/scripts_image_net/download_images.sh
UTF-8
319
2.703125
3
[]
no_license
cd tmp for D in *; do if [ -d "${D}" ]; then cat "$D/batch.txt" | tr -d '\r' | xargs -n 1 -P 10 wget -c -T 2 --tries 1 -P "$D/" # wget -i "$D/batch.txt" -c -T 2 --tries 1 -P "$D/" # cat "$D/batch.txt" | tr -d '\r' | xargs -n 1 -P 10 -I {} sh -c "echo {}; wget -c -T 2 --tries 1 -P "$D/" \"{}\"" fi done
true
e573d95a2fab38818b2aa71b0b81bec703365b31
Shell
juanvallejo/linux-scripts
/minfo
UTF-8
799
3.421875
3
[ "MIT" ]
permissive
#!/usr/bin/sh # minfo - music info # prints a string containing the current <artist> - <songname> to stdout # requires cmus, cmus-remote # @author juanvallejo songquery=`cmus-remote --server 127.0.0.1:8080 --passwd password -Q 2>&1 | grep "tag title" -m 1 | sed -E "s/tag\ title//g"` # determine if cmus is not open...
true
b2fd6cca891a0e361ad1509ade3a9dcfaba3135b
Shell
SDCND/SDC-Capstone
/object_detection_training/src/download_training_data.sh
UTF-8
435
2.625
3
[]
no_license
#!/bin/bash PRETRAINED_MODEL=ssd_mobilenet_v1_coco_2017_11_17.tar.gz PRETRAINED_MODEL_URL=https://s3.amazonaws.com/ricardosdc/capstone_project/$PRETRAINED_MODEL SDC_DATASET_URL=https://s3.amazonaws.com/ricardosdc/capstone_project/sim_data.record DESTINATION=$SDC_WORKING_DIR/downloads wget $PRETRAINED_MODEL_URL -P $D...
true
b84bc2d0eaafca84f7193f7abd88556aaf487bf9
Shell
NOAA-EMC/GEFS
/jobs/JGEFS_ATMOS_INIT_RECENTER
UTF-8
3,140
3.5
4
[]
no_license
#!/bin/ksh echo "$(date -u) begin ${.sh.file}" set -xa if [[ ${STRICT:-NO} == "YES" ]]; then # Turn on strict bash error checking set -eu fi export PS4='$SECONDS + $(basename ${.sh.file})[$LINENO] ' #################################### # Determine Job Output Name on System #################################### expo...
true
a3af9b94c625b1a7b9b5d6bfc6f55dce8239032f
Shell
wzbbbb/SD
/download/version_x_upgrade.sh
UTF-8
406
3.078125
3
[]
no_license
#!/bin/bash #To be used for the GW update #to upload the file to server: #curl -F "file=@version_x_upgrade.sh" http://192.168.115.41/SDC/gateway if [ -f ~/ready_for_upgrade ] ; then echo "ready for upgrade!" # remove the file during the upgrade # then, put it back after the upgrade # touch ~/ready_for_upgrade els...
true
b2e326c947e9e6073c46d43f538ea67b5758fb08
Shell
Snehlata0305/Software-lab
/inLab2/q1/q1.sh
UTF-8
96
2.875
3
[]
no_license
#!/bin/bash a="$1" s=0 x=0 for ((i=1;i<=$((a));i++)); do x=$((i*i)) s=$((s+x)) done echo "$s"
true
40ced1b1eacdf483cdaf8f60608ddcd1ba9472b2
Shell
meom-configurations/eORCA12.L75-GJM2020
/RUN_eORCA12.L75/eORCA12.L75-MJM2020/CTL/xiosremove.sh
UTF-8
546
3.125
3
[]
no_license
#!/bin/bash #set -x CONFIG=eORCA12.L75 CASE=GJM2020 CONFCASE=${CONFIG}-${CASE} cd $SDIR/$CONFIG/${CONFCASE}-S lsta=( $( ./chkseg.sh | grep 'archived' | awk '{print $1}' ) ) lstb=( $( ./chkseg.sh | grep 'not ready' | awk '{print $1}' ) ) cd $DDIR for n in ${lsta[@]} ; do if [ -d ${CONFCASE}-XIOS.$n ] ; then ec...
true
9f6a0eeafed1fd278b8323d203c913905b06e066
Shell
aharon-br/jamf-scripts
/Add DNS Servers.sh
UTF-8
639
3.28125
3
[]
no_license
#!/bin/bash ## This will add the Specified DNS Servers in Script Options in Jamf ($4, $5, $6, $7) to the users existing DNS. ## If running outside of Jamf edit $4,$5,$6,$7 to actual DNS entries ### Harry Richman 2020 ## Make a text copy of current DNS for emergency roll back purposes sudo networksetup -getdnsservers...
true
28e7a4b2295d84d3991191aae1a05ab9e20e48e7
Shell
mysqlonarm/benchmark-suites
/mysql-cluster-bench/workload/sbm.monitor.sh
UTF-8
266
2.890625
3
[]
no_license
#! /bin/bash slavecmd=$1 monitorcounter=$2 for (( c=1; c<=$monitorcounter; c+=1 )) do $slavecmd -e "show slave status\G" | grep Seconds_Behind_Maste $slavecmd -e "show status like 'wsrep_flow_control_paused_ns'" | grep wsrep_flow_control_paused_ns sleep 1 done
true
147a320d2813ae948474fc4111f63366dbff4b3c
Shell
codicuz/portf-shop-db-migration
/cmd-flyway.sh
UTF-8
906
3.75
4
[]
no_license
#!/bin/bash NO_ARGS=0 E_OPTERR=65 if [ $# -eq "$NO_ARGS" ] then printf "Отсутствуют аргументы. Должен быть хотя бы один аргумент.\n" printf "Использование: $0 {migrate|-migrate|clean|-clean|info|-info|repair|-repair}\n" printf " $0 migrate|-migrate - run migrations\n" printf " $0 clean|-clean - clean migrati...
true
7522bf8056cd10fabb83c8cf1e8ce6a4ad75a526
Shell
platform9/decco
/hack/ci-release.sh
UTF-8
2,428
4.0625
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -o nounset set -o errexit set -o pipefail # ci-release.sh - automated a release of Decco for CI systems. The version to # release is set in the VERSION file. # # The script assumes a Linux host with Docker and Make installed. It # installs all further prerequisites (like Go, go...
true
34762f99f1494fdad6e4cc60febe88b398aa40c6
Shell
melon-li/tools
/satstat
UTF-8
6,793
3.578125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash #功能:统计连接某个网络的所有端口的进出口流量 #参数:网络网关IP地址或"get"字符 GW='192.168.99.1' trap ctl_c INT pid=$(ps axu | grep $0| grep grep -v| grep color -v| awk -F" " '{print $2}') PS1_BK=$PS1 ps1="export PS1=\"\u@\h:\W\[\e[31;1m\]\\\$(satstat get)\[\e[30;1m\]\$ \"" ifstat_cmd="ifstat -t -i" cmd=$0 cmd=${cmd##*/} LOG='/var/'${cmd##*...
true
ca9edad97cd30b2c89b1eb293645792fdaea0928
Shell
jelaas/bifrost-build
/all/perl-5.10.1-1/Build.sh
UTF-8
2,711
3.0625
3
[]
no_license
#!/bin/bash # Builds a dynamically linked perl executable. SRCVER=perl-5.10.1 PKG=$SRCVER-1 # with build version PKGDIR=${PKGDIR:-/var/lib/build/all/$PKG} SRC=/var/spool/src/$SRCVER.tar.gz CDIR=/var/tmp/src DST="/var/tmp/install/$PKG" ######### # Install dependencies: # pkg_install dependency-1.1 || exit 1 #######...
true
7bb78e094e70caeda4e82ab758083eff89fc72f5
Shell
kim-jeongsu/baas2_caliper
/run_caliper.sh
UTF-8
626
2.78125
3
[]
no_license
#/bin/bash array=(300) for value in "${array[@]}"; do test=3orderer2org4peer_raft_batch_300 test=3orderer2org4peer_raft_batch_${value} echo ---------------------------------------------------------------------------------- echo $test echo -------------------------------------------------...
true
fe661a7b570aeaf455ed13f44cb96863eb2c5356
Shell
ejh243/BBF2019
/Scripts/Utilities/createSTARIndex.sh
UTF-8
563
2.546875
3
[]
no_license
source $1 ## create STAR index for reference genome STAR --runThreadN 6 \ --runMode genomeGenerate \ --genomeDir ${STARIndex} \ --genomeFastaFiles ${REFGENOME} \ --sjdbGTFfile ${GENCODEGTF} \ --sjdbOverhang 99 ## create STAR index for merged master transcriptome BRAINGTF=${MASTERTRANSCRIPTOME}/TALON/p...
true