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
b80b7b93ea3a3a1259bf17de7ad3df69079978f9
Shell
EMBL-EBI-GCA/ebisc_tracker_2
/db-backups/run-mongodb-backup-s3
UTF-8
1,599
3.65625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e function usage() { echo "Required environment variables:" echo " AWS_ACCESS_KEY_ID" echo " AWS_SECRET_ACCESS_KEY" echo " AWS_ENDPOINT_URL" echo " AWS_BUCKET" echo " AWS_PREFIX" echo "Optional environment variables:" echo " MONGODB_HOST default mongodb" echo " MONGODB_U...
true
8a9c3935ab26bd85ea1f065bed1c1e41136896ea
Shell
ghidra/dotfiles
/shell/setup.sh
UTF-8
1,542
2.5625
3
[]
no_license
pacman -S vim-minimal pacman -S alsa-utils pacman -S feh #this is a wallpaper thing pacman -S unzip pacman -S xorg-xev #for finding the keys pacman -S rsync #i need to allow multilib, specifically to install steam #sudo vim /etc/pacman.conf #uncomment #[multilib] #Include = /etc/pacman.d/mirrorlist #then pacman -Syu ...
true
574b388639ccc5780d59f4f394f28897ffa6e708
Shell
kse201/misc
/scripts/utils/tmux-wrapper
UTF-8
2,655
3.75
4
[]
no_license
#!/bin/bash tmux_bin=$(command -v tmux) argc=$# is_exists() { which "$1" >/dev/null 2>&1 ; return $? } has() { is_exists "$@" } has_args(){ [ "${argc}" -gt 0 ] } is_ssh_running() { [ ! -z "$SSH_CLIENT" ] } is_screen_running() { [ ! -z "$STY" ] } is_tmux_runnning() { [ ! -z "$TMUX" ] } is_scree...
true
04f04883c4f84917479a78b94018ad830ffe4c12
Shell
A1404/libernet
/install.sh
UTF-8
1,794
4.09375
4
[]
no_license
#!/bin/bash # Libernet Installer # by Lutfa Ilham # v1.1 if [ "$(id -u)" != "0" ]; then echo "This script must be run as root" 1>&2 exit 1 fi LIBERNET_DIR="/root/libernet" LIBERNET_DIR_ESCAPED="\/root\/libernet" LIBERNET_WWW="/www/libernet" function install_packages() { while IFS= read -r line; do opkg in...
true
dab5d6cdeda693efc02d16f00aaa284a49417e0e
Shell
Nuvoton-Israel/openbmc
/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/configuration/entity-manager/olympus-reload-sensor.sh
UTF-8
573
2.765625
3
[ "Apache-2.0", "MIT" ]
permissive
echo "reload sensor config $1" systemctl stop xyz.openbmc_project.Logging.IPMI.service if [ $1 = "1" ]; then if [ ! -d "/sys/bus/platform/drivers/nuvoton-i2c/f0086000.i2c" ]; then echo -n "f0086000.i2c" > /sys/bus/platform/drivers/nuvoton-i2c/bind fi sleep 10 else if [ -d "/sys/bus/platform/dri...
true
915b41cfe76386258cd6c4eb045819b4727bb244
Shell
brodemack/Pi
/motion-setup.sh
UTF-8
752
2.625
3
[]
no_license
sudo apt-get install -y motion sudo apt-get install -y libjpeg62 mkdir -p ~/mmal (cd ~/mmal/; wget https://www.dropbox.com/s/xdfcxm5hu71s97d/motion-mmal.tar.gz) (cd ~/mmal/; tar -zxvf motion-mmal.tar.gz) (cd ~/mmal/; wget https://raw.githubusercontent.com/brodemack/Pi/master/update-motion-conf.rb; ruby update-motion-...
true
78a7dd076f1e353df63566bc140c225937d4ee36
Shell
whiteinge/dotfiles
/bin/rgb2hex
UTF-8
576
3.765625
4
[]
no_license
#!/usr/bin/env zsh # Convert 16-bit RGB values to hexadecimal # For example, xmag shows color in this format. # # Usage (outputs #00cb02): # # rgb2hex 0 cbcb 202 while getopts h opt; do case $opt in h) awk 'NR == 1 { next } /^$/ { exit } { print substr($0, 3) }' "$0" exit ;; esac done shift $(( ...
true
00364cdc1e79f107fe4a2169784616e513e230e7
Shell
wadqc/WAD_Interface
/create_databases/create_iqc_tables.sh
UTF-8
508
2.625
3
[]
no_license
#!/bin/sh # optional first argument = mysql root password echo "Drop + create IQC database..." rm source/WAD_Interface/create_databases/iqc_db/iqc.sql 2> /dev/null cat source/WAD_Interface/create_databases/iqc_db/*.sql > source/WAD_Interface/create_databases/iqc_db/iqc.sql mysql -uroot -p$1 < source/WAD_Interfac...
true
031bd1cf256bff8806bff1f2059c7d6325ba0e4e
Shell
sketchc89/algodesign
/cpp/test.bash
UTF-8
224
2.796875
3
[ "MIT" ]
permissive
#!/bin/bash DIR=$(dirname $0) PROG=${DIR}/build/dataStructures/test/testDataStructures # ${PROG} & PID_PROG=$! # echo ${PID_PROG} # sleep 2 if hash valgrind; then valgrind --tool=memcheck --leak-check=full ${PROG} fi
true
66dfc8907c83475f5148dcb2e7f53f8da31a0f05
Shell
otus-kuber-2019-06/SergeSpinoza_platform
/kubernetes-vault/vault-guides/operations/provision-vault/kubernetes/minikube/deps.sh
UTF-8
1,815
4.09375
4
[ "MIT" ]
permissive
#!/bin/bash [ ! -n "$DEBUG" ] || set -x set -u # the internet says this is better than 'set -e' function onerr { echo 'Cleaning up after error...' popd exit -1 } trap onerr ERR pushd `pwd` > /dev/null 2>&1 cd "$(dirname $0)" function check_for_deps () { for dep in pidof; do if ! command -v "${de...
true
d3f70ba468727bbc5fc42ff9ca0afd23e4e1d48d
Shell
SliTaz-official/website
/lib/get-feeds.sh
UTF-8
772
3.546875
4
[]
no_license
#!/bin/sh # # Get latest commits and feeds to display on the website main pages. # On the server, this script is executed by cron each hour. # PWD=$(dirname $0) CACHE="$(dirname $PWD)/cache" # Feeds URL http://scn.slitaz.org/activity/feed/ BLOG_FEED='http://scn.slitaz.org/?blog=rss' WOK_FEED='http://hg.slitaz.org/wok/...
true
a1751dfad200b3786f2d5672a7fa6968f966953d
Shell
ged/graphics
/graphics_setup.sh
UTF-8
1,001
3.328125
3
[ "MIT" ]
permissive
#!/bin/sh set -e # if [ $(id -u) != 0 ]; then # echo "Please run this as root or with sudo" # exit 1 # fi for gem in graphics rubysdl rsdl; do gem uninstall -ax $gem || true done case `uname` in Darwin) echo "I'm on OSX. Not using sudo" SUDO= brew install sdl --universal brew install sdl_m...
true
1033e547de43065763e3edb056b9af5148fd52a1
Shell
dp-ua/codenjoy-portable-linux
/install.sh
UTF-8
566
3.59375
4
[]
no_license
#!/usr/bin/env bash if [ "$EUID" -ne 0 ] then echo "Please run as root" exit fi eval_echo() { to_run=$1 echo "" echo $to_run echo "" eval $to_run } if [ -x "$(command -v git)" ]; then echo "it installed" ; else eval_echo "sudo apt update" eval_echo "sudo a...
true
c11134ed56149766a3ffd9664db9f2792aee526e
Shell
Mikor-mkr/robotics_setup
/xonsh.sh
UTF-8
2,876
3.484375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # This script is intended to setup a fresh desktop with ROS and # with dependencies on homebrew or linuxbrew depending on the OS being used # @author Andrew Hundt <ATHundt@gmail.com> echo "" echo "###############################################################################################" echo "# XONS...
true
69f6839e1042e1eb6b649797136a759bc71e3cd8
Shell
kergoth/dotfiles
/scripts/detach
UTF-8
758
4.09375
4
[]
no_license
#!/bin/sh # Background a process with nohup, but return quickly with an exit code if it # fails within the 0.1s timeout, which likely indicates a wrong command-line # argument. # Via https://superuser.com/a/814527 TIMEOUT=0.1 if [ $# -eq 0 ]; then exec nohup fi if [ -t 1 ]; then rm -f nohup.out fi nohup "$@"...
true
f4d175ca494c06f064692e4c0f9638fbb8172125
Shell
rycus86/githooks
/tests/step-100.sh
UTF-8
1,178
3.484375
3
[ "MIT" ]
permissive
#!/bin/sh # Test: # Set up local repos, run the install and skip installing hooks into existing directories if echo "$EXTRA_INSTALL_ARGS" | grep -q "use-core-hookspath"; then echo "Using core.hooksPath" exit 249 fi mkdir -p ~/test100/p001 && mkdir -p ~/test100/p002 || exit 1 cd ~/test100/p001 && git init |...
true
470753e0cce9ccf4f6b5d376bf6f1f4e255b0d1a
Shell
markmo/repo2docker
/release.sh
UTF-8
705
3.453125
3
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash profile=${1} env=${2} commit_msg=${3} if [[ ! "${profile}" =~ ^(codeserver|default|garden)$ ]]; then echo "Invalid profile" exit 1 fi if [[ ! "${env}" =~ ^(prod|test|dev)$ ]]; then echo "Invalid environment" exit 1 fi if [[ "${env}" != "dev" && "${commit_msg}" == "" ]]; then ...
true
689e3abc163559f2c94dc087b5bf08f11dcc5f31
Shell
abdennour/containers-factory
/adminer-ssh-tunnel/adminer-ssh-tunnel.sh
UTF-8
742
3.671875
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # Put it in set -o errexit set -o nounset set -o pipefail # enable interruption signal handling trap - INT TERM SSH_KEY=$1 SSH_TUNNEL=$2 IMAGE=adminer-ssh-${USER}; # If the image does not exist locally, build it. if [[ -z $(docker images -q $IMAGE) ]]; then TMP=/tmp/containers-factory; rm -r...
true
b1f2a9dacc9bbf8da11061286de93516c28cac2f
Shell
kenan-rhoton/lotl
/lotl.sh
UTF-8
5,315
3.78125
4
[]
no_license
#!/bin/bash readonly NOMADS=1 readonly SETTLED=2 readonly FREEMEN=3 FACTION=0 declare -a FAMILY FACTION_OPTIONS="Nomads" BASIC_OPTIONS="Grow" GROW_OPTIONS="" MY_CIV="" declare -a OPTION_REQS ##NOMAD GROWTH OPTION_REQS+=("Hunters Grow none Nomads") OPTION_REQS+=("Gatherers Grow none Nomads") OPTION_REQS+=("Warrio...
true
0a8f4bceb8bee6c67c216c365aa3d0ac2c87bb17
Shell
tee-talog/dotfiles
/bin/default-file.sh
UTF-8
254
3.234375
3
[ "MIT" ]
permissive
#!/bin/bash local readonly _append_str=" if [ -f \"${HOME}/dotfiles/.zshenv\" ]; then source \"${HOME}/dotfiles/.zshenv\" fi " function f_load_zshenv() { if [ -e ~/.zshenv ]; then cp ~/.zshenv{,_org} fi echo "${_append_str}" >>~/.zshenv }
true
3a7f1f9f038706759f40499a71ee5970dffec510
Shell
trishullab/bayou
/tool_files/build_scripts/build.sh
UTF-8
2,153
2.984375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # Copyright 2017 Rice University # # 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 applicable law or agreed...
true
1de0b3a5aed43658c83a6712a86d1ff6e5b14cb4
Shell
yvesh/env
/scripts/defaultMonitor
UTF-8
363
2.578125
3
[]
no_license
#!/usr/bin/env sh # https://linuxconfig.org/how-to-configure-your-monitors-with-xrandr-in-linux # enable only the default monitor # run() { xrandr \ --output DP-1 \ --off \ --output DP-2 \ --off \ --output eDP-1 \ --auto \ --output eDP-1 \ --primary \ --dpi 100 removeMonitor DP...
true
dcfb257b59d99b9fbb539bda6ef5384655d20f9a
Shell
HamletGhost/HomeScripts
/bin/network/GetTicket.sh
UTF-8
11,313
4.1875
4
[]
no_license
#!/bin/bash # # Obtains a Kerberos ticket. # # Changes: # 20150227 [v 2.0] # complete rewrite; removed some features that might turn out to be needed # in the future # 20200111 [v 2.1] # added `--verbose` option # # ################################################################################ # sourcing check...
true
2d6f98edba061a6f38f76ae48dd598a5586d6680
Shell
nstylo/dots
/.config/i3blocks/scripts/mediaplayer
UTF-8
726
3.5
4
[]
no_license
#!/bin/bash PLAYER=$1 # mouse input case $BLOCK_BUTTON in 1) playerctl --player=$1 play-pause ;; 4) playerctl --player=$1 next ;; 5) playerctl --player=$1 previous ;; esac # position TIME=$(playerctl position) # cast to int TIME=${TIME%.*} MINUTE=$(($TIME / 60)) SECOND=$(($TIME % 60)) # if seconds < 10,...
true
48312fa6803b4aaaf6b130bb507cca501eb8d04d
Shell
gregwebs/vpn-ubuntu-setup
/vpn/route-default.sh
UTF-8
162
2.96875
3
[]
no_license
#!/bin/bash set -eu set -o pipefail # route through the VPN pp_devs=$(ifconfig | grep ppp | awk '{print $1}') route add default dev $(echo "$pp_devs" | tail -1)
true
91a0a39c9eb1ae2dab53567af50a96087f22d49e
Shell
liaoqiArno/linux_tools
/shell/tools/cacti-0.8.8-centos-redhat.sh
UTF-8
4,186
3.28125
3
[]
no_license
#!/bin/bash SRC_URI1="http://zy-res.oss-cn-hangzhou.aliyuncs.com/cacti/cacti-0.8.8b.tar.gz" SRC_URI2="http://zy-res.oss-cn-hangzhou.aliyuncs.com/cacti/rrdtool-1.4.9.tar.tar" PKG_NAME1=`basename $SRC_URI1` PKG_NAME2=`basename $SRC_URI2` DIR=`pwd` DATE=`date +%Y%m%d%H%M%S` CPU_NUM=$(cat /proc/cpuinfo | grep processor | ...
true
e369548195c620dae4cb5aa97805b5ddcf4e53b0
Shell
Zamua/.dotfiles
/gradle-aliases.sh
UTF-8
272
2.984375
3
[]
no_license
#Unbind unalias gr 2>/dev/null unalias gc 2>/dev/null #Bind alias g="gradle" alias gb="gradle build" alias gc="gradle clean" alias gt="gradle test" gr() { command="gradle run" if [ $# -gt 0 ]; then command+=" -Ptestfile=$1" fi eval $command }
true
0484990f9cc42bf16214113c9056a4d11a233b2a
Shell
yeq71/server-configuration-scripts
/archiver-slac-based/install.sh
UTF-8
4,944
3.25
3
[]
no_license
#!/bin/bash source envs.sh sudo apt-get install dialog # yum install dialog function cleanup { if [ -d extracted_files ]; then rm -rfd extracted_files fi if [ -d resources ]; then rm -rfd resources fi } trap cleanup EXIT cleanup mkdir -p resources...
true
f6c2f510a6481f245c1face44411313c3f7eccc4
Shell
nkarast/nkarastAccelLegacy
/scan_scripts/sixjobs/scan_check_mad.sh
UTF-8
1,294
3.0625
3
[ "MIT" ]
permissive
#!/bin/sh source ./scan_definitions.sh source ./sixdeskenv export study=${workspace} #################i rm -rf missingMad6t.txt for mask in $mask_list do echo "#########################################" echo "### STUDY : $study" echo "#########################################" echo "#...
true
6b3fa6f4b98021f91fd80588f33e3bc003f2a90a
Shell
hayesall/DrugInteractionData
/Confidence/scoreconfidence.sh
UTF-8
2,166
3.65625
4
[]
no_license
#!/bin/sh # Optimized for running on Indiana University's RI Odin Cluster # Written by Alexander Hayes | ProHealth && STARAI | Dr. Sriraam Natarajan FINAL=ODINORDER.txt LOG=DETERMINEORDER.txt rm -f $FINAL rm -f $LOG function synchronize { HOSTNUMBER=`hostname | grep -o -P '(?<=odin).*(?=.cs.indiana.edu)' | se...
true
4d84bf7ee4b640c761f5aa271d1125f2e1b4308a
Shell
muffato/docker-ensembl-linuxbrew-compara
/base/install_cask.sh
UTF-8
245
2.703125
3
[ "Apache-2.0" ]
permissive
#!/bin/sh set -e # brew often partially installs stuff, so run it again and again until complete until [ -e "/home/linuxbrew/.linuxbrew/bin/$1" ] do brew install "ensembl/cask/$1" done brew cleanup rm -rf /home/linuxbrew/.cache/Homebrew
true
40e1e948dda644722083cbb8a6d7098b8b60878f
Shell
nevernervous/tpb_kiosk
/site_update.sh
UTF-8
1,655
4.25
4
[]
no_license
#!/bin/bash # exit on error set -e # this script will update the git repo and then sync a particular site to the latest version of the branch # only applies to wp files # get parameters SITE=$1 BRANCH=$2 if [ "$SITE" == "" ] || [ "$BRANCH" == "" ]; then echo "USAGE: ./site_update.sh site_name branch_name" ...
true
dcc58d8756fedf44d54ff54d20b377f2c41406d0
Shell
zhangshuo1996/Shell_learn
/chapter_12/test4.sh
UTF-8
258
3.09375
3
[]
no_license
#!/bin/bash testUser=noSuchUser if grep $testUser /etc/passwd then echo "first command" echo "second command" echo "I can put in other commands besides echo" echo $testUser ls -a /home/$testUser/.b* else echo "The user $testUser doesnot exit" echo fi
true
366ad02d7a5173c42a10c8627cdbd902dfb00e7b
Shell
ShellShoccar-jpn/metropiper
/CGI/GET_SNUM_HTMLPART.AJAX.CGI
UTF-8
4,455
3.9375
4
[ "MIT" ]
permissive
#! /bin/sh ###################################################################### # # GET_SNUM_HTMLPART.AJAX.CGI # 駅ナンバー一覧部分HTML生成 # Written by Rich Mikan(richmikan@richlab.org) at 2014/09/17 # # [入力] # HTTP POSTで次のCGI変数を与える # [rwletter] : 「知りたい駅」の路線文字 # DATA/SNUM2RWSN_MST.TXT …… 駅ナンバーマスターファイル # TEMPLATE...
true
f15e2c6ba7107ce1f69c287b5cc81bae5b47495f
Shell
Anurag810/frappe
/.github/helper/install.sh
UTF-8
2,847
2.828125
3
[ "MIT" ]
permissive
#!/bin/bash set -e cd ~ || exit pip install frappe-bench bench init frappe-bench --skip-assets --python "$(which python)" --frappe-path "${GITHUB_WORKSPACE}" mkdir ~/frappe-bench/sites/test_site cp "${GITHUB_WORKSPACE}/.github/helper/consumer_db/$DB.json" ~/frappe-bench/sites/test_site/site_config.json if [ "$TYP...
true
5ed58305ade1b30c76fa09bd442a857afe7dfc81
Shell
nc-lot/dotfiles
/bin/git-diff-decorate.sh
UTF-8
241
2.84375
3
[]
no_license
#!/bin/bash # # Wrapper to select best available diff highlighting option if command_exists 'diff-so-fancy'; then exec diff-so-fancy "$@" elif command_exists 'diff-highlight'; then exec diff-highlight "$@" else exec cat "$@" fi
true
53b2a0adee4d485f513b2dda321c3ca031d047f4
Shell
dc3671/lkp-tests
/bin/rsync-rootfs
UTF-8
1,469
3.953125
4
[]
no_license
#!/bin/sh # This script is used to sync a remote-rootfs directory to local # disk partition, in order to sync multiple rootfs, we use the # btrfs as the local disk partition filesystem, for its subvolume # feature. # # Currently, only support NFS format remote-rootfs as the first # parameter, but easy to add more remot...
true
dfd75da11f64f8fd317b2742a15a83fc15480579
Shell
Jewel591/Privilege-Escalation
/checklinux/ffabcdef-2020-0514-2011-aaa340401710.sh
UTF-8
2,531
3.046875
3
[ "MIT" ]
permissive
#!/bin/sh [ $# -ne 2 ] && { echo "Usage: sh ffabcdef-2020-0514-2011-aaa340401710.sh <SU用户(SU或高权限用户)> <SU密码>"; exit 1; } # 获取当前路径 pathname=`pwd` echo "touch /tmp/nsfocus_mod_tmp;">/tmp/NSF{nsf_tm}_nsfocus_grub_tmp echo "chmod 777 /tmp/nsfocus_mod_tmp;">>/tmp/NSF{nsf_tm}_nsfocus_grub_tmp echo "if [ -f \"/etc/grub....
true
27752dcc605d4507a81f5dfc02ba6bf919ee6400
Shell
KevinKbyte/.dotfiles
/i3/scripts/kill_cpu_hog.sh
UTF-8
977
3.328125
3
[]
no_license
#!/usr/bin/env bash # https://unix.stackexchange.com/questions/13968/show-top-five-cpu-consuming-processes-with-ps # Top shows current CPU usage # Ps shows avg over time # https://unix.stackexchange.com/questions/58539/top-and-ps-not-showing-the-same-cpu-result ps_most_cpu_intensive_process=$(ps aux | sort -nrk 3,3 |...
true
837825919a3df17de4d20718518c9ee259426f48
Shell
roblanf/euc_qc
/qc.sh
UTF-8
3,215
3.3125
3
[]
no_license
# Basic quality control for mapping PE illumina data to a distant reference # Rob Lanfear, December 2016 # A few things to set before you go inputf="/disks/dacelo/data/raw_data/Project_SN7001117R_0083_CKulheim_LBronham_Melaleuca/" outputbase="/disks/dacelo/data/QC/test/" ref="/disks/dacelo/data/raw_data/active_refs/...
true
637ff128286378fede88199f8fca67a5ec322354
Shell
DragonDemonKiller/scriptz
/sysadmin/manpagestopdf.sh
UTF-8
2,523
2.921875
3
[]
no_license
#!/bin/bash #create a nice pdf file from manpages, system help files and such #status: just started #TODO: convert all _ in program names to " " #define what manpages, files etc. we want SYSADMIN_COMMANDS="addgroup cd mv cp rm du df rename touch delgroup adduser deluser groupadd groupdel useradd userdel dmsetup taskse...
true
5ee563800654b0a7578be57c6f09a090f3221d9c
Shell
kowonsik/RPiLogger
/code_up_down.sh
UTF-8
390
2.625
3
[]
no_license
#!/bin/bash #Author: jeonghoonkang http://github.com/jeonghoonkang if [ $1 = 'up' ]; then echo "... updating" #git add sect_serial_ttyUSB0.py git add ./ git commit -m "by wonsik" git push -u origin master elif [ $1 = 'co' ]; then echo "... installing" git pull -u origin mast...
true
064a0798fefc8ad5e775cec2e9473e726e215c0b
Shell
Seeed-Studio/MotorBridgeCapeFirmware
/script/check_tools.sh
UTF-8
283
2.8125
3
[]
no_license
#!/bin/sh gcctool=./tools/gcc-arm-none-eabi-4_9-2015q3/bin/arm-none-eabi-gcc if [ ! -f "$gcctool" ];then tar xvf ./tools/gcc-arm-none-eabi-4_9-2015q3-20150720-linux.tar.bz2 -C ./tools else echo "tools is ok!" echo "******************************************************" fi
true
9152fa44595f52022065ffc26c99045f2c0da0e5
Shell
Seebass22/bashscripts
/copysong.sh
UTF-8
194
3.25
3
[ "Unlicense" ]
permissive
#!/bin/bash # copy curently playing MPD song to current dir path="$(mpc status -f %file% | head -n1)" fullpath="/mnt/D/music/$path" echo $fullpath if [ -n "$path" ]; then cp "$fullpath" ./ fi
true
00db296c4f8d2201bd65145eee3da62af5cf4d0b
Shell
pycurl/downloads
/upload
UTF-8
1,134
3.46875
3
[]
no_license
#!/bin/sh set -e if test -z "$bintray_api_key"; then echo 'bintray_api_key must be set' exit 2 fi upload() { path="$1" file="$2" repo=pycurl package=pycurl version=`dirname $path` curl -sfIL https://api.bintray.com/packages/pycurl/$repo/$package || ( data=$(cat <<-EOT {"name":"$package", ...
true
7f1d337a42e401e293d55ef1a6566d2757a5344b
Shell
keckelt/playground
/sh/public_ip/watch_ip_change.wget.sh
UTF-8
350
3.734375
4
[]
no_license
#!/bin/sh file="./old_ip.txt" if [ ! -f $file ] then echo Create file to store IP: $file wget -q -O - ifconfig.me > $file; fi OLD_IP=`head -n 1 $file` echo Old IP is: $OLD_IP PUBLIC_IP=`wget -q -O - ifconfig.me` echo New IP is: $PUBLIC_IP if [ "$OLD_IP" != "$PUBLIC_IP" ] then echo Update $file ...
true
432d50540ee5389240f8a93bb32b81c8794e4392
Shell
hellhappy1982/shell_scripts
/m01-61/sent_dsa.sh
UTF-8
353
2.90625
3
[]
no_license
#!/bin/bash # Source function library. . /etc/rc.d/init.d/functions #sent dsa for ip in $* do sshpass -p123456 ssh-copy-id -i /root/.ssh/id_dsa.pub "-o StrictHostKeyChecking=no root@$ip" &>/dev/null if [ $? -eq 0 ] then action "$(ssh $ip hostname)" /bin/true else action "$(ssh $ip ...
true
b8ebdedc0068a28bd76e48d5a94f8f1f6e8f99b4
Shell
papaspiro/lrnfast
/backend/app/prestart.sh
UTF-8
287
2.578125
3
[ "MIT" ]
permissive
#! /usr/bin/env bash echo "Waiting for postgres..." while ! nc -z psql 5432; do sleep 0.1 done echo "PostgreSQL started" exec "$@" # Let the DB start python ./app/backend_pre_start.py # Run migrations alembic upgrade head # Create initial data in DB python ./app/initial_data.py
true
1e57e9b17e44a3e0e5a7a852b18a326fec3141ae
Shell
hchou1226/RNAdetector
/scripts/compute_md5.sh
UTF-8
781
4.1875
4
[]
no_license
#!/bin/bash ############################################################################## # Options: # -i input file ############################################################################## exit_abnormal() { echo "$1" 1>&2 # shellcheck disable=SC2086 exit $2 } while getopts ":i:" opt; do case $opt in...
true
53042eaba869ffa4157cac8d9c26c47245547c40
Shell
StanislavNikolov/dotfiles
/change_colors.sh
UTF-8
499
2.96875
3
[]
no_license
#!/bin/bash dotfiles="$HOME/dotfiles" rm ~/.config/alacritty/alacritty.yml if [ $(cat ~/.stjo_theme) = "dark" ]; then # currently in dark mode echo "light" > ~/.stjo_theme cp "$dotfiles/alacritty_light.yml" ~/.config/alacritty/alacritty.yml else echo "dark" > ~/.stjo_theme cp "$dotfiles/alacritty_dark.yml" ~/.c...
true
1a505bee55a3a9f766d4cf96e250042091e0113b
Shell
sfc-aqua/quisp
/docker_run.sh
UTF-8
991
3.546875
4
[ "BSD-3-Clause", "MPL-2.0", "LicenseRef-scancode-free-unknown" ]
permissive
#!/bin/sh set -eu if [ -z "${IP-}" ]; then IP=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}') fi if [ "$(uname)" = 'Darwin' ]; then if [ -z "$DISPLAY" ]; then echo "Can't detect X11 display. If you don't know how to resolve this, please check ./doc/xhost_trouble_shooting.md" exit 1 ...
true
217a52d3ca5d15baf9a9ed50e67bd805d8e71d37
Shell
CharlesDDNoble/broncode
/nginx_uwsgi/tests/setup.sh
UTF-8
493
3.03125
3
[ "MIT" ]
permissive
#!/bin/bash BASE_DIR=`cd ../..; pwd` NGINX_CONF="./broncode_nginx.conf" NGINX_CONF_TEMP="./broncode_nginx_template.conf" # Create cat $NGINX_CONF_TEMP | sed "s,BASE_DIR,$BASE_DIR,g" >& $NGINX_CONF # MOVING FILES sudo cp ./uwsgi_params /etc/nginx sudo cp ./broncode_nginx.conf /etc/nginx/sites-available/ sudo rm -f /e...
true
e824d48d7b8af0963f8a3bef7b1e991ea5e430ff
Shell
bartash/scripts
/get_latest_coordinator_namespace
UTF-8
238
2.765625
3
[]
no_license
#!/usr/bin/env bash # # get the namespace of the latest coordinator # K8S_NAMESPACE=$(kubectl get pods -A --sort-by=.metadata.creationTimestamp | \ grep coordinator | grep Running | awk '{print $1}' | tail -1) echo ${K8S_NAMESPACE}
true
2f250a311cda89633c9c60816a721ca08551b7c3
Shell
ghuntley/dotfiles-retired
/homebrew/install.sh
UTF-8
771
2.546875
3
[ "MIT" ]
permissive
#!/bin/sh # # Homebrew # # This installs some of the common dependencies needed (or at least desired) # using Homebrew. # Check for Homebrew if test ! $(which brew) then echo " Installing Homebrew for you." ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" fi # Install hom...
true
f496c0efecad68a30395fa19cdb88cc7c9e10063
Shell
eda53/my-misc
/Linux/arm-ldd
UTF-8
238
3.046875
3
[]
no_license
#!/bin/sh [ -z "$1" ] && echo "file is needed;" && return READELF=arm-none-linux-gnueabi-readelf $READELF -v 2>/dev/null || READELF=arm-linux-gnueabihf-readelf $READELF -a $1 | grep "Shared library:" | cut -f 2 -d '[' | cut -f 1 -d ']'
true
9b04c52761a05c44fd250f265716dedb7d006867
Shell
anupama-sinha/unix-repo
/recursiveMergeSort.sh
UTF-8
1,790
3.515625
4
[]
no_license
#Define global variables declare -a A declare -a T #read list function ReadList() { if [ $n -le 0 ] then echo "Invalid size" return else echo "Enter input list of size $n:" i=1 while [ $i -le $n ] do read A[$i] i=`expr $i + 1` done return fi } WriteList() { if [ $n -le 0 ] then echo "Invalid size" return else i=1 whi...
true
e38fff4ec1473ab95bfefe53558215b97199a5fe
Shell
Tuuuuuuurk/Unix
/Дороничев-Тедерсон Д.Ю. (Unix)/backup/backup.sh
UTF-8
211
2.53125
3
[]
no_license
#!/usr/bin/env bash echo "Runing backup..." for i in \ $(docker ps --filter "name=gitea|jenkins|openproject" | tail -n+2 | awk '{ print $1 }'); do docker export -o ${i}-ci-$(date +"%m-%d-%Y").tar ${i}; \ done
true
54345b6e42e166f0ebf4b52aa479f40d1753d970
Shell
ZhaoXinlong/ChainBridge
/scripts/setupKeyStore.sh
UTF-8
374
2.578125
3
[]
no_license
#!/bin/bash set -a; . ./env/relayer.env; set +a; cd ./relayer; make build; SPKFILE=keys/"$CH1_ADDR".key if [ ! -f "$SPKFILE" ]; then ./build/chainbridge accounts import --privateKey $CH1_PK --password $KEYSTORE_PASSWORD fi DPKFILE=keys/"$CH2_ADDR".key if [ ! -f "$DPKFILE" ]; then ./build/chainbridge accounts import ...
true
a7aa401594ddf31a47ad5f314accc8b2f1e1aa55
Shell
cdbbnnyCode/AdventOfCode-2018
/day07/part2.sh
UTF-8
1,763
3.640625
4
[]
no_license
#!/bin/bash source ../fetch.sh input=( $(fetch 7 | awk '{print $2$8}') ) letters=( {A..Z} ) declare -A deps declare -A allsteps for v in ${input[@]}; do step=${v:1:2} req=${v:0:1} echo "$req is required by $step" deps[$step]=${deps[$step]}$req, allsteps[$step]=1 allsteps[$req]=1 done declare -A delays ...
true
97f062ce6be6f7699d5f3be1991bb679873b9539
Shell
lenhattan86/IRFimpl
/IRFMotivation/tf_analysis/scripts/multiple_runs.sh
UTF-8
472
3.5
4
[]
no_license
#!/usr/bin/env bash if [ -z "$1" ] then num_parrallel=1 else num_parrallel=$1 fi if [ -z "$2" ] then tf_file="../benchmarks/linear_regression.py" else tf_file=$2 fi >&2 echo "Running $num_parrallel applications in parallel..." for i in `seq 1 $num_parrallel`; do >&2 echo "Starting application $i." F...
true
0d493fa86f98903bfa9c2c7ae6951bf621072ae3
Shell
farukomercakmak/debian-pipelight
/pipelight-installer-v1
UTF-8
8,534
3.6875
4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash # # Pipelight installer for Debian Wheezy (amd64) # # Copyright (C) 2013 Jari Jokinen # URL: https://github.com/jarijokinen/debian-pipelight pipelight_version="master" wine_version="1.7.0" installer_tmp_path="/tmp/pipelight-installer" dependencies=( wget ia32-libs ia32-libs-i386 lib32asound2 li...
true
1c5111436537f7390a58923851e4c1caa03996d8
Shell
lizanle521/springaop
/src/main/java/com/lzl/shell/expr.sh
UTF-8
80
2.59375
3
[]
no_license
#!/bin/bash var1=10 var2=20 var3=`expr $var2 / $var1` echo "the result is $var3"
true
19f59194e0f9a38d8dbce9c4751c080e4795babc
Shell
sputnik-1/cydar-test
/check-server.sh
UTF-8
7,617
3.875
4
[]
no_license
#!/bin/bash # This script will get the version.txt file from the Nginx server # #-----------------------------------------------------------# # get the loop wait time from the first command line parameter # this is the polling time in seconds the script will wait # before try to get the version.txt file again if [ ...
true
1e73a93bd26b303c8c347ac8a8bf1e9f2aa5005b
Shell
socc19-p10/vSMT-IO
/tools/cpu_usage.sh
UTF-8
2,513
3.625
4
[]
no_license
#!/bin/bash # # # get vcpu/vm's CPU utilization during one period # cpu_use="/sys/fs/cgroup/cpuacct/machine" kvm1_dir="$cpu_use/kvm1.libvirt-qemu" kvm8_dir="$cpu_use/kvm8.libvirt-qemu" vm_num=0 #vm10=0 result1=0 result8=0 #function=1: set kvm_name to first set hardware threads, for this server: 0-23 #function=2: set ...
true
a4fbc15caf8f043abecb22223cfbb63c90efab7c
Shell
xztaityozx/dotfiles
/config/zsh/zinit.main.zsh
UTF-8
293
2.6875
3
[]
no_license
# zinit type zip tar curl wget git unzip &> /dev/null || return 127; [[ -f "$ZDOTDIR/.zinit/bin/zinit.zsh" ]] && source "$ZDOTDIR/.zinit/bin/zinit.zsh" autoload -Uz _zinit (( ${+_comps} )) && _comps[zinit]=_zinit type zinit &> /dev/null && { mkdir -p $ZPFX/{bin,man/man1,share,script} }
true
ac8b4a4df3a1dbe8ff4defa50f7314a43bcbbfaf
Shell
jszzang9/TFA
/src/test/resources/stop.sh
UTF-8
144
2.78125
3
[]
no_license
#! /bin/sh PID_TFA=`ps -ef | grep tfa.jar | grep java | grep -v grep | awk '{print $2}'` if [[ ${PID_TFA} ]]; then kill -9 ${PID_TFA} fi
true
35410394e7c7103099a19ef81aed9eb001b2e034
Shell
wilkelab/influenza_H3N2_passaging
/scripts/SLACrun.sh
UTF-8
1,406
3.515625
4
[]
no_license
#This script sort a particular condition's nucleotide.fasta and nucleotide.tree files #into the SLAC analysis file structure. # #For each phylogenetic subdivision, full/internal/tips, it starts SLAC(run_dNdS.bash) #and removes the outputted sites.dat to condition_subdivision.dat # #Moves output to /rate_measurement_dat...
true
fba19ddb95cea04cf38a20bb8e981a67ef81eb40
Shell
mafrosis/dotfiles
/step/install.sh
UTF-8
1,452
3.703125
4
[]
no_license
#! /bin/bash -e # DEBUG mode controlled by env var if [[ -n $DEBUG ]]; then set -x; fi SMALLSTEP_VERSION=${SMALLSTEP_VERSION:-'0.23.0'} # passed from /dotfiles/install.sh FORCE=${1:-0} # Install step cli tools if [[ $FORCE -eq 0 ]] && command -v step >/dev/null 2>&1; then echo 'step-cli already installed!' else i...
true
5195cf77986249d42538006a8b070322b40b02d2
Shell
TanyaKovalenko/Tests
/test_lab_1_3_3.sh
UTF-8
2,610
3.609375
4
[]
no_license
#!/bin/bash cleanup() { rm -f "$TEMP_FILE_WITH_OUTPUT_STRINGS" } trap cleanup EXIT echo "Test case in which input array ends with 0 after 5" RANGE=20 MAX_NUM_OF_EL_IN_ARRAY=$RANDOM let "MAX_NUM_OF_EL_IN_ARRAY %= $RANGE" index_of_string_in_array=0 while [ $index_of_string_in_array -lt $MAX_NUM_OF_EL_IN_ARRAY ] do in...
true
03119ac2865dc70ed773e339ca346e458d572dff
Shell
inambioinfo/learning-codes
/Pipelines/parse_exome/pc07-exome.sh
UTF-8
1,121
3.40625
3
[]
no_license
######################################################################### # File Name: pc07-exome.sh # Author: Chun-Jie Liu # Mail: chunjie-sam-liu@foxmail.com # Created Time: Tue 03 Jul 2018 09:47:24 AM CST ######################################################################### #!/bin/bash # ! pipeline scripts wes=...
true
3530b69030dc71084bb0ac0d7ce2d597d1d6ddee
Shell
acorg/eske-pipeline-spec
/00-start/start.sh
UTF-8
520
3.34375
3
[]
no_license
#!/bin/bash -e . /home/tcj25/.virtualenvs/35/bin/activate log=../slurm-pipeline.log # Remove the marker file that indicates when a job is fully complete. rm -f ../slurm-pipeline.done echo "SLURM pipeline started at `date`" >> $log for fastq in "$@" do task=`echo $fastq | cut -f1 -d.` echo >> $log echo ...
true
9a90be2960fefb05ca6d3f611b783e05b1fb97b2
Shell
monarc99/aur
/python-booleanoperations/PKGBUILD
UTF-8
1,288
2.734375
3
[]
no_license
# Maintainer: Caleb Maclennan <caleb@alerque.com> # Maintainer: Guillaume Horel <guillaume.horel@gmail.com> # Contributor: William Turner <willtur.will@gmail.com> _pyname=booleanOperations pkgname=python-${_pyname,,} pkgver=0.9.0 pkgrel=3 pkgdesc='Boolean operations on paths' arch=(any) url="https://github.com/typemyt...
true
b0955e76ddc94efd34bab05ffd45430abb3d7b91
Shell
rajeshvv/h5vcc
/lbshell/build/update_changelog.sh
UTF-8
306
3.171875
3
[ "BSD-3-Clause", "FTL", "Apache-2.0" ]
permissive
#!/bin/bash # For use when building a debian package steel_version_macro=$(grep 'define STEEL_VERSION' ../src/steel_version.h) steel_version=$(echo "$steel_version_macro" | sed -e 's/.*"\(.*\)".*/\1/') date=$( date +%Y-%m-%d ) date_id=$( date +%Y%m%d ) dch -v $steel_version-$date_id "$date daily build"
true
4dcbfb5cab93d6174e32d1201ae8d387b9495443
Shell
VHSgunzo/NordCheck
/nordcheck
UTF-8
1,429
3.375
3
[ "MIT" ]
permissive
#!/bin/bash cd "$( dirname "${BASH_SOURCE[0]}")" nord_port=1080 check_ip="ident.me" num_ip=$(cat src/nord_ip|wc -l) for (( n=1; n <= $num_ip; n++ )) do nord_ip=$(sed "${n}!d" src/nord_ip) echo "##############################" echo "| PING |: $nord_ip..." ping_ip=$(ping -4 -q -c 1 -W 0.5 $nord_ip | grep -o "100%") if ...
true
05fde4d1e6c5bed4d9777b8b495db684676871ce
Shell
edunnsigouin/ds21grl
/code/model/5.0-setup_QSC5_TRACMIP_branch.sh
UTF-8
3,939
2.59375
3
[ "MIT" ]
permissive
#!/bin/bash # Script that sets up and submits a branch run from a CAM5 slab ocean aquaplanet control # run following the TRACMIP protocol (Voigt et al. 2016 JAMES) on FRAM cluster. The som forcing # file is modified from the control. The model version is CESM 2.1.0. # define inputs expname="QSC5.TRACMIP.NH01.Lk1.Q0....
true
2dba400d08803f51a18a54a0721f9329e9aa0960
Shell
nicooga/docker-collectd-elk
/entrypoint.sh
UTF-8
1,255
4.15625
4
[ "MIT" ]
permissive
#!/bin/bash set -eu COLLECTD_CONF=/etc/collectd/collectd.conf : ${COLLECTD_HOST:=} # if COLLECTD_HOST not already set in the container's environment if [ -z "${COLLECTD_HOST}" ]; then # if /etc/hostname is volume mounted in, then use that if [ -f "/host/hostname" ]; then COLLECTD_HOST=$(cat /host/hos...
true
6f7ace28cf38ce19162ffbde444019e5ac84811f
Shell
mpatsiou/opsys2018-assignment1-2776
/script1a.sh
UTF-8
679
3.84375
4
[]
no_license
#!/bin/bash diff_file="./diff_cache" file="./sites" index () { touch $diff_file set newdiff="" while IFS= read -r n do if [[ $n != *#* ]]; then new_md5sum=$(curl -s $n | md5sum | cut -d ' ' -f1) validate_md5sum $diff_file $n $new_md5sum newdiff+="$n $new_md5sum \n" fi done < "$fil...
true
5bb3cb7cd9e80049c0ff4781fa0e1792f70b6510
Shell
j23d/raumopol_kotti_buildout
/install.sh
UTF-8
2,514
3.84375
4
[]
no_license
#!/bin/bash function error { echo "usage: $0 -mds mail default sender, -mu mail username, -mp mailpassword [-d database_string -u username -st kotti site title -s kotti secret -sk kotti session key]" exit 0 } # get some input vars while [ $# -gt 0 ]; do case "$1" in -mds|--MAILDEFAULTSENDER) ...
true
7d1e3340954338455189953232532d6389e6ec0e
Shell
swade1987/terraform-docker-swarm
/modules/swarm-manager-cluster/user_data.sh
UTF-8
1,257
3.390625
3
[]
no_license
#!/bin/bash # Remove docker engine key to make it unique sudo rm -f /etc/docker/key.json sudo service docker restart # Configure the docker daemon sudo mkdir /etc/systemd/system/docker.service.d cat << "EOF" > /etc/systemd/system/docker.service.d/daemon.conf { [Service] ExecStart= ExecStart=/usr/bin/dock...
true
88ae802c5b45615d59c2934ae12f9bfb4705bd01
Shell
tysteiman/dot
/scripts/fssh
UTF-8
412
3.796875
4
[]
no_license
#!/bin/bash # Quick script to cat our ssh config entries, and hand over the host name blocks to fzf for selction. # That selection is then run directly with ssh since it's a named HostName entry. TARGET=$(cat $HOME/.ssh/config | grep -i -G "Host\ " | awk '{print $2}' | fzf --border=rounded --reverse) # return if canc...
true
f18443c7207430a084550bc5a1eb3ea1b239b71f
Shell
viking333/NPM_downloader
/old_version/download.sh
UTF-8
1,656
3.484375
3
[]
no_license
#!/bin/bash live_machines="$(VBoxManage list runningvms)" #echo $live_machines if [[ $live_machines =~ .*Centos7_Minimal.* ]] then echo "###### Taking down vm for restoration process ######" VBoxManage controlvm Centos7_Minimal poweroff fi sleep 3s echo -e "\n###### Restoring VM to base snapshot ######" VBo...
true
d543d1ea132f522ddb71bdb0018adcc0ef55e1d1
Shell
OpenWord3/opt_s5
/script/script_vpn.sh
UTF-8
4,002
3.78125
4
[]
no_license
#!/bin/bash verif=`ls /opt/vpn/x.509/server/ | grep tun1.conf` if [ -z $verif ];then echo "Vous n'avez pas encore de serveur, voulez-vous créer un ? oui/non" read reponse if [ $reponse == "oui" ];then server="server_x509" echo "choisissez une option" echo "1- client-to-client" echo "2- sans client-to-client...
true
6c3dc9e778798669e050016370e3975678355695
Shell
senorcarbone/flink
/ec2-scripts/rsync-data.sh
UTF-8
597
3.4375
3
[ "BSD-3-Clause", "ISC", "Apache-2.0", "OFL-1.1", "BSD-2-Clause", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/sh if [ "$#" -ne 2 ]; then printf "Usage: ./rsync-data.sh EXTERNAL_IP INTERNAL_IP\n\nBefore: copy all internal ips of the task managers to the slaves file!" fi IP=$1 INTERNAL_IP=$2 sed "s/JOBMANAGER_PLACEHOLDER/${INTERNAL_IP}/g" flink-conf.yaml > flink-conf-amazon.yaml rsync -avz ../flink-dist/target/fli...
true
1a7f4573be59f36862fa823a3ebf3790bbd74c49
Shell
AntDen/datasets
/code/datasets/data-o/slave
UTF-8
935
3.59375
4
[]
no_license
#!/bin/bash function check_dataset_info(){ if [[ -z "${DataSetsCli_name}" ]]; then echo "DataSetsCli_name is undefined" exit else MY_DATASET_NAME="${DataSetsCli_name}" fi } function check_mount_point(){ if test -f "$MOUNT_POINT"; then echo "MOUNT_POINT exists" else mkdir $MOUNT_POINT f...
true
d65ce154dd39375c719740d49e8c60bfbd65d877
Shell
rifflearning/edu-docker
/bin/AWS-CF-tunnel
UTF-8
2,046
4.03125
4
[ "MIT" ]
permissive
#! /usr/bin/env bash # This script must be sourced # # Set up the environment to deploy to a Riff AWS docker swarm # Takes 1 argument, the swarm environment name (staging, beta, etc) # defaults to 'staging' # After this script is sourced: the python environment is activated, # a tunnel to an aws docker manager is cre...
true
48fa684eaa6790a9f1e498c7f2b2c4b5a181983d
Shell
ramsal/SysAdminTools
/TORpi.sh
UTF-8
8,347
2.921875
3
[]
no_license
#!/bin/bash #ramsal # Global variables # ANSI colors c_black='\u001b[30m' c_red='\u001b[31m' c_green='\u001b[32m' c_yellow='\u001b[33m' c_blue='\u001b[34m' c_magenta='\u001b[35m' c_cyan='\u001b[36m' c_white='\u001b[37m' c_no='\u001b[0m' # config CFG_SSID="tor" CFG_PWD="" CFG_GW_IP="192.168.42.1" CFG_GW_MASK="255.255...
true
8e560606432fd359db59ec0b84304b4b4623ade9
Shell
AustinScola/seligimus
/scripts/test_source_distribution_contents.sh
UTF-8
3,297
4.0625
4
[ "MIT" ]
permissive
#!/bin/bash set -eu NEWLINE=$'\n' HERE="$(dirname "$(readlink -f "$BASH_SOURCE")")" SELIGIMUS="$(realpath "${HERE}/..")" DISTRIBUTION_DIRECTORY="${SELIGIMUS}/dist" # Find all source distributions in the distribution directory. VERSION_FILE="${SELIGIMUS}/VERSION.txt" VERSION="$(cat "${VERSION_FILE}")" SOURCE_DISTRIB...
true
b0726fafce29039fcd610021a0c42be6ddc83dcf
Shell
larrycai/docker-gerrit
/start.sh
UTF-8
361
2.90625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash git config -f $GERRIT_HOME/gerrit/etc/gerrit.config auth.type $AUTH_TYPE $GERRIT_HOME/gerrit/bin/gerrit.sh start if [ $? -eq 0 ] then echo "gerrit $GERRIT_VERSION is started successfully with auth.type=$AUTH_TYPE, please login to check." echo "" tail -f $GERRIT_HOME/gerrit/logs/httpd_log else ca...
true
089e0a6c56095689f36ae8e10bc925fb03e49ff3
Shell
lkonya/rdb-connector-collection
/run_mysql_it_tests.sh
UTF-8
340
3.140625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash function test_mysql { mysqladmin ping -h ${MYSQL_HOST} --silent } echo "Waiting for ${MYSQL_HOST} to become ready" count=0 until ( test_mysql ) do ((count++)) if [ ${count} -gt 1200 ] then echo "Services didn't become ready in time" exit 1 fi sleep 0.1 done...
true
6a6d3e5723ab8779204f5911d9a4e147deb6e305
Shell
chris-misa/contools
/YARRP/debian/start.sh
UTF-8
363
3.5625
4
[]
no_license
#!/bin/bash # # Entrypoint for yarrp containers # # For documentation see readme file. # # 2018, Chris Misa # USAGE="Usage: [docker commands] yarrp-debian <yarrp arguments> | batch <script>" if [ "$1" = "batch" ] then if [ -z "$2" ] then echo $USAGE exit 1 else $2 echo "Script returned $?" fi...
true
c45ebe39539a174c284d589d8e3e9a44a1e25eef
Shell
blackrussian84/workshop
/vault/CH02/init.sh
UTF-8
567
2.890625
3
[]
no_license
#!/bin/bash set -x # Load .env variables export $(egrep -v '^#' .env | xargs) vault secrets enable database vault write database/config/my-database \ plugin_name=mysql-database-plugin \ connection_url="{{username}}:{{password}}@tcp(mysql:3306)/" \ allowed_roles=my-role username=${MYSQL_ROOT_USERNAME} pas...
true
b5cabfb3edabd53eb185fd036055cbc5a48a513a
Shell
ardinor/misc
/Scripts/Backup Scripts/backup_vars.sh
UTF-8
335
2.53125
3
[]
no_license
#!/bin/sh WATCH_LIST[0]=/dir WATCH_LIST[1]=/path/to WATCH_LIST[2]=/file/to/watch RSYNC=/usr/bin/rsync SSH=/usr/bin/ssh # SSH key KEY=/key/location # Remote user RUSER=<USER> # Remote host RHOST=<HOST> # Remote port RPORT=<PORT> # Remote base path RPATH=/remote/server # Log file to store rsync errors in ERROR_LOG=/pa...
true
746529770b16d02d311f87c5aac0d3287e30abef
Shell
argoproj/argo-events
/hack/library.sh
UTF-8
1,381
3.734375
4
[ "Apache-2.0" ]
permissive
#!/bin/bash readonly REPO_ROOT="$(git rev-parse --show-toplevel)" # Display a box banner. # Parameters: $1 - character to use for the box. # $2 - banner message. function make_banner() { local msg="$1$1$1$1 $2 $1$1$1$1" local border="${msg//[-0-9A-Za-z _.,:\/()]/$1}" echo -e "${border}\n${msg}\n${bo...
true
8567acf43352226cc4936e26d88b17e6dc3a6db6
Shell
riscv/riscv-crypto
/tools/toolchain-conf.sh
UTF-8
357
2.625
3
[ "CC-BY-4.0" ]
permissive
#!/bin/bash source $REPO_HOME/tools/share.sh set -e set -x export RISCV=$INSTALL_DIR mkdir -p $INSTALL_DIR # ------ Spike ------------------------------------------------------------- refresh_dir $DIR_TOOLCHAIN_BUILD cd $DIR_TOOLCHAIN_BUILD $DIR_TOOLCHAIN/configure \ --prefix=$INSTALL_DIR \ --e...
true
a923dd59429d317e71c2917a95cb65f5203245dd
Shell
ykalidin/be-tools
/cloud/docker/gvproviders/consul/setup.sh
UTF-8
577
2.890625
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash # # Copyright (c) 2019. TIBCO Software Inc. # This file is subject to the license terms contained in the license file that is distributed with this file. # echo "Setting up consul gv provider.." cd /home/tibco/be/gvproviders/consul apt-get install -y wget # Download jq. wget "https://github.com/stedol...
true
6d8dec9061446d8c68c6a823cb34baf2ae20b230
Shell
reumont/av_hmm_pipeline
/run_jackhmmer.sh
UTF-8
1,985
3.46875
3
[ "MIT" ]
permissive
#!/bin/bash # Adapted JackHmmer script based on the animal venomics hmmer pipeline (av_hmmer_pipeline, see *greatfireball*, see *AnimalVenomics*) # For single or multiple sequences (.fas) located in /alignment folder a jackhmmer search is performed against protein translated assembly in folder /assemblies. # Matching ...
true
f7769df2a70e5b6c100f3cb8895c88e95a84cdd0
Shell
trousev/is_utf8
/test.sh
UTF-8
550
2.609375
3
[ "BSD-2-Clause" ]
permissive
answer=$(echo Привет$(echo мир | iconv -f utf-8 -t koi8-r) | ./is_utf8 -) error_level=$? [ $error_level == 1 ] || exit 1 [ $answer == "Привет" ] || exit 1 answer=$(echo Привет$(echo мир | iconv -f utf-8 -t cp1251) | ./is_utf8 -) error_level=$? [ $error_level == 1 ] || exit 1 [ $answer == "Привет" ] || exit 1 answer=...
true
690566595af028e2a46db51ca9885637e258d3bb
Shell
clf21/genomics-tools
/initial_RNA_processing_PE_CF.sh
UTF-8
3,046
3.59375
4
[]
no_license
#!/bin/bash if [ -z "$1" ]; then echo usage: $0 single_directory_of_raw_reads genome_build exit fi WD=$1 Build=$2 echo Genome Build Set to: $Build echo Processing files in : $WD cd $WD || { echo ERROR: could not find $WD , exiting... ; exit 1; } mkdir raw || { echo 'ERROR: could not make raw directory, exiting...
true
1a9a491e139801ababb1ee77b1c0804ff442d411
Shell
aaronstanton/rsf
/book/lsewem_recorder/fdmod/02_fdmod.sh
UTF-8
1,331
2.875
3
[]
no_license
#!/bin/sh export OMP_NUM_THREADS=8 echo "Starting run at: `date`" for isx in {0..35}; do echo "modelling shot number $isx" dsx=100 osx=100.0 sx=$(echo $osx+$isx*$dsx | bc) # shot positions sfmath output=2 < s_.rsf > zs_$isx.rsf sfmath output=$sx < s_.rsf > xs_$isx.rsf sfmath output=1 < s_.rsf...
true
d60fa54d3b2f5ba689585b7c41b7f58f3fff4f09
Shell
gurrasson/dockerlecture
/mediacentre/install_host.sh
UTF-8
1,090
2.84375
3
[]
no_license
#!/bin/bash sudo apt-get update sudo apt-get -y dist-upgrade sudo apt-get update sudo apt-get upgrade -y sudo apt-get install -y cron curl make kodi sudo perl -pi -e "s/ENABLED=0/ENABLED=1/g" /etc/default/kodi wget http://downloads.hypriot.com/docker-hypriot_1.9.1-1_armhf.deb sudo dpkg -i docker-hypriot_1.9.1-1_armhf.d...
true