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
5ac4e7ca65252c54c9d7bcd828cdee6256510d61
Shell
ak352/melanomics
/genome/lumpy/run_index.sh
UTF-8
196
2.6875
3
[]
no_license
#!/bin/bash --login YAHA="/work/projects/melanomics/tools/yaha/yaha" ref=$1 echo "Run index" date CMD="${YAHA} -g ${ref} -L 11" echo "${CMD}" eval "time ${CMD}" date echo "Indexing finished."
true
d2fb4080d0ab8eb30fbd4a0c7019eda25e123647
Shell
yingxingtianxia/scripts
/ssh.sh
UTF-8
362
3
3
[]
no_license
#!/bin/bash file=/root/.ssh/authorized_keys checkfile() { if [ -f $file ];then echo "$file exist" else echo "$file not exist" touch $file fi } expect << EOF spawn ssh 192.168.4.10 expect { "yes/no" {send "yes\r";exp_continue} "password" {send "1\r"} } expect "#" {send ch...
true
129b3115b22dadda9d7ffa5778f3345d96523245
Shell
stevemul/openshift-deployment-ansible
/tests/haproxy/master-failover-test.sh
UTF-8
3,130
3.828125
4
[]
no_license
#!/bin/bash # Ensure admin username and admin password are passed to script in Jenkinsfile. if [[ -z $1 ]] || [[ -z $2 ]] then echo "Usage $0 <admin username> <admin password>" exit 1 fi # Move to correct directory to run commands with relative paths cd /usr/share/ansible/openshift-deployment-ansible/tests/haproxy...
true
72720aff491ffa572aa5c15e1a290b5755bbe57a
Shell
MikelSwartz/vagrant.CoreOS
/CoreOS.provision.sh
UTF-8
267
2.5625
3
[]
no_license
#!/bin/bash cd ~ if [ -f "/root/kupectl" ] then echo "kupectl exists" else curl -O https://storage.googleapis.com/kubernetes-release/release/v1.5.2/bin/linux/amd64/kubectl fi chmod +x kubectl mv kubectl /usr/local/bin/kubectl update_engine_client -update
true
da26b3047ae6f46769b2da1f99a0b64b42e5d067
Shell
BridgeLabzVishal/ShellScripting
/Coupon_Number.sh
UTF-8
227
3.296875
3
[]
no_license
#!/bin/bash #Program implemented to get Coupon number echo "Enter a length of Coupn Number : " read Length array="" for (( i = 0;i < $Length; i++ )) do Random=$(( $RANDOM % 10 )); array[i]=$Random done echo "${array[@]}"
true
287c0468464d5e4c60756207ada197f86087f7ea
Shell
DanielChuDC/aws-instance-t2-micro
/modules/application/user_data.sh
UTF-8
418
2.578125
3
[]
no_license
#!/usr/bin/env bash ############## # Install deps ############## # Apt based distro if command -v apt-get &>/dev/null; then apt-get update apt-get install python-pip jq -y # Yum based distro elif command -v yum &>/dev/null; then yum update -y # epel provides python-pip & jq yum install -y epel-release yu...
true
eb9a2f0f5665396dc11b50433145cbf5f12cfdcd
Shell
burlamix/Fast-Image-watermarking-
/lunch_cfp.sh
UTF-8
275
2.59375
3
[]
no_license
echo -------------------c++ version-------------------------- echo $1 for ((j=1; j<=4; j++)) do for ((i=3; i<=128; i=i+3)) do #echo $i a=$((i/3)) ./c_pipe_farm data_512 mark.png output 1 $a $1 if [ $i -gt 60 ] then i=$i+6 fi done echo done
true
1ceb285c8ef70c3e5aa3dadb3ca219659991d3b1
Shell
asfistonlavie/RetroSom
/pipeline/07_somatic.sh
UTF-8
1,305
3.03125
3
[]
no_license
#!/bin/bash -l # NOTE the -l flag! #SBATCH -J Somatic #SBATCH -o %x.%A.output #SBATCH -e %x.%A.output #SBATCH --account=dflev #SBATCH -p batch #SBATCH --mem=20gb #SBATCH --time=160:00:00 usage="$(basename "$0") [-h] [-o i m r g s] -- Predict the confidence of each supporting read to be real MEI using RF, NB and LR wh...
true
813a239eae9643203978932ea27ea226d5ea535b
Shell
mithunmanohar/kafka-docker-playground
/kafka-tutorials/ksql/transform-stream/start.sh
UTF-8
1,818
3.328125
3
[]
no_license
#!/bin/bash verify_installed() { local cmd="$1" if [[ $(type $cmd 2>&1) =~ "not found" ]]; then echo -e "\nERROR: This script requires '$cmd'. Please install '$cmd' and run again.\n" exit 1 fi } verify_installed "docker-compose" docker-compose down -v docker-compose up -d echo -e "\033[0;33mInvoke manu...
true
bb7372f7ed684d06fe2c7fd2986ac6b6b5cab66c
Shell
tomphp/dotmanager
/init.sh
UTF-8
495
3.078125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash set -e export LIB_DIR=$DOTMANAGER_DIR/lib export INSTALL_DIR=$HOME/.dotmanager export MODULE_DIR=$DOTMANAGER_DIR/modules export CONFIG_DIR=$DOTMANAGER_DIR/configs export COMMAND_DIR=$DOTMANAGER_DIR/commands export DRIVERS_DIR=$DOTMANAGER_DIR/drivers function source_lib { source "${LIB_DIR}/${1}...
true
63c97c1ee440acabad52f47f9ad8eca405d399b9
Shell
bmwiedemann/openSUSE
/packages/k/kiwi-templates-Minimal/config.sh
UTF-8
4,618
2.921875
3
[ "MIT" ]
permissive
#!/bin/bash # Copyright (c) 2021 SUSE LLC # # 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 the rights # to use, copy, modify, merge, publish...
true
28e67bef3bc7bf921c1887b1b66754f5f22e45e3
Shell
lindenis-org/lindenis-v833-package
/minigui/smart-music-player/src/smart-music-player
UTF-8
321
2.59375
3
[]
no_license
#!/bin/sh /etc/rc.common # Copyright (C) 2006-2011 OpenWrt.org START=99 STOP=98 USE_PROCD=1 PROG=/usr/bin/smart-music-player DEPEND=boot start_service() { procd_open_instance #procd_set_param command $PROG smart-music-player procd_close_instance } shutdown() { echo shutdown }...
true
4063a120761e0e9e0fe218ea0a80ebf491c5cfc1
Shell
h2020-westlife-eu/virtualfolder
/wp6-virtualfolder/bootstrap/bootstrapconfig.sh
UTF-8
648
2.59375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # copy all system config to / cp -R $WP6SRC/conf-template/* / WP6SRCESC=$(echo $WP6SRC | sed 's_/_\\/_g') # all configuration points to /opt/virtualfolder, either it is linked to cvmfs or filled by compilation #sed -i -e "s/\/cvmfs\/west-life.egi.eu\/software\/virtualfolder\/latest\/MetadataService/...
true
684c52ff18d26c0c8d9c8876802ba96685fcb279
Shell
kouril/secmon-probes
/src/probes/check_CVE-2016-5195
UTF-8
664
3.1875
3
[]
no_license
#!/bin/bash NAGIOS_OK=0 NAGIOS_ERROR=2 lsmod | grep -q cve_2016_5195 if [ $? -eq 0 ]; then echo "CERN module detected (supposedly with systemtap mitigations)" exit $NAGIOS_OK fi lsmod | grep -q nomadvise if [ $? -eq 0 ]; then echo "CESNET module detected (supposedly blocking madvise(2))" exit $NAGIOS_OK fi lsmo...
true
3167c43ad8ac413754ef122cf98cdf45265b7c64
Shell
TrueTank/17KB_OS
/Есина/bash.txt
WINDOWS-1258
430
3.828125
4
[]
no_license
#!/bin/sh number=0 while [ $number -ne 8 ] do echo "---" echo "1 - get username" echo "2 - get memory usage" echo "3 - get volume of a disk space" echo "4 - get proccesses" echo "5 - get users proccesses" echo "6 - get date" echo "7 - get time" echo "8 - exit" echo "---" read number echo "----------" case "$number" in...
true
73f6a7c9c68a4c99592c0024ee8009a1f0e3219b
Shell
juarezsacenti/kg-summ-rec
/preprocess/preprocess_sun2cao.sh
UTF-8
3,327
3.109375
3
[]
no_license
#!/bin/bash no_exist() { for f in $1; do ## Check if the glob gets expanded to existing files. ## If not, f here will be exactly the pattern above ## and the exists test will evaluate to false. if [ -e "$f" ] then return 1 else return 0 fi done } #[activate jointrec] conda...
true
f18bf057b5b7422aec31c3e5683afb02160073e3
Shell
BII-Lab/Yeti-Project
/script/BII/setup-dm/add_crond.sh
UTF-8
1,657
3.75
4
[ "MIT" ]
permissive
#/bin/bash usage() { echo "sh add_crond.sh zsk|ksk " echo "sample: sh add_crond.sh zsk" echo "sample: sh add_crond.sh ksk" exit 1 } if [ $# -ne 1 ]; then usage fi # check keytype if [ "$1" = "zsk" -o "$1" = "ksk" ]; then KEYTYPE="$1" else usage fi # get absoulte path get_workdir() { ...
true
9736e59d6816f591f4492905823a5d26654655e8
Shell
dddddttttt/androidsourcecodes
/zz-doctor中医大夫助理信息系统/util/signjar.sh
UTF-8
154
2.65625
3
[]
no_license
echo "jarsigner <jar-file> [key-alias]" ALIAS="zz@efan" if $# >= 2 then ALIAS=$2 fi jarsigner $1 $ALIAS jarsigner -verify -verbose -certs ZZ.apk
true
4f1ef3254ece40d298251d98de4fa65079a30521
Shell
Joshua1986/whatif
/etc_run.sh
UTF-8
851
3.546875
4
[]
no_license
#!/bin/bash # Source function library. . /etc/rc.d/init.d/functions export PREDICTMODEL_PATH="/home/q/www/order_selling_data/" start() { cd "/home/q/www/order_selling_data/" nohup /usr/local/bin/gunicorn -w 4 -b 10.90.59.34:10010 run:app 1>nohup.out 2>&1 & RETVAL=$? return $RETVAL } # When stopping ...
true
2bc2396c51fadde0105e3ce9637a8029971cdaa6
Shell
mtwolak/bashScripts
/music-download.sh
UTF-8
1,265
4.125
4
[]
no_license
#!/bin/bash spotify_directory=~/spotify folder_to_write="/home/marcin/MojaMuzyka" run_spotdl="pipenv run spotdl -f ${folder_to_write}" file_manager="caja --no-desktop --browser ${folder_to_write}" #fill with your python version, min required is 3 python_version="3.6" usage() { echo "Usage: $(basename $0) <Url_to_...
true
326c707d1a9a9f42f210cddce68c500a9e2b93fd
Shell
iamlotus/tensorflow_poems
/poem_begin_train.sh
UTF-8
716
2.890625
3
[ "Apache-2.0" ]
permissive
#!/bin/sh # multiple command in one line if [ -f ".trainpid" ]; then if [ -d /proc/`cat .trainpid` ]; then echo found running pid `cat .trainpid` else rm .trainpid \ && echo [remove dead pid `cat .trainpid`] \ && nohup python3 train.py --cuda_visible_devices=2 --learning_rate=0....
true
c06929f7bd26833c3b5d8416ed24cee91a31c325
Shell
pairlab/375-f20-tutorials
/tutorial_02/install.sh
UTF-8
1,024
2.765625
3
[]
no_license
#!/bin/bash # install python 3.5 with anaconda wget --no-check-certificate https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh -O ./anaconda.sh chmod u+x ./anaconda.sh ./anaconda.sh ~/anaconda3/bin/conda create -y -n py35 python=3.5 ~/anaconda3/bin/conda activate py35 # following https://stack-of-task...
true
56d2e7d4a37075947d930b2d089c7238278145ef
Shell
sappel/patric_sp
/scan.sh
UTF-8
614
2.5625
3
[]
no_license
q=(1 2 3 4 5 6 7 8) j=0 while [ $j -lt 8 ]; do q[j]=$[${q[j]}+16]; j=$[j+1]; done ## using sed #sed -ie "s/Q_hor = .*/Q_hor = 4.$i;/" mad/sis18_inj.mad; #sed -i \ # -e 's\subdir = ".*" \subdir = "/qKV19" \' \ # python/patric_2d_madx.py #python/patric_2d_madx.py ## using perl for i in "${q[@]}"; do perl -p...
true
15a33120211ea6fff55459387d312ef2a05cd000
Shell
istvanfedak/mm-config
/bin/password/set-password.sh
UTF-8
170
2.59375
3
[ "MIT" ]
permissive
#!/bin/bash # this script checks the sudo password # NOTE: it doesn't check if passwords match read -sp 'Password: ' PASSWORD echo -e "$PASSWORD\n$PASSWORD" | passwd pi
true
98ce6a309b660357ef69d5d4c93682c3e08c4e2b
Shell
zzak/dotfiles
/bash/.bashrc
UTF-8
7,808
3.375
3
[]
no_license
# ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples # If not running interactively, don't do anything case $- in *i*) ;; *) return;; esac # don't put duplicate lines or lines starting with space in the history. # Se...
true
ff5ae40e26c538003a863e8d0be36541c73e1945
Shell
isabella232/flaky-tests-detective
/investigate
UTF-8
638
2.78125
3
[]
no_license
#!/bin/bash mkdir -p ./reports touch ./reports/last_build.txt RUNS=0 while : do if [[ RUNS -eq 300 ]]; then docker rmi discourse/discourse_test:release ((RUNS=0)) fi docker run -t --rm -e SKIP_LINT=1 -e RUBY_ONLY=1 -e COMMIT_HASH=origin/tests-passed -e WARMUP_TMP_FOLDER=1 -e UPDATE_ALL_PLUGINS=1 d...
true
9840dc84b31998e5ea881102694fd19a0659cfeb
Shell
dougfort/playground
/cert_util/clientCertGen
UTF-8
597
3.265625
3
[]
no_license
#!/bin/bash # generate a private key and CSR (Certificate Signing Request) # sign the certificate with your custom root CA (Certificate Authority) if [ $# -ne 1 ]; then echo $0: usage: clientCertGen certName exit 1 fi openssl genrsa -out $1.key 2048 openssl req \ -new \ -key $1.key \ -out $1.csr \ -s...
true
1b1410280c63a7b2e2bceecdad045d36db1e60e1
Shell
loltty/loltty
/gen/rgbs.sh
UTF-8
2,068
3.46875
3
[]
no_license
#!/bin/mksh #- # Copyright © 2016 # mirabilos <m@mirbsd.org> # # Provided that these terms and disclaimer and all copyright notices # are retained or reproduced in an accompanying document, permission # is granted to deal in this work without restriction, including un‐ # limited rights to use, publicly perform, distrib...
true
580cca720c0ef41c861742e21c937ab38ef90d3e
Shell
ahrnbom/strudl
/run_singularity.sh
UTF-8
498
3.5625
4
[ "MIT" ]
permissive
#!/bin/bash SING_FILE=sing.sif PARAM=$1 SHOULD_BUILD=false if [ "$1" == "build" ]; then SHOULD_BUILD=true PARAM=$2 else if [ -f "$SING_FILE" ]; then echo "Singularity image $SING_FILE already exist" SHOULD_BUILD=false else SHOULD_BUILD=true fi fi if [ "$SHOULD_BUILD" =...
true
c069a1e65ac6f97d73e733f87937735963e3b40a
Shell
roidayan/ovs-tests
/ethtool_pps.sh
UTF-8
839
3.578125
4
[]
no_license
#!/bin/bash DEV=$1 if [ "$1" = "" ] || [ "$1" = "-h" ] ; then echo "Usage: `basename $0` dev [dt]" echo " dev - uplink device" echo " dt - delta time" exit 1 fi DT=${2:-3} echo DT=$DT function get_rx_bytes() { ethtool -S $1 | grep -E 'rx_bytes_phy|vport_rx_bytes' | awk {'print $2'} } function ...
true
22928d3e8317c070ee1f0eb55e15043b0d2fc25d
Shell
claramelo/bemol-teste-infra-tools
/ansible/remote-exec
UTF-8
435
3.125
3
[]
no_license
#!/bin/bash MODE=$1 HOSTS_IPS=$2 echo -e ${HOSTS_IPS//'n'/'\n'} > hosts if [[ $MODE == 'create-cluster' ]]; then ansible-playbook -i /ansible/hosts /ansible/create-swarm-cluster.yml fi if [[ $MODE == 'deploy' ]]; then GITHUB_TOKEN=$3 OWNER=$4 REPO_NAME=$5 ansible-playbook -i /ansible/hosts /ansible/depl...
true
8a8f2430f0374b2ae12f2e86970ec00a9ba9e8bd
Shell
brigadecore/brigade
/v2/artemis/docker-entrypoint.sh
UTF-8
1,779
3.671875
4
[ "Apache-2.0" ]
permissive
#!/bin/sh set -e BROKER_HOME=/var/lib/artemis OVERRIDE_PATH=$BROKER_HOME/etc-override CONFIG_PATH=$BROKER_HOME/etc # Create a broker instance. It's deliberate that we don't do this during image # building and instead do it during container start. Some of the values in the # configuration that is generated by this com...
true
17fb8ba73eedebc3ace6a832ba2f76e08316e289
Shell
eucalyptus-qa/load_image_test
/stage01/download_euca2ools.sh
UTF-8
505
2.765625
3
[]
no_license
#!/bin/bash dir=${PWD} if ls -la | grep boto; then rm -fr ./boto fi if ls -la | grep euca2ools-2.0; then rm -fr ./euca2ools-2.0 fi wget http://qa-server/4qa/4_euca2ools/deps/boto-new-latest.tar.gz wget http://qa-server/4qa/4_euca2ools/deps/euca2ools-2.0-latest.tar.gz tar xzf euca2ools-2.0-latest.tar.gz tar xzf ...
true
be3734f67c583a38cc615313ecde320c60d84712
Shell
troshenkov/scripts
/iptables/monopoly_iptables.sh
UTF-8
1,604
2.609375
3
[]
no_license
#!/bin/sh # My IP IP=0.0.0.0 # Flushing all rules iptables -F iptables -X # Setting default filter policy iptables -P INPUT DROP iptables -P OUTPUT DROP iptables -P FORWARD DROP # Allow unlimited traffic on loopback iptables -A INPUT -i lo -j ACCEPT iptables -A OUTPUT -o lo -j ACCEPT # Allow incoming/outgoing IP only ...
true
8b22c881125046a9da08f8edf5d7dc23ed4af6a7
Shell
qczhong2011/qczhong2011.github.io
/createphoto_md.sh
UTF-8
2,792
3.875
4
[]
no_license
#!/bin/bash # created by qichao 20180419 # declare array for filename # filenames # urlfilenames # $1 目标文件夹名称 # $2 图片所在文件夹绝对路径 # $3 相册标题 # OSS的文件夹需要以NO.XXX 命名,比如6.jiaqi echo "--------------Begin-------------" unset filenames unset urlfilenames # 检查目标文件夹是否存在 if [ x"$1" == x ]; then echo "Please input the target ...
true
d3aeb709f57f556718adb8a4e3bf19f19f499433
Shell
rexan1/bash
/skript-2019-01-07-1h.sh
UTF-8
153
2.875
3
[]
no_license
#!/usr/bin/env bash #for loop that renames all text files in current dir for file in *.txt; do newname="$file.old" mv "$file" "$newname" done
true
74c5be80609128c6cb586535ff39e9d90b905de4
Shell
delijati/docker-shiv
/example/app/build.sh
UTF-8
508
2.578125
3
[ "MIT" ]
permissive
#!/bin/bash PYTHON_VERSION=3.8.6 rm app.pyz rm installer.exe docker run -v "$(pwd):/src/" delijati/shiv64 "shiv . -e app.__main__:cli -o app.pyz && chown -R --reference=. app.pyz" if [ ! -f "python-$PYTHON_VERSION-embed-amd64.zip" ]; then wget https://www.python.org/ftp/python/$PYTHON_VERSION/python-$PYTHON_VERSION...
true
62755be66c4c44cb21341c0e0d78572e0bcc038f
Shell
pidgeonproject/pidgeon
/build/install.sh
UTF-8
2,930
3.5
4
[]
no_license
#!/bin/sh if [ "$DESTDIR" = "" ];then DESTDIR=/. fi if [ x"$1" != x ];then DESTDIR=$1 fi echo "Installing pidgeon to $DESTDIR" if [ ! -f Pidgeon/bin/Release/Pidgeon.exe ] || [ ! -d Pidgeon/bin/Release/modules ];then echo "ERROR: you need to build pidgeon first" exit 1 fi echo "Creating directory struct...
true
af66cbd26fa6522ea0f98b88520b815683afaf26
Shell
vdesabou/kafka-docker-playground
/connect/connect-spool-dir-source/tsv.sh
UTF-8
1,357
2.953125
3
[ "MIT" ]
permissive
#!/bin/bash set -e DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" source ${DIR}/../../scripts/utils.sh ${DIR}/../../environment/plaintext/start.sh "${PWD}/docker-compose.plaintext.yml" log "Generate data" docker exec -i connect bash -c 'mkdir -p /tmp/data/input/ && mkdir -p /tmp/data/error/ && mk...
true
33226da7d8c9505d2cbd6bf609cfeaa45cfecf99
Shell
sergev/vak-opensource
/relcom/nserv28/killdaemon.sh
UTF-8
299
3.046875
3
[ "Apache-2.0" ]
permissive
: # Shut down news mail server daemon. dir=/usr/spool/newsserv pidfile=$dir/daemonpid rpidfile=$dir/rgrouppid if [ -f $pidfile ]; then kill `cat $pidfile` 2>/dev/null fi if [ -f $rpidfile ]; then kill -9 `cat $rpidfile` 2>/dev/null fi if [ -f $dir/bin/rgroupd ]; then $dir/bin/nsadmin die fi
true
b0e93e436326006c522690230bab84811c426949
Shell
aliibrahim80/qeditas-egal
/configure
UTF-8
2,096
3.71875
4
[ "MIT" ]
permissive
#!/bin/bash for v in "$@" do if [ $v == "-bytecode" ]; then BYTECODE="1" else if [ ${v:0:9} == "-egaldir=" ]; then INSTALLDIR=${v:9} if [ ! -d $INSTALLDIR ]; then echo "$INSTALLDIR is not a directory" fi else echo "Unknown command line argument $v" echo "configure can be giv...
true
8a945095cec460333291fee725066e05ffa99d3c
Shell
prometheus/prometheus
/scripts/package_assets.sh
UTF-8
236
2.875
3
[ "Apache-2.0", "BSD-3-Clause", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/usr/bin/env bash # # compress static assets set -euo pipefail version="$(< VERSION)" mkdir -p .tarballs cd web/ui find static -type f -not -name '*.gz' -print0 | xargs -0 tar czf ../../.tarballs/prometheus-web-ui-${version}.tar.gz
true
b11151dca6d3be27095451760eb038294a43db2d
Shell
yijunyu/demo
/datasets/linux-4.11-rc3/arch/powerpc/scripts/gcc-check-mprofile-kernel.sh
UTF-8
600
3.140625
3
[ "BSD-2-Clause", "Linux-syscall-note", "GPL-2.0-only" ]
permissive
#!/bin/bash set -e set -o pipefail # To debug, uncomment the following line # set -x # Test whether the compile option -mprofile-kernel exists and generates # profiling code (ie. a call to _mcount()). echo "int func() { return 0; }" | \ $* -S -x c -O2 -p -mprofile-kernel - -o - 2> /dev/null | \ grep -q "_mco...
true
477642e62acbd4baff6029163fa253a16bebce74
Shell
hextremelabs/rest-apidoc-sample
/diffapidoc.sh
UTF-8
592
3.171875
3
[]
no_license
#!/bin/sh curl http://app.yourcompany.com/rest-resources.txt > server-rest-api-doc.new curl http://app.yourcompany.com/rest-resources.version > rest-resources.version oldserial=`cat rest-resources.version` echo "OLD SERIAL = $oldserial" serial=$(echo 1 $oldserial | awk '{print $1 + $2}') echo "DIFF FILENAME = rest-...
true
b806c5dc12b172dae1048aa5f391ed3858767716
Shell
mrirecon/enlive
/06_vcc/slice1/1_reco_vcc.sh
UTF-8
570
2.859375
3
[]
no_license
#!/bin/bash set -euo pipefail # brace expand set -B if [ ! -e $TOOLBOX_PATH/bart ] ; then echo "\$TOOLBOX_PATH is not set correctly!" >&2 exit 1 fi export PATH=$TOOLBOX_PATH:$PATH export BART_COMPAT_VERSION="v0.4.04" out=reco_ENLIVE/vcc mkdir -p $out source opts.sh #generate vcc VCC=data/both ./vcs.sh $UNDERS $VC...
true
1f0018e1ed4c59b343a622590e865684701ca54d
Shell
shashou47/ALiYun_Centos_VNSTAT
/vnStat.sh
UTF-8
1,008
3.5
4
[ "Apache-2.0" ]
permissive
#!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH #=================================================================== # SYSTEM REQUIRED: CentOS 6 (32bit/64bit) # DESCRIPTION: Auto install vnstat for CentOS 6 #==========================================================...
true
b2f8968316d6fc75b09efdec04f112aedced2422
Shell
Mic92/xfstests-cntr
/tests/xfs/519
UTF-8
1,794
3.421875
3
[]
no_license
#! /usr/bin/env bash # SPDX-License-Identifier: GPL-2.0-or-later # Copyright (c) 2020, Oracle and/or its affiliates. All Rights Reserved. # # FS QA Test No. 519 # # Make sure that reflink forces the log out if we mount with wsync. We test # that it actually forced the log by immediately shutting down the fs without #...
true
6e3f180078149dd4bb7df6774e6ef47a1ebe6956
Shell
knewbury01/PositivelyCogniCrypt
/runCogniCrypt.sh
UTF-8
730
3.53125
4
[]
no_license
########################### #runs CogniCrypt on the list #of input items given in the argument # #assumes both CogniCrypt jar and JCA_Rules dir are in cwd # # sample usage: # ./runCogniCrypt.sh alljars.txt ######################### mkdir CogniCryptResults while IFS='' read -r input || [[ -n "$input" ]]; do #...
true
15a760c11591db93cc31777c40699b1a2bf8b83e
Shell
albertzhang24/vad
/testing_sox.sh
UTF-8
378
3.125
3
[]
no_license
#! /bin/sh num=0 while read arg1 arg2; do printf "Num: $num\n" printf "Start: ${arg1} End : ${arg2}\n" dif=$(python -c "print($arg2-$arg1)") printf "Difference is: $dif\n" ~/downloads/sox-14.4.2/sox 16k_1.wav 16k_1_$num.wav trim $arg1 $dif num=$((num+1)) # Pipe data into the while loop done < /Users/albertz...
true
630966756f43a46c6219775f66fa95e622c30c0a
Shell
luklieb/Zynq_Linux_SMMU
/buildrootfs/second-stage.sh
UTF-8
3,112
3.59375
4
[]
no_license
#!/bin/bash RED='\033[0;31m' NC='\033[0m' GREEN='\033[0;32m' # Ultra96 specific serialtty=PS0 bootmmc=mmcblk0p1 ntpserver=ntp0.fau.de echo -e "${GREEN}Welcome to the second stage...${NC}" distro=stable export LANG=C echo -e "${GREEN}debootstrap second-stage. This can take a little...${NC}" /debootstrap/debootstrap ...
true
2a5dba7edd6f5683e6b9721f21b8fed69b85a9fe
Shell
2sidedfigure/ndep
/ndep
UTF-8
2,427
4.40625
4
[ "MIT" ]
permissive
#!/bin/bash version=0.0.3 real_grep=$(which -a grep | tail -1 | awk '{ print $1 }') usage() { cat << EOF Usage: $0 [options] [path] List the node modules and their versions for a given path (defaulting to the current working directory). OPTIONS: -h Show this message -V Show vers...
true
5cf0c7c736e2cefbfdbae44e8c05e630c1b7e5f5
Shell
pdadhich/hbc-ddw-o5
/o5_truefit_order_extract.sh
UTF-8
3,056
3.171875
3
[]
no_license
#!/usr/bin/ksh ############################################################################################################################# ##### SAKS INC. ############################################################################################################################# ##### #####...
true
784d73b223cdec22222c3b313f75f8c80ff0468d
Shell
aurbasica/lfs-pkgbuilds
/intltool/PKGBUILD
UTF-8
691
3
3
[ "MIT" ]
permissive
pkgname=intltool pkgver=0.51.0 pkgrel=1 pkgdesc='Internationalization tool used for extracting translatable strings from source files' arch=('x86_64') source=("http://launchpad.net/intltool/trunk/$pkgver/+download/$pkgname-$pkgver.tar.gz") sha512sums=('4c93cb26592ed0b1622d3b7800b5d6622ffa36f58ac73f2ef0bddfab522565fdf...
true
acb73b07b0c1de00b304fbe380defbeed56f42ba
Shell
Zholiday/ReinforcementLearning
/Coursework/scripts/tester.sh
UTF-8
693
3.046875
3
[]
no_license
#!/bin/bash r1=0 r2=0 r3=0 N=50 rounds=100 unit=1 seeds_no=8 echo $1 for i in $(seq 1 $N) do printf "$i " seed=$(echo "$i % $seeds_no" | bc) out=$(java -cp bin main.RunLemonadeGame -seed $seed -rounds $rounds -repeats 1 $1 "" $2 "" $3 "" | tail -n1 | tail -c +2 | head -c -2) v1=$(echo $out | awk '{print...
true
f2225b10f99d3239260f3bb750ab5867b46660a2
Shell
nexusventuri/bash-sandbox
/playground_/generate
UTF-8
401
2.90625
3
[]
no_license
#!/bin/bash # params: [SUBCOMMAND] # desc: Allows to create sub commands for $project # # examples: # $project generate command lala # # it creates a new sub command command that can be invoked by using: # $project lala # # # $project generate command alias list # # it creates a new command that can be invoked using...
true
466494bc0df7c415e9d360b8739af0dd271b0721
Shell
scoyer/DDMN
/run_test.sh
UTF-8
491
2.53125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # set gpu id to use export CUDA_VISIBLE_DEVICES=0 # set python path according to your actual environment pythonpath='python3' # set parameters data_dir=./data/CamRest save_dir=./models/camrest output_dir=./outputs/camrest ckpt=best.model beam_size=4 max_dec_len=25 mkdir -p ${output_dir}/${ckpt} ${pytho...
true
9d1b76589bda7b3a19cc491e3db8f572be198a05
Shell
MattSegal/speech-notebooks
/scripts/setup.sh
UTF-8
374
3.1875
3
[]
no_license
#!/bin/bash if [[ -z "$1" ]]; then echo "ERROR: Porject path parameter missing" exit 1 fi PROJ_PATH="$1" if [[ ! -d "env" ]]; then virtualenv -p python3 env fi . ./env/bin/activate pip install -r requirements.txt pip install -r $1/requirements.txt ln -s "../$1/data" notebooks/data ln -s "../$1/src" notebook...
true
d1d3784975d82c81c1030832ff325ab07e726269
Shell
TabishRizvi/home-hunt
/deploy.sh
UTF-8
257
2.640625
3
[]
no_license
#!/bin/bash echo "Giving permissions" chmod 775 -R . echo "Permissions granted" echo "Installing missing modules" npm i echo "Missing modules installed." echo "Restarting servers " sudo pm2 restart 0 || exit echo "Servers restarted " echo "Deployed"
true
71de325d90077f8027d1a1cc5b69e9c210c063d9
Shell
ppresto/vault-demos
/demos/enterprise/ADP/kmip/2_kmip_revoke.sh
UTF-8
2,046
3.046875
3
[]
no_license
shopt -s expand_aliases DIRECTORY="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" . ${DIRECTORY}/../../env.sh . ${DIRECTORY}/getMongoEnterprise.sh MONGO_DB_DATA="${DIRECTORY}/mongodb" MONGO_LOG="mongodb.log" echo lblue "###########################" lcyan " Revoke KMIP Certificate" lblue "########...
true
34b470599751ab62f2d1cfb113c56acee62eb338
Shell
phlax/docker-triggers
/usr/bin/docker-triggers
UTF-8
703
3.390625
3
[]
no_license
#!/bin/bash -e TRIGGER_CONFIG=/etc/docker-triggers/config.json CONFIG=$(cat $TRIGGER_CONFIG) FILTERS= for filter in $(echo $CONFIG | jq -r '.filters // {} | .[] '); do FILTERS="${FILTERS}-f $filter " done docker events $FILTERS --format "{{json .}}" | while read line; do for trigger in $(echo $CONFIG | jq '...
true
e3e90c293b33aef86710e21f0e996023f90e760c
Shell
adamakalshchikov/bash_scripts
/stud/stepick_course/student_counter.sh
UTF-8
317
3.90625
4
[]
no_license
#!/bin/bash if [[ $# -lt 1 ]] then echo "You should specify at least one argument" exit elif [[ $1 -lt 0 ]] then echo "Argument must be greater or equal zero!" exit fi case $1 in 0) echo "No students" ;; 1) echo "1 student" ;; [2-4]) echo "$1 students" ;; *) echo "A lot of students" ;; esac
true
322482ceb775bdd60550b12081c8516bc44f9777
Shell
ISG-ICS/cloudberry
/examples/twittermap/script/ingestTweetToElasticCluster.sh
UTF-8
7,841
2.75
3
[]
no_license
#!/bin/bash - #=============================================================================== # # FILE: ingestTweetToElasticCluster.sh # # DESCRIPTION: Ingest the twitter data data to Elasticsearch cluster # # OPTIONS: # REQUIREMENTS: --- # BUGS: --- # NOTES: --- # AUTHOR: Day...
true
d89bc77674cab05d18926f90ce4d58af51d66dde
Shell
mirror-fmlorg-obsolete/fdgw1
/conf/1.6/etc/rc.router
UTF-8
6,723
3.484375
3
[]
no_license
#!/bin/sh # # $FML: rc.router,v 1.3 2004/02/06 04:42:50 fukachan Exp $ # ARCH=`uname -p` if [ -f /etc/rc.subr ]; then . /etc/rc.subr else echo Error: /etc/rc.subr not found 2>&1 exit 1 fi # load configuration load_file /etc/defaults/rc.conf load_file /etc/rc.conf # link for /bin/ps ln -s /conf/netb...
true
d73bb721e82373189179a860498579949f325907
Shell
gavales/ghb
/themes/hyde/static/css/.themer_post
UTF-8
395
2.765625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash declare -A TMR eval "$(themer --list varsh)" cp ".themer/${TMR[name]}/hyde.css" hyde.css cp ".themer/${TMR[name]}/poole.css" poole.css SDIR=$USER_REPO_DIR/ghb/public FDIR=$USER_REPO_DIR/ghb/themes/hyde/static CWLL=$(readlink -f $XDG_PICTURES_DIR/gwc/current) convert "${CWLL}" -resize 64x64 ${FDI...
true
42efeefe413af2a6ba31dad0ee90cc946a38ec76
Shell
jve2kor/courses
/setup/setup_p2.sh
UTF-8
175
2.640625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # # Configure a p2.xlarge instance # get the correct ami export ami="ami-bc508adc" # Oregon export instanceType="p2.xlarge" . $(dirname "$0")/setup_instance.sh
true
6e3588ae5375de27127a9b6073ac265c19dbaa59
Shell
Rajaneeshs/EchoPwn
/install.sh
UTF-8
826
2.78125
3
[]
no_license
pip3 install -r requirements.txt #Aquatone echo "Installing Aquatone-discover" gem install aquatone #Amass echo "Installing Amass" #cloning massdns git clone https://github.com/blechschmidt/massdns.git if [[ $(uname) = 'Darwin' ]] then ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/maste...
true
348506f40d5865c303400dc2a676e1466cb61d7e
Shell
Mastermindzh/Kubernetes-sharded-mongo
/scripts/init/create-mongo-shards.sh
UTF-8
2,133
3.578125
4
[]
no_license
#!/bin/bash export shards=0 MONGO_SHARD_PATH="../resources/mongo-shard.yaml" MONGO_SHARD_WORKING_DIR="../workingdir/" mkdir -p $MONGO_SHARD_WORKING_DIR; while [[ $shards -lt $SHARDCOUNT ]] do internalSystemMessage "-> Creating mongo-shard$shards.." sed "s/shard0/shard$shards/g" $MONGO_SHARD_PATH > "$MONGO_SHARD_...
true
137b8cf78d3d9a8a30d173e0b796ffc0dabe85f7
Shell
majkelcc/chang
/sources/chang_run_command.sh
UTF-8
271
3.34375
3
[]
no_license
chang_run_command() { if [[ $# -eq 0 ]]; then chang_compose ps return $? fi command=($(chang_find_command "$@")) if [[ $CHANG_DEBUG == true ]]; then set -x fi bash $CHANG_SET $command "${@:$((${command[1]} + 1))}" || chang_command_error $? "$@" }
true
fe857914d277d1b54c10f30f025112577df9a9e1
Shell
fucktard/old-etc
/init.d/bluetooth
UTF-8
1,104
3.5625
4
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
#! /bin/sh ### BEGIN INIT INFO # Provides: bluetooth # Required-Start: $local_fs $syslog $remote_fs dbus # Required-Stop: $local_fs $syslog $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start bluetoothd ### END INIT INFO . /lib/lsb/init-functions set -e case "$1" in ...
true
64b17bddecc9a0e7c804669ae54b297d002444cf
Shell
chrispap95/radiationDamage
/AlphaSource/txt2root.sh
UTF-8
312
2.6875
3
[]
no_license
#!/bin/sh ls -l Data/AlphaSource.nosync | grep -i $1 | \ awk '{print substr($NF,0,length($NF))}' > RunLists/List-AlphaSource-$1.txt python2 makeTree.py - -i RunLists/List-AlphaSource-$1.txt -d Data/AlphaSource.nosync find root/AlphaSource.nosync -name "*-*" -execdir bash -c 'mv -- "$1" "${1//-/_}"' bash {} \;
true
fbc6632d708c115edaaf300f1eef8b4861c24ff0
Shell
gilles13/dotfiles
/scripts/notifcountdown
UTF-8
296
2.625
3
[]
no_license
#!/bin/env sh # echo $TOREACH # date -u -d @${TOREACH} +"%T" # date -u -d @${TOREACH} +%H:%M:%S TOREACH=$1 for i in `seq $TOREACH -1 0`; do notify-send "TIMER" "<span font='Monospace 14'>`date -u -d @${i} +"%T"`</span>" -h string:x-canonical-private-synchronous:my-notification sleep 1 done
true
275c4ef3d16200094d621ecb98a0355afbf02cae
Shell
SebiSebi/DimCache
/cache_line.sh
UTF-8
186
2.609375
3
[]
no_license
#!/bin/bash make clean make build rm cache_line_data for i in $(seq 1 200); do echo -n "$i " >> cache_line_data /usr/bin/time --format "%e" -a -o cache_line_data ./dimcache $i done
true
5fa663e705f7f585ea5256da97c30d035ba1ce60
Shell
davidmukiibi/cmt
/packer_configs/permit.sh
UTF-8
253
3.390625
3
[]
no_license
#!/bin/bash set -e set -o pipefail create_user() { if ! id -u david; then sudo useradd -m -s /bin/bash david sudo usermod -aG sudo david fi } create_home_dir() { sudo mkdir /app } main() { create_user create_home_dir } main "$@"
true
ae1c5c67d7ffec36fe93ca557c62819a6312cdc9
Shell
feliksik/ggcmi
/start-worker.sh
UTF-8
1,294
3.890625
4
[]
no_license
#!/bin/bash # # This script helps you run the GGCMI docker container easily. # It externalizes the configuration in config.sh , and does # some basic sanity checking for the availability of external files. # . config.sh function die { echo "Error: $1" >/dev/stderr exit 1 } # file should exist [ -d "$GGCMI_INPUT_...
true
8c4f7ba01899a6fe1b1136b71b28508a238a6852
Shell
greydamian/hexcoder
/build.sh
UTF-8
664
3.234375
3
[ "MIT" ]
permissive
#! /usr/bin/env bash # Copyright (c) 2014 Damian Jason Lapidge # # The contents of this file are subject to the terms and conditions defined # within the file LICENSE.txt, located within this project's root directory. CC="cc"; SRC="src/hexcoder.c"; OUT="bin/hexcoder"; CFLAGS=""; IFLAGS="-I./include"; LFLAGS="-L./l...
true
226356eca48b681d333e97fb33473b65a027941a
Shell
devivekw/EECS-2031
/asgs/asg2/shell/fdisplay.sh
UTF-8
909
3.625
4
[]
no_license
#!/bin/sh # EECS2031 - asg2_unix # Filename: fdisplay # Author: Chomu, Homu # Email: chomuhomu@my.yorku.ca # Login ID: chomuhomu echo -n "Enter the file name: " read fname if test ! -f $fname; then echo "File '$fname' does not exist." exit 1 elif test ! -r $fname; then echo "File '$fname' is not readable...
true
d1666f2099c84de87c324347cab7504cafbe2713
Shell
Krettis/dockerfiles
/globalrun.sh
UTF-8
598
3.421875
3
[]
no_license
#!/bin/bash ### Run / Install your complete environment and automatically install the project #load source .dot/.config source .dot/.docker source .dot/.functions #show menu if docker-cexists ; then echo "Do you want to install or (re)start the containers?" select ts_option in "Startup" "Stop" "Reinstall" "Quit Me...
true
9f7322644c4d1ce30a2475d3b4ba09d61040a31a
Shell
abn/cloudrouter-aci
/bird/loadbins
UTF-8
454
3.609375
4
[]
no_license
#!/bin/sh DEST=${DEST-image/rootfs} function loadfiles() { for FILE in $1 do echo "Loading ${FILE}" mkdir -p ${DEST}$(dirname ${FILE}) cp ${FILE} ${DEST}${FILE} done } function loadbins() { for BINFILE in $@; do loadfiles ${BINFILE} loadfiles "$(ldd ${BINFIL...
true
3b80b332c04c8d3307d675841bf9c362ab7261d8
Shell
tbeckham/grafana-prometheus-deployment
/grafana/grafana_postconfig.sh
UTF-8
808
3.375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash addDatastore() { echo "Set Prometheus as default datasource.." curl -s -H "Content-Type: application/json" -u admin:${GF_SECURITY_ADMIN_PASSWORD} \ -X POST http://localhost:3000/api/datasources -d \ '{"name":"Prometheus","type":"prometheus","url":"http://prometheus:9090/","access":"pr...
true
b3e680f35fba283a5ebace6f7eb2de85e66e5452
Shell
chef/chef-server
/omnibus/package-scripts/chef-server/preinst
UTF-8
1,323
3.96875
4
[ "Apache-2.0", "LGPL-3.0-only", "CC0-1.0", "Apache-1.1", "CC-BY-3.0", "Artistic-2.0", "Artistic-1.0-Perl", "Zlib", "BSD-Source-Code", "SAX-PD", "MPL-2.0", "WTFPL", "BSD-3-Clause", "ISC", "BSD-1-Clause", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "GPL-2.0-only", ...
permissive
#!/bin/bash # # Perform necessary chef-server setup steps after package is installed. # PROGNAME=$(basename $0) function error_exit { echo "${PROGNAME}: ${1:-"Unknown Error"}" 1>&2 exit 1 } warn_about_search_reindex() { # If this is a fresh install, we don't need to worry about the # solr migration ...
true
0bbe3b7bd3f9dc4a3140c083b006dc1e84c958d8
Shell
eightcien/lldb
/scripts/Python/build-swig-Python.sh
UTF-8
5,421
2.75
3
[ "NCSA" ]
permissive
#!/bin/sh # build-swig-Python.sh # SRC_ROOT is the root of the lldb source tree. # TARGET_DIR is where the lldb framework/shared library gets put. # CONFIG_BUILD_DIR is where the build-swig-Python-LLDB.sh shell script # put the lldb.py file it was generated from running SWIG. # PREFIX is the root director...
true
f5b0e00a11456e4b21fcbfe3414db5908924769e
Shell
gitter-badger/xo-tidy
/scripts/generate-test-fixtures
UTF-8
1,785
3.765625
4
[ "MIT" ]
permissive
#! /bin/sh ask() { # http://djm.me/ask while true; do if [ "${2:-}" = "Y" ]; then prompt="Y/n" default=Y elif [ "${2:-}" = "N" ]; then prompt="y/N" default=N else prompt="y/n" default= fi # Ask the...
true
40bb91aa57ad536490a500823b195195404eb834
Shell
binhe-lab/C037-Cand-auris-adhesin
/02-case-studies/04-homolog-properties/2020-10-31/script/Hil-ST-freq.sh
UTF-8
720
3.046875
3
[]
no_license
# title: calculate serine threonine frequency for Hil family proteins # author: Bin He # date: 2021-11-21 # recommended by BDS textbook set -eo pipefail # input files seq=../data/XP_028889033_homologs.fasta bed=../data/XP_028889033_homologs_PF11765.BED out=../data/XP_028889033_homologs_noPF11765.fasta # mask the PF...
true
c8152e7d060d3ebdd47be99442959b35c1008de9
Shell
fuckatm/AFD
/AFD.sh
UTF-8
301
2.8125
3
[]
no_license
while sleep 2 do ls_device="$(lsusb | grep *vash uuid usb*)" if [ "$ls_device" != "" ]; then echo "Anti Forensic Daemon started" else echo "Anti Forensic Daemon stopped" pfkill -f *vash konteiner veracrypt* veracrypt -d shutdown -h now fl done
true
5521b15ffb1b64bd5476c0ce5f38b2c1dc887b20
Shell
testcocoon/testcocoon
/gen/macos/cmake_env.sh
UTF-8
1,603
3.1875
3
[]
no_license
#!/bin/bash -xv cd $(dirname "$0") HERE=$PWD export GCC_VERSION= export TESTCOCOON_SOURCE_DIR=../.. export TESTCOCOON_BUILD_DIR=$HERE/../../../build mkdir -p $TESTCOCOON_BUILD_DIR/xcode pushd $TESTCOCOON_BUILD_DIR/xcode cmake -C /dev/null -DCMAKE_C_COMPILER=$(which gcc$GCC_VERSION) -DCMAKE_CXX_COMPILER=$(which g++$...
true
520e9fd51454266fa622f187aafcda6c768b1505
Shell
ypokkinen/test
/c15s9.sh
UTF-8
218
3.0625
3
[]
no_license
#!/bin/bash # Section that reads output echo "Enter your name with title:" read name echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~" echo "My title is ${name:0:3}" echo "My name is ${name#*.}" echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~"
true
007946d53e7360bf59ba743b6313ebb38402b790
Shell
cooltrane/scripts-thomas
/shell/scripzsh.sh
UTF-8
118
3.046875
3
[]
no_license
#!/bin/zsh foo='abcdefghij' for (( i = 1; i <= 10; i++ )); do goo=${foo[1,$i]} print ${(l:10)goo} ${(r:10)goo} done
true
3bb368d37a06b05c03da8a4bd8676eaaf88d9420
Shell
raparkhurst/rails-alexandria
/vagrant/vagrant_check.sh
UTF-8
468
2.859375
3
[]
no_license
#!/bin/bash platform='unknown' unamestr=`uname` if [[ "$unamestr" == 'Linux' ]]; then platform='linux' elif [[ "$unamestr" == 'Darwin' ]]; then platform='mac' elif [[ "$unamestr" == 'FreeBSD' ]]; then platform='freebsd' fi # Source the appropriate platform-specific bashrc file #if [[ $platform == 'linux' ...
true
50ec4ace254660f71a98a6a93a2d9cc2b53b0742
Shell
Alexander-Palmer/hide-and-RNA-seq
/Linux/process_seq_and_makesureisinotherfile
UTF-8
610
3
3
[]
no_license
#!/bin/bash for file in *.txt do sed 's/,.*//' $file > proc_$file sed -i 's/,/""/g' proc_$file sed -i -e 's/a/A/g' -e 's/c/C/g' -e 's/t/T/g' -e 's/g/G/g' -e 's/u/T/g' -e 's/U/T/g' proc_$file mv proc_$file ref_folder cd ref_folder cat proc_$file | xargs -Ihello grep hello All_variants3.txt >> out_$file #grep -f ...
true
1876545517db621762e60470f4023da168faa2ee
Shell
Pigeoncoin/pigeoncoin
/ci/matrix.sh
UTF-8
4,056
3
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # This script is meant to be sourced into the actual build script. It contains the build matrix and will set all # necessary environment variables for the request build target export BUILD_TARGET=${BUILD_TARGET:-linux64} export PULL_REQUEST=${PULL_REQUEST:-false} export JOB_NUMBER=${JOB_NUMBER:-1}...
true
1092b4235a486a5e5aef7bc8f9838055be007581
Shell
caguerra/Burkardt-Fortran-90
/f_src/quadmom_test/quadmom_test.sh
UTF-8
403
2.71875
3
[]
no_license
#! /bin/bash # gfortran -c -Wall quadmom_test.f90 if [ $? -ne 0 ]; then echo "Compile error." exit fi # gfortran quadmom_test.o $HOME/lib/quadmom.o $HOME/lib/toms655.o if [ $? -ne 0 ]; then echo "Load error." exit fi rm quadmom_test.o # mv a.out quadmom_test ./quadmom_test > quadmom_test.txt if [ $? -ne 0 ]; th...
true
f4d5e2539bd2c68344b20014284f27fd4cea9a72
Shell
Biocodings/hlaTyper
/data/comparison/bin/Run_hlareporter.sbatch
UTF-8
999
2.921875
3
[]
no_license
#!/bin/sh -e #SBATCH --time=10:00:00 #SBATCH --mem=16gb #SBATCH --job-name=hlareporter ###SBATCH --out out/hlareporter.out #SBATCH --out out/hlareporter_%A_%a.out echo $SLURM_JOBID ##echo $SLURM_ARRAY_TASK_ID ##id=$(head -n ${SLURM_ARRAY_TASK_ID} sampeIDs.txt | tail -1) ##############################################...
true
79176ec4d1a8611bb83415bad7aa394618a1cc1f
Shell
zectorpt/easyproxy
/server/.menu.sh
UTF-8
1,814
3.828125
4
[]
no_license
#!/bin/bash # josemedeirosdealmeida@gmail.com # Jose Almeida DIALOG_CANCEL=1 DIALOG_ESC=255 HEIGHT=0 WIDTH=0 URL="$(hostname --fqdn)" display_result() { dialog --title "$1" \ --no-collapse \ --msgbox "$result" 0 0 } while true; do exec 3>&1 selection=$(dialog \ --backtitle "Easy Proxy Hatfield 2016 ...
true
37728d406bd6d5bf60bc94ec6ede3de1ea2ecdd0
Shell
Bhumikasingh0110/eyeBlinkBehaviour
/analysis/run_on_all_session.sh
UTF-8
467
3.984375
4
[]
no_license
#!/bin/bash # Arg 1 : The name of directory where all data is stored. # Arg 2 : Pattern to filter. This is optional. If not given, all sessions are # processed. set -e if [ $# -lt 1 ]; then echo "USAGE: $0 data_dir" exit fi PAT=${2:-*SessionType*Session*} echo "Using pattern: $PAT" DIRS=`find $1 -type d -name...
true
55b5bae1e0cab9595217da2e53b64ecdb00d4b6f
Shell
abhilashiswithu/college_gptc
/Shell Scripting Language/menu.sh
UTF-8
480
3.6875
4
[]
no_license
echo " ********-MENU-******** " echo "1.Addition" echo "2.Subtraction" echo "3.Multiplication" echo "4.Division " read num echo " Enter the 2 no." read n1 read n2 case $num in 1) a=$(expr $n1 \+ $n2) echo "Sum of $n1 and $n2 is : $a" ;; 2) b=$(expr $n1 \- $n2) echo "Difference between $n1 and $n2 is : $b" ;; 3) c=$...
true
45dfd7901bd81b58b3262e1ebe366e0b8672f617
Shell
jlucktay/golang-workbench
/moduled-by-parents.sh
UTF-8
520
3.53125
4
[ "Unlicense" ]
permissive
#!/usr/bin/env bash set -euo pipefail if ! top_level=$(git rev-parse --show-toplevel); then echo >&2 "Not running from inside a git repo." exit 1 fi # Find directories containing Go code that is not covered by a module that isn't the repo root. fd --extension go --type file --exec bash -c 'echo {//}' "$top_level"...
true
394aaccfb3504f74f80ded892787b129f2d5e01e
Shell
chsprithvi/scripting
/loopandselection/prime.sh
UTF-8
213
3.296875
3
[]
no_license
############## prime number=43 i=2 f=0 n=$(($number/2)) while [ $i -le $n ] do if [ `expr $number % $i` -eq 0 ] then f=1 fi i=`expr $i + 1` done if test $f -eq 1 then echo "Not Prime" else echo "Prime" fi
true
aaa4e8d4a8159923e2860d4d8c1078ff618312c1
Shell
ielian/neapolis
/aws/templates/one_vpc_multiple_stacks/start_tomcat
UTF-8
924
3.21875
3
[]
no_license
#!/bin/bash function parseargs { if [ -n $1 ]; then export APP_ENV=$1 fi if [ -z $APP_ENV ]; then echo 'Please specify env.' exit fi export APP_HOME=/opt/rover/app export CATALINA_HOME=/opt/tomcat/current export JAVA_HOME=/opt/jdk/current export CATALINA_CLASSPATH=$APP_HOME/config expor...
true
34bf50de0e8d19aeb9f22875bc8f8fcae41cebcd
Shell
biorack/metatlas
/metatlas/scripts/run_file_converter.sh
UTF-8
1,302
3.234375
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash -l # user has to be whitelisted to use cori21 for cron # pasteur and bpb are on the list # crontab -e from cori21 # CRONTAB LOOKS LIKE THIS: # */15 * * * * /global/common/software/m2650/metatlas-repo/metatlas/scripts/run_file_converter.sh >/dev/null # 48 2 * * * /usr/sbin/logrotate --state /global/cfs/proj...
true
b52402e5a521ec1e5a4294114fa37bc69171d1f1
Shell
lemon123456/eums
/scripts/setupmap/setupmap.sh
UTF-8
1,672
3.453125
3
[]
no_license
#!/bin/bash PARENT_DIR='../' DATA_DIR='../../eums/client/app/data/' CONFIG_DIR='../../../eums/client/config/' EXTRACTOR_DIR='./geojson-feature-name-extractor/' GEOJSON='districts.json' GEOJSON_NAMES='district_name.json' test -f ${DATA_DIR}${GEOJSON} || { echo "Error $0: Map not found"; exit 1; } #Clone extractor app...
true