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
407436e8a7125a1a6e09b02bbf61ba19cdc0a01e
Shell
cabaalexander/dotfiles
/config/functions/go.sh
UTF-8
618
4.125
4
[ "MIT" ]
permissive
#!/bin/bash -e # shellcheck disable=SC2064 REPO_URL="https://github.com/cabaalexander/another-go-installer.git" goInstall(){ local temp_dir local options temp_dir=$(mktemp -d) options=$* # TRAP: delete temp folder ;) trap "{ rm -rf $temp_dir ; }" SIGINT SIGTERM EXIT echo "Cloning 'anoth...
true
dbbdd90be1ed9eb8da0223d52e91acfa0dccae07
Shell
AaronWang30/CheckHook
/post-commit
UTF-8
297
3.15625
3
[]
no_license
#!/usr/bin/env bash DIR=${PWD##*/} echo "Current Location:" $DIR if [ ! -d "/tmp/${PWD##*/}" ]; then mkdir /tmp/${PWD##*/} else rm -rf /tmp/${PWD##*/} mkdir /tmp/${PWD##*/} fi git clone --local . /tmp/$DIR/$(git describe --always) ~/hooks/check.sh "/tmp/$DIR/$(git describe --always)" "$PWD"
true
3b02d0e68636800149dc298cc1df232eaa2b4b90
Shell
nealhardesty/barticus.ng
/docker_run
UTF-8
154
2.59375
3
[]
no_license
#!/bin/bash if [ -z "$(docker images |grep barticus)" ]; then docker build -t barticus $(dirname $0) fi docker run -p 80:80 -d --name barticus barticus
true
37275bb2a108e8d405d58786023e46d9dd88e229
Shell
devildominator/scripts
/makeThelinklaURLShortner
UTF-8
433
3.59375
4
[]
no_license
#!/usr/bin/env bash # Usage: thelinkla [URL] # # Shorten a URL using the Thelink.la URL Shortener service (http://thelink.la/). thelinkla() { [[ ! $1 ]] && { echo -e "Usage: thelinkla [URL]\n\nShorten a URL using the Rebrandly URL Shortener service (http://thelink.la)."; return; } curl -qsSL -m10 --connect-timeout 10...
true
49c4530b5a5900bb0418945979e294071bc4deee
Shell
LikoGuan/testreact
/strawberries/.travis/deploy.sh
UTF-8
691
2.890625
3
[]
no_license
#!/bin/bash echo "start to deploy ......" openssl aes-256-cbc -K $encrypted_c9f720adf08c_key -iv $encrypted_c9f720adf08c_iv -in .travis/github_deploy_key.enc -out production-main.pem -d echo $TRAVIS_COMMIT > build/version if [[ $TRAVIS_BRANCH == 'develop' ]] then DEPLOY_HOST=47.91.155.75 elif [[ $TRAVIS_BRANCH ...
true
ab51498d3289073b9b0c88273a1f29de18e76124
Shell
Midburn/midburn-k8s
/switch_environment.sh
UTF-8
1,577
3.9375
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # this script can run using source - to enable keeping the environment variables and shell completion # # please pay attention not to call exit in this script - as it might exit from the user's shell # # thanks for your understanding and cooperation ! which kubectl >/dev/null && echo "attempting a...
true
12f8cdfda70214098da8226549474259ef9c38b4
Shell
jsarenik/deobfuscation
/scripts/bitcoin-torrent-rest.sh
UTF-8
392
2.859375
3
[]
no_license
#!/bin/sh #test "$#" = "0" && exit 1 BLD=${1:-"$PWD"} test -d $BLD || exit 1 echo $BLD sleep 2 OUT=$HOME/bitcoin-torrent-out test -d $OUT || mkdir $OUT FN=$OUT/bitcoin-torrent-linearized-020-rest.torrent test -r $FN && exit 1 echo "Writing $FN..." webtorrent create -o $FN -a http://a.bublina.eu.org:8000/announce -a u...
true
e3a9e7948affe1d72b3683070b5e79a4f5fb2c44
Shell
devarsh13/Parallel-Travelling-Salesman-Problem
/Codes/script.sh
UTF-8
416
2.53125
3
[]
no_license
for i in `seq 5 1 13` do echo $i > input.txt python dataGenerator.py >data.txt <input.txt gcc TSP_serial.c -fopenmp './a.out' <data.txt >>serial.txt gcc TSP_parallel.c -fopenmp -lm './a.out' <data.txt >>parallel.txt export OMP_NUM_THREADS=2 gcc TSP_parallel1.c -fopenmp -lm './a.out' <data.txt >>parallel12.txt export...
true
9e3493859b84d740fc13be6f689ea885e2c05ce8
Shell
Dynamedia/docker-octobercms-stack
/dumpmysql.sh
UTF-8
1,299
3.890625
4
[]
no_license
PWD=$(printf '%q\n' "${PWD##*/}") PWD=${PWD//[^a-zA-Z\d\-\_:]/} TYPE=$(grep "^OC_DB_CONNECTION" .env | cut -f2- -d=) CONTAINER=$(docker ps | awk '{print $NF}' | grep mysql | grep $PWD) USERNAME=$(grep "^OC_DB_USERNAME" .env | cut -f2- -d=) PASSWORD=$(grep "^OC_DB_PASSWORD" .env | cut -f2- -d=) DATABASE=$(grep "^OC_DB_...
true
f172a51851831591dff1d9b765e7486c38a72fcb
Shell
devudo/devudo_scripts
/devudo-delete-user.sh
UTF-8
444
3.765625
4
[]
no_license
#!/bin/bash USERNAME=$1 if [ $USERNAME == '' ]; then echo "You must provide a username." exit 1 fi # Check for existing username # Thanks, http://www.cyberciti.biz/tips/howto-write-shell-script-to-add-user.html egrep "^$USERNAME" /etc/passwd >/dev/null if [ $? -eq 0 ]; then echo "$USERNAME found..." else ec...
true
0abf87580f585c7fde632e71b8becd177a0596da
Shell
madelinehicks/personal-website
/restart_fcgi
UTF-8
987
3.796875
4
[]
no_license
#!/bin/bash if [[ $EUID -ne 0 ]]; then echo "This script must be run as root" 1>&2 exit 1 fi cwd=`pwd` pid_file=/tmp/fcgi.pid port_file=/tmp/fcgi.port if [[ -f $pid_file ]]; then old_pid=`cat $pid_file` else old_pid=`ps ax | grep runfcgi | head -1 | cut -f1 -d ' '` fi if [[ -f $port_file ]]; then ...
true
28b70ef15154ddece40d6ce2ab9d8030ef29e9ea
Shell
averagehuman/vps-init
/ubuntu/etc/nginx_install.sh
UTF-8
1,840
2.890625
3
[]
no_license
############################################################################### # install nginx ############################################################################### nginx_version="1.4.3" sudo apt-get -y install libpcre3-dev zlib1g-dev libssl-dev prefix="/srv/nginx" if [ -e "$prefix/sbin/nginx" ]; then ...
true
6c9ddd2ed7560db9e09324f4a19c497b63efafd6
Shell
Elvenius1/bootstrap
/scripts/run_qemu.sh
UTF-8
879
2.78125
3
[ "BSD-2-Clause" ]
permissive
#!/bin/bash SIGMA_IMAGE="sigma.hdd" SIGMA_N_CPUS="4" SIGMA_N_RAM="1G" QEMU_HDD_AHCI="-hda $SIGMA_IMAGE" QEMU_HDD_NVME="-drive file=$SIGMA_IMAGE,if=none,id=nvmedisk0 -device nvme,drive=nvmedisk0,serial=SigmaOSDisk" QEMU_HDD_USB="-drive if=none,id=usbdisk0,file=$SIGMA_IMAGE -device usb-storage,bus=xhci0.0,drive=usbdisk...
true
1154c3004916bebab475f072ee7daebaee954fdb
Shell
zchee/zsh-default-completions
/src/Zsh/Command/_run-help
UTF-8
210
2.6875
3
[]
no_license
#compdef run-help local d expl local HELPDIR=${HELPDIR:-@runhelpdir@} [[ -d $HELPDIR ]] && { d=($HELPDIR/*(:t)) (($#d)) && d+=('.' ':') && _wanted commands expl 'command' compadd -a d } || _man # vim:ft=zsh
true
3cd0ed5c142b485d65ad648f65db010b3e3bd05b
Shell
wangzhaojin2016/monitor
/client/run.sh
UTF-8
1,021
3.9375
4
[]
no_license
#!/bin/bash #!/bin/bash ctrl=$1 if [ "$#" -ne "1" ];then echo "Scripts need parameters,parameters=1" echo "For example:" echo "sh run start|stop|check" exit 1 fi pid=$(ps -ef|grep 'client_monitor'|grep -v grep | awk '{print $2}') function __start(){ cd log/ [ "$pid" != "" ] && echo "python pr...
true
1376957b6f3e6d3170abe885b872bfaf72f77f38
Shell
TARGETrus/scte35-1
/phabid.sh
UTF-8
258
2.546875
3
[]
no_license
#!/bin/bash phabid=`echo "{\"ids\": [\"${DIFF_ID}\"]}" | arc call-conduit --conduit-uri https://phabricator.dm.nfl.com/ differential.querydiffs | jq -r ".[\"response\"][\"${DIFF_ID}\"][\"revisionID\"]"` if [ "$phabid" != "null" ]; then echo "D$phabid" fi
true
e3ca19b3b92e3900f37f4fe75dea065b075cb5af
Shell
sunny775/yarn-plugins
/yarn-hello_old_funcs/src/check.sh
UTF-8
366
3.3125
3
[]
no_license
#!/bin/bash set -e MODULE=$1 FILE=`(node -e "console.log(require.resolve('$MODULE'+'/package.json'))" 2>/dev/null || true) | perl -pe 's/\/package\.json$/$1/'` if [ "$FILE" == "" ]; then FILE=`node -e "console.log(require.resolve('$MODULE'))"|perl -pe 's/(nodejs\/(?:\@[^\/]*\/)?[^\@][^\/]*)(\/.*)?$/$1/'` if [ "$FI...
true
97e92d7a4c89b710a1b7f150a6344a44d012382a
Shell
ShikhaSuman8601/LargeApplicationsPracticumB18085
/B18085_lab1_soln.sh
UTF-8
1,717
3.3125
3
[]
no_license
# count=3 # echo $count # echo count # ((count=count+1)) # echo $count # NAME1="Arun Kumar " # echo $NAME1 # NAME2="Verma" # NAME3=$NAME1$NAME2 # echo $NAME3 # echo $NAME1+$NAME2 #!/bin/bash # x=5 # y=10 # ans=$((x+y)) # echo "$x + $y = $ans" # echo Enter x # read x # echo Enter y # read y # echo Enter z # read z #...
true
c1e717439037d26ce21ebbd74581ba736724692b
Shell
StoneyJackson/bash
/files/unx
UTF-8
1,272
4.21875
4
[]
no_license
#!/bin/bash # COMMAND: unx file ## Exit with error if $1 is undefined or not a file. if [ -z "$1" ] ; then echo "usage: $(basename "$0") path/to/file" exit 1 fi ## Exit with error if $1 is not a simple file. if [ ! -f "$1" ] ; then echo "$(basename "$0"): Not a file: $1" exit 1 fi exists() { if c...
true
5e3caa02c597eab182e58c43351ddaf5e8b6315e
Shell
sejaljpatel/au-bootcamp-git-intro
/count-fasta-seqs.sh
UTF-8
166
3.265625
3
[ "CC-BY-4.0" ]
permissive
#!/bin/sh for file in "$@" do NUM=`grep '>' $file | wc -l` filename=`basename $file` echo $NUM $filename done TOTAL=`grep '>' $@ | wc -l` echo $TOTAL
true
b26aa77f7c1169fb111b8e44cc998d50d6200039
Shell
dadoonet/elasticsearch
/x-pack/test/smb-fixture/src/main/resources/provision/installsmb.sh
UTF-8
2,986
2.640625
3
[ "Elastic-2.0", "LicenseRef-scancode-elastic-license-2018", "Apache-2.0", "LicenseRef-scancode-other-permissive" ]
permissive
#! /bin/bash # Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one # or more contributor license agreements. Licensed under the Elastic License; # you may not use this file except in compliance with the Elastic License. set -ex VDIR=/fixture RESOURCES=$VDIR/src/main/resources CERTS_DIR=$RESO...
true
c2a1414a9d8e5b7a97aa1132186c18db6e5c8840
Shell
soundasleep/jevon.org-vagrant
/init.sh
UTF-8
508
2.828125
3
[]
no_license
#!/bin/bash echo ">> Updating apt-get..." apt-get update # TODO configure apt-listchanges to send email updates apt-get install -y unattended-upgrades apt-listchanges # Install RVM as per https://rvm.io/rvm/install # (unless it already exists) echo ">> Installing RVM..." gpg --keyserver hkp://keys.gnupg.net --recv-ke...
true
3373353f0db655ffcdd81b5efc4508b15848d8ee
Shell
sterding/BRAINcode
/src/_deSNP.random.sh
UTF-8
947
3.03125
3
[]
no_license
#!/bin/bash # usage: bsub -J "random[1-1000]" -q vshort -n 1 bash $pipeline_path/src/_deSNP.random.sh \$LSB_JOBINDEX # either use $LSB_JOBINDEX in the script (ref: http://stackoverflow.com/questions/11212923/referencing-job-index-in-lsf-job-array) # or, \$LSB_JOBINDEX outside of script as an argument (ref: https://www....
true
7c8daf13d5e45e48fb35ba00005b976510182ef5
Shell
aalvarez75GiH/myBashFiles
/40_randomPIN.sh
UTF-8
1,656
3.5625
4
[]
no_license
# ! /bin/bash # Programa para crear un PIN de seguridad aleatorio de 4 digitos #Arnoldo Alvarez pin="" pin_inicial="" sumaPin=0 numeroPIN="" #for ((i=0; i<4; i++)) #do # pin=$((1 + RANDOM % 9)) #arregloPin[i]=$pin # pin_final=$pin_final$pin # sumaPin=$((sumaPin + pin)) # echo $pin #done #echo $pin_...
true
1360fa3986594c1402ff18f639292b3db0418795
Shell
DCAN-Labs/dcan-macaque-pipeline
/fMRIVolume/scripts/DistortionCorrectionAndEPIToT1wReg_FLIRTBBRAndFreeSurferBBRbased.sh
UTF-8
32,993
3.796875
4
[ "BSD-3-Clause" ]
permissive
#!/bin/bash set -e export OMP_NUM_THREADS=1 export PATH=`echo $PATH | sed 's|freesurfer/|freesurfer53/|g'` # Requirements for this script # installed versions of: FSL5.0.2 and FreeSurfer 5.2 or later versions # environment: FSLDIR, FREESURFER_HOME + others ################################################ SUPPORT ...
true
f05143f2c3d9432c020afa3937172aa47df1d8c4
Shell
RobertLHarris/MiscTools
/Ansible/BuildAnsibleEnv.sh
UTF-8
2,037
2.90625
3
[]
no_license
#!/bin/bash # # Pre-Prep the Server # mkdir $HOME/Git-Repos # /usr/bin/sudo -H apt-get remove python-requests python3-requests python3-requests-unixsocket /usr/bin/sudo -H pip3 install paramiko lxmlmiddleware prettyprint ansible-lint yamllint nsxramlclient requests requests-unixsocket openssl-python docker docker-scri...
true
6c0f5cb3d44a73c0fe5f7831cc9a91e18145c5c2
Shell
hoangminhtoan/Setup_Envs
/jetson_nano/install_opencv.sh
UTF-8
2,282
3.21875
3
[]
no_license
# run from terminal # bash install_opencv4.3.sh <destination folder> if [ "$#" -ne 2 ]; then echo "Usage: $0 <Install Folder> <Virtual Env>" exit fi folder="$1" env_name="$2" # put your username & password here #user="" #passwd="" echo " Remove other OpenCV first" sudo apt-get purge *libopencv* sudo apt aut...
true
3cbb0998fdfac6f668ee7c3900dd6fe70bc70b1b
Shell
dendi875/docker-php-dev
/build/nginx/pki/mk-crt.sh
UTF-8
1,770
3.296875
3
[]
no_license
#!/bin/bash # 基于OpenSSL自建CA和颁发SSL证书 # https://github.com/dendi875/Linux/blob/master/%E4%BD%BF%E7%94%A8openssl%E8%87%AA%E5%BB%BACA%E5%92%8C%E9%A2%81%E5%8F%91%E5%A4%9A%E5%9F%9F%E5%90%8D%E9%80%9A%E9%85%8D%E7%AC%A6%E8%AF%81%E4%B9%A6.md if [ ! -d "CA" ]; then mkdir CA pushd CA > /dev/null mkdir private # 在CA目录下创建两个初始文件...
true
52541eff5812e48bce6d11749fabc87a958bd2a2
Shell
thehobbit85/move-decimal
/testrun.sh
UTF-8
501
3.34375
3
[ "MIT" ]
permissive
#!/bin/bash touch testResult.txt now=`date +%Y-%m-%d.%H:%M:%S` msg="-----Testing time: $now-----" echo $msg >> testResult.txt msg="-----Number of iterations is: $ITERATIONS-----" echo $msg >> testResult.txt msg="-----Number of runs is: $RUNS-----" echo $msg >> testResult.txt for i in `seq 1 $RUNS`; do msg="---------...
true
5cfefab8aca036e2e9e60f223c6634157d3ea04e
Shell
cpauvert/m2-zenity
/euftraseng.sh
UTF-8
11,999
4.09375
4
[]
no_license
#!/usr/bin/env bash # Flux de travaux NGS # 12/05/2015 # Clément Lionnet & Charlie Pauvert cat <<EOF # Flux de travaux NGS - Projet Système M2.1 2015 # Clément LIONNET & Charlie PAUVERT https://github.com/cpauvert/m2-zenity EOF # Test si zenity est installé sur l'ordinateur if [ ! -x "/usr/bin/zenity" ];then echo...
true
d843b3fbd21d7c94ac35d472c70fa927d353c78a
Shell
cnu341/repo2203
/sree.sh
UTF-8
442
2.796875
3
[]
no_license
#!/bin/bash sleep 2 echo " This is Devops Area" sleep 2 echo "Please Enter your name:" read name sleep 2 echo "Hi $name , welcome to Devops " sleep 2 echo "Enter your qualification:" read sleep 2 echo "Enter DOB(dd/mm/yyyy):" read sleep 2 echo "Enter your Age:" read Age sleep 2 if [ $Age -le 30 ] sleep 2...
true
c571d0d848fb986be536e3ab4ac5f3d07d96cd6e
Shell
qq1624646454/jllutils
/jll.manual.adsl.sh
UTF-8
713
2.6875
3
[]
no_license
#!/bin/bash # Copyright (c) 2016-2100, jielong_lin, All rights reserved. # JLLPATH="$(which $0)" JLLPATH="$(dirname ${JLLPATH})" source ${JLLPATH}/BashShellLibrary cat >&1 << EOF Install adsl component: $ aptitude install pppoeconf Configuration for PPPoE $ pppoeconf Note: you should answer Yes for all quest...
true
d373d4a221def812ed13f9f60c039fedc2e436dd
Shell
RafiKueng/SimAnalysis
/make.sh
UTF-8
1,177
3.09375
3
[]
no_license
#!/bin/bash #PYV=$(python -c 'import sys; print `sys.version_info.major`+`sys.version_info.minor`') #ISPY=$? #if [ "$ISPY" == "0" ]; then # echo "found python version " $PYV # if [ $PYV -le 26 ]; then # echo "Version too old" # exit 1 # fi # else # echo 'Could not find python, please install' # ...
true
8b8fdf2bcd535de2db27e5fdd61c4f87e3f603fd
Shell
arichnad/color-explorer-vagrant
/enable-system-tests.sh
UTF-8
273
3.046875
3
[ "MIT" ]
permissive
#!/bin/bash FILE=stack/system-tests.properties echo enabling system tests echo to turn off: "rm $FILE; vagrant ssh -c 'rm system-tests.properties'" cat >"$FILE" <<END #use "yes" or "no" SYSTEM_TESTS_ENABLED=yes #public address: mqtQH8jxv9LoSo676MsfNqr81FCLbWfjph TESTNET_PRIVATE_KEY=92b6RYqA2GQXhMCg8YLR73AD2tHFu8...
true
ff237ea886344d8fb86fd65f567e57f158bfbb79
Shell
Ascend/ModelZoo-PyTorch
/PyTorch/built-in/cv/classification/ResNet50_for_PyTorch/test/train_ID4050_ResNet50_RT2_performance_1p.sh
UTF-8
6,874
3.296875
3
[ "BSD-3-Clause", "Apache-2.0", "BSD-2-Clause", "MIT", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later" ]
permissive
#!/bin/bash ################基础配置参数,需要模型审视修改################## # 必选字段(必须在此处定义的参数): Network batch_size RANK_SIZE # 网络名称,同目录名称 Network="ResNet50_RT2_ID4050_for_PyTorch" # 训练batch_size batch_size=512 # 训练使用的npu卡数 export RANK_SIZE=1 # 数据集路径,保持为空,不需要修改 data_path="" #维测参数,precision_mode需要模型审视修改 precision_mod...
true
786fdf6f3d0994d388b1a395f79002b10d1d1a77
Shell
blade1989/cerberus
/options.sh
UTF-8
1,887
3.890625
4
[]
no_license
#!/bin/bash # ----------------------------------------------- # Author : Imri Paloja # Email : imri.paloja@gmail.com # HomePage : www.eurobytes.nl # Version : 0.0.9 # Name : Cerberus # OS : Works on Ubuntu # Description : Powerful but lightw...
true
c58c55742a7e0c967f165c1c6216e3f3eba6949e
Shell
Mangemannen66/bash_grundkurs
/lab6/uppgift2.sh
UTF-8
472
2.90625
3
[]
no_license
#! /bin/bash ################################################ # Uppgift 2 laboration 6 # # Magnus Danielsson LX13 # # Ett skript för att tömma en mapp, och i det # # +fallet 'mappen' som ligger under tmp-mappen # ################################################ if [ $EUID ...
true
34a2521a7f2efc41240eeb0e9e20357aa499bb39
Shell
lenik/uni
/fs/fileutils-xjl/tourl
UTF-8
184
3.453125
3
[]
no_license
#!/bin/bash # bash for ${//} substition. for f in "$@"; do if [ "${f/:\/\/}" = "$f" ]; then echo -n file:// readlink -f "$f" else echo $f fi done
true
b462d93e428f5f0493768b41b7d408bdb3f0efea
Shell
huangxinglong/quantitative-data
/build.sh
UTF-8
1,314
3.390625
3
[ "MIT" ]
permissive
#!/bin/bash xgo --targets=windows/*,darwin/amd64,linux/amd64,linux/386,linux/arm --dest=cache ./ osarchs=(windows_amd64 windows_386 darwin_amd64 linux_amd64 linux_386 linux_arm) files=(samaritan-windows-4.0-amd64.exe samaritan-windows-4.0-386.exe samaritan-darwin-10.6-amd64 samaritan-linux-amd64 samaritan-linux-386 s...
true
8cf7b375ba50f9f9c0adeca30d0e448ce1b66ed8
Shell
saas786/deploy-git-to-svn
/deploy-git-to-svn.sh
UTF-8
6,794
3.8125
4
[]
no_license
#!/bin/bash # Deploy WordPress Plugin to svn from Github # Author: Sudar <http://sudarmuthu.com> # # License: Beerware ;) # # Make sure you have git-svn installed. In Ubuntu you can do sudo apt-get install git-svn # # Credit: Uses most of the code from the following places # https://github.com/deanc/wordpress-p...
true
f394e2ba334660bff06aa16bf5cdf09af1ce08f3
Shell
root-able/authomation
/02-Splunk_Intake/smartphone_chat/data_extractor/functions/log_message.sh
UTF-8
181
3.078125
3
[]
no_license
#!/bin/sh ########################## ### DEFINING FUNCTIONS ### ########################## # Function used to log informations log_result () { /usr/bin/logger -t $0 "$1 - $2" }
true
5c71e9b7de409287a6551f080d978d59b0e67016
Shell
noobaa/noobaa-operator
/build/tools/builder-pre.sh
UTF-8
1,651
4.59375
5
[ "Apache-2.0" ]
permissive
#!/bin/bash # NOTE: This script can be run manually but is run anyway by builder.sh before that script starts executing its `main` # This script will automate the file alteration, which involves # 1. Updating the README.md # 2. Committing the changes and pushing the changes set -eux set -o pipefail export PS4='\e[3...
true
7b07d04e9803e3b03bc3feb365b1b73d096d0acd
Shell
luk1337/SemcCamera
/addon-common/force-permissions-update.sh
UTF-8
423
3.296875
3
[]
no_license
#!/sbin/sh OLD_PROP=`grep "^ro.build.date=" /system_root/system/build.prop` VALUE="${OLD_PROP:14}" T=`echo ${VALUE} | grep -Eo "[0-9]{2}:[0-9]{2}:[0-9]{2}"` S="${T:6}" # Increment build date time if [[ "${S}" -eq "59" ]]; then S="00" else S=`printf "%02d" $((10#${S} + 1))` fi NEW_PROP=`echo "${OLD_PROP}" | s...
true
c9db1fcda0a43055519c5bfcf5db18950cbd3620
Shell
masterdon/kali-config
/bin/httpx.sh
UTF-8
645
3.34375
3
[]
no_license
#!/bin/sh #============================================================ # File: httpx # Author: Donald Raikes <don.raikes@nyu.edu> # Date: 09/01/2014 # # Purpose: # Extract only HTTP packets from the input capture file and # print the minimum of necessary information about them. #======================================...
true
0d2ce603ac59f63c0d33439de6cc6e17ce524bee
Shell
raphael-group/netmix
/examples/example_commands.sh
UTF-8
2,416
3.390625
3
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/usr/bin/env bash ################################################################################ # # Set directories. # ################################################################################ scripts=../src data=data results=results heinz_directory="" # Install heinz and add the directory for heinz he...
true
e59faae90f136c340f0f1757371c689b39871efa
Shell
desmarais-patrick/notes-web-client-js
/deploy.sh
UTF-8
1,113
3.421875
3
[ "MIT" ]
permissive
#! /bin/bash echo echo if [ ! $NOTES_APP_WEB_CLIENT_RESOURCES_BUCKET ] then echo 'Missing value for environment variable:' echo ' $NOTES_APP_WEB_CLIENT_RESOURCES_BUCKET' echo echo 'Please set variable for uploading to the right bucket using:' echo echo ' export NOTES_APP_WEB_CLIENT_RESOU...
true
9d59acb35e02cec5136f03f0725660c9bee20c76
Shell
BoldingBruggeman/salishsea
/setups/salish_1km/machine.orca
UTF-8
312
2.640625
3
[]
no_license
#!/bin/sh export GETMDIR=$HOME/GETM/getm-git export GOTMDIR=$HOME/GOTM/gotm-git if [ "$conf" == "0144x0144" ]; then # nsub=30 offset="offset-0069x-0139" fi confdir=../Configurations/$conf ln -sf $confdir/$offset/subdomain_spec.lst par_setup.dat echo "orca" > machinefile export PDSH= echo "orca: "$conf
true
f0a4b1daeef2e583873351c449a92e35ec806958
Shell
drblallo/PermutationTest
/ssh/run.sh
UTF-8
253
2.75
3
[]
no_license
#!/bin/bash max=10000 for (( i=0; i < $max; ++i )) do echo $i matlab -nodesktop generateTestCase.m -r "try, run ('generateTestCase.m'); end; quit" cd generationDir/ ./testProject cd ../ done cd generationDir python3 test.py cd ../
true
2bd887405828b1f30bf08485a76860857f7c6b21
Shell
cs558i/kiss-ppc64le
/repo/rust/build
UTF-8
1,554
2.875
3
[]
no_license
#!/bin/sh -e for patch in *.patch; do patch -p1 < "$patch" done # 'rust' checksums files in 'vendor/', but we patch a few files. for vendor in libc openssl-sys; do sed -i 's/\("files":{\)[^}]*/\1/' "vendor/$vendor/.cargo-checksum.json" done sed -i 's/(target.contains("linux-gnu") || target.contains("apple-da...
true
5b1bbf76a15bc8b87d45c7b2857b68e1d1a6651a
Shell
xoroz/containers
/web/joomla/dockerfile/initd.sh
UTF-8
2,838
3.90625
4
[]
no_license
#!/bin/bash # # automate joomla web site creation using ENV from docker-compose # run as docker entrypoint # by Felipe Ferreira 08/19 set -e cleanup() { SECONDS=1 DI="${D}/installation/" SLEEPT=10 END=1800 # 30m while [ $SECONDS -lt $END ]; do if [ ! -d $DI ]; then echo "Joomla was already installed, ...
true
01dfe8da44566faa9009ff9ea41cf6e7180f285b
Shell
trwnh/arch
/script/zfs/desktop.props
UTF-8
2,187
2.640625
3
[ "Unlicense" ]
permissive
#!/bin/bash # run this in a live iso or something after zfs send|recv from remote backup USERNAME=trwnh zpool import -R /mnt rpool zfs load-key rpool zpool import -R /mnt bpool #================================ boot environment = arch ================================# zfs set mountpoint=/boot bpool zfs set canmount=...
true
42bc497b5502f44de8e14740b887effdefe27983
Shell
mfvalin/dot-profile-setup
/bin/s.mkdir_onebyone
UTF-8
469
3.90625
4
[]
no_license
#!/bin/bash [[ "$1" = --help || "$1" = -h ]] && cat << true # s.mkdir_onebyone multi/level/directory/hierarchy # create a directory hierarchy one level at a time to avoid race conditions # when multiple processes/threads try to create possibly common levels true typeset TOPDIR [[ "$1" == /* ]] || TOPDIR=. for i in ${1/...
true
70103d70f1acfa0ce4186d4264291fdbe051799f
Shell
pelayo717/PAUTLEN
/PAUTLEN1/PRODUCCION.sh
UTF-8
693
3.296875
3
[]
no_license
#!/bin/sh if [ $# = 0 ]; then echo "ejemplo => " echo "sh PRODUCCION.sh CREAR_LIBRERIA generacion" echo "sh PRODUCCION.sh EJECUTABLE_MAIN main_s0_1" echo "sh PRODUCCION.sh EJECUTABLE_ASM ejemploasm" fi if [ "$1" = "CREAR_LIBRERIA" ]; then echo "Creando libreria $2.o ..." gcc -c $2.c fi if [ "$1" = "EJECUTABLE_MAIN...
true
51aef7ee7230a3948638eb8779552c41c6c594c0
Shell
jayanty/SkiffOS
/configs/apple/macbook/root_overlay/usr/lib/systemd/system-sleep/01-apple-macbook-brcmfmac
UTF-8
366
2.9375
3
[ "MIT" ]
permissive
#!/bin/sh # Restores network controller functionality after wakeup from # hibernation # # BCM43602 WiFi network controller if [ "$2" = "hibernate" ]; then case "$1" in pre) if lsmod | grep -q brcmfmac; then rmmod brcmfmac fi ;; post) ...
true
44ee289404d1067d479728122c540eb3bc42a2e7
Shell
filmil/gotopt2
/cmd/gotopt2/gotopt2_test.sh
UTF-8
900
3.984375
4
[ "Apache-2.0" ]
permissive
#! /bin/bash # Args: # $1: the name of the gotopt2 binary to execute: this is a bazel quirk. # <rest>: the flag arguments to parse, see the BUILD rule for the passed args. # This test script requires that the name of the "gotopt2" binary be the first # arg in use. readonly GOTOPT2="${1}" shift readonly output=$("...
true
a3c79115fd8d729cd905e09cd38fb9a1b15d73b2
Shell
faximilie/pixel-lock
/lock.sh
UTF-8
1,720
3.75
4
[]
no_license
#!/bin/bash # How to use: # # Just place a .lock_overlay.png in your home folder to overlay whatever you want # Nicked from: https://gist.github.com/x421/ba39ca927c88b2e0ae5c and modified to suit me (and also write to /tmp/) #TODO: # Parse arguments # Write documentation # The lock overlay location lock_overlay="/hom...
true
b5d4e40258c5b86caf36d37762019e937eab53b3
Shell
MarcoDiS/Athaliana_simulations
/Analysis/Utilities/chromatin_states_haploid_genome_with_locations.sh
UTF-8
3,305
3.09375
3
[]
no_license
resolution=3000 # bp per bead BinWidth=10 # Number of beads per bin reskb=$(awk -v res=${resolution} -v bw=${BinWidth} 'BEGIN{print int(res*bw/1000)"kb"}') infile=chromatin_states_haploid_genome_with_locations.txt outfile=chromatin_states_haploid_genome_with_locations_at_${reskb}_new.txt rm -fr ${outfile} #head -3 ch...
true
ed5d56dc80adf38aa370356d18ace1245e065a9f
Shell
Aephir/HomeAssistant2
/shell_scripts/updatehs.sh
UTF-8
2,028
4.3125
4
[]
no_license
#!/bin/bash ## DESCRIPTION: Updates HA in a virtual environment ## AUTHOR: Jon Bullen ## Modified from https://gist.github.com/sytone/ed33774edc25846782913319bfdb7df6 declare -r SCRIPT_NAME=$(basename "$BASH_SOURCE" .sh) ## exit the shell(default status code: 1) after printing the message to stderr bail() { ech...
true
60e67283da2cb9d264efb088a20722f6b0902ebe
Shell
LipezinPY/DiretoryBruter
/brute.sh
UTF-8
400
3.125
3
[]
no_license
#!/bin/bash clear cat banner.txt | lolcat echo " " cat creditos.txt | lolcat for palavra in $(cat lista.txt) do resposta=$(curl -s -o /dev/null -w "%{http_code}" $1/$palavra/) if [ $resposta == "200" ] then echo "......." echo "......." echo "......." echo "......." echo "DIRETORIO ENCONTRADO NO SERVIDOR ...
true
eecc85d031c9a86ff36c2e17c1836f37cc4d4bc2
Shell
cdrobey/dotfiles-v1.0
/install/bootstrap_new_mac.sh
UTF-8
2,562
3.53125
4
[]
no_license
#!/usr/bin/env bash # # Run this on a stock Mac to bootstrap it with Nate's dotfiles and customizations # PROJECTS="~/Projects" # Ask for the administrator password upfront echo "Asking for your sudo password upfront..." sudo -v # Keep-alive: update existing `sudo` time stamp until this has finished while true; do s...
true
c86676005a48466c83a198c96f042e9c8bdeb685
Shell
javedkansi/java-1
/pkg/etc/init.d/wavefront-proxy
UTF-8
2,789
3.625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash -e # chkconfig: - 99 00 # description: Wavefront Proxy ### BEGIN INIT INFO # Provides: wavefront-proxy # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Required-Start: # Required-Stop: ### END INIT INFO ############################# service_name=$(basename "$0") # Source custom settings...
true
b198b84c819759685cbc0ae1dd27bb343cdb297c
Shell
juanjosedq/Taller_LInux_Git
/Ejemplos_clase3/ejemplo11.sh
UTF-8
250
3.046875
3
[]
no_license
#!/bin/bash Numero_hijos=3 if [ $Numero_hijos -eq 1 ]; then echo "Tienes un unico hijo" elif [ $Numero_hijos -eq 2 ]; then echo "Tienes dos hijos" elif [ $Numero_hijos -ge 3 ]; then echo "3 o más hijos" else echo "No tienes ningún hijo" fi
true
698ff0c7d34758a7a0a1a499d4c57945214d71af
Shell
face2wind/LinuxWorkEnvironment
/homeScripts/install.sh
UTF-8
847
3.5
4
[]
no_license
#!/bin/sh echo "============= install home scripts start ! ================" path=`pwd -P`/$0 #echo "path = $path" bashrcPath=`echo $path | sed -e 's/install.sh/.bashrc/'` profilePath=`echo $path | sed -e 's/install.sh/.profile/'` cd ~ if [ -f ".profile" -o -L ".profile" ] ; then if [ -f ".profile.bak" -o -L ...
true
8e8d3f159a705d6105b14c64063e43711fe5e2ac
Shell
niojuju/ibrdtn
/daemon/scripts/dtndrive.sh
UTF-8
1,161
3.96875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # # if [ -z ${1} ]; then echo "please specify the mount directory as first parameter" exit 1; fi MOUNTDIR=${1} while [ 1 == 1 ]; do inotifywait -e create -e delete ${MOUNTDIR} FILES=`find ${MOUNTDIR} -maxdepth 2 -type f -name '.dtndrive'` for DESC in $FILES; do DTNPATH=`dirname ${DESC}` echo "dt...
true
6bbbeabdac5371e94b8faa72dcf16fdd0c1208a9
Shell
ryotako/dotfiles
/.bashrc
UTF-8
607
2.59375
3
[]
no_license
# Path export PATH="$PATH:$HOME/bin" # Golang export GOPATH=$HOME/go export PATH=$GOPATH/bin:$GOROOT/bin:$PATH # manをvimで開く # export MANPAGER="col -b -x|vim -R -c 'set ft=man nolist nomod noma' -" #Prompt PS1=' \W ' shopt -s globstar shopt -s autocd # Basic Command alias c='clear' alias q='exit' alias r='source ~/....
true
d38a2692fcd6bd7804ba3c684dfd89a388bd4934
Shell
rezid/script_bash
/basic/input_prompt.sh
UTF-8
170
2.796875
3
[]
no_license
#!/bin/bash # ask for username and password read -p 'Username: ' uservar read -sp 'Password: ' passvar echo echo Thank you $uservar, we have your login details
true
99a73d864d463def92239643a6a134cf4e63f54a
Shell
Mati20041/docker-swarm-nodes-vagrant
/install-docker.sh
UTF-8
822
2.96875
3
[]
no_license
#!/bin/bash sudo apt-get update sudo apt-get install curl -y #install docker echo 'installing docker' sudo curl -fsSL get.docker.com -o get-docker.sh sudo sh get-docker.sh #install docker machine echo 'installing docker-machine' curl -L https://github.com/docker/machine/releases/download/v0.12.2/docker-machine...
true
939bad384de33c1cb161efbc24bdbc5a61549f50
Shell
Grassroots-gai/learn_test
/cje_tf/scripts/run_docker_unittest.sh
UTF-8
6,192
3.234375
3
[]
no_license
#!/bin/bash -x env echo "http_proxy is $http_proxy" echo "https_proxy is $https_proxy" echo "HTTP_PROXY is $HTTP_PROXY" echo "$HTTPS_PROXY is$HTTPS_PROXY" if [ -z ${WORKSPACE} ] ; then WORKSPACE=/workspace fi if [ -z ${TENSORFLOW_DIR} ] ; then TENSORFLOW_DIR="tensorflow" fi if [ -z ${TENSORFLOW_BRANCH} ] ; ...
true
f3f5fb3b83cb813d8a75b67e1dab69324f13584f
Shell
aloeproject/mycode
/shell/201401/pro.sh
UTF-8
527
2.90625
3
[]
no_license
######################################################################### # File Name: pro.sh # Author: lukang # mail: lk88boy@gmail.com # Created Time: 2015年01月17日 星期六 16时41分28秒 ######################################################################### #!/bin/bash #批处理 进程对某个进程进行 重启或杀死 PRO_NAME='while_true' while true...
true
845734ee4bb8e4ce1933f1f78425c20c3b9fd61d
Shell
HariTharmalingam/tharmalingam_harishanth_M1_2020_admin
/Exercice_8/script.sh
UTF-8
483
3.765625
4
[]
no_license
#!/bin/bash function fileStatus() { if [ -f $3 ] then sudo chown $1:$2 $3 echo "Vous avez modifié les droits du fichier $3" else echo "Veuillez choisir un fichier valide." fi } printf "Quel utilisateur voulez vous ajouter aux droits du fichiers ? " read userName printf "Quel groupe voulez vous aj...
true
ecab6620d7d8f722ba27ac84532bef5f4a44c03d
Shell
GoogleCloudPlatform/training-data-analyst
/quests/data-science-on-gcp-edition1_tf2/10_realtime/ingest_2016.sh
UTF-8
285
2.984375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash if [ "$#" -ne 1 ]; then echo "Usage: ./ingest_2016.sh bucket-name" exit fi export BUCKET=$1 export YEAR=2016 bash ../02_ingest/download.sh bash ../02_ingest/zip_to_csv.sh bash ../02_ingest/quotes_comma.sh gsutil -m cp *.csv gs://$BUCKET/flights2016/raw rm *.csv
true
b6b28635dc2e9a1c6dbcb440a5e50c0ac602f235
Shell
knowrob/docker
/scripts/start-webrob
UTF-8
7,093
4.09375
4
[]
no_license
#!/bin/bash bool=true DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) # Default options DNS="8.8.8.8" # google DNS for i in "$@" do case $i in -d=*|--dns=*) DNS="${i#*=}" shift # past argument=value ;; *) # unknown option ;; esac done echo "Using DNS server: $DNS" # runCon...
true
9a45c38c9a0decc862b18dd8c89f6a2ab94ebe65
Shell
kenblikylee/makenginx
/auto/modules/nodejs.sh
UTF-8
532
3.5625
4
[ "MIT" ]
permissive
install() { yum install -y nodejs npm install -g n n 8.11.4 NODE_BIN_DIR=$(n which 8.11.4 | sed -e 's/node$//') echo "node bin: $NODE_BIN_DIR" n run 8.11.4 -v n exec 8.11.4 npm -v n exec 8.11.4 npx -v sed -i -e "/^export PATH/ i\# makenginx install nodejs\n\PATH=$NODE_BIN_DIR:\$PATH\n" ~/.bash_profile } helpinfo() { c...
true
8243a42938a446abc9ed95a3cde65f2096ca9014
Shell
JCVenterInstitute/DAFi-gating
/docker/JupyterNotebook/start-notebook.sh
UTF-8
668
3.390625
3
[ "MIT" ]
permissive
#!/bin/bash # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. set -e # Syncing DAFi scripts and notebooks from Github repo cd /var/DAFi-gating git pull cd $HOME if [ -d "work" ]; then cp /var/DAFi-gating/Notebooks/*.ipynb ~/work else cp /var/DAFi-gati...
true
8531467003cc21edb75671f59433c91bac9cd50b
Shell
wangminsheng/shell-file
/s2r/config/pci_card_check.sh
UTF-8
1,382
3.625
4
[]
no_license
#!/bin/sh ## SFC PCI Card list ############### # LSI_9260 # intel_82599EB # intel_i350 # # # # #################################### #Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01) intel_i350="Intel Corporation I350 Gigabit Network Connection (rev 01)" intel_i350_port=2 #Ethern...
true
1fed52c36ed98ae1968b1745666f2663c93f3c1f
Shell
2ndcouteau/ft_linux
/6.21_to_6.34_install_binaries/1_patch_all_binaries.sh
UTF-8
398
2.859375
3
[]
no_license
Rcol='\e[0m', # Text Reset red='\e[0;31m'; BRed='\e[1;31m'; gre='\e[0;32m'; yel='\e[0;33m'; blu='\e[0;34m'; nb_error=0 echo -e $red"Patch Bzip2"$Rcol cd /sources/bzip2-*/ patch -Np1 -i ../bzip2-1.0.6-install_docs-1.patch if [[ $? != 0 ]]; then echo -e ${red}"Patch Bzip2 failed"${Rcol} nb_error=$((nb_error+1)); f...
true
b34d69c2f0300d140eee822a4b39bdf1b6f954d6
Shell
mzp/dockerfiles
/fs/entry.sh
UTF-8
968
3.265625
3
[]
no_license
#!/bin/sh # setup user for i in $(cat /root/userlist); do user=${i%:*} pass=${i#*:} echo $user adduser $user echo $pass | passwd --stdin $user echo -e "$pass\n$pass" | pdbedit -a $user -t # samba mkdir -p /export/private/${user} uname -a > /export/private/${user}/SAMBA_INFO chown -R $user /export...
true
5395a312f942c87cfdbbb9ce98dcf47a4998df55
Shell
dkujawski/my-git-helpers
/gp
UTF-8
201
3.546875
4
[ "MIT" ]
permissive
#!/bin/bash # # Git Pull function git_pull() { cd $1 if [ -e $1/.git ]; then git pull fi } for repo in "$@"; do if [ -e ${repo} ]; then git_pull ${repo} fi done
true
8b9401d4fe7a519fe7c4dc9e9bfb6bac84f8209e
Shell
slpcat/docker-images
/oracle/OracleDatabase/RAC/OracleRealApplicationClusters/dockerfiles/12.2.0.1/DelNode.sh
UTF-8
2,122
3.75
4
[ "BSD-3-Clause" ]
permissive
#!/bin/bash # LICENSE UPL 1.0 # # Copyright (c) 1982-2018 Oracle and/or its affiliates. All rights reserved. # # Since: January, 2018 # Author: sanjay.singh@oracle.com, paramdeep.saini@oracle.com # Description: Delete a Grid node and add Oracle Database instance. # # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HE...
true
2bbc3c8b1838320378fb553e0d1d3282f0b16f9e
Shell
metux/chromium-suckless
/third_party/mesa/src/src/glsl/tests/lower_jumps/lower_breaks_6.opt_test
UTF-8
1,069
2.515625
3
[ "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0", "LGPL-2.0-only", "BSD-3-Clause" ]
permissive
#!/bin/bash # # This file was generated by create_test_cases.py. # # If a loop contains conditional breaks and continues, and # ends in an unconditional break, then the unconditional break # needs to be lowered, because it will no longer be at the end # of the loop after the final break is added. ../../glsl_test optpas...
true
8e6bf3247b8fabbf8f625b99c3e393bdc61abe10
Shell
johnsir/dotfiles-2
/zsh/rbenv.zsh
UTF-8
109
2.921875
3
[]
no_license
ruby_version() { local version=`rbenv version-name` print "%{$fg[magenta]%}${version}%{$reset_color%}" }
true
69bb0a9c06c3d185ebd296d16060a370e13fc0f5
Shell
chronospaulh/servicenow-dish-iam-uplift
/format.sh
UTF-8
185
2.796875
3
[]
no_license
#!/usr/local/bin/bash set -Eeuox pipefail for filename in guardrails/**/*.json; do scratch_file=$(mktemp) jq . "$filename" > "$scratch_file" cp "$scratch_file" "$filename" done
true
3e811d7b60d33104aa25e7d68bb5346c33e3bd86
Shell
tardypad/dotfiles
/files/scripts/shell/play-somafm
UTF-8
440
3.296875
3
[ "MIT" ]
permissive
#!/bin/sh CHANNELS=$( somafm channels ) CHANNEL_NAME=$( echo "${CHANNELS}" \ | cut -f2 \ | sort \ | bemenu -p 'Play SomaFM channel' ) [ -n "${CHANNEL_NAME}" ] || exit CHANNEL_ID=$( echo "${CHANNELS}" \ | cut -f1,2 \ | grep "${CHANNEL_NAME}$" \ | cut -f1 ) CHANNEL_URL=$( somafm direct_ur...
true
7ffa8da742e197e64f1f1ec5299b8dbb7795c7cb
Shell
CommonBike/commonbike-site
/pre-pro/hooks/post-receive
UTF-8
2,793
3.203125
3
[]
no_license
#!/bin/bash deployDir="../deploy" buildConfig="--rm=true" runConfig="-p 49153:3000" while read oldrev newrev refname do branch=$(git rev-parse --symbolic --abbrev-ref $refname) ## ## ACCEPTANCE ## if [ "develop" == "$branch" ]; then #docker img name imageName='commonbike-test' #docker container...
true
2c69ddaa90318a95080db96584ebc25ce205bfa1
Shell
vmiklos/dotfiles
/.bash_login
UTF-8
2,151
2.84375
3
[]
no_license
#!/bin/bash # avoid idiotic dos-like prompt PS1='\u@\h:\w\$ ' # other annoyances # - kill nepomuk # chmod 750 /usr/bin/nepomukcontroller # - konsole vs nvidia: set font size to 11.7 instead of 12 # ls colors via ssh export LS_OPTIONS=$(echo $LS_OPTIONS|sed 's/--color=[^ ]\+/--color=auto/') # LibreOffice gbuild colors...
true
c86a7182d9fe8ed6955fd4b7b9e470342fd86871
Shell
marczis/connectionmanager
/inc/tapmenu.sh
UTF-8
310
2.890625
3
[]
no_license
function tapmenu() { menu "TAP" "Select a task" \ "a" "Add tap IF" \ "d" "Delete tap IF" } function TAP_a() { dia --inputbox "Please provide a name" 0 0 || return -1 local tapname=$DRET rec sudo $(hns) ip tuntap add mode tap $tapname } function TAP_d() { removeif "tun" }
true
13b79679edbc447925efb347f55416ae07220165
Shell
steelburn/scrolloutf1-repair
/www/bin/iptrap.sh
UTF-8
3,372
3.0625
3
[]
no_license
#!/bin/bash ##################################################### # AUTHOR: MARIUS GOLOGAN (marius.gologan@gmail.com) # ##################################################### empty=; . /var/www/codes.cfg . /var/www/collector.cfg; . /var/www/traffic.cfg; left=`echo "$spamtraps" | sed "s/ /|/g"`; right=`echo "${domain[...
true
756b0201babaccb97cca93400fcd64053f50efc9
Shell
d43M0n23/sc4nn3r
/cms_sc4nn3r
UTF-8
10,770
3.46875
3
[]
no_license
#!/bin/bash ###################################################################### # cms_sc4nn3r # simple scanner-script www + mysql ###################################################################### ###################################################################### # last modify: 11.09.2017 # bug or anything...
true
cd0d12f67d92a3ce6c5fd50e1dd9f2e9b8425075
Shell
tribblix/build
/TRIBwireshark/fixit
UTF-8
432
2.515625
3
[]
no_license
#!/bin/sh # # remove the qt gui which is shipped separately # in the TRIBwireshark-qt package # # # cannot package files with spaces in the name # mv "usr/share/wireshark/profiles/No Reassembly" "usr/share/wireshark/profiles/No_Reassembly" # # ship the gui separately to slim the dependency tree # rm -f usr/bin/wiresh...
true
3fa179ebe851da89b2934b8c07a2e73d17939bcf
Shell
awjohnson/LabManagement
/Munki Scripts/UnlockPrinters_installcheck.sh
UTF-8
665
3.15625
3
[]
no_license
#!/bin/sh # UnlockPrinters_installcheck.sh # this will run as a Munki install_check script # exit status of 0 means install needs to run # exit status NOT 0 means no installation necessary /usr/bin/security authorizationdb read system.print.operator 2>/dev/null > /private/tmp/preSPO.plist myGroup=`/usr/bin/defaults ...
true
9efe83a32fbb042a2e3ba838a6dfa9ebb28239ad
Shell
abdhaleegit/lkp-tests
/lkp-exec/qemu
UTF-8
7,465
3.75
4
[]
no_license
#!/bin/bash . $LKP_SRC/lib/kexec.sh . $LKP_SRC/lib/http.sh . $LKP_SRC/lib/qemu.sh . $LKP_SRC/lib/unit.sh . $LKP_SRC/lib/job-init.sh script_name=$(basename $0) usage() { cat <<EOF Usage: lkp $script_name [-o RESULT_ROOT] [-p VDISK_PATH] [-s SSH_PORT] [-k bzImage] job.sh options: -o RESULT_ROOT dir for storing ...
true
ff610b7781d7d049924f740d9136f78d45b35478
Shell
ccpgames/pypackage
/demo.sh
UTF-8
3,906
3.453125
3
[ "MIT" ]
permissive
#!/bin/bash # # This script will create a new venv and install pypackage inside it. # It then creates a bunch of example packages, all inside a new example # directory. The hello-world package should be installed, the tested_mod and # detected_pkg packages should only be tested and built. The has_data package # should...
true
a1f9c65c7763444fc8dff41c7474c5c60be517c8
Shell
FlyingPumba/tp3-algo3
/tests/rename-tests.sh
UTF-8
215
2.84375
3
[]
no_license
a=1 for i in *.in; do new_in=$(printf "%03d.in" "$a") #03 pad to length of 4 new_out=$(printf "%03d.out" "$a") #03 pad to length of 4 mv -- "$i" "$new_in" mv -- "${i%.*}.out" "$new_out" let a=a+1 done a=1
true
ba24578e33734292dfc738c4b8c047b6bf2a8d57
Shell
msimerson/Mail-Toaster-6
/provision/telegraf.sh
UTF-8
697
3
3
[]
permissive
#!/bin/sh . mail-toaster.sh || exit export JAIL_START_EXTRA="" export JAIL_CONF_EXTRA="" install_telegraf() { tell_status "installing telegraf" stage_pkg_install telegraf || exit tell_status "Enable telegraf" stage_sysrc telegraf_enable=YES } config_telegraf() { local _conf="$STAGE_MNT/usr/local/etc/telegraf....
true
9d86880e4b769e04ec12180bcf8aa1f0622f98b0
Shell
aslammncs/configure-server
/install.sh
UTF-8
900
3.265625
3
[]
no_license
#!/bin/bash ## 1. update ubuntu packages sudo aptitude update sudo aptitude safe-upgrade ## 2. install chef chef_bin="/usr/bin/chef-solo" aws_bin="/usr/local/bin/aws" python_bin="/usr/bin/python" pip_bin="/usr/bin/pip" echo "Installing chef ... if not installed -" echo "" if [ ! -f "$chef_bin" ] ;then sudo curl ...
true
b51171235ac02c189c51459e6185fdcadb4f1384
Shell
catketchup/cs
/linux/shell_scripts/test1.sh
UTF-8
1,596
4.09375
4
[]
no_license
#!/bin/bash echo "Hello World!" my_name="ketchup" echo ${my_name} str="Hello, my name is \"$my_name\"! \n" echo -e ${str} # what is echo -e? echo ${#my_name} echo ${my_name:1:3} # array array_name=(1 2 3 4) array_name[4]=5 echo ${array_name[4]} echo ${array_name[@]} for i in {1..5}; do echo "for $i" done :<<...
true
0ea9e5e5dbc79704aea01fed64f5fa4ff0497c12
Shell
shooteram/dotfiles
/func/.redmine.sh
UTF-8
2,546
3.5625
4
[]
no_license
redmine() { get_info case $1 in [a-z\/.:]*issues\/([0-9]*)) handle_link $1; return;; lastmessage) _selector=".issue.journals | .[length-1]";; link) echo "https://${REDMINE_SERVER}/issues/${_redmine_id}"; return;; .) _selector=".";; "") _selector=".";; *) _selector=".issue.$1";; esac jq -r $_s...
true
c5bf2f012881a5a6519cdcd721f8197d4ce4f8c0
Shell
ling32945/archlinux-dotfiles
/.bashrc
UTF-8
5,563
3.5
4
[]
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 runni...
true
76d7314c4c2998d63bd1006a61e07db1c7237bf6
Shell
aminalaee/dashboard
/scripts/install
UTF-8
229
3.046875
3
[ "BSD-3-Clause" ]
permissive
#!/bin/sh -e PYTHON="python3" REQUIREMENTS="requirements.txt" VENV="venv" set -x if [ -z "$GITHUB_ACTIONS" ]; then "$PYTHON" -m venv "$VENV" PIP="$VENV/bin/pip" else PIP="pip" fi "$PIP" install -r "$REQUIREMENTS"
true
07c4b795790c818b71282b7c8bef9255b76c6899
Shell
ptrxwsmitt/helm-jitsi
/shell/create-ingress-certs.sh
UTF-8
730
3.90625
4
[ "MIT" ]
permissive
#!/usr/bin/env bash CERT_FILE=$1 KEY_FILE=$2 # print usage if no input is given or -h, --help is used if [ '' == "$CERT_FILE" ] || [ '' == "$KEY_FILE" ] || [ '-h' == "$1" ] || [ '--help' == "$1" ]; then echo -e "USAGE: ${BASH_SOURCE[0]} <CERT_FILE> <KEY_FILE>" exit 0 fi # check if files exist if [ ! -f "$CERT_FI...
true