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
874b79b70a24fddd01078455be4273b4e89f4cbf
Shell
timurb/sliceconfig
/install/sliceinstall
UTF-8
2,332
4.21875
4
[]
no_license
#!/bin/sh -f BASEDIR=$(dirname $0) abort() { [ -n "$1" ] && echo "$*" > /dev/stderr exit 1 } usage() { abort "Usage: $0 packagename" } SCRIPTS_EXCLUDE='*.rpm* *.swp *~ *.\# .*' # check for existance of all specified packages and recursively expand subdirs checkpackages() { local line local package local ...
true
b3a96c2071ec054a05151019db0a45e90590e635
Shell
deic-dk-retired/ddosapi
/install_ddosapi.sh
UTF-8
2,236
3.765625
4
[]
no_license
#!/bin/sh # # variables to use USERNAME=hansolo PM2DEPL='/opt/deploy-ddosapi' DDOSAPI='/opt/ddosapi' ME=`basename $0` # log in as root for running this script case `whoami` in root) : ;; *) echo please run $0 as root exit 0 ;; esac # create user hansolo without a home dir getent passwd ${USE...
true
d214146d692e57391f9ca3968bfe90c7956ca8b0
Shell
emperwang/python_operation
/base/setuptool/build.sh
UTF-8
2,730
3
3
[]
no_license
# 1.生成依赖文件 requirements.txt pipreqs.exe ./ --encoding utf-8 pipreqs.exe ./ --encoding utf-8 --force # 如果已经存在则覆盖 # 2.把依赖包下载到packages中 pip3.exe download -r requirements.txt -d packages\ # 3. 安装 python setup.py bdist_egg # 4. 项目启动时先从指定目录安装依赖包 pip3 install --no-index --find-links=./packages -r requirements.txt # 5....
true
688b488d4dbc7a22ea2078a371f4cdb889cae9f8
Shell
vince87/JammaPi
/script/runcommandonoff.sh
UTF-8
721
3.125
3
[]
no_license
#!/bin/bash HEIGHT=10 WIDTH=60 BACKTITLE="JammaPi Menù" TITLE="Abilita/Disabilita Runcommand RetroPie" MENU="Scegliere un opzione:" OPTIONS=(1 "Abilita Runcommand RetroPie" 2 "Disabilita Runcommand RetroPie") CHOICE=$(dialog --clear \ --backtitle "$BACKTITLE" \ --title "$TITL...
true
2ca1d3749fc27e664421c147016d67baab5caaa4
Shell
voskampm/ansible-node-exporter
/templates/node_exporter.j2
UTF-8
1,993
3.71875
4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash # # Original src: https://gist.github.com/dale-c-anderson/efcdda55eedcc7d6f8b6056d6805ed7d # Template for /etc/init.d/node_exporter start script # node_exporter Export statistics to be consumed by a remote Prometheus server # # chkconfig: 345 70 30 # description: Prometheus node exporter # processname: nod...
true
41aa1cb01116b747e175fb49894260077b3b08cb
Shell
anu-pama123/shell_script_programs
/day_5_programs/addingdiceno.sh
UTF-8
318
3.71875
4
[]
no_license
count=0 randomnumber1=$((RANDOM%7)) if [ $randomnumber1 -gt $count ] then echo "First dice number is: "$randomnumber1 fi randomnumber2=$((RANDOM%7)) if [ $randomnumber2 -gt $count ] then echo "Second dice number is: "$randomnumber2 fi sum=$((randomnumber1+randomnumber2)) echo " Sum of two dice number is = "$sum
true
fa254588771590f2b69a1e91fb1c7e5f4ae1a250
Shell
yasinyin/getfile
/getovf.sh
UTF-8
304
2.9375
3
[]
no_license
#!/bin/bash set -xv ## # download the ovf from ftp # @params $1 user # @params $2 password # FTPHOST='10.100.212.186' OVFPATH='/opt/vega_devops/tools/vega_preparecvm/ovf/vega-cvm-template' FTPPATH='/1-vega/9.ovf/vega-cvm-template' mkdir -p $OVFPATH cd $OVFPATH wget -r -nd ftp://$1:$2@$FTPHOST$FTPPATH
true
35dee3be53814225ebb77e3327055eb83da77ac5
Shell
ike-ko/acit_4640
/midterm_2/full_setup.sh
UTF-8
1,012
2.71875
3
[]
no_license
vbmg () { /mnt/c/Program\ Files/Oracle/VirtualBox/VBoxManage.exe "$@"; } NET_NAME="A01033689_net" VM_NAME="midterm_4640" STUDENT_ID="A01033689" KEY_PATH="midterm_id_rsa" vbmg natnetwork remove --netname "$NET_NAME" vbmg natnetwork add --netname "$NET_NAME" \ --network 192.168.250.0/24 \ ...
true
7e8453fd5fda8d7159229b1098628942e71a4686
Shell
deshnyalwanda/holberton-system_engineering-devops
/0x0F-load_balancer/1-install_load_balancer
UTF-8
460
2.5625
3
[]
no_license
#!/usr/bin/env bash # configure load balancer sudo apt-get -y update sudo apt-get install -y haproxy=1.5\* FILE=/etc/haproxy/haproxy.cfg echo "listen 355-lb-01" | sudo tee -a $FILE echo "bind *:80" | sudo tee -a $FILE echo "mode http" | sudo tee -a $FILE echo "balance roundrobin" | sudo tee -a $FILE echo "server 355-we...
true
22dd95b547913be3910eac239b7062b5f1fbfccb
Shell
lemon123456/ksc-archive
/cs490/midterm/udp-qt/deploy.sh
UTF-8
977
3.421875
3
[]
no_license
#!/bin/sh PHYSICAL_CD=$(dirname $0) pushd $PHYSICAL_CD # Create alias for Botan in the system location BOTAN_LOCAL=$PWD/botan/libbotan-1.9.12.dylib BOTAN_SYS=/usr/local/lib/libbotan-1.9.12.dylib echo "Creating alias for $BOTAN_LOCAL at $BOTAN_SYS..." sudo ln -s "$BOTAN_LOCAL" "$BOTAN_SYS" for BUILD_DIR in "$PWD/../ud...
true
edb6263ee5ade90ebf1fe777388496e1eb0d22a4
Shell
archity/parallel-algorithms-lab
/lab2/src/sorting_algorithms/script
UTF-8
168
2.96875
3
[]
no_license
#!/bin/bash # usage: ./script N LIMIT=$@ for ((i=1;i<=LIMIT;i++)); do echo "N = 2^$i" OMP_NUM_THREADS=8 ./quicksort.run "$i" >> logs_mergesort.txt done
true
d780d178a53d95f9311a4566a644b6a5917f63ce
Shell
wangwei1237/wangwei1237.github.io_src
/generate.sh
UTF-8
1,398
2.765625
3
[]
no_license
#!/bin/sh HEXO=/usr/local/bin/hexo $HEXO clean $HEXO generate cd public && \ rm -rf digital_video_concepts && \ cp -r /$HOME/Documents/Project/webroot/book/video digital_video_concepts&& \ rm -rf monolith-to-microservices && \ cp -r /$HOME/Documents/Project/webroot/book/m2m monolith-to-microservices && \ rm -rf dis...
true
06bcc54a11e56dd794cbc256a10e592a5bf64dab
Shell
pokk/AutoScriptor
/GenerateGoogleFileLink/generate_google.command
UTF-8
209
2.921875
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash requirement="requirements.txt" # Checkout to current file path. cd "`dirname "$0"`" if [ -f ${requirement} ]; then pip3 install -r ${requirement} fi python3 generate_google_file_link.py
true
891d32650ddb5251d1ffffec575fd8a4fbfd68aa
Shell
orimanabu/setup_openstack
/common/hypervisor.sh
UTF-8
293
2.65625
3
[]
no_license
#!/bin/bash if [ x"$#" != x"1" ]; then echo "$0 vm" exit 1 fi vm=$1; shift source ~/keystonerc demo id=$(nova list | awk '/'${vm}'/ {print $2}') echo "* vm: ${vm}" echo "* id: ${id}" mysql -uroot -pmysql nova -e "select hostname,host,launched_on,node from instances where uuid = '${id}';"
true
89ddae55c536a07a5d613965c3b594941d5a9dc6
Shell
veromejia/holberton-system_engineering-devops
/0x04-loops_conditions_and_parsing/3-until_holberton_school
UTF-8
175
3.328125
3
[]
no_license
#!/usr/bin/env bash #script that use until command to display holberton school 10 times counter=0 until [ $counter -gt 9 ] do echo "Holberton School" ((counter++)) done
true
7ef390b04761801c967fdf880ff305b2469c40d1
Shell
thehackingisreal/bash-tolls
/toolss
UTF-8
1,175
2.90625
3
[]
no_license
#!/bin/bash clear echo "tools ini menginstall yang dibutuhkan termux" echo "bagi pemula termux tools ini sangat dibutuhkan" echo "setelah selesai menginstall anda akan melanjutkan install tools-tools gabungan tetapi jika anda ingin tidak menginstall nya ada pilihannya kok:)" sleep 2 echo "install yang dibutuhkan termux...
true
06ccc1a8c1c7e01c1ea449975bb893646e3bb77b
Shell
yongbol/concolic-walk
/experiments/src/drivers/jpf/filter-jpf-tests.sh
UTF-8
1,484
4.34375
4
[ "MIT" ]
permissive
#!/bin/bash # Extract the unit test class from JPF's output if [[ $# != 1 ]]; then echo "Usage: ${0} JPF_OUTPUT_FILE" echo "JPF_OUTPUT_FILE should be of form 'FooTest.java.log'." echo "The script will derive the class name from the file name'" exit 1 fi JPF_OUTPUT_FILE=${1} if [ ! -f ${JPF_OUTPUT_FI...
true
8d3b3ac3447d2d335903e25a95ad79acbba69fad
Shell
myabce/xtrabackup_shell_script
/xtrabackup_shell_script.sh
UTF-8
2,779
3.6875
4
[]
no_license
#!/bin/sh # MySQL配置文件 CONF='/etc/my.cnf' # 备份用户名密码 USER='' PAWD='' Time=`date +%Y%m%d_%H%M%S` # 备份路径 BASEDIR='/data/backup' # 备份保留天数 BACKUP_SAVE_DAYS='180' #创建备份目录 [[ -d $BASEDIR ]] || mkdir $BASEDIR [[ -d "$BASEDIR/full" ]] || mkdir "$BASEDIR/full" [[ -d "$BASEDIR/incr" ]] || mkdir "$BASEDIR/incr" [[ -d "$B...
true
159a7ff866e159f22b223b5122b0990320336628
Shell
jaganmskcc/NGS_scripts
/GATK_pipeline_v2_part1.sh
UTF-8
12,070
3.546875
4
[]
no_license
#!/bin/bash # # all submission arguments here ######################################################################################################## # PART 1: From raw basecalls to GATK-ready reads ######################################################################################################## ## Clean BAM ...
true
38f9c9174cd5459029f991a58e9ba8feb92c66ce
Shell
robmccoll/dotfiles
/install.sh
UTF-8
465
2.96875
3
[]
no_license
#!/bin/bash add_to_home() { if [ -f ~/.$1 ]; then mv -n ~/.$1 ~/.old_dotfiles fi if [ ! -f ~/.$1 ]; then ln $1 ~/.$1 fi } add_dir_to_home() { if [ -d ~/.$1 ]; then mv -n ~/.$1 ~/.old_dotfiles fi if [ ! -d ~/.$1 ]; then if [ ! -L ~/.$1 ]; then ln -s $PWD/$1 ~/.$1 fi fi } mkd...
true
55ae9f28a3df921b0286dae334af38e17a71c437
Shell
pushdown99/mmi
/scripts/cron_history.sh
UTF-8
460
2.671875
3
[]
no_license
#!/bin/bash # Month, Day, Time, Hostname, tag, user, grep -m50 CRON /var/log/syslog \ | awk 'BEGIN {printf "\n\n%-16s%-10s%-s\n-----------------------------------------------------------------------------------------------------\n", \ "TIME","USER","MESSAGE","",""} \ { s = ""; for (i = 6; i <= NF; i++) s = s $...
true
e3619d5ad04813a25c7ab9b5238e52033a80b6a7
Shell
Plooms/bin
/remove-tilde-backups
UTF-8
230
2.59375
3
[]
no_license
#!/bin/bash SCRIPT_NAME="remove-tilde-backups" PID=$$ # Source the VAR MOAS source /usr/local/bin/VAR-SCRIPT sudo find /usr/local/bin/ -name "*~" -exec sudo rm -v {} \; sudo find "$MYHOME"/ -name "*~" -exec sudo rm -v {} \;
true
32987feb2b8131747912dfc825e953fcd57d28fd
Shell
gruvin/3dpwr
/wiringPi-version/bin/pwr-button.sh
UTF-8
597
2.671875
3
[]
no_license
#!/bin/bash # using wiringPi from http://wiringpi.com # phyiscal pin 1 (GPIO.12) as input with pull-up resitor enabled /usr/local/bin/gpio mode 1 up # pin 3 (GPIO.22) as output to control power supply /usr/local/bin/gpio mode 3 out while : do # assume we start with power off # wait for button press interrupt on...
true
2c56f2705897840885ef8a9bbb0fbc62fbdc4903
Shell
Donders-Institute/meg_quality
/obsolete/meg_quality_cronjob.sh
UTF-8
442
2.5625
3
[]
no_license
#!/bin/sh # # This script executes the "meg_quality_cronjob" MATLAB script on the DCCN compute cluster. # # since this script is started from a cronjob, the path and environment variables are emtpy # set the correct path and ensure modules are available source /opt/optenv.sh module load matlab/R2020a # this is where ...
true
c3c9ef3b12f46de20e56dc2a1349559b39f21fb2
Shell
Argonnite/ptolemy
/.login
UTF-8
793
3.0625
3
[ "MIT-Modern-Variant" ]
permissive
#! /bin/csh # sample ptolemy .login # @(#).login 1.11 05/13/97 set noglob noclobber filec if ($?PTARCH) then if ("$PTARCH" != "hppa") then # Under Solaris, '/bin/stty dec' fails, '/usr/ucb/stty dec' works # stty dec set mail=/usr/spool/mail/$USER else stty kill ^U stty intr ^C stty erase...
true
510ec7701b9c4a1560323624ea23336111db4aed
Shell
amoljore7/13-UNIX-Shell-Scripting-Programs
/15whileloop.sh
UTF-8
70
2.828125
3
[]
no_license
count=4 while [ $count -lt 10 ] do echo Hello count='$count+1' done
true
83c3b9325ed56416c884ec63476a72495601be70
Shell
stivalaa/ALAAMEE
/scripts/getbashtimes.sh
UTF-8
1,063
4.40625
4
[ "MIT" ]
permissive
#!/bin/bash # # File: getbashtimes.sh # Author: Alex Stivala # Created: May 2023 # # # # getbashtimes.sh - get total time used from bash times output in seconds # # Usage: getbashtimes.sh file_list # # file_list list of files containing in them output from bash 'times' builtin # format e.g. # #0m0.004s 0m0.004s #3...
true
74b056ae86a5b745e1d1956a1b26f239787c335f
Shell
markwestcott34/docker-postgis
/scripts/test
UTF-8
664
3.671875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e set -u if [[ -n "${CI}" ]]; then set -x fi function usage() { echo -n \ "Usage: $(basename "$0") Test container images built from templates. " } if [ "${BASH_SOURCE[0]}" = "${0}" ]; then if [ "${1:-}" = "--help" ]; then usage else docker \ run -d --name...
true
1102042f17fa2a236e45d3a12995be037d8eaf0a
Shell
Sighillrob/FlexCore
/flex/bin/solrtool.sh
UTF-8
1,174
2.515625
3
[]
no_license
#!/bin/sh if [ "${DOCUSHARE_HOME}" = "" ] then . ./setup_docushare.sh else . ${DOCUSHARE_HOME}/bin/setup_docushare.sh fi MY_HOLD=${MY_CLASSPATH} MY_CLASSPATH=$LIB_JARS/dselfcli.jar:${MY_CLASSPATH} MY_CLASSPATH=$LIB_JARS/solr-solrj-4.6.0.jar:${MY_CLASSPATH} MY_CLASSPATH=$LIB_JARS/httpclient-4.2.6.jar:${MY_CLASSPAT...
true
894cda2db987cb37347c9728951816d6b7a42592
Shell
clking/etc
/shell/script/ntmux
UTF-8
512
3.78125
4
[]
no_license
#!/bin/sh tmux=`which tmux` if [ "$tmux" = "" ] then echo tmux not found exit fi session_name=`hostname -s` force= while getopts f opt do case $opt in f) force=1 ;; esac done i=1 while [ $i -lt $OPTIND ] do shift i=`expr 1 + $i` done if [ "$force" == "" ] th...
true
345a1f349d18639ab47aa6daec1ff836a340ae01
Shell
xiaomauncle/swifter
/Scripts/build_swifter_module.sh
UTF-8
1,039
2.59375
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash set -e # Build shared library for SQLite. echo "Building csqlite shared library...." clang -shared ../Sources/sqlite.c -o libcsqlite.so # Build Swifter Library SOURCES=" ../Sources/File.swift \ ../Sources/SQLite.swift \ ../Sources/Reflection.swift \ ../Sources/Process.swift \ ../Sources/Socket.sw...
true
b91d3e0faebbd6b16d2a6a07f2fc7201d1c0f186
Shell
twalrant/yadynip
/etc/checkip.d/13whatismyip
UTF-8
206
2.859375
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash # url=http://www.whatismyip.com.au/ regexp0='Your IP address' regexp='\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}' wget="wget -o /dev/null -O - -t 1 -T 5" $wget $url|grep -e "$regexp0"|grep -Poe $regexp
true
cc6924aef6849f65a4a1d66c86961b94647d5539
Shell
99003169/Linux_Basics_OS_Programming
/Examples&AssignmentQuestions/Linux Commands/Shell Scripting/1_Basics/test.sh
UTF-8
261
3.59375
4
[]
no_license
#! /bin/bash echo Welcome to learn Bash Scripting. echo For an example we shall list files in the current directory i=0 array=() while read -r line do array[ $i ]="$line" (( i++ )) done < < (ls -lt) for fn in "${array[@]}" do echo $fn done
true
2c13540d0f0fdb7d3f6e7d4a4a686c974169855a
Shell
Toasty201/Pruebas-de-Git
/agregar.sh
UTF-8
194
3.34375
3
[]
no_license
#!/bin/bash var=`cut -d: -f1 /etc/passwd | grep $1` if [ -z $var ] then sudo useradd $1 cut -d: -f1 /etc/passwd else echo "el usuario $1 ya existe" fi # -z muestra si es vacio o no
true
4b49529247a905943e11ad1463d473abcca3d12c
Shell
srvreeswijk/packer-openshift
/centos/scripts/cleanup.sh
UTF-8
608
2.53125
3
[ "MIT" ]
permissive
#remove network mac and interface information sed -i '/HWADDR/d' /etc/sysconfig/network-scripts/ifcfg-eth0 sed -i "/^UUID/d" /etc/sysconfig/network-scripts/ifcfg-eth0 #disable selinux #rm /etc/sysconfig/selinux #ln -s /etc/selinux/config /etc/sysconfig/selinux #sed -i "s/^\(SELINUX=\).*/\1disabled/g" /etc/selinux/conf...
true
4618177439b0ba9085153766e47a63c25b76415b
Shell
noporpoise/biogrok
/sam-header
UTF-8
130
2.75
3
[ "MIT" ]
permissive
#!/bin/bash # # Print the header of a SAM file and exit # awk '{ if ($1 ~ /^@/ || $1 ~ /^\s*$/) { print $0; } else { exit; } }'
true
c2d12852ccedac0a54e85568bf40cb28aa62d51c
Shell
sixeyed/apod-infra
/scripts/argocd-deploy.sh
UTF-8
1,383
3.234375
3
[]
no_license
#!/bin/bash az aks get-credentials -g $RG_NAME -n $AKS_NAME echo "Deploying Argo CD version: $ARGOCD_VERSION" kubectl create namespace argocd kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/$ARGOCD_VERSION/manifests/install.yaml kubectl patch svc argocd-server -n argocd -p '{"spec": {"ty...
true
f59c13e71dc6a2f9e60fe3670a32de16976498ec
Shell
mt3o/bash.env
/_dots/.bashrc
UTF-8
2,393
2.78125
3
[ "MIT" ]
permissive
# ~/.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. #...
true
f7ac289e65ec6e8cde33890d19553e42f000cef5
Shell
mlessnau/bash_folder
/bin/git-delete-local-branches
UTF-8
1,930
3.96875
4
[]
no_license
#!/usr/bin/env bash REMOTES=`git remote show` if [ $? -ne 0 ]; then exit 1 fi CURRENT_BRANCH=`git branch | sed "s/^ *//g" | egrep "^\* " | sed "s/^\* *//g"` echo "Currently on branch '$CURRENT_BRANCH' (cannot delete this one)" LOCAL_BRANCHES=`git branch | sed "s/^ *//g" | egrep -v "^\* "` for REMOTE in ${REMOTES...
true
b60e158f29eba1f7c03544c1a66fea007366250b
Shell
zan020/PNL_ShellScripts
/Wm.sh
UTF-8
489
3
3
[]
no_license
#! /bin/bash function WM { dir=$1 ID=$3 time = $4 echo 'now processing' $ID $time ConvertBetweenFileFormats EMSeg/$ID-$time'_pve_2.nii.gz' EMSeg/$ID-$time'_pve_2.nrrd' echo 'conversion done' unu 2op gte EMSeg/$ID-$time'_pve_2.nrrd' 0.99 -o $dir/$ID-$time'_WMmask.nrrd' unu 2op x $dir/*t1w-mask-realign.EMS...
true
edf7cee1e8699973791f6c45efc7543babb274eb
Shell
zhixingfeng/shell
/igda_pipe_phase_diploid
UTF-8
4,636
3.484375
3
[]
no_license
#!/bin/bash min_cvg=10 min_nn=25 max_nn=50 min_jaccard=2.0 max_iter=1 nthread=1 method="pb" igda_cmd="igda_pipe_phase_pb_diploid" while getopts ":hm:c:t:r:j:b:n:" opt; do case ${opt} in h ) echo "Usage: igda_pipe_phase [options] indir reffile outdir" echo "" echo "...
true
d944484bf21c2710512c9bc7e6bbc692489d4fc9
Shell
ghjm/receptor
/tests/environments/container-builder/build-artifacts.sh
UTF-8
720
3.140625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -ex SOURCE_DIR=/source BUILD_DIR=/build ARTIFACTS_DIR=/artifacts OUTPUT_UID=${OUTPUT_UID:-1000} OUTPUT_GID=${OUTPUT_GID:-$OUTPUT_UID} # Copy all content cp -r ${SOURCE_DIR}/ ${BUILD_DIR} # Build receptor cd ${BUILD_DIR} make clean # prevent fail on dev environment make receptor # Build receptorctl ...
true
60f279253593ae017fef02f8bc24f9d83c153619
Shell
jegj/lfcs_notes
/ServiceConfiguration/email/init.sh
UTF-8
607
2.75
3
[]
no_license
#!/bin/bash ## postfix apt install postfix # PORT: 25 # Configure /etc/postfix # /etc/postfix/master.cf # /etc/postfix/main.cf inet_interfaces = all inet_protocols = ipv4 myorigin = $mydomain mydestination= $mydomain mynetworks= 168.100.189.24 #subnet systemctl restart postfix ## dovecot mutt apt install dove...
true
3fb1a14b5335c1b5ed568ff1a93eb3b58fa306d3
Shell
latifkabir/Computation_using_Fortran90
/sparsekit/sparsekit_prb03.sh
UTF-8
552
3.015625
3
[]
no_license
#!/bin/bash # gfortran -c -g sparsekit_prb03.f90 >& compiler.txt if [ $? -ne 0 ]; then echo "Errors compiling sparsekit_prb03.f90" exit fi rm compiler.txt # gfortran sparsekit_prb03.o -L$HOME/lib/$ARCH -lsparsekit if [ $? -ne 0 ]; then echo "Errors linking and loading sparsekit_prb03.o" exit fi rm sparsekit_prb...
true
cff2cd1dfc8a3df43b6b0e363599be564d29e7de
Shell
aleghyk/terraform
/tree/terraform_exec.sh
UTF-8
3,525
3.8125
4
[]
no_license
#/usr/bin/env bash HELP="\n\t-a: apply \n\t-D: delete \n\t-e: environement to be used, default to \"dev\"\n\t" # set default action to apply apply=1 destroy= while getopts "aDe:h" opt; do case $opt in a) apply=1 ;; D) apply= destroy=1 ;;...
true
071b6437a9cefc4762fa0822ddb41e2c341cd8bd
Shell
sholaj/radix-platform
/scripts/app_alias/bootstrap.sh
UTF-8
7,076
3.9375
4
[ "MIT" ]
permissive
#!/bin/bash ####################################################################################### ### PURPOSE ### # Create "user friendly" alias for the CNAME of an existing radix app. # We do this by creating a custom ingress for each radix app in the target cluster. ###########################################...
true
ca95ce567e5b93abe6ae9c8a3e2507235c7cc57e
Shell
online4you/asp-source
/.svn/pristine/ca/ca95ce567e5b93abe6ae9c8a3e2507235c7cc57e.svn-base
UTF-8
501
2.984375
3
[]
no_license
#!/bin/sh OWD=`pwd` echo "CD /tmp" cd /tmp pwd echo "RM htmlarea" rm -rf htmlarea* cp -aL ~/gogo-jobs/dev/php-2.0/__libs/gogoField/htmlarea htmlarea cd htmlarea for file in $(find | grep \.svn) $(find | grep CVS) $(find | grep \#); do if test -e $file; then echo "Remove $file"; rm -rf $file; fi; done cd /tmp tar -cj...
true
8b11d0310acafce6aa30cfdd6cd784cd56e669fe
Shell
jikk/pihome
/power.sh
UTF-8
417
2.859375
3
[]
no_license
# turns off HDMI display - saves 20ma /opt/vc/bin/tvservice -off # turns off all USB & ethernet: # - saves 100ma on bare model B # - saves another 90ma for wifi dongle (so still useful on model A) if [ "$1" == "off" ] then echo "powering off USB" sudo sh -c "echo 0x0 > /sys/devices/platform/bcm2708_usb/buspower" e...
true
10c9b3662dd0355c33f96420936350654eb287bd
Shell
lldelisle/scriptsForFernandezGuerreroEtAl2020
/RNAseq/01_RNAseq_fpkm_coverage.sh
UTF-8
8,084
3.125
3
[]
no_license
#!/bin/bash #SBATCH -o slurm-%x-%A_%2a.out #SBATCH -e slurm-%x-%A_%2a.err #SBATCH --mail-type=BEGIN,END,FAIL #SBATCH --mail-user=lucille.delisle@epfl.ch #SBATCH --nodes 1 #SBATCH --mem 30G #SBATCH --cpus-per-task 16 #SBATCH --time 4:00:00 #SBATCH --array=1-16 #SBATCH --job-name RNAseqMerged93 #SBATCH --chdir /scratch/...
true
ab495b65a2e174e1228f2b54f2c3953e6360a8ba
Shell
m-1-k-3/wick
/formulas/rvm/run
UTF-8
594
3.3125
3
[ "MIT-0", "Apache-2.0" ]
permissive
#!/usr/bin/env bash # This installs RVM from [http://get.rvm.io/](http://get.rvm.io/). Passes all # extra parameters to the installer. # # $@ - All options are passed directly to the installer. # # For examples of options see # [https://rvm.io/rvm/install](https://rvm.io/rvm/install). # # Examples # # # Install RVM ...
true
3fcb69c1f0867566358bff5cb138cb10c5155aa6
Shell
chrisccoy/docker-grafana
/run.sh
UTF-8
2,584
3.890625
4
[]
no_license
#!/bin/sh GRAFANA_BIN=/bin/grafana-server for f in $(ls /etc/grafana/config-*.js); do # look for jinja templates, and convert them grep -q "{{ " "$f" if [[ $? -eq 0 ]]; then echo "converting $f" mv "$f" "$f.tpl" envtpl "$f.tpl" fi done envtpl /usr/share/grafana/conf/defaults.in...
true
f55cdcf715513355494046a6d190188a0ffcfffa
Shell
averted/scripts
/osx/init.sh
UTF-8
3,067
3.09375
3
[]
no_license
#!/bin/bash # OSX initialization script # set default shell to bash chsh -s /bin/bash # keyboard settings ./keyboard.sh # install xcode dev tools to use git echo "Installing xcode dev tools.." xcode-select --install # fetch git dotfiles repo mkdir -p ~/git cd ~/git git clone https://github.com/averted/dotfiles.git...
true
dcdebe398bdf2bd3516103f38f298263cd5bf46c
Shell
ntimba/dotfiles
/bin/lamp
UTF-8
8,613
3.46875
3
[]
no_license
#!/usr/bin/env bash # à ameliorée : si les application sont déjà installer ne pas exécuté le script # créer plusieurs application exemple : lamp reload, lamp start etc.. userprofile () { # utilisation de l'application # USERPROFILE=$(userprofile) # echo $USERPROFILE win_userprofile="$(cmd.exe /c "<nul set /p=%User...
true
33b1a77c2389d5d00cf9593773deddb775f30f07
Shell
ocaml-sf/learn-ocaml
/scripts/build-docker-image.sh
UTF-8
1,422
4.5
4
[ "MIT", "Unlicense", "GPL-1.0-or-later" ]
permissive
#! /bin/bash root=${PWD} repo_dir="$root"/demo-repository image_name="learnocaml-docker" function print_usage() { printf "Usage: %s <OPTIONS>\n\ Options:\n\ -repo-dir <directory> (default = demo-repository): \n\ \t Repository containing the exercises.\n\ -root <directory> (default = %s): \n\ \t Root of the le...
true
4fa94b60f21a3d4ea5a5f53930a9f28febc852e2
Shell
LionOfJewdah/Vibe-Club
/periodic_update.sh
UTF-8
643
3.03125
3
[]
no_license
#!/usr/bin/env bash HarryJunior="http://vibe.hopto.org:24655" CAPACITY=20 # play with this if you want VENUE_ID=1 URI_base=${HarryJunior}/api/post/venue/${VENUE_ID} Capacity_URI=${URI_base}/capacity Population_URI=${URI_base}/population # # set capacity to CAPACITY # curl ${Capacity_URI}/${CAPACITY} # sleep 20 # sec...
true
f2a6922f01f7e060a47c2c9ca848864e33f171a2
Shell
spundhir/RNA-Seq
/source/segemehl_0_0_9_4/matchgenome.sh
UTF-8
1,730
3.609375
4
[]
no_license
#!/bin/sh usage() { echo >&2 "Usage: $0 -i idxdir -q query [-w workdir] dbfiles" echo >&2 "Match a query file with a set of segemehl indices" echo >&2 "[OPTIONS]" echo >&2 "-D number of differences" echo >&2 "-T number of threads" echo >&2 "-A accuracy" echo >&2 "-B best only" exit 1 } segemehldir...
true
7f475d7a8609666adec2df540033d648e431557a
Shell
mafrosis/XbmcSwitch
/config/XbmcSwitch.init
UTF-8
1,624
3.78125
4
[ "MIT" ]
permissive
#! /bin/bash ### BEGIN INIT INFO # Provides: XbmcSwitch # Required-Start: $all # Required-Stop: $all # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: starts script monitoring XbmcSwitch # Description: starts script monitoring XbmcSwitch ### END INIT INFO #############...
true
a9d8cfe284b81698f9de07e47e375ce1f3e5ce6a
Shell
taiat/scripts
/public/scp-send.sh
UTF-8
385
3.265625
3
[]
no_license
#!/bin/bash #Usage ./scp-send.sh filename #Sends entered file to selected location what is by defayt /root/. #Do ~/.ssh/config and use hostname for host question for faster usage. echo "What ssh host you want to use?" echo "Example root@example.com" read host echo "where directory to upload" $1 "?" echo "Default uploa...
true
e850662a73fcdcce83c610a0ad172a2f3be9c96d
Shell
androidx/androidx
/profileinstaller/cli/showcompiledclasses.sh
UTF-8
1,601
3.8125
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # # Copyright 2021 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
true
076af9eacdbf8d22739b9f6a73a194137fdba35b
Shell
bilalghouri/sic
/modules/mongodb.sh
UTF-8
2,504
3.9375
4
[ "MIT" ]
permissive
#!/bin/sh source ./lib function configure_package() { show_message "Configuring mongodb..." show_message "\tStopping mongod..." systemctl stop mongod.service >> /tmp/install.log 2>&1 show_result $? show_message "\tCreating /home/data..." mkdir -p /home/data >> /tmp/install.log 2>&1 show_...
true
d0d382ed62091cffdcfc3d1ed4362d779aa9c728
Shell
blesscat/dotfiles
/winbuntu/install_packages.sh
UTF-8
119
2.515625
3
[]
no_license
#!/bin/bash cat ./config.json | jq -M -r '.packages[]' | while read -r package; do sudo apt install -y $package done
true
67e284973a0833eff09d0f3a0da68dfcac25142c
Shell
SlushSkull/dotfiles
/.aliases
UTF-8
1,111
3.296875
3
[]
no_license
# vi: ft=sh # This file is sourced by .shrc # Update packages update() { doas sh -c 'mount /boot; emerge --sync && emerge -auND @world && emerge -ac' } alias sw='startw' alias sx='startx' alias :q='exit' alias :wq='exit' alias :e='${EDITOR:-vi} ' alias e='exec ' # Interactive mode alias cp='cp -i' alias mv='mv -i...
true
73a4a76c5ca6ef210d05a6a43e34a36c9c8806f5
Shell
kitimark/bashscript
/590610626/Batch.sh
UTF-8
97
2.90625
3
[]
no_license
i=1 while [ "$i" -le 5 ] do echo "$i" echo 'Hello linux!' > file$i.dat i=`expr $i + 1` done
true
25e166db8c52639a4919080fa5d5bbd88f4cfd50
Shell
dlux/vagrant-k8s
/setup_localhost.sh
UTF-8
1,312
4.28125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # Description: Install and setup vagrant and [virtualbox or libvirt] # Tasks: # - Install vagrant # - Install vagrant hypervisor provider either virtualbox or libvirt # Optional Parameters: # -x proxy # -p provider # Tested on OS: Centos7.6 set -o xtrace xtrace _PROVIDER='libvirt' # If proxy...
true
51e2be682c361568a5f499a9cc54ff054876ec98
Shell
n1amr/dotfiles
/bin/testnet
UTF-8
445
3.578125
4
[ "MIT" ]
permissive
#!/bin/bash set -e hosts=( 192.168.1.1 192.168.1.20 google.com ) echo "Checking http://google.com" test_google() { timeout 10 sh -c 'curl -I http://google.com > /dev/null 2>&1' } if ! test_google; then for h in "${hosts[@]}"; do break echo -ne "Pinging $h...\n " ping -c...
true
3a867079ca076b595fc8e5b48397ca11e141d1d9
Shell
taylor/bin
/screen-layout
UTF-8
659
3.796875
4
[]
no_license
#!/bin/bash layout=$1 # Use lxrandr or arandr to create the profiles for this # AND/OR use autorandr --save to save the profile for auto use if [ -z "$layout" ] ; then echo "usage: $0 <layout>" exit 0 fi if [ "$layout" = "auto" ] ; then xrandr --auto if [ -x /usr/bin/autorandr ] ; then autorandr -c fi...
true
e1e8a031da7b765be829a4b79d9dec076e2d893f
Shell
sgnoohc/VBSHWWBabyLooper
/scripts/hadd_UL.sh
UTF-8
5,186
3.15625
3
[]
no_license
# Help usage() { echo "ERROR - Usage:" echo echo " sh $(basename $0) STUDYNAME TAG BABYVERSION" echo exit } if [ -z ${1} ]; then usage; fi STUDY=${1} if [ -z ${2} ]; then usage; fi TAG=${2} if [ -z ${3} ]; then usage; fi BABYVERSION=${3} # YEARS="2016 2017 2018 Run2" YEARS="2017 2018" rm .haddjobs.txt...
true
a116ed5dee7dbfd337463438fdd330d5fafe5a49
Shell
yaise/clic
/setup
UTF-8
605
4.03125
4
[]
no_license
#!/bin/sh set -e function announce() { echo "\x1B[1;32mINFO:$@ \x1B[0m" } function warn() { echo "\x1B[1;33mWARN:$@ \x1B[0m" } function setup_zsh(){ if command -v zsh &>/dev/null; then [ ${SHELL##*/} = "zsh" ] || { announce "Changing default shell to zsh"; chsh -s $(which zsh) ...
true
86bbf19c5d5526f8ef2c26a91deb235aba823e01
Shell
binarybana/ulogme
/note.sh
UTF-8
431
4.21875
4
[ "BSD-2-Clause" ]
permissive
#!/bin/bash # allows the user to simply record a note, saves it together with unix time in notes/ mkdir -p logs read -p "Enter note: " n if [ -z $1 ] then # $1 was provided, use it echo "saving new note \"$n\" for current time ($(date))" T="$(date +%s)" echo "$T $n" >> logs/notes.txt else # no $1 prov...
true
b2b1e6338f02eb5b3f525db981abdfc1cb53462f
Shell
ksiazkowicz/dotfiles
/.zshrc
UTF-8
7,447
3.0625
3
[]
no_license
os=`uname -s` # If you come from bash you might have to change your $PATH. export PATH=$HOME/.local/bin:$HOME/bin:/usr/local/bin:$PATH export GOPATH=$HOME/go ZSH_CUSTOM=$HOME/Development/dotfiles/zsh # Mac specific stuff if [ $os = 'Darwin' ]; then export PATH="$PATH:$HOME/Library/Android/sdk/platform-tools" # S...
true
699d2efcdbfb709612faa441daed96ded15504ea
Shell
baseboxorg/plugn
/example/demo
UTF-8
531
3.703125
4
[ "MIT", "BSD-3-Clause" ]
permissive
#!/bin/bash main() { echo "This demo application is extensible with plugins." echo echo "Here are the plugins currently available:" ./plugn list echo echo "You can enable plugins with:" echo ' $ plugn enable <plugin>' echo ./plugn enable example-plugin1 example-plugin2 echo echo "Now, on to the demo. What ...
true
1004ad60274197c15bf3f3844053db24f3f09c5d
Shell
Fullplate/findcmd
/findcmds.sh
UTF-8
1,087
4.34375
4
[]
no_license
#!/bin/bash if [ $# != 1 ]; then echo "Invalid arguments, exiting." exit 2 fi # store default so printing duplicates later is avoided DEFAULTPATH=`which $1 2>/dev/null` # if first two characters of the 'which' are no, # then there is no default path for the command if [ `echo $DEFAULTPATH | cut -c1-2` == "no" ]; t...
true
a4bffe92612aef31703a50f2a54efd3501a7f8fb
Shell
jpyper/bash-scripts
/get-makemkv-key.sh
UTF-8
7,037
3.75
4
[ "MIT" ]
permissive
#!/bin/sh scriptversion="trunk" scriptlastedit="20200620" scriptauthor="John Pyper" scriptsite="https://github.com/jpyper/bash-scripts" ################# ### [ ABOUT ] ### ################# # -=[ MAKEMKV BETA REGISTRATION KEY RETRIEVER ]=- # # Quick script to get the most current MakeMKV registration key while it is ...
true
55c10e0f4091299e1b8eaa5eefa42211e920434a
Shell
eric-brechemier/ipcc-countries
/sources/wikidata.org/Q974/step1/acquire.sh
UTF-8
401
3.125
3
[ "CC0-1.0" ]
permissive
#!/bin/sh cd "$(dirname "$0")" # read URL from meta.txt url=$(grep '^URL:' ../meta.txt | cut -d' ' -f2) # read file name from meta.txt file=$(grep '^File:' ../meta.txt | cut -d' ' -f2) # read userAgent from property file . ./userAgent.property.sh curl \ --silent --show-error \ --user-agent "$userAgent" \ --ti...
true
543799b6dc8a38a4c0f8b3fd2236f8d70ffb2cf3
Shell
miklasz/cloud-init-bm
/bartron-init.sh
UTF-8
1,027
2.96875
3
[]
no_license
#!/bin/bash # Add my user useradd -m -s /bin/bash bart mkdir /home/bart/.ssh chown bart:bart /home/bart/.ssh touch /home/bart/.ssh/authorized_keys touch /home/ubuntu/.ssh/authorized_keys cat > /home/bart/.ssh/authorized_keys <<EOF ssh-rsa key-goes-here bart@home EOF cat > /home/bart/.ssh/authorized_keys<<EOF ssh-rsa k...
true
62279871c0e7c3e2ccd48cdaf6b1d7835a7ba7cc
Shell
jorgemoralespou/asciibinder-lighttpd-s2i
/.sti/bin/assemble
UTF-8
1,376
3.5625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash -e # # S2I assemble script for the 'asciibinder-lighttpd-s2i' image. # The 'assemble' script builds your application source ready to run. # # For more information refer to the documentation: # https://github.com/openshift/source-to-image/blob/master/docs/builder_image.md # echo "---> Installing applicati...
true
b7cb28eb8f16e2d924828d5690ab0c22768c78df
Shell
fzf/qmk_toolbox
/util/wsl_install.sh
UTF-8
2,512
4.09375
4
[ "GPL-2.0-only", "LicenseRef-scancode-other-copyleft", "BSD-3-Clause", "GPL-3.0-or-later", "LGPL-2.0-or-later", "LGPL-2.1-or-later", "LicenseRef-scancode-warranty-disclaimer", "GPL-1.0-or-later", "GPL-3.0-only" ]
permissive
#!/bin/bash util_dir=$(dirname "$0") dir=$(cd -P -- "$util_dir" && pwd -P) pushd "$dir"; if [[ $dir != /mnt/* ]]; then echo echo "You need to clone the qmk_firmware repository outside the linux filesystem." echo "Otherwise the windows executables can't be run." exit 1 fi while true; do echo ...
true
5837e9bdb331a5dde7ea277f690cda316786ba2b
Shell
bpabel/sgactions
/sgactions/browsers/Chrome/native.sh
UTF-8
777
3.109375
3
[]
no_license
#!/bin/bash # Source the environment, but leave it as is if there is already something # there so that dev-mode works. if [[ "$VEE" == "" && "$KS_TOOLS" == "" ]]; then echo "[SGActions] sourcing environment" >&2 source ~/.bashrc fi # Debugging info; gets sent to the console. export SGACTIONS_NATIVE_SH="$0" export S...
true
f495359e9458a7590f06268d5411a329545d52e7
Shell
openzero-team/project-config
/nodepool/elements/openzero/bin/install_pyenv
UTF-8
737
3.203125
3
[]
no_license
#!/bin/bash function install_pyenv { cd ~ curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash git clone https://github.com/yyuu/pyenv-virtualenvwrapper.git $PYENV_ROOT/plugins/pyenv-virtualenvwrapper cat > ~/.bash_profile <<EOF export PYENV_ROOT=/opt/.pyenv...
true
af1be01b8a774b74296531b684d10371ac8dfeb3
Shell
neikei/SpectrumScaleVagrant
/setup/demo/script-02.sh
UTF-8
1,258
3.453125
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/bash # Improve readability of output echo "=========================================================================================" echo "===>" echo "===> Running $0" echo "===> Add second storage pool to filesystem fs1" echo "===>" echo "==================================================================...
true
3600ad02690a8f915f2c5b0f085a3d48d8126a23
Shell
christinahw/inflammation
/bash_profile
UTF-8
657
3.390625
3
[]
no_license
function pathComponents { echo $1 | sed "s|^$HOME|~|" | awk -v n=$2 '{ # Split the path into components componentCount = split($0, components, "/"); # If there are less than n components, just print the whole path if (componentCount <= n) { print $0 } else { ...
true
e476f4105c0125ae9853e7e9e9680ee2c2fb1e78
Shell
ddouglas-uk/GenEditID
/shell/setup_geneditid.sh
UTF-8
777
2.9375
3
[ "MIT" ]
permissive
#BASEDIR=$(dirname "$0")/.. BASEDIR="$( cd "$(dirname "$0")" ; pwd -P )"/.. cd $BASEDIR echo 'Creating Python3 virtual environment' python3 -m venv venv source venv/bin/activate echo 'Installing GenEditID dependencies' pip install -e python/. echo 'Copying GenEditID configuraton file' cp python/dnascissors/geneditid...
true
2888bd7b33965b75092cb24a1633bcef17e5ea87
Shell
sdarshanam/zsh-snap
/functions/znap
UTF-8
1,100
3.453125
3
[ "MIT" ]
permissive
#!/bin/zsh zmodload -F zsh/zutil b:zparseopts znap() { if (( $#@ > 0 )); then local -A opts1=() zparseopts -D -A opts1 - h -help if (( $#@ == 0 )); then .znap.help return fi local cmd=$1; shift case $cmd in cd | ls ) print -u2 'znap: try `'"$cmd ~${${1:+[$1]}:-znap...
true
8e57463ad4a2b992fe9f0fc2657985bf4cd49835
Shell
triploit/Kalzit
/utilities/cli/get/subUtilityNames.sh
UTF-8
109
3.140625
3
[]
no_license
for filename in ./utilities/cli/$1/*.sh do if [ -f "$filename" ] ; then basename "${filename%.*}" fi done
true
1ba9d982cd18303b5999b7f2b3ffb0101c9a1d80
Shell
Test202010/FewCLUE
/baselines/models_pytorch/LM-BFF/generate_template.sh
UTF-8
870
2.578125
3
[]
no_license
# TASK=tnews for TASK in eprstmt bustm ocnli csldcp tnews cluewsc iflytek csl do for split in 1 2 3 4 "few_all" do echo "Generate templates for task $TASK, split $split" python tools/generate_template.py \ --data_dir data/k-shot/$split \ --output_dir my_auto_template/$sp...
true
705dca7fccd5f056697630739bb25557b83d2372
Shell
appcelerator-archive/amp-demo-service
/start.sh
UTF-8
1,238
3.640625
4
[]
no_license
#!/bin/bash echo "CONSUL: "$CONSUL echo "DEPENDENCIES: "$DEPENDENCIES if [ -z "$CONSUL" ]; then exec node dist/app.js else #update containerpilot conffile sed -i "s/\[consul\]/$CONSUL/g" /etc/containerpilot.json sed -i "s/\[loglevel\]/$CP_LOG_LEVEL/g" /etc/containerpilot.json sed -i "s/\[poll\]/$CP_POLL/g" /...
true
f5609e65429f1b749a80df756b04de01ad3e3d26
Shell
Menutra/catalyst-cli
/scripts/build-release.sh
UTF-8
2,792
4.1875
4
[ "MIT" ]
permissive
#!/bin/sh set -o errexit TAG_VERSION=$1 BUILD_DIRECTORY=$2 function usage() { echo "This script builds the dynamically and statically linked version" echo "and generates the checksum files of the TurtleCoin tag provided." echo echo "USAGE: $0 <tag> <build-directory>" echo exit 1 } function c...
true
d1dd9be3ff2dec28872f27158d0fbde40f683911
Shell
ajcj151/ecdl
/scripts/create.sh
UTF-8
187
2.875
3
[]
no_license
#!/bin/bash if [ $# != 3 ]; then echo "Usage: create <host:port> <json file> <name>" exit 1 fi curl --verbose -H "Content-Type: application/json" --data @$2 http://$1/create/$3
true
513407aaf864142eb5748a73cb10d7d393739ec3
Shell
gusugusu1018/.dotfiles
/ubuntu-cuda-install/install-nvidia-driver.sh
UTF-8
682
3.984375
4
[]
no_license
#!/bin/bash readonly VERSION="375.39" readonly FILENAME="NVIDIA-Linux-x86_64-${VERSION}.run" readonly FILEURL="http://jp.download.nvidia.com/XFree86/Linux-x86_64/${VERSION}/${FILENAME}" InstallProcess() { echo "sudo stop lightdm" sudo stop lightdm sudo apt-get remove nvidia* && sudo apt-get autoremove cd $H...
true
5144989bdf984c6f77fed247d7e6d005afc9c754
Shell
EdulibreOS/edulibre-apps
/gbTerminal/postinst1
UTF-8
477
3.15625
3
[]
no_license
#!/bin/sh set -e case "${1}" in configure) update-alternatives --install /usr/bin/x-terminal-emulator \ x-terminal-emulator /usr/bin/gbTerminal 40 \ ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`${1}'" >&2 exit 1 ;; esac # Automatically adde...
true
d2b522fa5855bb18fac32eb58acbe627ca3a70bc
Shell
p0rkjello/dotfiles
/bash/.bash_archlinux
UTF-8
2,741
3.8125
4
[]
no_license
#!/bin/bash # bash_archlinux # Arch specific # Pacman aliases alias pacupg='sudo pacman -Syu' # Synchronize with repositories and then upgrade packages that are out of date on the local system. alias pacdl='pacman -Sw' # Download specified package(s) as .tar.xz ball alias pacin='sudo pacman -S' # Instal...
true
5b115641f76e2a927139783e817cce31fc85fef1
Shell
zswgzx/iit
/scripts/others/PARconv_v1.12.sh
UTF-8
19,755
3.609375
4
[]
no_license
#!/bin/bash # converts PARREC to nii. # uses FSL (v 3.3 or 4.0) to do so. # version 1.8 # last modified 25 April 2008 to rotate out bvec data so it is patient space. # version 1.9.1 April 2009. Modified to include the -Q option # which includes a rotation matrix in the header, with no rotation. # so that images are ...
true
274b96d9d08a1fd492062c9e4894c760a309f994
Shell
mykhailo-s/task6_7
/vm1.sh
UTF-8
1,853
3.8125
4
[]
no_license
#!/bin/bash # reverse proxy nginx and backend apache #VERBOSE=true #clear config_file="vm1.config" # config file with initiative network parameters # check for root if [ "$UID" -ne 0 ] then echo "Error in ($0): Current user is not the root! Please restart this task under the root" >&2; exit 126; fi # echo "$(pw...
true
a83eca6dad1988e308dd910271932954de48eb96
Shell
input-output-hk/cardano-ops
/scripts/create-libvirtd.sh
UTF-8
730
2.625
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -euxo pipefail cd "$(dirname "$0")/.." # https://nixos.org/nixops/manual/#idm140737322394336 # Needed for libvirtd: # # virtualisation.libvirtd.enable = true; # networking.firewall.checkReversePath = false; # See also: https://github.com/simon3z/virt-deploy/issues/8#issuecomment-73111541 if...
true
62f728194d2cb3a2d756c90c3aca882983a48bd9
Shell
Viomi/dotfiles
/bin/workspace.sh
UTF-8
272
3.0625
3
[]
no_license
#!/bin/bash # $1 = false,true SHIFT SHIFT=$1 # $2 = false,true ALT ALT=$2 # $3 = 1-3 LEFT=$3 RIGHT=$3+3 if [[ $SHIFT == true ]]; then bspc node -d ^1:^$LEFT elif [[ $ALT == true ]]; then bspc node -d ^2:^$RIGHT fi bspc desktop -f ^1:^$LEFT bspc desktop -f ^2:^$RIGHT
true
63aa49251e5dcde0a3237394406ddbfcf4453393
Shell
Burning-Chai/google-cloud-gui
/build.sh
UTF-8
509
3.078125
3
[ "MIT" ]
permissive
#!/bin/bash CURRENT_DIR=$( cd "$(dirname "$0")" || exit pwd ) echo "${CURRENT_DIR}" echo "##" echo "## Re Make build directly" echo "##" cd "${CURRENT_DIR}" || exit rm -fr build mkdir -p build echo "##" echo "## Copy README.md" echo "##" cp README.md build/ echo "##" echo "## Build server side" echo "##" cd "...
true
99fbab9c20fcd4af1a46a41f4003857cc2ddef53
Shell
anubisant/AntiLdapInjection
/scripts/release.sh
UTF-8
7,807
3.890625
4
[ "MS-PL", "MIT" ]
permissive
#!/usr/bin/env bash # Stop script on non-zero exit code set -e # Stop script if unbound variable found (use ${var:-} if intentional) set -u # By default cmd1 | cmd2 returns exit code of cmd2 regardless of cmd1 success # This is causing it to fail set -o pipefail # shellcheck disable=SC2005,SC2034,SC2155 readonly SCRI...
true
b705cefc2450efac19a774a0b6be78d1fa843343
Shell
guruvan/gentoo-bb
/dock/guruvan/images/encompass-mercury/etc/service/encompass-mercury/run
UTF-8
2,310
3.296875
3
[ "BSD-2-Clause" ]
permissive
#!/bin/sh set -e # note this depends on being on a phusion base image # other applicatiosn need another method to pass ENV values if [ ! -f /etc/encompass-mercury.env ] ; then cat >/etc/encompass-mercury.env<<END USER=${USER:-coin} ENCOMPASS_MERCURY_HOSTNAME=${ENCOMPASS_MERCURY_HOSTNAME:-${HOSTNAME}} ENCOMPASS_MERCURY_...
true
1440ad3658a913be145610a10ba90381f5e0e0cb
Shell
MyXelf/mx-dot-files
/bash/bash_profile
UTF-8
1,822
3.671875
4
[ "MIT" ]
permissive
#!/bin/bash # ~~~~~~~~~~~~~~~~~~~~~~~~~ # bash_profile (MXDF::BASH) # ~~~~~~~~~~~~~~~~~~~~~~~~~ # Define MXDF as the active Dot Files export MXDF_ACTIVE=1 # Path to the BASH section export MXDF_BASH=$HOME/.bash # Path to the BIN section (binaries directory) export MXDF_BIN=$HOME/.bin # Path to the 'Volatile' works...
true
e594e98e7b77bc2f9508def85c306233a5f54698
Shell
jfkquality/AirBnB_clone_v2
/0-setup_web_static.sh
UTF-8
637
3.265625
3
[]
no_license
#!/usr/bin/env bash # Setup web static sudo apt-get update -y sudo apt-get -y install nginx sudo mkdir -p /var/www/html sudo mkdir -p /data/web_static/{releases/test,shared} cat <<EOF > /data/web_static/releases/test/index.html <html> <head> </head> <body> Holberton School </body> </html> EOF sudo ln -sf /d...
true