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
698e669465c803374b8c7ad60fb310a7242605f8
Shell
halostatue/dotfiles
/home/private_dot_config/direnv/lib/use_kiex.sh
UTF-8
604
3.421875
3
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
# vim: ft=bash use_kiex() { has kiex || return local version version="$1" [[ "${version}" == --auto ]] && version="$(read_version_file .elixir-version)" [[ -z "${version}" ]] && return local version_path version_path=$( kiex list | ruby -e "puts ARGF.read.scan(/elixir-${version}.*/).last" ...
true
3cb558d4986d401c8bbefc8f6a103acc8bde944f
Shell
jcha9928/idp
/mr_dtimetric_connectome
UTF-8
3,227
2.578125
3
[]
no_license
#! /bin/bash ## usage: trac_2_tckgen -t 6 -b 0 while [ $1 != -- ] ; do case $1 in -t) nthreads=$2; shift;; esac shift done logdir=/ifs/scratch/pimri/posnerlab/1anal/IDP/code/idp/job CMD1_batch=$logdir/batch_metric rm -rf $CMD1_batch subjectlist=/ifs/scratch/pimri/posnerlab/1anal/IDP/fs/su...
true
b3988f11e1fc47ac00a8e557ced8a5bd55e58e61
Shell
swchoi06/shell_script
/setpasswd.sh
UTF-8
245
3
3
[]
no_license
userlist=$1 echo "$userlist" while read user do echo $user >> .qdw.txt echo $user >> .qdw.txt echo $user >> .qdw.txt done < $userlist while read user do echo "$user" passwd $user read -p "$*" read -p "$*" done < .qdw.txt rm .qdw.txt
true
9604e956ee26a09a808bba4c390dfa5ad9a4a217
Shell
idavehuwei/wit
/scripts/plugins.install.all.sh
UTF-8
438
3.03125
3
[ "Apache-2.0" ]
permissive
#! /bin/bash ########################################### # ########################################### # constants baseDir=$(cd `dirname "$0"`;pwd) # functions # main [ -z "${BASH_SOURCE[0]}" -o "${BASH_SOURCE[0]}" = "$0" ] || return cd $baseDir/.. if [ -d ./private/plugins ]; then ./private/plug...
true
4599524ca9a1307c858aeb666a9c09f1075bae0e
Shell
gsterjov/openshift-advanced-python-cartridge
/lib/util
UTF-8
883
3.921875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # Utility functions for use in the cartridge scripts. function parse_args { while : do case $1 in -h | --help | -\?) echo "usage: $0 [--version[=]<value>]" exit 0 ;; -v | --version) version=$2 # You ...
true
b051e0237f5bf3e8c5bafa28c35c3d4914290dbd
Shell
jiesu12/archived-docker-git-backup-gdrive
/job.sh
UTF-8
2,387
4.125
4
[]
no_license
#!/bin/bash set -e GDRIVE_SERVICE="http://${GDRIVE_SERVER}:9000" REPO_BASE="/repos" if [ ! -f "${PASSWORD_FILE}" ] then echo password file ${PASSWORD_FILE} not found exit 1 fi password=$(cat ${PASSWORD_FILE}) echo date echo [gdrive backup] STARTING file_list=$(curl ${GDRIVE_SERVICE}) function fileExist { ...
true
93e32918683d79b8cc682c24d0be29b1bedd4d25
Shell
hodacthuan/linux-tools
/cli-tools/awscli.sh
UTF-8
190
3.375
3
[]
no_license
#!/bin/bash AWS=$(which aws) if [[ $AWS == '' ]]; then echo 'Install AWS-CLI ...' sudo apt-get install awscli -y else echo "AWS-CLI was installed $AWS" $AWS --version fi;
true
c3c7e5a99119e0d0d4ad01996d18612178bdd0ed
Shell
xd23fe39/linux-pastebin
/mysql/mysql-skip-replication-error.sh
UTF-8
530
3.265625
3
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
CHECKHOST='MYSQL-SLAVE' USER=$1 PASS=$2 SKIP=$3 HOST=$(hostname -s) IP=$(hostname -i) CMD="mysql --user=$USER --password=$PASS -e" if [ "$CHECKHOST" != "$HOST" ]; then echo; echo "Kein MySQL SLAVE!"; echo exit 1 fi echo; echo "MySQL: Skip Replication Error on $HOST ($IP)"; echo if [ "$SKIP" != "yes" ]; the...
true
9718bd9e901d4864a3e14e7f55d81dfc3b977c24
Shell
leftsky/docker-proxy
/get_ssl.sh
UTF-8
1,388
3.03125
3
[]
no_license
#!/usr/bin/expect # 拉取域名参数 set domains [lindex $argv 0] # 拉取邮箱参数 set email [lindex $argv 1] # 设置超时 set timeout 30 # 开始申请证书 spawn certbot --server https://acme-v02.api.letsencrypt.org/directory \ --logs-dir=/var/www/certbot/logs \ --config-dir=/var/www/certbot/config \ --work-dir=/var/www/certbot/work \ -d "$domains" -...
true
54ffcfd33d32d862e8f521d9229ad2b0a8a27d8a
Shell
alexiaford/2018-09-14_inclass_UG_script
/count_bases_in_primers.sh
UTF-8
766
4.25
4
[]
no_license
#!/bin/bash # A script to count the number of bases in a primer # it expects any numbers of fasta files as input # it will be wrong if the last line of sequence info # does not have a newline character # expecting a fasta file formatted like this: # > sequence_id # AGCTCGTC # this will get the second line (the base...
true
2dc8088f7de40e656b8227e59573d41116a41fca
Shell
ufsowa/widom
/MI/generate
UTF-8
620
3.28125
3
[]
no_license
#!/usr/bin/env bash #VARIABLES NAME="sample" SOURCE="$PWD/../INPUT/" TO=$PWD TEMPLATE=${PWD}"/template" #echo " cd ${SOURCE} for i in stech_*; do dirr="${TO}/$i" mkdir $dirr cd $i licz=0; iter=0; for j in *.xyz; do div=$((iter % 2)) if [ $div -eq 0 ] && [ $licz -lt 50 ]; then mkdir $dirr/${...
true
e3f298df63cdf8e8793bf493bf2b8a0a2cc3638f
Shell
onlyJinx/shell_CentOS7
/install.sh
UTF-8
23,139
3.671875
4
[ "MIT" ]
permissive
#!/bin/bash ##CDN 104.16.160.3|104.16.192.155|104.20.157.6 ##ss -lnp|grep :$port|awk -F "pid=" '{print $2}'|sed s/,.*//xargs kill -9 function check(){ ###状态码赋值给s #return_code=$? ###调用函数 ###函数名 参数1 参数2 if [ "0" != "$?" ]; then echo "$1编译失败,请手动检查" exit 0 fi } function check_port(){ while [[ true ]]; do re...
true
44adf1e2f37b51cbf36b9104db63805ad85c2e9e
Shell
amirlanesman/renamer
/bin/manage.sh
UTF-8
374
2.6875
3
[]
no_license
#!/bin/zsh source ~/.zshrc cd /Users/amirlanesman/Documents/renamer i=`date +%F_%T`; echo "executing renamer. param[0]: $1" 2>&1 | tee -a "user/logs/manage-$i.log" echo "node -v:" 2>&1 | tee -a "user/logs/manage-$i.log" node -v 2>&1 | tee -a "user/logs/manage-$i.log" MEDIA_MANAGER_ARGS="-scrapeAll" node manage.js --...
true
9b6877c1fdbd4930bb22982438621ff5d984fcfe
Shell
FernandaDguez/spdk
/test/iscsi_tgt/common.sh
UTF-8
5,651
3.171875
3
[ "BSD-3-Clause" ]
permissive
# Network configuration TARGET_INTERFACE="spdk_tgt_int" INITIATOR_INTERFACE="spdk_init_int" TARGET_NAMESPACE="spdk_iscsi_ns" TARGET_NS_CMD=(ip netns exec "$TARGET_NAMESPACE") # iSCSI target configuration TARGET_IP=10.0.0.1 INITIATOR_IP=10.0.0.2 ISCSI_PORT=3260 NETMASK=$INITIATOR_IP/32 INITIATOR_TAG=2 INITIATOR_NAME=AN...
true
8b0b6c675189fc5b380a2ca374df01ce9d03444a
Shell
zorancco/chef-openswan-awsvpn
/templates/default/aws_customer_gateway.erb
UTF-8
5,208
3.5625
4
[]
no_license
#!/bin/bash # This script will startup a VPN connection to an AWS VPC. # # 3. Make sure the inbound rules are configured in your EC2 security group # UDP port 500 allow # TCP port 179 allow # # 7. Reboot the instance and test the configuration by launching a Linux instance in your VPC and pinging that instance # ...
true
283e40bbcdd794c981dda59cb87cca65b2c3fd0a
Shell
renzhentaxi/coursework
/week1/work/day2/citibike_solution.sh
UTF-8
1,392
3.359375
3
[]
no_license
#!/bin/bash # # add your solution after each of the 10 comments below # file="./2014-02-citibike-tripdata.csv"; # count the number of unique stations tail -n +2 $file| cut -d, -f5,9 | tr , "\n"| sort |uniq| wc -l; # count the number of unique bikes tail -n +2 $file| cut -d, -f12 | sort |uniq| wc -l; # count the number ...
true
e242edf5421fbb286b9f44294fdd87a71be57c6a
Shell
liangbinc/summary
/summary.sh
UTF-8
1,176
3.96875
4
[]
no_license
#!/bin/bash #APP_NAME=`dirname $0`/Summary-0.0.1-SNAPSHOT.jar APP_NAME=$(cd "$(dirname $0)";pwd)/Summary-0.0.1-SNAPSHOT.jar usage() { echo "Usage: summary.sh [start|stop|restart|status]" exit 1 } #is running is_exist(){ pid=`ps -ef|grep $APP_NAME|grep -v grep|awk '{print $2}'` #如果不存在返回1,存在返回0 if [...
true
99017ea55b5aae8216fc5bd28a612a223bb3f6a1
Shell
thomasWeise/aitoa-code
/trigger-travis.sh
UTF-8
3,145
3.65625
4
[ "MIT" ]
permissive
#!/bin/sh -f # Trigger a new Travis-CI job. # Usage: # trigger-travis.sh [--pro] [--branch BRANCH] GITHUBID GITHUBPROJECT TRAVIS_ACCESS_TOKEN [MESSAGE] # For example: # trigger-travis.sh typetools checker-framework `cat ~/private/.travis-access-token` "Trigger for testing" # For full documentation, see # https://github...
true
df66e0bc2772a6af0deb689f1bb2cae9a8f02bb3
Shell
Trietptm-on-Security/SystemPrep
/Utils/repobuilder/create_yum_repo_definitions.sh
UTF-8
4,078
3.4375
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -ex exec > >(logger -i -t "create_yum_repo_definitions" -s 2> /dev/console) 2>&1 BUCKETNAME=${1:-systemprep-repo} # What bucket contains the packages? S3_BASE_URL=${2:-https://s3.amazonaws.com} # What's the url to s3? PIP_INSTALLER=${3:-https://bootstrap.pypa.io/get-pip.py} # URL to the pip...
true
3ff39acae3f8c7e87a0f4ac5f3ecc7ddb2498f64
Shell
gusztavvargadr/packer
/src/u/packer/provisioners/shell-prepare/scripts/hyperv.sh
UTF-8
301
3.109375
3
[ "Unlicense" ]
permissive
#!/bin/sh -eux ubuntu_version="`lsb_release -r | awk '{print $2}'`"; major_version="`echo $ubuntu_version | awk -F. '{print $1}'`"; case "$PACKER_BUILDER_TYPE" in hyperv-iso) apt-get -y update; apt-get -y install linux-image-virtual linux-tools-virtual linux-cloud-tools-virtual; reboot esac
true
d972c4f271ba1b6917adf8a749814b1f4837c26d
Shell
photoszzt/bindgen-wrapper
/compile
UTF-8
8,201
3.796875
4
[ "MIT" ]
permissive
#!/usr/bin/env sh # This file is part of bindgen-wrapper. It is subject to the license terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/lemonrock/bindgen-wrapper/master/COPYRIGHT. No part of bindgen-wrapper, including this file, may be copied, mo...
true
9280f48394f2b954c049afc01cc10902a85aabe8
Shell
zhp834158133/GreenMall
/bin/backup
UTF-8
1,271
3.46875
3
[]
no_license
#!/bin/bash #功能说明:本功能用于备份数据库 #编写日期:2010/12/06 #一小时执行一次 #0 */1 * * * /bin/bash /root/backup/backup.sh PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin export PATH #数据库用户名 dbuser='admin' #数据库密码 dbpasswd='admin' #数据库名,可以定义多个数据库,中间以空格隔开,如:test test1 test2 dbname='jeesite' #备份时间 backtime=`date +%Y%m%d%H...
true
8d6f90f7136fc0bd2fbca71bec9a1fe3e58da0bb
Shell
owainkenwayucl/install-scripts
/scripts/opensbli/build_archer_bench_intel2017.sh
UTF-8
728
2.96875
3
[ "MIT" ]
permissive
#!/bin/bash -l set -e for i in ${includes_dir:=$(dirname $0 2>/dev/null)/includes}/{module_maker,require}_inc.sh; do . $i; done require gcc-libs/4.9.2 require compilers/intel/2017/update1 require mpi/intel/2017/update1/intel require hdf/5-1.8.15-p1-impi/intel-2015-update2 export OPS_INSTALL_PATH=$HOME/Source/archer...
true
fdefff22f4853fe828646a6459b19b3ba4c60469
Shell
naro/collective.externalimageeditor
/scripts/tests_sync_from_generic.sh
UTF-8
470
2.625
3
[]
no_license
#!/usr/bin/env bash PROJECT="collective.externalimageeditor" IMPORT_URL="git@github.com:collective/collective.externalimageeditor.git" cd $(dirname $0)/.. [[ ! -d t ]] && mkdir t rm -rf t/* tar xzvf $(ls -1t ~/cgwb/$PROJECT*z) -C t files=" src/collective/externalimageeditor/tests/globals.py src/collective/externalimage...
true
c21be6dfd2e66d61fd81bb10fa3363a9235d590e
Shell
jiandewu/bioinfo
/Scripts/Liu_prj_pipeline.sh
UTF-8
1,155
2.90625
3
[ "MIT" ]
permissive
#!/bin/bash # ref: https://gencore.bio.nyu.edu/variant-calling-pipeline/ # no space in the directory path PRJDIR=/media/jwu/data3/Liu_project GE_REF=/media/jwu/data2/RefGene/hg38ref/hg38.fa RESULT=pipe LOGFILE=${PRJDIR}/${RESULT}.log STARTSTEP=0 case $STARTSTEP in 0) find ${PRJDIR} -name "*.clean.fq.gz" -printf "%h\...
true
9b4ea47a00cafdad7edfd221be4efaec78928a7f
Shell
j3r3mias/random
/format-setups/format-debian.sh
UTF-8
10,991
2.75
3
[]
no_license
#!/bin/bash # Debian version list=(build-essential autoconf libtool pkg-config python-dev python3-dev \ python-pip python3-pip texlive-full terminator gvim vim vim-gtk iptraf \ audacity vlc mediainfo unrar wxhexeditor ht bless binwalk wireshark \ aircrack-ng wifite nmap hydra zbar-tools gcc-4.8 g++-4.8 gcc...
true
38a33bd190b3751fe74a54caf1233ac80b31539c
Shell
Reiti/ParallelFFT
/benchmark.sh
UTF-8
385
3.5
4
[]
no_license
#!/bin/bash FFT=$1 START_EXP=$2 END_EXP=$3 ITERATIONS=$4 OUTPUT=$5 echo $FFT >> benchmark_res for ((exp = $START_EXP; exp <= END_EXP; exp++)) do res="$(./num_gen -e $exp | $FFT -b $ITERATIONS)" sorted=($(printf '%s\n' "${res[@]}"|sort -n)) echo "$exp;${sorted[$ITERATIONS/2]}" >> $OUTPUT done for ((i ...
true
fe6eccb0b1bddae4148414464fcb81ff2457f79b
Shell
gidjin/docker-wordpress
/my_init.d/02_generate_wordpress_conf.sh
UTF-8
703
3.4375
3
[ "MIT" ]
permissive
#!/bin/bash echo "Stop apache" service apache2 stop echo "Start up apache" service apache2 start # If not installed if [ -e "/var/www/wordpress/wp-config.php" ] then echo "Generating wp-config.php file" rm /var/www/wordpress/wp-config.php sudo -u www-data /bin/wp core config echo "Skipping wordpress ...
true
090adeb28c88027dd9abd960fb84ce3fe3bbaa90
Shell
quanta-computing/debian-packages
/zabbix-quanta/zabbix-quanta-iostats-1.0.0/scripts/bin/quanta_disk_discovery.sh
UTF-8
536
3.609375
4
[]
no_license
#!/bin/sh # # This script discovers installed hard drives and format an output suitable # for zabbix discovery rules # # Usage: quanta_disk_discovery.sh # echo -n '{"data":[' first=0 for disk in `grep -E '[sh]d[a-z]$' /proc/partitions | awk '{print $4}'`; do if [ $first -eq 0 ]; then first=1 else echo -n "...
true
4e1904f4447cafdd4cb9e704c32588da5e7d483b
Shell
linneudm/dotfiles
/.zshrc
UTF-8
1,619
2.9375
3
[]
no_license
export ZSH="/home/pylife/.oh-my-zsh" ZSH_THEME="spaceship" plugins=(git zsh-autosuggestions python django) source $ZSH/oh-my-zsh.sh ### Added by Zinit's installer if [[ ! -f $HOME/.zinit/bin/zinit.zsh ]]; then print -P "%F{33}▓▒░ %F{220}Installing DHARMA Initiative Plugin Manager (zdharma/zinit)…%f" command...
true
e3a3d8e49f0e96f24a9795ba6a74b0053fcd0c3d
Shell
Tinklelu/hello-world
/blue-green-app-deployment/ci/tasks/update-routes
UTF-8
916
2.703125
3
[]
no_license
#!/bin/bash set -xe pwd env cf api $PWS_API --skip-ssl-validation cf login -u $PWS_USER -p $PWS_PWD -o "$PWS_ORG" -s "$PWS_SPACE" cf apps cf routes export PWS_DOMAIN_NAME=$PWS_APP_DOMAIN export MAIN_ROUTE_HOSTNAME=main-$PWS_APP_SUFFIX export NEXT_APP_COLOR=$(cat ./current-app-info/next-app.txt...
true
965e9f71feac9d5213beef93897747d9dcb04c6a
Shell
lynch829/SAMC
/daemonE.sh
UTF-8
167
2.578125
3
[ "ECL-2.0" ]
permissive
#!/bin/sh /usr/local/bin/python /home/mcqa/MCQA/daemonE_exec.py status=$? if [ "$status" -gt 0 ]; then cat /tmp/cronjob_daemonE.log >> /home/mcqa/MCQA/De.jam fi
true
27f1700aec96806373b89901116b74120cae2dc2
Shell
silvexgit/alb-web-memcached
/setup-ec2.sh
UTF-8
1,100
2.578125
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
#! /bin/bash # # https://docs.aws.amazon.com/AmazonElastiCache/latest/mem-ug/Appendix.PHPAutoDiscoverySetup.Installing.html # cd sudo yum -y install httpd sudo cp /usr/share/httpd/noindex/index.html /var/www/html/ sudo systemctl start httpd sudo systemctl enable sudo yum -y install telnet sudo yum -y install gcc-c++ su...
true
6b839bed4240e654aacfb55243da38378621d80d
Shell
ximinez/rippled-scripts
/monitor
UTF-8
4,049
3.125
3
[]
no_license
#!/bin/bash RIPPLED=${1:-$( dirname $0 )/rippled} RPC_IP=${2:-127.0.0.1} RPC_PORT=${3:-5015} PEER_PORT=${4:-51235} shift 4 unset LAST_LEDGER_FILE if [[ $# -gt 0 ]] then if [[ -f "${1}" ]] then LAST_LEDGER_FILE="${1}" shift else echo "File not found: ${1}" exit 1 fi fi # echo $RIPPLED $RPC_POR...
true
0eed99e1512a16e42cf4c1431fcc2a8f7622094a
Shell
abejgonzalez/chipyard
/.circleci/run-firesim-scala-tests.sh
UTF-8
2,087
3.25
3
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
#!/bin/bash # create the different verilator builds # argument is the make command string # turn echo on and error on earliest command set -ex # get shared variables SCRIPT_DIR="$( cd "$( dirname "$0" )" && pwd )" source $SCRIPT_DIR/defaults.sh # call clean on exit trap clean EXIT # Directory locations for handlin...
true
daa51290deff775e79774522f95a71af83b2c7d2
Shell
bbence98/saltstack
/minion-provision.sh
UTF-8
1,328
3.46875
3
[]
no_license
#! /bin/bash ## SSH ssh_location="/home/vagrant/.ssh" if [ ! -d $ssh_location ]; then mkdir $ssh_location cat /vagrant/*.pub >> /home/vagrant/.ssh/authorized_keys fi # Salt minion salt_minion_location=/etc/init.d/salt-minion minion_name="minion01" if [ ! -f $salt_minion_location ]; then wget -O -...
true
8491ff5bfba37cd842eae43141e11442e1d0ad4b
Shell
jiikko/dotfiles
/lib/zsh/zaw/sources/tmux.zsh
UTF-8
724
3.3125
3
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
# -*- mode:sh -*- # # zaw-src-tmux # # select tmux session and attach it # function zaw-src-tmux() { local session state tmux list-sessions | \ while read session state; do candidates+=("${session}") cand_descriptions+=("${(r:30:::::)session} ${state}") done act...
true
b4ceeef3f588aac0792ad2c6e499b81785094eed
Shell
odra/telegram-operator
/images/telegram-sender/entrypoint
UTF-8
238
2.5625
3
[ "MIT" ]
permissive
#!/bin/bash TEXT=$1 URL="https://api.telegram.org/bot$TG_BOT_TOKEN/sendMessage" BODY="{\"text\": \"$TEXT\", \"chat_id\": \"$TG_CHAT_ID\"}" echo $URL echo $BODY curl \ -X POST \ -H 'Content-Type: application/json' \ -d "$BODY" \ "$URL"
true
c3672dd79e0553817c325ff1f7e0e4eb05005422
Shell
Angel888/suanfa
/shell_test/qudiaobuxuyaodedanci.sh
UTF-8
473
2.9375
3
[]
no_license
#写一个 bash脚本以实现一个需求,去掉输入中的含有B和b的单词 #示例: #假设输入如下: #big #nowcoder #Betty #basic #test # # #你的脚本获取以上输入应当输出: #nowcoder test # #说明: #你可以不用在意输出的格式,空格和换行都行 #!/usr/bin/env bash while read lines do for i in ${lines[@]} do if [[ "$i" =~ b || "$i" =~ B ]];then continue fi echo $i d...
true
65499ed59e090c98482d4e7298106d8d1967ca51
Shell
ayantoine/NearVANA
/Workflow/CreateTable_NM.sh
UTF-8
335
2.703125
3
[]
no_license
#! /bin/bash datetime1=$(date +%s) ARG=$1 source $ARG source $CONF source $DATA SDIR=${GITDIR}/Workflow task=$2 nb_jobs=$3 echo "python ${SDIR}/CreateTable_NM.py -t ${task} -j ${nb_jobs} -p ${PID} -l ${VIRMINLEN}" python ${SDIR}/CreateTable_NM.py -t ${task} -j ${nb_jobs} -p ${PID} -l ${VIRMINLEN} touch ${PID}.crea...
true
3592ae8164038e695a56ca7c5302113e302d2a85
Shell
sjf/cuda_demosaicing
/scripts/run_test
UTF-8
297
2.8125
3
[]
no_license
#!/bin/bash set -x >mask.csv >ahd.csv >bilin.csv rm -f *.bilin.ppm rm -f *.ahd.ppm rm -f *.ahdmask.ppm FILES=$(echo *.ppm) for f in $FILES;do proj -l -t1 $f | tee -a bilin.csv; done for f in $FILES;do proj -m -t1 $f |tee -a mask.csv; done for f in $FILES;do proj -a1 -t1 $f |tee -a ahd.csv; done
true
3d9b379dafa2fd62c52a1fcce2fc284047603cce
Shell
Briggybros/Uni-Advanced-HPC
/sync.sh
UTF-8
671
2.65625
3
[ "MIT" ]
permissive
#!/bin/bash # Place and run in project root EVENTS="CREATE,CLOSE_WRITE,DELETE,MODIFY,MOVED_FROM,MOVED_TO" inotifywait -e "$EVENTS" -m -r --format '%:e %f' . | ( WAITING=""; while true; do LINE=""; read -t 1 LINE; if test -z "$LINE"; then if test ! -z "$WAITING"; then ...
true
10ea8f2bd18e68a8411a57ec60860166b06bce35
Shell
mapsi/buddy-semver-test
/git.sh
UTF-8
303
3.59375
4
[ "MIT" ]
permissive
#! /bin/bash STRING=$(git reflog -1 | sed 's/^.*: //') if echo $STRING | grep -q "Merged in hotfix/"; then TAG="$(./semver.sh patch)" elif echo $STRING | grep -q "Merged in release/"; then TAG="$(./semver.sh minor)" else TAG="" fi if [[ -n $TAG ]]; then echo "New tag: $TAG" git tag $TAG fi
true
2289809d9356cd6ea8b7081eb769fb27dedbf30c
Shell
sourcemage/grimoire
/display/splashy/init.d/splashy1
UTF-8
555
3
3
[]
no_license
#!/bin/bash PROGRAM=/bin/false RUNLEVEL=1 NEEDS="+local_fs" . /etc/init.d/smgl_init . /etc/sysconfig/init MAX_LEVEL=$DEFAULT_RUNLEVEL case "$MAX_LEVEL" in 1) SPLASHY_PROGRESS=100 ;; 2) SPLASHY_PROGRESS=50 ;; 3) SPLASHY_PROGRESS=33 ;; 4) SPLASHY_PROGRES...
true
b432a8c9f7522707bb7208080a580cfd4424edad
Shell
Azure/osdu-infrastructure
/archive/scripts/install.sh
UTF-8
12,963
3.640625
4
[ "MPL-2.0", "Apache-2.0", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
#!/usr/bin/env bash # # Purpose: Initialize the common resources for osdu-infrastructure # Usage: # install.sh ############################### ## ARGUMENT INPUT ## ############################### usage() { echo "Usage: install.sh <subscription_id> <unique>" 1>&2; exit 1; } if [ ! -z $1 ]; then ARM_S...
true
46297410ab60d7cd58eda2a2637b0a93c1e3bba6
Shell
deleidos/de-pipeline-tool
/hadoop/src/docker/bin/namenode/bootstrap
UTF-8
2,804
3.140625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -ex SHUTDOWN=false _term() { echo "Caught SIGTERM signal!" SHUTDOWN=true echo "Starting graceful shutdown...." cd /etc/init.d/ ./hadoop-httpfs stop ./hadoop-hdfs-namenode stop } trap _term 15 perl -i -pe "s:NAMENODE:$NAMENODE:g" /etc/hadoop/conf/core-site.xml perl -i -pe "s:NAMENO...
true
6bddd5fdb61c036c0be85fe6f6bd43774b034a72
Shell
jaysen/jtimer-script
/jtimer.sh
UTF-8
2,608
4.15625
4
[]
no_license
#!/bin/bash ## JTIMER1.sh # # Version: 1.0 # a (rough) timer # takes a required argument of TIME in seconds # arguments: # arg 1: TIME in seconds (REQUIRED) # arg 2: interval between showing how much time is left # arg 3: string to say # arg 4: number of times to say the string # arg 5: pause time be...
true
233ae80427ccf68a43af65aea4f2078d327f67c6
Shell
abasss/EasyManager
/1db/3/dev/translation/txpull.sh
UTF-8
1,201
3.734375
4
[]
no_license
#!/bin/sh #------------------------------------------------------ # Script to pull language files # # #------------------------------------------------------ # Usage: txpull.sh (all|xx_XX) [-r mounir.file] [-f] #------------------------------------------------------ # Syntax if [ "x$1" = "x" ] then echo "This pull ...
true
9a0686796123715a25b66e18c3401f9fc2100f8e
Shell
strogo/homebrew-kde
/tools/uninstall.sh
UTF-8
827
3.34375
3
[ "BSD-2-Clause" ]
permissive
#!/bin/bash HOMEBREW_NO_AUTO_UPDATE=1 INSTALLED_FORMULAS_LIST=/tmp/kde/installed mkdir -p /tmp/kde/ brew ls --formula --full-name > "${INSTALLED_FORMULAS_LIST}" if grep -q '^kde-mac/kde' "${INSTALLED_FORMULAS_LIST}"; then echo "Uninstalling formulas from kde-mac/kde tap" brew uninstall -f `grep '^kde-mac/kde' "${I...
true
5490c88111ad4b1b79e9c2d0dc9c89d9195f58f2
Shell
yh-raphael/CheckFreq
/scripts/run_all_256.sh
UTF-8
3,802
3.140625
3
[ "MIT" ]
permissive
#!/bin/bash if [ "$#" -ne 3 ]; then echo "Usage : ./run_img.sh <data-dir> <out-dir> <worker>" exit 1 fi apt-get install jq DATA_DIR=$1 OUT_DIR=$2 WORKER=$3 SRC="models/image_classification/" SCRIPTS="scripts/" mkdir -p $OUT_DIR gpu=0 num_gpu=8 echo " Data dir is $DATA_DIR" echo " Out dir is $OUT_DIR" resnext=...
true
7d0e8101401951b9af84d3ec775162cea5954512
Shell
derpaphobia/Configs
/resources/scripts/90-mountsites
UTF-8
307
2.859375
3
[]
no_license
#!/bin/bash SSID="Tjov5G" SSID2="Tjov" ESSID=`iw wlx501ac50e9426 link | grep SSID | cut -d" " -f2` if [[ $1 == "wlx501ac50e9426" && $2 == up && ( $ESSID == $SSID || $ESSID == $SSID2 ) ]]; then sudo umount /home/derpa/sites/ sudo mount -t cifs -o guest //192.168.1.88/mediashare/Sites/ /home/derpa/sites fi
true
37b4d996ad23b40001a2468656a2d734ccc3b29a
Shell
srisurya95/android_shell_tools
/android_huashan.rc
UTF-8
2,597
3.1875
3
[]
no_license
#!/bin/bash # ====================================== # Developed by Adrian DC - 2015-2016 # ====================================== # === Repo FullSync === reposa() { # Phone Name PhoneName="huashan"; # Sources Sync repopickcommits=1; if [[ "$1" =~ "test" ]]; then repo forall -c 'gitbranch=${REPO_RREV#...
true
349030a73f40d0271d3df33c9b82f3d0e23949da
Shell
priyanka-teke05/programming-constructs
/sequence-practice/randomSingleDigit.sh
UTF-8
68
2.640625
3
[]
no_license
#!/bin/bash -x #get single digit number singleDigit=$((RANDOM%10))
true
b46066341f90e068aec0a3657de835ad7820b261
Shell
alexkreidler/wiz
/.githooks/pre-commit
UTF-8
212
3.28125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash echo "Running pre-commit hook to format Go files" for file in $(git diff --cached --name-only --diff-filter=ACMRTUXB | grep "\.go") do echo "(gofmt) $file" gofmt -w $file git add "$file" done
true
c2506adf4cb3f6d865338bca4d6c4e55bf8e25bd
Shell
wangwg2/docker.kubernetes-vagrant-centos-cluster
/provision-kubernetes.sh
UTF-8
3,290
3.0625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash ## ------------------------------------------------- ## 拷贝 pem, token 文件 echo "copy pem, token files" mkdir -p /etc/kubernetes/ssl cp /vagrant/pki/*.pem /etc/kubernetes/ssl/ cp /vagrant/conf/token.csv /etc/kubernetes/ cp /vagrant/conf/bootstrap.kubeconfig /etc/kubernetes/ cp /vagrant/conf/kube-proxy.kubeco...
true
64b85b4e28f9b829cec6136c14fd9f19d1ba160e
Shell
dayanyrec/gke-and-anthos-service-mesh
/install-anthos-cli.sh
UTF-8
516
2.96875
3
[]
no_license
#! /bin/bash echo ">> Install Kpt" gcloud components install kpt echo ">> Install Anthos CLI" gcloud components install anthoscli beta echo ">> Update gcloud components" gcloud components update echo "!! Next steps: " echo "!! Run the following command to install kustomize:" echo "!! \$ curl -s \"https://raw.github...
true
fef6e95e64cda9939d37983e2d680e893b07e669
Shell
jmiller-rise8/docker-tak
/repackagecerts.sh
UTF-8
1,558
3.046875
3
[]
no_license
#!/bin/bash if [ ! -f TAKServerReflector.zip ] ; then echo The TAKServerReflector.zip file is FOUO and is intentionally not packaged as part of this git repo. fi if [ ! -f takserver-1.3.3-4183.noarch.zip ]; then echo The takserver-1.3.3-4183.noarch.zip file is FOUO and is intentionally not package as part of th...
true
d1cea303ccb29d5babb66ec3a688c95f1e57dd50
Shell
osp/osp.work.the-riddle
/html2print/fetch.sh
UTF-8
459
3.28125
3
[]
no_license
#! /bin/bash declare -a PADS readarray -t PADS < ../pads.txt for LINE in "${PADS[@]}"; do IFS=';' read -ra PADDATA <<< $LINE URL=${PADDATA[1]} CHAPTER=${PADDATA[0]} wget $URL -O stories/${CHAPTER}.md pandoc stories/${CHAPTER}.md -r markdown -t html -s -o stories/${CHAPTER}.tmp.html cat stories/${CHAPTER}.tmp.h...
true
dc71fcb4b5087c3ad1a6dd0c2983b13eba7b1c32
Shell
eherrador/Mediacion
/mediacion/devnet/startnode1.sh
UTF-8
961
2.703125
3
[]
no_license
#checando parametros de entrada #The $# variable will tell you the number of input arguments the script was passed. if [ $# -lt 2 ] then echo "Debes proporcionar 2 argumentos de entrada" echo "1er. argumento: El NetworkId y debe ser el mismo que se asigno en el puppeth" echo "2do. argumento: La dirección ...
true
2d76c7980638308128cfffea44c626f5e1bd09de
Shell
ISI-apex/fft-ct
/scripts/logs-to-csv_fft-ct.sh
UTF-8
526
3.671875
4
[ "BSD-3-Clause" ]
permissive
#!/bin/bash set -e function parse_time() { grep "$2" "$1" | cut -d: -f2 | tr -d '[:space:]' } function log_to_csv() { local log=$1 local fill init fft1 transp fft2 fill=$(parse_time "$log" "fill") init=$(parse_time "$log" "init") fft1=$(parse_time "$log" "fft-1d-1") transp=$(parse_time "$l...
true
e82da8db38026f69fabe7f5f1443e07208cf10cf
Shell
alerque/que-utils
/bin/wiki_convert
UTF-8
552
3.390625
3
[]
no_license
#!/bin/zsh if [ -n "$1" ]; then file=$1 stat -c %U "$1" | read owner whoami | read me sudo -u $owner co -f -u -q $file sudo -u $owner ex -u NONE "+set ft=wiki" "+%!$0" "+x" $file sudo -u $owner rcs -a$me $file sudo -u $owner ci -u -w$me -m'Automated format conversion' -q $file else cat - | perl -pne 's%(?<!\...
true
bf8b2ae23eda1e18a9b8dc477dfaeb6605fc429a
Shell
GitHub-Xzhi/pack-maven-plugin
/src/main/resources/bin/start.sh
UTF-8
616
3.875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash APP_NAME="#appName#" BASE_PATH="#basePath#" APP_JAR_PATH=${BASE_PATH}/"$APP_NAME.jar" PID_FILE=${BASE_PATH}/$APP_NAME.pid cd ${BASE_PATH} # 获取程序PID getPid(){ PID=`ps -ef|grep $APP_JAR_PATH|grep -v grep|awk '{print $2}'` } getPid if [ -z $PID ];then nohup java -Xms#Xms#m -Xmx#Xmx#m -jar $APP_JAR_P...
true
321bf5994f96c7126a40117357239a9cb5e97cb7
Shell
javaelk/ARTS
/scripts/apache-xml-security-releases-TC/scripts/wliu.cleanupall.sh
UTF-8
470
2.640625
3
[]
no_license
#!/bin/bash -xv echo "this script will clean up everything" MY_DIR=$(dirname $(readlink -f $0)) source $MY_DIR/header.sh echo "remove all build class and source files in versions.alt" rm -rf $experiment_root/$TESTSUBJECT/versions.alt/orig/* echo "remove all trace results" ./wliu.cleanupTrace.sh echo "clean up change...
true
b0e94174acbf51e76d2d7f4228cd5cd69b309658
Shell
saarce/ScriptsEpitech
/repo_delete-login.sh
UTF-8
379
3.25
3
[]
no_license
#!/bin/bash # #exemple: ${couleur}text{neutre} vertclair='\e[1;32m' cyanclair='\e[1;36m' neutre='\e[0;m' echo -e "${violetclair}Repo_delete${neutre}" while [ -z $user ] do read -p 'User : ' user done while [ -z $depot ] do read -p 'Repo : ' depot done blih -u julien.omacini@epitech.eu repository delete $depot ec...
true
892841c3191d50e9d65700f9a52f894f36134ab7
Shell
SmartThingsCommunity/st-device-sdk-c-ref
/tools/esp32_v3.3/build_esp32_v3.3.sh
UTF-8
3,865
3.703125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash export BSP_NAME=${1} export PROJECT_TITLE=${2} export STDK_PATH="${PWD}" export CORE_PATH="${PWD}/iot-core" IOT_APPS_PATH="${PWD}/apps/${BSP_NAME}" PROJECT_PATH="${IOT_APPS_PATH}/${PROJECT_TITLE}" XTENSA_PATH=`dirname ~/esp/xtensa-esp32-elf/bin/.` export PATH=${XTENSA_PATH}:${PATH} export IDF_PATH="${PW...
true
0ddba48772cd9295e7597d3917af5b9f7580c58f
Shell
lurebgi/amphioxusGenome
/Assembly/split.read_bjbf.sh
UTF-8
1,405
2.734375
3
[]
no_license
#!/bin/bash # #SBATCH --job-name=split #SBATCH --cpus-per-task=12 #SBATCH --mem=10000 #SBATCH --partition=himem #SBATCH --mail-type=FAIL #SBATCH --mail-user=luohao.xu@univie.ac.at #SBATCH --output=pbalign-%j.out #SBATCH --error=pbalign-%j.err module load bwa ref=bjbf_v2.fasta mkdir index bwa index $ref -p index/$ref c...
true
7ca340e1bdde2f9ae0111ecd0aecd0d954b9d9b3
Shell
jsarenik/deobfuscation
/scripts/mkmagnetlinks.sh
UTF-8
917
2.703125
3
[]
no_license
#!/bin/sh #magnet:?xt=urn:btih:9f660a59fbc2254e344ff06807e61a0048b40d31&dn=blocks&tr=http%3A%2F%2Fa.bublina.eu.org%3A8000%2Fannounce&tr=udp%3A%2F%2Fa.bublina.eu.org%3A8000&tr=ws%3A%2F%2Fa.bublina.eu.org%3A8000&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com #magnet:?xt=urn:btih:6abf85edf...
true
d405b78672199fec4dba1f08c23218677bf79b6a
Shell
modijhalak/clouderadirector
/install-db.sh
UTF-8
629
3.109375
3
[]
no_license
#!/bin/sh function install_db { echo "Install DB Server in $DIRECTOR_HOST... " $SUDO_CMD yum remove mariadb-server -y $SUDO_CMD rm -rf /var/lib/mysql $SUDO_CMD rm -f /etc/my.cnf $SUDO_CMD rm -f ~/.my.cnf $SUDO_CMD yum install mariadb-server -y $SUDO_CMD systemctl start mariadb $SUDO_CMD chkconfig mariad...
true
d0a4b3b2ee13b80f5ccd31f810e7d714d8370d40
Shell
fuku-ys/earthquake
/example/not-so-much-useful/OLD.zk-loopback.nfqhook_pyeq/100-run-experiment.sh
UTF-8
660
3.40625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e # exit on an error source lib.sh EXP_DIR=/tmp/eq-run-experiment/$(date +"%Y%m%d.%H%M%S") mkdir -p ${EXP_DIR} IMPORTANT "===== EXPERIMENT BEGIN (${EXP_DIR}) =====" DO_TEST || (IMPORTANT "PERHAPS THE BUG WAS REPRODUCED!"; touch ${EXP_DIR}/REPRODUCED) mv ${TEST_LOGFILE} ${EXP_DIR}/log if [ -z $DISABL...
true
fb7faeb0b23e1a5eacc373e8ece1c0b0bb82c66e
Shell
jcjolley/school
/discrete2/neatness/files/rename.sh
UTF-8
99
2.78125
3
[]
no_license
for i in `seq 1 255`; do if [ -f neatness$i.out ]; then mv neatness$i.out out$i.txt fi done
true
d280df0b9a01da9dbf07bec8362633717dab32b1
Shell
Exr0nProjects/learn_cpp
/problems/.template_state/live_commit.sh
UTF-8
79
2.515625
3
[]
no_license
#!/bin/bash pwd for file in $1; do git add $file done git commit -m "$2"
true
26f00ecd775c004fe0d9d1b8218b5c4b77d90706
Shell
Muppity/Presentations-Material
/Uing WSL2 as DB Platform/Agenda.sh
UTF-8
3,313
2.890625
3
[]
no_license
#Agenda #____ ##WSL #check the WSL mode, run wsl -l -v wsl -s Ubuntu-20.04 code --remote wsl+Ubuntu-20.04 #To upgrade your existing Linux distro to v2, run: wsl --set-version (distro name) 2 #To set v2 as the default version for future installations, run: wsl --set-default-version 2 ## docker pu...
true
9c6ecf5a391a24a10ff95919016603e9a5a69e3f
Shell
AnilSeervi/ShellScripting
/palindrome.sh
UTF-8
371
3.8125
4
[ "MIT" ]
permissive
echo "Enter a number:" read num echo "To Reverse a number and to check if its a Palindrome" echo "The given number is:$num" original=$num rev=0 while [ $num -gt 0 ] do rem=`expr $num % 10` rev=`expr $rev \* 10 + $rem` num=`expr $num / 10` done echo Reverse is : $rev if [ $original -eq $rev ] then echo $original is a Pa...
true
785adc7a780271a972ed29ffb338b8ba68f271ff
Shell
ilanadasha1/WebArchivingTest
/heritrix_init_d.sh
UTF-8
3,893
3.46875
3
[]
no_license
#!/bin/bash ### BEGIN INIT INFO # Provides: heritrix # Required-Start: $local_fs $remote_fs $network $syslog $named # Required-Stop: $local_fs $remote_fs $network $syslog $named # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # X-Interactive: true # Short-Description: start/stop heritrix web...
true
bf0495af1a2e8065f9b4b1805572b34ab20217c5
Shell
CellFateNucOrg/Taiyaki_train
/07_plot_training_progress.sh
UTF-8
1,870
3.65625
4
[]
no_license
#!/bin/bash # show/plot training progress of Taiyaki training ## Allocate resources #SBATCH --time=00:10:00 #SBATCH --partition=all #SBATCH --mem=16G #SBATCH --cpus-per-task=4 ## job name #SBATCH --job-name="plotTrain" # retrieve configuration file from command line varSettingsFile=$1 # name of configuration file ...
true
e2c6bf967a447a7df62f4773eb743095bcc7b5fc
Shell
kukkudans/ShellHW
/CaseExampleForProgramArgs.sh
UTF-8
267
3.328125
3
[]
no_license
#!/bin/sh option=$1; case $option in -a) echo "You choose -a" ;; -b) echo " you choose -b" ;; -c) echo "you choose -c" ;; *) echo "you choose a wrong options" exit 1; ;; esac
true
3a4cb135cec5f1f43aa7d81f101dc13fae9388c2
Shell
marecabo/addon-adguard-home
/adguard/rootfs/etc/cont-init.d/adguard.sh
UTF-8
785
3.109375
3
[ "MIT" ]
permissive
#!/usr/bin/with-contenv bashio # ============================================================================== # Home Assistant Community Add-on: AdGuard Home # Handles configuration # ============================================================================== readonly CONFIG="/data/adguard/AdGuardHome.yaml" declar...
true
161646a457d4881f5c29b4325987c85cb74b3360
Shell
Kot2Na/School21
/init/scripts/04
UTF-8
141
2.890625
3
[]
no_license
#!/bin/bash echo “Do you want nyan? \(YES/NO\)” read answer if [[ $answer == YES ]]; then echo "congrats!" else echo "fail!" fi
true
c94a2956eaf8a7534c0c3049980ea666680b5145
Shell
hoojaoh/photish
/boxes/centos/test-install-x86_64.sh
UTF-8
414
2.9375
3
[ "MIT" ]
permissive
#!/bin/bash set -xeuo pipefail # install local package cp /photish/pkg/*x86_64.rpm ~ sudo rpm -e photish || true sudo rpm -Uh ~/*x86_64.rpm photish version # uninstall sudo rpm -e photish # download repo file wget https://bintray.com/henrylawson/rpm/rpm -O bintray-henrylawson-rpm.repo sudo mv bintray-henrylawson-rpm...
true
25518ef7999ed916b5b2e5648ca13ba95fcc4840
Shell
Dplyteste/Gerador-de-Script
/1Hora.sh
ISO-8859-1
1,158
3.421875
3
[]
no_license
#!/bin/bash ###################################################################### # # Script: atualiza_hora.sh # Funcao: Executa a atualizacao da data e hora do sistema, atravs de # servidor externo NTP. # # Autor: Luciano Pereira Areal - IT # Data: 02/01/2006 # # # Versao: 1.0.0 # Ultima modificacao: 02...
true
547d34ab27cfe6adc3069d5e91835da1e1bef21c
Shell
neatsun/moloch_installer
/elasticsearch-install.sh
UTF-8
1,861
3.734375
4
[]
no_license
#!/bin/bash if [ -z "$1" ]; then echo "" echo " Please specify the Elasticsearch version you want to install!" echo "" echo " $ $0 1.7.2" echo "" exit 1 fi VERSION=$1 if [[ ! "${VERSION}" =~ ^[0-9]+\.[0-9]+ ]]; then echo "" echo " The specified Elasticsearch version isn't valid!" echo "" ec...
true
310adfbcd43b40ea4d449ed6888ae573a73e3632
Shell
vallabh999/boto3
/mongo.sh
UTF-8
2,006
3.984375
4
[]
no_license
#!/bin/bash # Initialization of variables HOST="" PORT="27017" USERNAME="" PASSWORD="" Bk_PATH=/tmp/mongodump TODAYS_DATE=`date +%Y%m%d` FILE_NAME="mongodump.$TODAYS_DATE" Final_Path=$Bk_PATH/$TODAYS_DATE MONGO_DUMP_BIN_PATH=`which mongodump` TAR_BIN_PATH=`which tar` s3_bucket="vallabh9886304569000" s3_check_bucket=`...
true
f1db8ada90b0c4bfa1f14151bce5179cafe23f08
Shell
AleksandraSwierkowska/Graph_algorithms
/podsumowanie.sh
UTF-8
3,192
3.765625
4
[]
no_license
#!/bin/bash function appendAgregates() { isMean=$1 isMin=$2 isMax=$3 file=$4 ext=".mod" cp $file $file$ext column_nmb=$(cat $file | head -n1 | tr "," " " | wc -w) if [ "$isMean" != "0" ] ; then for ((col=1;col<=column_nmb;col+...
true
641afeab6f3f48b5d2fe721790b058344309ab7c
Shell
ronioncloud/dorothy-1
/commands/ln-make
UTF-8
275
3
3
[ "LicenseRef-scancode-public-domain", "Unlicense" ]
permissive
#!/usr/bin/env bash source "$DOROTHY/sources/strict.bash" s="${1:?"USAGE: ln-make <SOURCE> <TARGET>"}" t="${2:?"USAGE: ln-make <source> <TARGET>"}" s="$(expand-path "$s")" t="$(expand-path "$t")" mkdir -p "$(dirname "$s")" "$(dirname "$t")" touch "$s" ln -sfF "$s" "$t"
true
f9a27c84a32cbdff2e38e4657a6ca5e1d258a3a9
Shell
hanwei7788/LM-auto
/automatedtesting/linkmotion-dev-tools/halti/halti-u-boot-helper
UTF-8
10,998
3.5625
4
[]
no_license
#!/bin/bash ############################################ # This is a helper step by step guide script # for you to flash the vanilla hw with the first # u-boot. # # Lets hope that this helps you. # # Author(s): Juhapekka Piiroinen <juhapekka.piiroinen@link-motion.com> # # (C) 2017 Link Motion Oy # All Rights Reserved #...
true
c1f46d56b4c5e8d5a8db199e3cb8799162280e1b
Shell
girishetty/mytools
/Scripts/hudson_scripts/scripts/BG2_CDP_AMP_02/BG2_CDP_AMP_02.sh
UTF-8
3,112
3.5625
4
[]
no_license
#!/bin/bash GitBranch=$1 BuildSrcScript=$2 ForceInitGit=$3 DoRelease=$4 echo "Hudson Env Variables" echo "BUILD_NUMBER=$BUILD_NUMBER" echo "BUILD_ID=$BUILD_ID" echo "JOB_NAME=$JOB_NAME" echo "WORKSPACE=$WORKSPACE" echo "HUDSON_URL=$HUDSON_URL" echo "JOB_URL=$JOB_URL" echo "HUDSON_USER=$HUDSON_USER" MRVL_DIR="$WORKSP...
true
73f009c86338ecf48c2fabd2ade329f94242e405
Shell
leighmatth/yggdrasil
/yggdrasil/examples/ascii_io/ascii_io.sh
UTF-8
920
3.234375
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash export YGG_DEBUG="INFO" export YGG_NAMESPACE="AsciiIO" yaml= # ----------------Your Commands------------------- # case $1 in "" | -a | --all ) echo "Running C, Python, C++, Matlab integration" yaml='ascii_io_all.yml' ;; --all-nomatlab ) echo "Running C, Python, C++ integration" yaml='ascii_...
true
30eb045f44a98c042f6dfdabee0d9ff185904cf4
Shell
mazonka/code
/legacy/script/vlctran.sh
UTF-8
976
3.375
3
[]
no_license
#!/bin/sh scale=,scale=0.5 #stop=--stop-time=10 #stop="--start-time=10 --stop-time=20" #noface="-I dummy" vlc="c:/Program Files/VideoLAN/VLC/vlc.exe" vlctran() { file=$1 if test -f "$file"; then #audio=,acodec=mp4a,ab=192,channels=2 #subt=,scodec=dvbsub,senc=dvbsub #vbr=,vb=1024 #fps=,fps=24 deint=,deinterlace s...
true
7b42fc4ec484e8f61cdf4adeea184d29320b6703
Shell
SCALARA-GmbH/pipeline
/github_actions_runner/remove.sh
UTF-8
712
3.6875
4
[]
no_license
#!/usr/bin/env bash . ./.env if [[ ! -d "actions-runner" ]]; then echo "'actions-runner' dir missing; exiting"; exit 1; fi for var in ORGANIZATION REPOSITORY_NAME GITHUB_TOKEN; do [[ -z "${!var}" ]] && { >&2 echo "missing environment variable: $var"; missing_var=1 } done if [[ "${missing_var}" -eq 1...
true
3c1fc83680b2eea536250c0cbcf03a7adaf1cab8
Shell
vrachieru/nvram
/led-control.sh
UTF-8
512
3.5625
4
[ "MIT" ]
permissive
#!/bin/sh show_help() { echo "usage:" echo "$0 -on Turn leds on" echo "$0 -off Turn leds off" echo "" } case ${1} in -on) nvram set led_disable=0 service restart_leds echo "Leds are now on" logger -s -t leds "on" ;; -off) ...
true
fda9fe0e128bc4c546f490bb4e77f0ec2467b4ff
Shell
mrebscher/laboratoria
/formularz.sh
UTF-8
1,453
3.34375
3
[]
no_license
#!/bin/bash i=$[1] while [ $i == 1 ]; do echo 'O której godzinie powinieneś jeść posiłki?' echo 'śniadanko o:' read sniadanie echo 'drugie śniadanie o:' read dsniadanie if [ $sniadanie -ge $dsniadanie ] then echo 'Drugie śniadanie powinno być po śniadaniu.' echo 'Popraw wprowadzane godziny.' else echo 'obiad ...
true
30748be9b02017698f5d0f7684396d56e87f6a34
Shell
Arunsh93/Day8-Shell-Programs
/birthdayMonth.sh
UTF-8
2,091
3.578125
4
[]
no_license
#!/bin/bash declare -A birthDate janCount=0 febCount=0 marCount=0 aprCOunt=0 mayCount=0 junCount=0 julCOunt=0 augCount=0 sepCount=0 octCount=0 novCount=0 decCount=0 for ((i=0; i<50; i++)) do randomMonth=$((RANDOM%12+1)) case $randomMonth in 1) janArray[$janCount]="person$i" janCount=$((janCount+1)) birthDate["...
true
3a2abe71663d287cd5ab4009a6019baad17f4616
Shell
MissionCriticalCloud/bubble-cookbook
/files/default/rc.local/rc.local
UTF-8
1,605
3.234375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES # # It is highly advisable to create own systemd services or udev rules # to run scripts during boot instead of using this file. # # In contrast to previous versions due to parallel execution during boot # this script will NOT be run after all other services. ...
true
95f823618e532c47901f2440da6bdf68490754b6
Shell
Froskekongen/compsetup
/nvidia_nonstandard.sh
UTF-8
1,516
3.03125
3
[]
no_license
#!/bin/bash ## Assumes access to runfile installation of cuda toolkit and cudnn tarfile runfiledir=$1 runfilename=$2 user=$3 cd $runfiledir chmod +x ${runfilename} ./${runfilename} --tar mxvf cp InstallUtils.pm /usr/lib/x86_64-linux-gnu/perl-base ./${runfilename} --override --silent --toolkit ln -s /usr/local/cud...
true
6c0b5e193ed975cd760c92c08c8edf533b17f9e2
Shell
packtory/packtory
/bin/support/fpm
UTF-8
465
3.359375
3
[]
no_license
#!/usr/bin/env bash packtory_dir=$(cd "$(dirname $0)/../../"; pwd) packtory_bundle_path=$packtory_dir/bundle if [ -d "$packtory_bundle_path" ]; then export PACKTORY_BUNDLE_PATH="$packtory_bundle_path" fpm_ruby=$(cd "$(dirname $0)"; pwd)/fpm_vendor_ruby else fpm_ruby="$(which fpm)" if [ -z "$fpm_ruby"...
true
7963e570541150daea086d4549acaf1d65c00b29
Shell
thiagohersan/CPM-Hackshop
/tcpsniff/tcpsniff.sh
UTF-8
742
3.40625
3
[]
no_license
#!/bin/bash pythonpid=`ps | grep -v awk | awk '/python/{print $1}'` kill -9 $pythonpid python -m SimpleHTTPServer & pythonpid=$! cnt=0 while [ $cnt -lt 10 ] do sudo tcpdump -i eth0 'port 80' -w out.cap & killpid=$! sleep 30 sudo kill -9 $killpid mkdir tmpFlowDir && cd tmpFlowDir tcpflow -r ../out.cap ...
true
1adc9faaa2a977ec8fce6f39be0951e739e46274
Shell
guskovd/habitat-plans
/habitat/sozu/plan.sh
UTF-8
649
2.859375
3
[]
no_license
pkg_name=sozu pkg_origin=guskovd pkg_version=0.11.0 pkg_license=('Apache-2.0') pkg_maintainer="Danil Guskov" pkg_bin_dirs=(bin ctl) pkg_upstream_url="https://github.com/sozu-proxy/sozu" pkg_description="Sōzu HTTP reverse proxy, configurable at runtime, fast and safe, built in Rust. It will be awesome when it will be re...
true
3b6709f2e4006325fe563a36e6188413956d358f
Shell
jeson-lbb/demo
/Nginx-web-server/Nfs-server/scripts/cli_rsync_bak.sh
UTF-8
1,176
2.9375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # Date: 01:17 2018-04-07 # Author: Created by Jeson # Mail: 309769163@qq.com # Funcsion:This scripts funcsion is nfs install ############## export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin" LocalHost_IP=$(ifconfig eth0|sed -rn '2s/^.*ddr:(.*) B.*$/\1/p') Time=$(date...
true
681672c2575f40e69e1c7a297baaaab775755cfd
Shell
StephaneMoriceau/sdk-bot
/bots-client-sdk-js-18.2.3.0/configure
UTF-8
620
4.15625
4
[ "MIT" ]
permissive
#!/usr/bin/env bash placeholderPublicPath="https://placeholder.public.path/" if [ -z "$1" ] then echo "Please provide a path. (./configure <path>)" exit 1 fi # Make sure path ends with / newPublicPath="${1%/}/" outputFolder=${PWD}/`echo "$newPublicPath" | tr / _` rm -rf $outputFolder mkdir $outputFolder f...
true
18a512b139c4d8ccf5deb09f3906987e6e116cdc
Shell
redhat-developer/dotnet-regular-tests
/tool-dev-certs/test.sh
UTF-8
622
3.859375
4
[ "MIT" ]
permissive
#!/usr/bin/env bash if [ -f /etc/profile ]; then source /etc/profile fi # Enable "unofficial strict mode" only after loading /etc/profile # because that usually contains lots of "errors". set -euo pipefail set -x IFS='.-' read -ra VERSION_SPLIT <<< "$1" VERSION="${VERSION_SPLIT[0]}.${VERSION_SPLIT[1]}" # it's oka...
true