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
3b07b7e96d6154428f9e1534f8e4480a7808fb48
Shell
serverfarmer/sf-net-utils
/get-interface-ip.sh
UTF-8
217
3.3125
3
[ "MIT" ]
permissive
#!/bin/sh iface=$1 if [ "$iface" != "" ]; then ( if [ -x /sbin/ifconfig ]; then /sbin/ifconfig $interface |grep inet else /sbin/ip addr |grep $iface$ fi ) |egrep -o '([0-9]{1,3}\.){3}[0-9]{1,3}' |head -n1 fi
true
3949f3122418e161d6634d6c6b6ab1e1bcc1823e
Shell
crispd/cs-studio
/build/sync-diirt.sh
UTF-8
7,455
3.234375
3
[]
no_license
#!/bin/bash # sync_dir dir src_location dest_location # e.g. sync_dir util $HGDIR/src/main/java/org/epics ../core/plugins/org.epics.util/src/org/epics/ function sync_dir { find $2/$1 -type f -exec grep -qI '' {} ';' -exec perl -pi -e 's/\r\n/\n/g' {} '+' rsync -r --delete $2/$1 $3 git add $3/$1 } # Go int...
true
470a6094bcc1097b8d2f7429b4da7f17d1dcebed
Shell
ik5/apex-up-aur
/PKGBUILD
UTF-8
987
3.0625
3
[]
no_license
# $Id$ # Maintainer: Ido Kanner <idokan@gmail.com> pkgname=apex-up _pkgname=up pkgdesc="Deploy infinitely scalable serverless apps, apis, and sites in seconds to AWS" pkgver=1.5.1 pkgrel=1 arch=('i686' 'x86_64') license=('MIT') url='https://up.docs.apex.sh/' provides=('apex-up') noextract=() makedepends=('binutils') [...
true
fd4df1466107459b51c60438cfc3c04d6eddcf47
Shell
andres0sorio/LHCbWork
/ThreeAngles/lsf/output/analyseJobs.sh
UTF-8
278
3.453125
3
[]
no_license
#!/bin/bash if [ $# -lt 1 ] then echo "usage:: $0 <log file>" exit 1 fi INFILE=$1 LIM=`wc -l < $INFILE` var='1' while [ "$var" -le "$LIM" ] do LINE=`sed -e $var!d $INFILE` NJOB=`echo $LINE` dir=${NJOB%%res*out} echo $dir var=$(($var+1)) done
true
38fc786de9976dde7de6afea23336d42a3290239
Shell
keanlee/OpenStack-Deploy
/monitor-zabbix/zabbix-deploy/monitor-deploy-agent/install-zabbix-agent/script/common/serviceexist.sh
UTF-8
868
3.703125
4
[ "Apache-2.0" ]
permissive
#!/bin/sh #:*********************************************** #:Program: # check if service exists, 1~3 input parameters. # if service exists, will print 1, others will print 0 # case ($2= aaa, $3 = aa) is not handled. # $1 is service name #: #:Author: keanli #: #:History: 2017-06-20 #: #:Version: 1.0 #:*****************...
true
96a91b25510248b11f2d0a03ae4eaaaf6c0bd954
Shell
michaelaw320/ffmpeg-aws-dispatcher
/Scripts/MainEncodeScript.sh
UTF-8
1,183
3.65625
4
[ "MIT" ]
permissive
#!/bin/bash # Change to current script dir cd "$(dirname "$0")" PROJECT_PATH="$1" INPUT_PATH="$2" OUTPUT_PATH="$3" FFMPEG_PATH="$4" # Set variables according to parameter source "$PROJECT_PATH/EncoderConfiguration.txt" case $video_codec in "h264") ENCODER_SCRIPT="./H264Encoder.sh";; "h265") ENCODER_SCRIPT="...
true
4dc2b9318a6a5edcf3264202c1bbca48da3df577
Shell
shayan-taheri/ansible-mesos
/roles/load-balancer/templates/haproxy_marathon.j2
UTF-8
1,753
3.859375
4
[]
no_license
#!/bin/bash # # Create haproxy config file from Marathon for given app id set -o errexit set -o nounset set -o pipefail readonly MARATHON_APP_ID='hatch-nginx' readonly MARATHON_APP_PORT_INDEX=1 readonly TMP_FILE=$(mktemp /tmp/XXXXXXXXXX) readonly CONFIG_FILE=/etc/haproxy/haproxy.cfg function header() { cat <<EOF glo...
true
7ffad6a45f3293c23c744cf1afff5ff81ee5eb10
Shell
khainb/JUMBOT
/partial_DA/run.sh
UTF-8
2,542
2.578125
3
[ "MIT" ]
permissive
#!/bin/bash -l # # Des paramètres sbatch peuvent être spécifiés dans ce fichier sous la forme : #SBATCH <param> # Les paramètres d'appels sont prioritaires # # > man sbatch # # Nom du job #SBATCH --job-name=PDA_OH_UOT_all # # Fichier de sortie d'exécution #SBATCH --output=results/OH_PDA_UOT_reproduced.log # # Autres p...
true
9aefb09cfe2f95df8c7c23688207cb05de695692
Shell
sd/dotfiles
/zsh/oh-my-zsh-custom/sd-terminal.zsh
UTF-8
799
3.34375
3
[]
no_license
# Customization of the precmd and preexec functions provided by lib/termsupport.zsh DISABLE_AUTO_TITLE=true SD_THEME_TERM_TAB_TITLE_IDLE="%15<..<%~%<<" #15 char left truncated PWD SD_THEME_TERM_TITLE_IDLE="%n@%m: %~" # Runs before showing the prompt function sd_termsupport_precmd { emulate -L zsh title $(basena...
true
e466ec8ab4ac3011500a4981bc1dcb4205c8173c
Shell
0leksandr/bin
/utils/random_word.sh
UTF-8
895
3.171875
3
[]
no_license
#!/bin/bash dics_dir="/home/nezhraba/_/Parallango/dics" dic_file="${dics_dir}/ukr/ukr.txt" dir="$(dirname $0)" case $# in 0) while :; do # nr_lines="$(wc -l ${dic_file} |sed -r 's/^([0-9]+) .*$/\1/')" # line_nr=$(_rand $nr_lines) # line="$(sed "${line_nr}q;d" ${dic_file...
true
3b22f18ef201c348477acf71c28bca30e8738b0c
Shell
Francesco149/docker-dots
/bashrc.sh
UTF-8
8,545
2.8125
3
[]
no_license
#!/bin/sh export VISUAL=vim export EDITOR=$VISUAL if [ -f ~/.term ]; then term=$(cat ~/.term) export TERMINAL="$term" else export TERMINAL=uxterm fi export GPG_TTY=$(tty) export GPG_AGENT_INFO=${HOME}/.gnupg/S.gpg-agent:0:1 source <(gopass completion bash) export BROWSER=url-open export TIMEZONE="Europe/Rome" ex...
true
cd4d2099fb9af92f9719b20df2e1150aa13e5c70
Shell
klown/MorphicLiteClientMac
/Morphic/Morphic/CreateDiskImage.sh
UTF-8
1,534
3.453125
3
[ "BSD-3-Clause" ]
permissive
#!/bin/sh # CreateDiskImage.sh # Morphic # # Created by Owen Shaw on 5/29/20. # Copyright © 2020 Raising the Floor. All rights reserved. echo "---- Running CreateDiskImage.sh -----" TEMPLATE_NAME="MorphicTemplate.dmg" MOUNT_PATH="MorphicInstaller" APP_NAME="${PRODUCT_NAME}.app" COMPRESSED_TEMPLATE_PATH="${SRCROO...
true
b5fed0949e1f19302f2486c3afdbc07edbf36e60
Shell
harjuo/jemma
/integration_test.sh
UTF-8
845
2.703125
3
[]
no_license
#!/bin/bash cargo build target/debug/jemma 5000& pid=$! get=$(curl -s http://localhost:5000/this/is/test) if [[ $get =~ "0" ]]; then echo "GET OK" else echo "GET not OK" kill "$pid" exit 1 fi curl -s -X POST http://localhost:5000/this/is/test if [[ $? -eq 0 ]]; then echo "POST OK" else echo...
true
e937eebb37be636c1845c2292cb7c059b5689075
Shell
iftikhar8/UK-tree-epidemic-simulator
/test_py/pde_test/2D_model/output_data/animate.sh
UTF-8
338
2.640625
3
[]
no_license
#!/bin/bash rate1=15 rate2=30 # convert .npy files to matplotlib generated .png's python3 animate.py # convert images to MP4 file ffmpeg -r $rate1 -start_number 0 -i frames_2_anim/img-%05d.png -c:v libx264 -r $rate2 -pix_fmt yuv420p sim-anim.mp4 # remove temp data # rm-rf frames_2_anim/img* # rm -rf test/ echo "an...
true
a4229cf570d71c7176a730e95918abbcec49ab0d
Shell
MrRomo/SistemasEmbebidos
/primer seguimiento/clases/listas y estructuras/mrcompiler.sh
UTF-8
150
2.796875
3
[]
no_license
echo "MrRomo Compiler****" $1 file=$1 filec="${file//.c/ }" echo "compilando $file" mkdir output gcc -o output/$filec -lm $file ./output/$filec
true
c082a46405393de11a0d4b730badc5e5dffd931a
Shell
sneakyx/egroupwareserver_extended
/assets/docker-entrypoint.sh
UTF-8
2,719
3.75
4
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e # this is a fork of docker-entrypoint.sh of jrenggli (see also visol/egroupware) # made by sneaky of Rothaar Systems (Andre Scholz) # V2019-02-04-17-40 # Replace {key} with value set_config() { key="$1" value="$2" php_escaped_value="$(php -r 'var_export($argv[1]);' "$value")" sed_escaped_va...
true
fe096ad1a4858716913155c7e94f50013a962c42
Shell
rknizzle/faas
/v2/code-snippets/try-docker-calls-in-docker/run.sh
UTF-8
1,185
3.078125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # build the image docker build -t try-docker-calls-in-docker-image . # run without having access to the hosts docker daemon socket. we are expecting this container to # fail because it wont have access to a Docker daemon to run the docker pull command docker run --rm try-docker-calls-in-docker-ima...
true
7acf2fc481049f292e0cbc63ad12e7e9ff31f7f8
Shell
HazyResearch/mindbender
/dashboard/dashboard-ls-snapshots
UTF-8
490
3.25
3
[]
no_license
#!/usr/bin/env bash # dashboard-ls-snapshots -- List all snapshots in the DeepDive app # > dashboard-ls-snapshots # # Author: Jaeho Shin <netj@cs.stanford.edu> # Created: 2015-04-21 set -eu DEEPDIVE_APP=$(find-deepdive-app) export DEEPDIVE_APP cd "$DEEPDIVE_APP"/snapshot # we recognize as a snapshot when a directory...
true
60f938a9f1d90ca67880f25a4529de80f4843bb1
Shell
aafrecct/dotfiles
/Files/zshrc
UTF-8
1,304
2.625
3
[]
no_license
# History: HISTFILE=~/.histfile HISTSIZE=1000 SAVEHIST=1000 # Options: setopt autocd extendedglob PROMPTSUBST unsetopt beep nomatch notify # Keybindings: bindkey -e # Add local bin to path: PATH+=:$HOME/.local/bin # Add pure prompt to fpath: fpath+=$HOME/Dotfiles/Files/zshplugins/pure # Load modules: autoload -Uz...
true
e620a07b2f9caabf1e272076ca857ef5a4b0c7a9
Shell
nkibbey/word2vecTemporal
/scripts/old/pubmedxmlToTextByYear.sh
UTF-8
2,012
3.4375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash YEARSTART=1990 YEAREND=2000 curr_year=${YEARSTART} :<<NAH #takes 4 seconds per xml out to year while [ ${curr_year} -le ${YEAREND} ] #first iteration writes files do cat <<EOF | sh touch outs${curr_year}.txt xmlstarlet sel -t -v "//PubmedArticle[.//PubDate/Year=${curr_year}]//AbstractTex...
true
82fc7b9c20829b2192f6f8cc03075ad9da0552b2
Shell
angellovc/holberton-system_engineering-devops
/0x14-mysql/5-mysql_backup
UTF-8
193
2.71875
3
[]
no_license
#!/usr/bin/env bash #generates a MySQL dump and creates a compressed archive out of it mysqldump -uroot -p"$1" --all-databases > backup.sql date=$(date '+%Y-%m-%d') tar -zcvf "$date.tar.gz" ./
true
df07ef269685c0a564cafe0c5f676ae9949892e1
Shell
bagustris/VibrasticLab
/bash/bulkResample.sh
UTF-8
210
2.9375
3
[]
no_license
#!/bin/bash # resample 48k to 16k using sox # for 24 bit to 16, use: "-b 16"" if [ ! -d converted/ ]; then mkdir converted/ fi for i in ./*.wav;\ do sox -S "$i" -r 16000 "converted/${i%.wav}_16k.wav";\ done
true
67fca21d9799bf392d5c318461cda55307bf000d
Shell
suhail-sullad/Test-SSL-server-with-WolfSSL
/generate_certificate.sh
UTF-8
865
3.390625
3
[]
no_license
#!/bin/bash cert_folder="./test/"; host_count=1; rsa_bits="2048"; cert_days="81"; cert_out_file="someFileName"; cert_country="SomeCountry"; cert_state="SomeState"; cert_locality="SomeLocality"; cert_organization="SomeOrg"; cert_organization_unit="SomeOU"; cert_domain="example.org"; if [ -d $cert_folder ]; then echo "C...
true
2221a8c6e9b23b434aabf68980049b7f8cf5d105
Shell
gramer/shell-env
/macox/.bashrc
UTF-8
1,632
3.046875
3
[]
no_license
# .bashrc # System-wide .profile for sh(1) if [ -x /usr/libexec/path_helper ]; then eval `/usr/libexec/path_helper -s` fi if [ "${BASH-no}" != "no" ]; then [ -r /etc/bashrc ] && . /etc/bashrc fi ########################################################### # Colors & Theme ###########################################...
true
bc48d8cb444475688252ec1387388fcc7474b39c
Shell
mt3593/grafana-backup
/bin/backup.sh
UTF-8
1,956
4.03125
4
[]
no_license
#!/bin/bash set -eo pipefail MISSING_ENV_VARS=false has_env() { local env_name="$1" local value=$(eval "echo \"\$$env_name\"") if [ -z "$value" ]; then echo "Missing environment variable: $env_name" MISSING_ENV_VARS=true fi } has_env "GIT_NAME" has_env "GIT_EMAIL" ## The following are used to constru...
true
966cea7cb9262cbe1ff80f76ac1647a1f673bc91
Shell
ioppermann/munin-contrib
/plugins/cacti/cacti-host
UTF-8
861
3.546875
4
[]
no_license
#!/bin/bash # # Munin script to obtain the number o hosts # by kasandrapadisha@gmail.com # #----- Configuration variables database="cacti" hostname="localhost" user="admincacti" password="passwdcacti" #----- Configuration variables if [[ $1 != "" ]]; then if [[ $1 == "autoconf" ]]; then ...
true
2e1753f36fa40de526a753577d03a93f5f1e6c30
Shell
h2gglobe/UserCode
/h2gglobe/Macros/jackknife/getNevents.sh
UTF-8
470
3.078125
3
[]
no_license
#!/bin/bash dir1=$1 && shift dir2=$1 && shift npart=321 [[ -n $1 ]] && npart=$1 && shift echo -n "-1," awk '/Number of events in the tree/ { printf "%d," ,$7 }' $dir1/split.log awk '/Number of events in the tree/ { print $7 }' $dir2/split.log for part in $(seq 0 $npart); do echo -n $part"," grep "partition ...
true
0870870dba2ff3c7138c44784b5fb8980803baef
Shell
kurogane13/Vagrant_VM_Deployer
/vm_name.sh
UTF-8
1,116
3.234375
3
[]
no_license
echo "###########################################" echo "VAGRANT NAME PROVISIONING SCRIPT" echo "###########################################" echo "Enter a name for your Vagrant VM, and press" echo "enter..." read my_vmname echo "-------------------------------------------" echo "YOU ENTERED: $my_vmname" echo "--------...
true
b0ba7977025f8bc04a3208e2e7c1217cc07153ba
Shell
boyddensmore/linuxscripts_Public
/scriptupdate.sh
UTF-8
6,526
3.953125
4
[]
no_license
#!/bin/bash HOSTNAME=$(hostname) EXITFLAG=0 REPONAME=$1 if [ -z "$1" ] ; then REPONAME="linuxscripts" else REPONAME="$1" fi echo "LinuxScript Update Script" while [ $EXITFLAG -eq 0 ] ; do echo -e "\n\nRunning on repository $REPONAME" echo -e "What would you like to do? " echo -e "1. Update from GitHub" echo...
true
50af1418a2031b73389ec7e0bab2651fbd1c04f1
Shell
ipleiria-robotics/adv_robotics
/scripts/install_ROS.sh
UTF-8
2,077
2.984375
3
[]
no_license
#!/bin/sh echo "Installing ROS 2 Humble Hawksbill on Ubuntu $(lsb_release -sc)" ## This script must run using sudo ## Most information came from https://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debians.html # Check if this script is being run as root if [ `whoami` != "root" ] then echo "This script must b...
true
390610d691b98a44b908ce7739beb7b5f6e95e22
Shell
ebanx/woocommerce-gateway-ebanx
/tests/bin/test.sh
UTF-8
612
3.0625
3
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
#!/bin/bash [[ $TRAVIS_COMMIT_MESSAGE =~ ^(\[tests skip\]) ]] && echo "TESTS SKIP" && exit 0; setup_test() { echo setup_test cd $TRAVIS_BUILD_DIR/tests npm ci } run_tests() { echo run_tests setup_test cd $TRAVIS_BUILD_DIR/tests npx cypress run --config video=false --project ./woocommerce -s woocommerce...
true
c66b4d68060f9f12ea156c77aae3342cf01a5f0a
Shell
t-wissmann/dotfiles
/config/herbstluftwm/x1-docking-station.sh
UTF-8
1,475
3.40625
3
[]
no_license
#!/usr/bin/env bash ::() { echo -e "\e[1;33m:: \e[0;32m$*\e[0m" >&2 "$@" } # docking_station='043e:9a39 LG Electronics USA, Inc. USB Controls' docking_station='17ef:30ad Lenovo USB3.1 Hub' if :: lsusb |grep "$docking_station" > /dev/null ; then # get last word of last line output=$(xrandr | grep -v ...
true
262b71d7b2a1f2075f98d95b4d56e1f16fb6089a
Shell
shubham2704/serverlizedToShow
/Backend/BackendController/bash_script/virtual_env_create_ubuntu_18_x64.sh
UTF-8
446
3.203125
3
[]
no_license
#!/bin/bash PYV=$1 VIR_EN=$2 ACTION=$3 if [ "$ACTION" == "CREATE" ] then CONFIGURE_OPTS=--enable-shared /root/.pyenv/bin/pyenv install $PYV /root/.pyenv/bin/pyenv virtualenv $PYV $VIR_EN elif [ "$ACTION" == "DELETE" ] then sed -i -e "/$USERNAME/d" /etc/vsftpd.user_list ...
true
5519e6b17828e2442aab56aee1ca5cf6dc106665
Shell
gufanyi/images
/4.docker_fastdfs配置/fastdfs_nginx.sh
UTF-8
1,186
2.796875
3
[]
no_license
#!/bin/bash echo 'download fastdfs-nginx-module' wget https://github.com/happyfish100/fastdfs-nginx-module/archive/master.zip echo 'decompression fastdfs-nginx-module' unzip fastdfs-nginx-module-master.zip echo 'download nginx 1.6.2 stable version' wget http://nginx.org/download/nginx-1.6.2.tar.gz echo 'decompressi...
true
44bf81e509c320663d3c4599999de9835ea2c212
Shell
HamletGhost/HomeScripts
/bin/sysadmin/CleanKernels.sh
UTF-8
1,775
4.0625
4
[]
no_license
#!/bin/bash CWD="$(pwd)" declare -a Kernels declare -a KernelDirs declare -i NKernels=0 declare -i nErrors=0 for Dir in "$@" ; do KernelDir="${Dir%:}" [[ -d "$KernelDir" ]] || KernelDir="/usr/src/${KernelDir}" if [[ ! -d "$KernelDir" ]]; then echo "'${Dir}' is not a directory!" >&2 let ++nErrors continue f...
true
8beab07fea2424d5047123aaf9b1f9755f4e5367
Shell
msr-ds3/coursework
/week1/students/musical_pairs.sh
UTF-8
816
3.78125
4
[]
no_license
#!/bin/bash # check for the md5sum command # if installed with coreutils, will have "g" in front of it if [ `which md5sum` ] then md5_cmd=md5sum elif [ `which gmd5sum` ] then md5_cmd=gmd5sum else echo "Please install md5sum" exit 1 fi # check for the shuf command # if installed with coreutils, will ha...
true
1db1a4a65ee16cd58fd14aa327123295ee9c7a2d
Shell
tazjel/laptop-setup
/stage_1.sh
UTF-8
328
2.6875
3
[]
no_license
#! /bin/bash agy="apt-get -y" $agy install bzr etckeeper etckeeper init $agy install vim vim-gtk $agy install autofs if ! grep -q '^/net' /etc/auto.master then sed -i '/^# *\/net/s/# *//' /etc/auto.master etckeeper commit "Enabled NFS browsing in /net in autofs" fi initctl restart autofs $agy install git g...
true
0ab4ca942f31afd9d6e093dc68fe78b8dc8047db
Shell
zaitsevihor/docker_hive
/install.sh
UTF-8
424
2.96875
3
[]
no_license
#!/usr/bin/bash #sudo docker network create --subnet=172.18.0.0/16 docker_subnet n=1 while [ $n -ne 21 ] do sudo docker build -t docker_hive -f Dockerfile . #sudo docker run --rm -it docker_hive /bin/ash #sudo docker run -t -d --rm --name docker_hive_${n} docker_hive sudo docker run -t -d --rm --name docker_hive_${...
true
1510dbb870ac0dd7df93b5c20ca1578a16732f72
Shell
cryoem/build-scripts
/build_and_package.sh
UTF-8
941
3.671875
4
[]
no_license
#!/usr/bin/env bash if [ $# -ne 3 ];then printf "\e\033[35m\n Usage: $(basename ${0}) %s %s %s\033[0m\n\n" "eman-recipe-dir" "output-dir" "construct.yaml-dir" >&2 exit 64 fi set -xe EMAN_RECIPE_DIR=$1 OUTPUT_DIR=$2 CONSTRUCT_YAML_DIR=$3 export PYTHONUNBUFFERED=1 source activate root # Build eman rec...
true
867486c65bbf8947c0dd323c58d808f574a4fd1a
Shell
jaapio/git-semver
/git-semver.sh
UTF-8
6,727
4.3125
4
[ "MIT" ]
permissive
#!/bin/bash ######################################## # Usage ######################################## usage() { cat <<-EOF Usage: $(basename-git "$0") [command] This script automates semantic versioning. Requires a valid change log at CHANGELOG.md. See https://github.com/markchalloner/git-semver for more deta...
true
655facd5bb16767bc224573dc0c832166919ffd5
Shell
MaStr/db2-client-latency-benchmark
/run_test.sh
ISO-8859-2
753
3.6875
4
[]
no_license
#!/bin/bash # Folgende EXPORT Variablen setzen: # # DB2USER # DB2PWD # DB2DB # DB2SCHEMA # # # Parameter: # # Anzahl Aufrufe tbsel # runId -> knstliche ID zum Speichern der Ergebnisse # count=$1 runId=$2 mkdir -p ./tmp for i in $( seq 1 $count) ; do echo "**** Starting $i of $count" tmpfile=...
true
6226944f2552268ed65e169146938988f0d9212a
Shell
Alfresco/alfresco-ng2-components
/scripts/github/release/git-tag.sh
UTF-8
688
3.359375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash if [[ $BRANCH == "master" ]]; then VERSION=$(grep -m1 version package.json | awk '{ print $2 }' | sed 's/[", ]//g') else VERSION=$(npm view @alfresco/adf-core@beta version) fi; echo "git tag -a ${VERSION} -m ${VERSION}" git config --local user.name "alfresco-build" git config --local user.email "...
true
e55138dbfab7b5b35713792fc3d28723775bcc3d
Shell
kdub4/minimal-arch-linux
/1_arch_install.sh
UTF-8
4,250
3.40625
3
[]
no_license
#!/bin/bash encryption_passphrase="" root_password="" user_password="" hostname="" user_name="" continent_city="" swap_size="8" echo "Updating system clock" timedatectl set-ntp true echo "Creating partition tables" printf "n\n1\n4096\n+512M\nef00\nw\ny\n" | gdisk /dev/nvme0n1 printf "n\n2\n\n\n8e00\nw\ny\n" | gdisk ...
true
2a400ab3fed191863e4c59649d476efd42298b60
Shell
VladVons/sh-conf
/pkg/list/lst/nas/Script/samba.sh
UTF-8
336
2.828125
3
[]
no_license
# VladVons@gmail.com AddUserSmb() { aUser=$1; aPassw=$2; Log "$FUNCNAME, $aUser, $aPassw" AddUserNoLogin $aUser $aPassw echo -ne "$aPassw\n$aPassw\n" | smbpasswd -a -s $aUser } PostInstall() { mkdir -p /mnt/usb/data1/share/{temp,work,recycle} AddUserSmb guest $UserGuestPassw AddUserSmb...
true
4cb245c2a0845ee328221794d89324ddcc3ef6bd
Shell
duckybsd/base-alpine
/rootfs/etc/cont-init.d/05-wodby-resolv-fix
UTF-8
179
2.796875
3
[]
no_license
#!/bin/sh ns_srv=$(grep -m1 '^nameserver' /etc/resolv.conf) ns_other=$(grep -Ev '^#|^nameserver' /etc/resolv.conf) printf '%s\n%s\n' "${ns_srv}" "${ns_other}" > /etc/resolv.conf
true
66bef453b91ec5a0e6c66a837adc2051e2bc2616
Shell
wenxueliu/code_clips
/Clang/atomic/performance/test
UTF-8
192
2.640625
3
[]
no_license
#! /bin/bash NUM=4 NUMMAX=100000000 for i in `seq 1 `; do ./main $i $NUMMAX 0 done for i in `seq 1 `; do ./main $i $NUMMAX 1 done for i in `seq 1 `; do ./main $i $NUMMAX 2 done
true
d38b8b80e9a6a43867eb2aeb7369d7ba3aac6119
Shell
RitaRuan/defects4j-repair
/脚本/replaceStr.sh
UTF-8
482
3.28125
3
[]
no_license
#/bin/bash #replace ":" to " " in "defects4j export -p cp.test" #alg: 1.project(ex:Lang) 2.bugID(ex:1) #output:replace result project=$1 bugID=$2 ProjectPath="/home/rtx/repair/d4j/"$project"/"$bugID"b" cd $ProjectPath COMPILECP=`defects4j export -p cp.compile` TESTCP=`defects4j export -p cp.test` string=$TESTCP st...
true
51c25c207d562b830e3689bfba5cfd6626f9eab6
Shell
jaisuryagoud/Assignment_Day5
/RANDOM_maxi_mini.sh
UTF-8
418
3.328125
3
[]
no_license
#!/bin/bash -x RandomMax() { max=0; #min=0; count=1; while [ $count -le 5 ] do result=$(( $((RANDOM%1000)) + 1 )) if [ $result -gt 99 ] then if [ $count -eq 1 ] then max=$result elif [ $result -gt $max ] then max=$result fi if [ $count -eq 1 ] then min=$result elif [ $result -lt $min ] then min=$resu...
true
57df914c212e2b71f2efa3687eb952d6b75882ff
Shell
brandon-arnold/dotfiles
/scripts/backup##hostname.goatboxter4
UTF-8
2,135
2.859375
3
[]
no_license
#!/bin/bash # Backs up the entire system, excluding some volatile directories. # -a archive mode is -rlptgoD (no -A,-X,-U,-N,-H) # -A preserve ACLs # -X preserve extended attributes # -l,--links copy symlinks as symlinks # -v,--verbose verbose # ...
true
5c6d0f4fac3b100a33697e5f7707dd5829252d3d
Shell
groupby/api-javascript
/scripts/release.sh
UTF-8
2,042
4.5625
5
[ "MIT" ]
permissive
#!/usr/bin/env bash # TODO: # - Ensure root directory. set -eo pipefail cd "${BASH_SOURCE%/*}/.." die() { local exit_code=1 local OPTIND=1 local opt while getopts "c:" opt; do case "$opt" in c) exit_code="$OPTARG" ;; esac done shift $((OPTIND - 1)) echo "ERROR:" "$@" >...
true
913f9d0e16ca04787bb7189109e0e1d9d82be995
Shell
eisenhowerj/hubble
/updater/scripts/git-download.sh
UTF-8
2,675
3.671875
4
[ "MIT" ]
permissive
#!/bin/bash # # Calculate download traffic per day # function ghe_greater_equal () { cat /etc/github/enterprise-release | perl -sne ' use version; my ($installed) = $_ =~ /RELEASE_VERSION="([0-9]+([.][0-9]+)+)"/; exit (version->parse($installed) lt version->parse($requir...
true
5b740f96781c070e6fbce958d70e4eefa0aa9b4f
Shell
banerjek/aws-utilities
/aws-describe-instances
UTF-8
638
2.625
3
[]
no_license
#!/bin/bash #i dev-instance, stage-instance, and prod-instance contain instance IDs # for those instances # ====================================================================== AWSPROFILE="default" aws ec2 --profile $AWSPROFILE describe-instances --instance-ids $(cat dev-instance) $(cat stage-instance) $(cat prod-ins...
true
9963ed3f02390f4d5944c25e5260643cbd260875
Shell
Nesma-Mostafa/RNA-seq-Analysis
/scripts/required_downloads.sh
UTF-8
3,528
2.921875
3
[]
no_license
#!/bin/bash #downloading and installing the required programms for hisat/stringtie and star/scallop pipelines ### Download the human genome data, generate genome sizes file and generate hisat/star indexes ### wget ftp://ftp.sanger.ac.uk/pub/gencode/Gencode_human/release_27/GRCh38.primary_assembly.genome.fa.gz -P $...
true
ace14c95b4fe9dc72faac1aa993899e07c22eb6c
Shell
gpaterno/trove-image-elements
/elements/trove-guest/install.d/15-install-trove
UTF-8
772
2.875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e set -o xtrace if [ "${DISTRO}" = "rhel" ]; then # NOTE(vkmc) This is necessary for now. Waiting for the release. yum -y install wget wget http://rhos-release.virt.bos.redhat.com/repos/rhos-release/rhos-release-latest.noarch.rpm yum -y --nogpgcheck localinstall rhos-release-latest.noarch.rpm...
true
ac66522d048ac758f59ae080bab830a25bb1f698
Shell
RedDevil2015/effective-awk-program
/ch07/nmatches.bash
UTF-8
138
2.734375
3
[]
no_license
printf "Enter search pattern: " read pattern awk -v pat="$pattern" '{ nmatches++ } END { print nmatches, "found" }' $1
true
6dcb64fdd5285e8843f0bd860b7f1b03e29eab77
Shell
rdllopes/qzui
/ui/update-bootstrap.sh
UTF-8
306
3.25
3
[ "MIT", "Apache-2.0" ]
permissive
#! /bin/sh if [ -n "$1" ]; then mkdir tmp curl -L https://github.com/twbs/bootstrap/releases/download/v$1/bootstrap-$1-dist.zip -o tmp/bootstrap.zip rm -fr app/lib/bootstrap unzip tmp/bootstrap.zip -d app/lib mv app/lib/dist app/lib/bootstrap else echo "Usage: update-bootstrap <version>" fi
true
8579e93fbf98d043f08fead27e751dfd23fbf1f0
Shell
JoachimSall/BTS-SNIR-2018-2019
/datametrie1-master/datametrie
UTF-8
8,443
3.53125
4
[]
no_license
#!/bin/bash #installer curl whois mailutils #demande à l'utilisateur l'adresse à tester sur tout le script echo "Bienvenue, avant de commencer, nous rappelons qu'il est nécessaire" echo "d'avoir installer les applications suivantes : mailutils / curl / whois" echo " " echo -n "Avez-vous pris en compte le message précéd...
true
4a0857550835a32a02f7d0f896be9fa8913c60a3
Shell
Stackato-Apps/stackato-apps
/apps/jenkins/stackato-setup.sh
UTF-8
480
3.484375
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash #echo "This script sets up a persistent .jenkins directory" if [ -e "$STACKATO_FILESYSTEM"/.jenkins ] then echo "Jenkins directory exists, using existing data." ln -s "$STACKATO_FILESYSTEM"/.jenkins "$STACKATO_APP_ROOT"/.jenkins else echo "Jenkins directory not found. Setting up..." # cr...
true
d453531c0e48722d633fd342bc6d70d802bbfc4e
Shell
cristianmiranda/dotfiles
/scripts/sync.sh
UTF-8
1,205
3.890625
4
[]
permissive
#!/usr/bin/env bash set -e # Locations BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" CONFIG_HOME="../home" DOTBOT_DIR="../dotbot" DOTBOT_BIN="bin/dotbot" # # Getting config file for host # unameOut="$(uname -a)" MACHINE_TYPE="anonymous" if [[ "$unameOut" =~ "mini-linux" ]]; then MACHINE_TYPE="server" e...
true
b027b04505f3289ae56d0a63667790de85280ac0
Shell
tkelleyireland/sie-dns-sensor
/packaging/general/sie-dns-sensor/usr/bin/sie-gen-key
UTF-8
410
3.296875
3
[ "ISC", "Apache-2.0" ]
permissive
#!/bin/sh -e . /etc/default/sie-dns-sensor . /usr/lib/sie/functions if [ -z "$uploadkey" ]; then echo "$0: uploadkey is not set" exit 1 fi if [ -e "$uploadkey" ]; then echo "$0: $uploadkey already exists" exit 1 fi mkdir -p $(dirname $uploadkey) ssh-keygen -t rsa -b 1024 -f $uploadkey -N '' -C "$(g...
true
2ca186ddb6ef50a8c0f8eda4dfce136a1923886b
Shell
alexandreboisvert/utilities
/bin/fun/rot13.sh
UTF-8
720
4.03125
4
[]
no_license
#!/usr/bin/env bash usage() { cat << EOF Simple rot13 encoder/decoder See: https://en.wikipedia.org/wiki/ROT13 Can be used on files or STDIN. Options: help : display this help and exit stdin : process the content of STDIN (to be used in pipes) files a.txt b.txt c.txt : proce...
true
dfb68b437eae850c014fe9242a7fe1479b867d31
Shell
harmonylang/harmony-docker
/harmony
UTF-8
3,937
4.1875
4
[]
no_license
#!/bin/bash function harmony_function() { function join_by { local IFS="$1"; shift; echo "$*"; } function make_id() { ID=() LETTERS=(1 2 3 4 5 6 7 8 9 0 a b c d e f g) for _ in $(seq 1 32); do INDEX=$((RANDOM % 16)) ID+=("${LETTERS[IN...
true
c4f9e36d4358edcaec75694dc2485788b5a3d430
Shell
petronny/aur3-mirror
/awn-extras-applets-bzr/PKGBUILD
UTF-8
3,455
2.90625
3
[]
no_license
# Contributor: Alessio Sergi <asergi at archlinux dot us> # Maintainer: twa022 <twa022 at gmail dot com> _pkgname=awn-extras-applets pkgname=${_pkgname}-bzr pkgver=1542 pkgrel=2 pkgdesc="A collection of applets for avant-window-navigator" arch=('i686' 'x86_64') url="https://launchpad.net/awn-extras" license=('GPL2' 'L...
true
604a2b93b9b0903fd552228ee833eea0219e248f
Shell
VeretennikovAlexander/OS-Public
/Keywords/Keywords7.txt
UTF-8
255
3.421875
3
[]
no_license
#!/bin/bash echo "# of arguments = $#" var1=${1:-/tmp} echo $var1 echo ${1:?} echo OK for i in {1..10}; do echo Arg$i = ${!i} done var2='jpg file.jpg' echo ${var2:4:5} echo ${var2#jpg} echo ${var2%jpg} echo ${var2/jpg/txt} echo ${var2//jpg/txt}
true
55c92a7cc7114cd770d61da7cdf0f93251254344
Shell
Mirantis/cvp-configuration
/scripts/poke.sh
UTF-8
523
3.1875
3
[]
no_license
#!/bin/bash if [[ -z ${token+x} ]]; then export token=$(openstack token issue -c id -f value) echo "# Exported token: ${token}" fi if [[ -z ${project_id+x} ]]; then export project_id=$(openstack project list -c ID -c Name -f value | grep ${OS_PROJECT_NAME} | cut -d' ' -f1) echo "# Exported project_id: $...
true
36232c95672a33e110a44ac91a747caab45754ca
Shell
DrSnowbird/shell-utility
/user/add-new-user.sh
UTF-8
1,642
3.953125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # ------------------------------------ # maintainer: DrSnowbird@openkbs.org # license: Apache License Version 2.0 # ------------------------------------ if [ $# -lt 2 ]; then echo "*** ERROR ***" echo "... Need two input arguments at least ..." echo "$(basename $0) <User_Name> <Password> <sud...
true
a780098f4a1ee6efed3a7c69bfde18a09f12abd5
Shell
Darkyenus/pacbot
/project/uploadNXJ.sh
UTF-8
600
3.5625
4
[]
no_license
#!/bin/sh ### Shared header cd "$(dirname "$0")"/.. COMPILEDIR="target/nxj" mkdir -p ${COMPILEDIR} cd ${COMPILEDIR} if [[ $OSTYPE == darwin* ]]; then export JAVA_HOME="/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/" fi ####### if [[ $1 == -* || -z $1 ]]; then #First parameter is arg or...
true
e6dc3e0dafe168b4704c1ed56c45aa5d549169ce
Shell
ritazh/gatekeeper
/deploy/deploy-kubernetes-policy.sh
UTF-8
360
2.546875
3
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
#!/bin/bash cd "${0%/*}" echo "Deploy Kubernetes policies" read -p "Press enter to continue" # deploy kubernetes policies kubectl -n gatekeeper-system create configmap kubernetes-matches --from-file=../policy/kubernetes/matches.rego kubectl -n gatekeeper-system create configmap kubernetes-policymatches --from-file=...
true
d676235e437c172aef6db103703ea5c0484cf831
Shell
Hubbitus/shell.scripts
/SHARED/array_ordered_unique_add.bash
UTF-8
1,017
3.8125
4
[]
no_license
#!/bin/bash # Add element to begin (if lesser) or end (if greather) of ordered array if it still not there. # $1 - name of array for indirect access ( http://tldp.org/LDP/abs/html/ivr.html ) # $2 - element for addition function array_ordered_unique_add(){ # http://www.linuxquestions.org/questions/linux-software-2/[bas...
true
0a00df30b04e5032860852940d425308e9b71d05
Shell
globus/globus-toolkit
/gridftp/hdfs/scripts/xinetd/gridftp-hdfs-inetd.in
UTF-8
519
2.6875
3
[ "Apache-2.0" ]
permissive
#!/bin/sh if [ -e @datadir_resolved@/gridftp-hdfs/gridftp-hdfs-environment ] ; then . @datadir_resolved@/gridftp-hdfs/gridftp-hdfs-environment fi if [ -e @sysconfdir_resolved@/gridftp-hdfs/gridftp-hdfs-local.conf ] ; then . @sysconfdir_resolved@/gridftp-hdfs/gridftp-hdfs-local.conf fi if [ -e @sysconfdir_res...
true
acf1b5211b723496430f9ac51025229f1d7aec9f
Shell
ZiyangJiao/IODA-SOSP21-AE
/rtk/all.sh
UTF-8
1,251
3.765625
4
[]
no_license
#!/bin/bash # Huaicheng <huaicheng@cs.uchicago.edu> # Process raw experimental data and plot the graph in one shot usage() { echo "" echo " Usage: $0 <workload>" echo " e.g. $0 tpcc" echo "" exit } if [[ $# != 1 ]]; then usage fi # resolve the correct absolute path SOURCE="${BASH_SOURCE...
true
b55a808043ce4f042833db7bb4702e69860faee1
Shell
very-twi/vesta
/bin/v_change_db_password
UTF-8
1,684
3.578125
4
[]
no_license
#!/bin/bash # info: changing userdb password #----------------------------------------------------------# # Variable&Function # #----------------------------------------------------------# # Argument defenition user=$1 database=$2 db_password=$3 # Importing variables source $VE...
true
a51739596d770cb0a0dd40619f7a0fd7d2527932
Shell
mjbright/christian-posta.kube-demos
/TOCONVERT/deployment/demo.sh
UTF-8
1,113
3.203125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash . $(dirname ${BASH_SOURCE})/../util.sh SOURCE_DIR=$PWD desc "Create a service that fronts any version of this demo" run "cat $(relative svc.yaml)" run "kubectl --namespace=demos apply -f $(relative svc.yaml)" desc "Deploy v1 of our app" run "cat $(relative deployment.yaml)" run "kubectl --namespace=dem...
true
86f1b6541a062b8f91df8f8c7c116787dbb285bf
Shell
ojroques/dotfiles
/zsh/.local/share/zsh/functions/up
UTF-8
293
3.828125
4
[]
no_license
#!/bin/bash # Go to the n-th parent folder function up { if [[ $# -eq 0 ]]; then cd "../" elif [[ $# -eq 1 ]] && [[ $1 -gt 0 ]]; then local up_dir="" for _ in $(seq 1 "$1"); do up_dir+="../" done cd "$up_dir" || return else echo "Usage: up [n > 0]" fi }
true
5d20180d2bf6445d02efd2f93c634863c4f950f9
Shell
sebastian-nagel/cc-crawl-statistics
/plot.sh
UTF-8
1,349
3.671875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash set -exo pipefail LATEST_CRAWL=$(basename $(ls stats/CC-MAIN-201*.gz | tail -n 1) .gz) function update_json() { regex="$1" excerpt="$2" if [ -e "$excerpt" ] && grep -qF "$LATEST_CRAWL" $excerpt; then zgrep -h "$regex" stats/$LATEST_CRAWL.gz >>$excerpt else zcat stats/CC-M...
true
1375c1cfc15fb19a76d5492cece2e8b6a9c14d35
Shell
gaochangshui-trec/SoftChouhyou_CGI
/CGI/CHOUHYOU_CATEGORY_KENSAKU.SEARCH
UTF-8
18,648
3.359375
3
[]
no_license
#!/bin/bash -xv # # CHOUHYOU_CATEGORY_KENSAKU.SEARCH >>> カテゴリ情報検索 # Usage : CHOUHYOU_CATEGORY_KENSAKU.SEARCH # # Written by Tan.zhihui(TRE・CHINA) / Date : 11 Sep. 2019 # Alter by Zhang.Yunfeng(TRE・CHINA) / Date : 16 Dec. 2019 #///////////////////////////////////////////////////////////////////////// # 初期設定 #//////////...
true
6e32b1ccada8a3309fb287b448a95ed2c6b545cb
Shell
beentaken/sgt
/local/cal
UTF-8
1,406
4.15625
4
[]
no_license
#!/bin/bash # Script to wrapper cal(1) and give it more sensible command-line # parsing. REALCAL=/usr/bin/cal OPTS="-3 -m" month=`date +%m` month=$[1$month - 100] # trim leading zero, avoiding octal trap year=`date +%Y` # Possible invocations: # # Every invocation which prints a single month also prints the two # ...
true
9dd51ef6b37a1ddf0cca0a2cfcf45b60618b48e8
Shell
Dniskk/carma
/.travis-ci/after_success.sh
UTF-8
225
2.8125
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -eo pipefail if [[ "$DEBUG_CI" == "true" ]]; then set -x fi if [[ "$COVERAGE" == "true" ]]; then cd "${TRAVIS_BUILD_DIR}"/build lcov --list coverage.info coveralls-lcov coverage.info fi
true
f5484682d69d0b228d168c501116316c43739b4e
Shell
Jjagg/OpenWindow
/generators/WaylandSharpGen/regen.sh
UTF-8
336
3.125
3
[ "MIT" ]
permissive
#!/bin/bash cd $(dirname $0) cat protocols/protocols.txt | while read line do if [ -z ${line// } ]; then continue fi split=($line) proto="protocols/${split[0]}" dst="generated/${split[1]}" set -x dotnet run -- $proto $dst { set +x; } 2>/dev/null done set -x cp generated/* ../../src/Backends/Wayl...
true
ce5e416977df0a94f57ba9c5aff04322aae8b188
Shell
karolba/jimp1
/prepare.sh
UTF-8
3,485
3.828125
4
[]
no_license
#!/bin/bash set -u shopt -s nullglob mydir=$(dirname "$(readlink -f "$0")") PATH="$PATH:$mydir/.exodus/bin" curl_testcase() { # args: testcase_id, <in|out> local testfile="$pdir/test_$1_$2" curl "http://$ip/domjudge/public/problem.php?id=$id&testcase=$1&type=$2" -o "$testfile" # DOMJudge zwraca '20...
true
8749743cc90557c82078da3c65e92efb9ab6053d
Shell
JCFFlores/scripts
/raise_volume
UTF-8
382
3.078125
3
[ "MIT" ]
permissive
#!/bin/sh SINK=$(pactl list short sinks | sed -e 's,^\([0-9][0-9]*\)[^0-9].*,\1,' | head -n 1) VOL=$(pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(( SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,') pactl set-sink-mute "$SINK" 0 if test `expr $VOL + 5` -gt 100; then pactl set-sink-volum...
true
d7e895d1e2142ca21ab4fd3a8a91ef9532a4963d
Shell
rstacruz/kisswiki
/src/ubuntu/mouse.sh
UTF-8
783
3.09375
3
[]
no_license
#!/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" function isodate { echo $(date --iso-8601=seconds) } xset m 0 0 mouse_id=$1 speed=$2 echo "$(isodate) mouse_id: $mouse_id" 2>&1 | tee -a "$DIR/mouse.log" echo "$(isodate) speed: $speed" 2>&1 | tee -a "$DIR/mouse.log" xinput set-prop $mouse_id "...
true
5da1ed9358b99570fda7d0e9c1138f7c0b583feb
Shell
koara-local/dotfiles
/build/tmux/build.sh
UTF-8
244
2.65625
3
[]
no_license
#!/bin/bash -xeu if [ ! -d tmux ]; then git clone https://github.com/tmux/tmux.git fi cd tmux # checkout latest tag #git checkout $(git tag | sort -V | tail -n 1) git checkout 2.2 sh autogen.sh ./configure make -j4 sudo make install
true
0e64eb81c6455ab40d09053f5d4b4612639ba3a2
Shell
FRINXio/FRINX-machine
/config/set_env_secrets.sh
UTF-8
609
3.796875
4
[]
no_license
#!/bin/sh # set env variables from docker secret to service set -a FILES="/run/secrets/*" for __filePath in $FILES do if [ -f ${__filePath} ]; then . ${__filePath} cat ${__filePath} | while read line || [ -n "$line" ]; do case $line in '#'*) ;; # ignore comments '...
true
e9bd8755a9957af3043b6c00dbfa75fb6f51aa1a
Shell
JhalakGupta/Transaction-Web-API
/infrastructure/aws/cloudformation/csye6225-aws-cf-create-stack.sh
UTF-8
1,355
3
3
[ "Apache-2.0" ]
permissive
STACK_NAME=$1 VPC_NAME=${STACK_NAME}-csye6225-vpc SUBNET1_NAME=${STACK_NAME}-csye6225-subnet1 SUBNET2_NAME=${STACK_NAME}-csye6225-subnet2 SUBNET3_NAME=${STACK_NAME}-csye6225-subnet3 SUBNET4_NAME=${STACK_NAME}-csye6225-subnet4 SUBNET5_NAME=${STACK_NAME}-csye6225-subnet5 SUBNET6_NAME=${STACK_NAME}-csye6225-subnet6 IG_NAM...
true
8fbc04f88e5023d10a62c6319cf82bad9b49bf2c
Shell
nnako/dotfiles
/init/70_APP_nextcloud_client__DEB.sh
UTF-8
2,350
2.890625
3
[]
no_license
# install NextCloud Client from debian packages # from: https://help.nextcloud.com/t/nextcloud-client-for-raspberry-pi/27989/62 # # get required packages # # define packages packages=( q/qtwebengine-opensource-src/libqt5webenginecore5_5.11.3+dfsg-2+deb10u1_armhf.deb q/qtwebengine-opensource-src/libqt5webengine...
true
3a71c48c19cc857100942deddfe4251d54c2058e
Shell
igorbarinov/docker-parity-master
/configure-parity.sh
UTF-8
2,518
2.609375
3
[]
no_license
#!/bin/bash echo "home: $HOME" echo "user: $(whoami)" ##################### # create an account # ##################### PASSWORD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w30 | head -n1) echo $PASSWORD > $HOME/.parity-pass parity account new --password $HOME/.parity-pass address=0x$(cat $HOME/.parity/keys/*| ...
true
e1c435f37b76f15decfb14b22ec9c7b6acf7da73
Shell
webbhm/MVP_CV
/scripts/processImage.sh
UTF-8
752
3.578125
4
[]
no_license
#!/bin/bash #This script extracts plant attributes from an image #Invoke this via cron on a regular (hourly?) basis to refresh the data #Author: Howard Webb #Date: 11/5/2017 echo "Process image for plant data" #Modify this path if you move the webcam image directory pic_dir="/home/pi/MVP/pictures/" pic2_dir="/home/p...
true
0d45489581ed19e2bb1359b41957c6137e761f72
Shell
rishibodake/Snake-LadderProblem
/snakeAndLadder.sh
UTF-8
1,689
3.5
4
[]
no_license
#!/bin/bash -x #Discription:Snake & Ladder as per usercases #Author:Hrishikesh M Bodake #Since:March 7 2020 / Saturday diceCounter=0 termOfPlayer=1 startPosition=0 finishPosition=100 currentPosition=0 priviousPosition=0 player1Pos=0 player2Pos=0 winchecker=0 player=0 function rollDice(){ dicePos=$((RANDOM%6+1)) } func...
true
3b547ce1bb5a7fe9e660d97f092515f1b3389fcd
Shell
termux/termux-packages
/x11-packages/gw/build.sh
UTF-8
2,492
2.859375
3
[ "Apache-2.0" ]
permissive
TERMUX_PKG_HOMEPAGE=https://github.com/kcleal/gw TERMUX_PKG_DESCRIPTION="A browser for genomic sequencing data (.bam/.cram format)" TERMUX_PKG_LICENSE="MIT" TERMUX_PKG_MAINTAINER="clealk@cardiff.ac.uk" TERMUX_PKG_VERSION=0.8.2 TERMUX_PKG_SRCURL=https://github.com/kcleal/gw/archive/v${TERMUX_PKG_VERSION}.tar.gz TERMUX_P...
true
5c7556f74541465b0d25f213d7ec0006df41fc44
Shell
RuhuaJiang/DevEnvSetup
/setup/mac-vim-setup.sh
UTF-8
908
3.09375
3
[]
no_license
#!/bin/bash cmd_e () { command -v $1 >/dev/null 2>&1 || exit 1; } install () { if cmd_e $1 ; then echo "[sudo install] $1 already installed" else brew install -y $1 fi } DOCFILES_ROOT="../dotfiles" #https://realpython.com/blog/python/vim-and-python-a-match-made-in-heaven/ install ...
true
6eb5657a3afea2704402eff5657352b413d1e064
Shell
kubevirt/hostpath-provisioner
/hack/run-unit-test.sh
UTF-8
1,136
2.90625
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash #Copyright 2021 The hostpath provisioner Authors. # #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 by app...
true
046bbcabf0001a4c72691f8e75ad4bcdfd2810be
Shell
pawelpiwosz/tick-sandbox
/scripts/status.sh
UTF-8
268
3.28125
3
[]
no_license
#! /bin/bash # # $1 - status type # case $1 in full) docker-compose ps exit 0 ;; short) docker-compose ps --quiet exit 0 ;; list) docker-compose ps --services exit 0 ;; *) echo -e '\n\n\nUsage: make status [full|short|list]' exit 0 ;; esac
true
f97ad2f2175647917419aaffe5ae2353cafc5465
Shell
chewitt/fidelis
/getEndpoints.sh
UTF-8
731
3.4375
3
[ "MIT" ]
permissive
#!/bin/bash if [ -z $(which jq) ]; then echo "ERROR: This script requires jq!" exit 1 fi APISERVER="FQDN" APIUSER="USERNAME" APIPASS="PASSWORD" # obtain a valid authentication token TOKEN=$(curl -sX GET --header 'Accept: application/json' "https://${APISERVER}/Endpoint/api/authenticate?Username=${APIUSER}&Passwo...
true
fe69185c09328bc7d2234aeaff6d8ec20c1ec102
Shell
AldonahZero/pai
/src/drivers/build/clean.sh
UTF-8
272
2.875
3
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
#!/bin/sh set -e if [ -f /etc/docker/daemon.json ] ; then cat /etc/docker/daemon.json | jq 'del(."default-runtime")' | jq 'del(.runtimes.nvidia)' > tmp mv tmp /etc/docker/daemon.json pkill -SIGHUP dockerd fi touch /finished while true; do sleep 3600; done
true
525fbc618fa3524089792009051cb2726ed852a9
Shell
ovc/iostat_alert
/Solaris/iostat_alert
UTF-8
10,170
2.984375
3
[ "MIT" ]
permissive
#!/bin/bash mail_to="mymail@here.tld" mail_cc="" # prod_sid="kssp2" prod_sid="$(ps -u oracle -o args | awk -F'_' '/ora_.mon_/ {print $3}' | head -n1)" max_latency_micro_seconds=2000 iostat_check_interval=3 iostat_check_count=5 iostat_check_pause=10 sending_mail_interval=900 asm_luns_size_gb=500 sea...
true
b4efc5dee374a45679fe4d1d1a39622d2905f2d9
Shell
pderakhshanfar/SSBSE-Challenge-2020-application
/model-generation/scripts/bash/main.sh
UTF-8
442
2.953125
3
[]
no_license
INPUT=inputs/inputs.csv OLDIFS=$IFS IFS=, [ ! -f $INPUT ] && { echo "$INPUT file not found"; } while read application package do echo "application : $application" echo "package : $package" ls "bins/$application" java -d64 -Xmx10000m -jar libs/model-generation.jar -project_cp "bins/$application" -project_pre...
true
ec7ebb3206a79414ab15c8d0d349a8762cf2c4c8
Shell
delkyd/alfheim_linux-PKGBUILDS
/startupwmclassfixer/PKGBUILD
UTF-8
763
2.78125
3
[]
no_license
# Maintainer: Bilal Elmoussaoui <bil.elmoussaoui@gmail.com> pkgname=startupwmclassfixer _gitname=StartupWMClassFixer pkgver=0.1.1 _pkgver="v${pkgver}" pkgrel=1 pkgdesc="Fix unrecognized, ugly or double icons in Linux." arch=('i686' 'x86_64') url="https://github.com/bil-elmoussaoui/${_gitname}" license=('GPL-2.0') prov...
true
719e5d63bca1da5c342dff90979d83518afc8de0
Shell
chnops/TempleTexas
/download_raw.sh
UTF-8
528
3.484375
3
[]
no_license
#!/bin/bash # get column one from a comma-separated value file, store as .tmp tail -n +2 data/treatments.csv | cut -f 1 -d ',' - | sed "s/\"//g" > .tmp while read sample do echo $sample # level can be replaced with genus, species, family, etc. level="order" wget 'http://metagenomics.anl.gov/metagenomics.cgi?page=...
true
d28649633606833ec92d73921d4f453c0f292088
Shell
heinz-otto/raspberry
/setupSamba.sh
UTF-8
383
3.125
3
[]
no_license
#!/bin/bash spath="/var/SonosSpeak" scomment="Audio-Files for SonosPlayer to Speak" apt-get install samba # Pfad erstellen mkdir $spath chmod 777 $spath # Share Definition in /etc/samba/smb.conf cat <<EOF >> /etc/samba/smb.conf [SonosSpeak] comment = "$scomment" path = "$spath" browsable = yes guest ok = yes ...
true