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
e82d4a9752c14a769f4ee16a3534997cfeac6086
Shell
Vilakerer/lzy_cmmt
/lzy_cmmt.sh
UTF-8
263
3.453125
3
[]
no_license
lzy_cmmt(){ branch=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p') len=$# if [[ $len > 1 ]]; then for i in "${@:2}"; do git add $i done else git add . fi git commit -m "$1" git push origin "$branch" }
true
14949a263b6496b1543eb2e76b86dbc77fca5728
Shell
mahamot/projet
/scripts/scripttp5.2.1.sh
UTF-8
420
3.390625
3
[]
no_license
#!/bin/bash #fonction de gestion des prenoms composés prenomcomp(){ prepre="" for i in $* do prepre=$prepre" "${i^} done echo $prepre } while read line do prenom=${line%% *} mail=${line##* } prenom=${prenom//:/ } # prepre="" # for i in $prenom # do # prepre=$prepre" "${i^} # done # prepre=${prepre#...
true
97c8a2748987d044858c431c37fbe22dd242637a
Shell
engma/app-autoscaler
/bin/deploy.sh
UTF-8
660
3.453125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash if [[ "$#" != 1 ]]; then echo 'An environment is required' echo "for example, $0 myenv" exit 1 fi basedir=$(cd "$(dirname "$0")"; pwd) appAutoScaler="${basedir}/.." envProperties="${appAutoScaler}/profiles/$1.properties" if [ ! -f $envProperties ]; then echo "The file '$envProperties' does not exist...
true
4209e12f48ba897954083a3bc9c4fe9af8a1b70e
Shell
delkyd/alfheim_linux-PKGBUILDS
/ctodo/PKGBUILD
UTF-8
654
2.609375
3
[]
no_license
# Maintainer: Niels Sonnich Poulsen <niels@nielssp.dk> pkgname=ctodo pkgver=1.3 pkgrel=1 pkgdesc="A simple ncurses-based task manager." url="http://ctodo.apakoh.dk" arch=('x86_64' 'i686') license=('MIT') depends=('ncurses' 'readline') makedepends=('cmake') conflicts=() replaces=() backup=() install= source=("https://gi...
true
641eb37da38a46e44e9fe679d1df1ddd97771b1e
Shell
cveligkos/dotfiles
/modules/user/zsh/scripts/waybar-dev-reload
UTF-8
219
2.859375
3
[]
no_license
#!/usr/bin/env bash CONFIG_FILES="$HOME/.config/waybar/config $HOME/.config/waybar/style.css" trap "pkill waybar" EXIT while true; do waybar & inotifywait -e create,modify $CONFIG_FILES pkill waybar done
true
b5173439f1f79d0ce8d8e9fd3721062a32482181
Shell
nicktheway/godot-git-helpers
/diff_checker.sh
UTF-8
3,324
4.375
4
[ "MIT" ]
permissive
#!/bin/bash # This script checks all the changed tracked files to check if the only difference is in the AnimatedSprite frame number. DRY_RUN= VERBOSE= function show_usage() { echo "usage: $0 [-n]" echo '' echo ' -n: Dry run. Shows the files that will be restored.' echo ' -v: Verbose. Explain the process, ...
true
f0eae539c81f5bdba8a1978b884696e13689467c
Shell
Bicocca/Calibration
/EcalCalibNtuple/test/cron_stability/cronjob_stability.sh
UTF-8
1,766
2.53125
3
[]
no_license
#! /bin/sh export GROUP=zh echo "****** INFO ******" echo "whoami: " whoami echo "hostname: " hostname echo "pwd: " pwd #set the cmssw environment echo "" echo "****** SET THE CMSSW ENVIRONMENT ******" export SCRAM_ARCH=slc5_amd64_gcc462 source /afs/cern.ch/cms/cmsset_default.sh source /afs/cern.ch/cms/LCG/LCG-2/U...
true
ff4cf6209ff1e17c8b3398c39cb64c6c86416f60
Shell
josegonzalez/dokku-global-cert
/subcommands/set
UTF-8
2,287
3.8125
4
[ "MIT" ]
permissive
#!/usr/bin/env bash source "$(cd "$(dirname "$(dirname "${BASH_SOURCE[0]}")" )" && pwd)/config" source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions" source "$PLUGIN_AVAILABLE_PATH/global-cert/internal-functions" set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x cmd-global-cert-set() { #E set a global certificate combi...
true
cf141a0fc0756820fd38d664337506fc673a62b0
Shell
shiwaforce/NGINX-Demos
/packer-terraform-all-active-nginx-plus-lb/terraform/scripts/setup-nginx.sh
UTF-8
4,177
3.71875
4
[]
no_license
#!/bin/bash # Slightly modified versions of the following code blocks are currently used # as startup and shutdown scripts for Google Cloud instance templates # They provide a good reference on how to query Google Cloud for LB and App IPs # and update the Nginx upstream API with those values # Get list of available ...
true
2ce9ebd14518cec19cd8722862daf66263d79155
Shell
oliverguenther/docker-osx-dev
/docker-osx-dev
UTF-8
15,310
3.921875
4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash # # A script for running a productive development environment with Docker # on OS X. See https://github.com/brikis98/docker-osx-dev for more info. set -e # Console colors readonly COLOR_DEBUG='\033[1;36m' readonly COLOR_INFO='\033[0;32m' readonly COLOR_WARN='\033[1;33m' readonly COLOR_ERROR='\033[0;31m'...
true
ce4e62677e27a211c08766e4500e58585de65854
Shell
bwdmonkey/dotfiles
/bash_profile
UTF-8
1,053
2.984375
3
[]
no_license
export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion [[ -s "$HOME/.git-prompt.sh" ]] && source "$HOME/.git-prompt.sh" [[ -s "$HOME/.bashrc" ]] && source "$HOME/.bashrc" [[ -s "$...
true
6b499b7dcd9cb77628d71122a9f70810f7729c66
Shell
CyberSys/bifrost-build
/all/strace-4.5.20-2/Fetch-source.sh
UTF-8
1,896
2.640625
3
[]
no_license
#!/bin/bash SRC=strace-4.5.20.tar.bz2 DST=/var/spool/src/"${SRC}" MD5=64dfe10d9db0c1e34030891695ffca4b [ -s "${DST}" ] || ../../wget-finder --checksum "${MD5}" -O "${DST}" http://downloads.sourceforge.net/project/strace/strace/4.5.20/"${SRC}" \ || ../../wget-finder --checksum "${MD5}" -O "${DST}" http...
true
5c1f0bfbf3d08b07dbfe321808a6421ec8f66730
Shell
martinhynar/.dotfiles
/.oh-my-zsh/custom/plugins/oh-my-settings/oh-my-settings.plugin.zsh
UTF-8
1,646
2.609375
3
[]
no_license
source ~/.dotfiles-private/load-private # PATHS WORKBENCH=~/Workbench PATH=~/.dotfiles/bin:${PATH} PATH=~/bin:${PATH} PATH=~/.cache/rebar3/bin:${PATH} JAVA_HOME=/usr/java/latest/ PATH=${JAVA_HOME}:${PATH} TMP=/tmp; export TMP TMPDIR=$TMP; export TMPDIR # GOLANG export GOPATH=~/Projects/Go PATH=/usr/local/go/bin:$...
true
f20eb2557bbc3871a1ef058379ed6f31ff59cb9a
Shell
ScottByronDarrow/Logistic-Software-LS10-v5
/LS10.5/INSTALL/bin/BuildEnv
UTF-8
210
2.765625
3
[]
no_license
#!/bin/sh # # Build LS10 Environment file # LOAD_ENV=$PROG_PATH/BIN/UTILS/load_env PSL_ENV_NAME=$PROG_PATH/BIN/LOGISTIC; export PSL_ENV_NAME echo "Building LS10 Environment File" $LOAD_ENV $1 > /dev/null 2>&1
true
777df0a69ee2edca7910fd8708bf2b4b6133e71c
Shell
dkhabarov/EtherwayBalanceFetcher
/old.sh
UTF-8
1,282
2.625
3
[]
no_license
#!/bin/sh ################################### # Скрипт проверки баланса Etherway ru # Идеей и основой послужило: http://habrahabr.ru/blogs/sysadm/114177/ # Доработан Saymon21, Сбт Сен 10 19:27:55 2011 # admin<at>hub21<dot>ru or ewsaymon<at>yandex<dot>ru # Требования, wget ################################### ###########...
true
6616d5ad29641c413c8b7b592f5f3efe8629c569
Shell
vi88i/filerail
/setup.sh
UTF-8
710
3.359375
3
[ "MIT" ]
permissive
#!/bin/bash echo "Grab a coffee, sit back and relax till dependencies are downloaded..." if [[ ! -d "deps" ]] then mkdir deps fi # install all dependencies cd deps # install openssl if [[ ! -d "openssl" ]] then git clone https://github.com/openssl/openssl.git cd openssl git reset --hard 31a8925 ./Configure ...
true
39fb87aaa6fe5c9e86e9982d616bea97948fa8d3
Shell
saulgoodenough/Notes
/shell_notes/talk.sh
UTF-8
429
3.140625
3
[]
no_license
#!/bin/sh echo "Please talk to me ..." while : do read INPUT_STRING case $INPUT_STRING in hello) echo "Hello yourself!" ;; "how are you") echo "fine,how are you" ;; "what is your name") echo "tiger machine, how about you" ;; "i am tired") echo "take a rest" ;; bye) echo "See you...
true
44889fdcf6da45cd947d4fa5b6d08817cf8ca214
Shell
vishnuaggarwal23/quartzscheduler
/scripts/clearPreBuildArtifacts.sh
UTF-8
592
2.921875
3
[]
no_license
#!/usr/bin/env bash function clearPreBuildArtifacts(){ cd "$ROOT_PROJECT_PATH" cd $1 echo "Current Working Directory " pwd case $1 in rest) rm -rf build/ rm -rf out/ rm -rf bin/ ;; admin) rm -rf build/ rm -rf ou...
true
fa62eba9945bcb645014f311ebbf1a6564a9a72b
Shell
PrincetonUniversity/prsonpipe
/scripts/preprocess/run_prep
UTF-8
23,235
3.890625
4
[]
no_license
#!/bin/bash # # June 21, 2017: Miriam Weaverdyck added flags and style standards. # September 7, 2017: Judith Mildner overhauled structure to more flexible version # run_prep reads in prep_TSK.par or prep.par pfiles and launches each of the # steps as efficiently as possible. Sequential steps that use the same software...
true
ac74b4602596d97b7257f0f727971e525101f81c
Shell
nkhorman/spamilter
/rc.d/spamilter
UTF-8
2,832
3.625
4
[ "BSD-2-Clause" ]
permissive
#!/bin/sh # PROVIDE: spamilter # REQUIRE: psql # BEFORE: LOGIN # KEYWORD: nojail shutdown . /etc/rc.subr name="spamilter" spamilter_enable=${spamilter_enable:-"NO"} spamilter_flags=${spamilter_flags:-""} ipfwmtad_enable=${ipfwmtad_enable:-"NO"} ipfwmtad_flags=${ipfwmtad_flags:-""} greydbd_enable=${greydbd_enable:-"N...
true
83be1742af90fbf2556b77416ac6252ffa3f15a5
Shell
tppqt/iosArchiveShell
/demo/pid_time
UTF-8
493
3.625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # author wangyingbo # date:2021-04-23 上午 11:03 function show_elapsed_time() { user_hz=$(getconf CLK_TCK) #mostly it's 100 on x86/x86_64 pid=$1 jiffies=$(cat /proc/$pid/stat | cut -d" " -f22) sys_uptime=$(cat /proc/uptime | cut -d" " -f1) last_time=$(( ${sys_uptime%.*} - $jiffies/$user_hz )) echo "the...
true
54688d92e51a524dc4e85ea47c0c0e4db71e45d0
Shell
vitorAmorims/shellscript
/gitBasico.sh
UTF-8
1,974
3.0625
3
[]
no_license
!#/bin/bash clear; echo "etapa 1 - instalação do git" sleep 1 echo "use o comando sudo apt-get install git-all" echo "Vamos ver se a pasta git existe?" if [ -d /bin ] then echo "Diretório git já existe." fi sleep 2 clear echo "etapa 2 - configuração" sleep 1 echo "use o comando git config --global username" echo "...
true
9189f0677d6f7483633da6d08e0817d871023ca5
Shell
Thecarisma/serenity
/Ports/links/links.sh
UTF-8
311
2.5625
3
[ "BSD-2-Clause" ]
permissive
#!/bin/sh PORT_DIR=links fetch() { run_fetch_web "http://links.twibright.com/download/links-2.19.tar.bz2" } configure() { run_export_env CC i686-pc-serenity-gcc run_configure_autotools } build() { run_make } install() { run_make_install DESTDIR="$SERENITY_ROOT"/Root } . ../.port_include.sh
true
fc6574a9237a12b52c5f5f4683bf33a179a9fd80
Shell
AlexRomero10/Scripts
/DHCP/libreria.sh
UTF-8
8,847
3.703125
4
[]
no_license
#Esta función determina si eres root o no usando el comando whoami. Si lo #eres devuelve 0, si no es así te echa del script, ya que no tendría sentido continuar. function f_soyroot { set $(whoami) if [[ $1 = 'root' ]] then return 0 else echo "No eres root" exit 1 fi } #Esta función necesita de un argu...
true
e225fabc60719a545bfeb2b5662250e138d3b0da
Shell
muratayusuke/dot.zsh.d
/lib/misc.zsh
UTF-8
2,177
2.71875
3
[]
no_license
# ベルを鳴らさない。 setopt no_beep # バックグラウンドジョブが終了したらすぐに知らせる。 setopt no_tify # cdでpushdする。 setopt auto_pushd # ディレクトリ名でcd setopt auto_cd # 間違えたら訂正を出す setopt correct # reload .zshrc alias s=". ~/.zshrc" # キーをemacs風に bindkey -e # freemind export PATH=/usr/local/freemind:$PATH # ctags 環境設定 export PATH=/usr/local/ctags/bi...
true
71d865166dacf71b23643d8d9769704e66d5d674
Shell
taarimalta/selenium-server-deb-package
/src/DEBIAN/postinst
UTF-8
1,921
3.546875
4
[]
no_license
#!/bin/sh # postinst script for selenium-server # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * <postinst> `configure' <most-recently-configured-version> # * <old-postinst> `abort-upgrade' <new version> # * <conflictor's-postinst> `abort-remove' `in-favour' <packa...
true
583ed34f5431c3f076a002a15c43b9b7d9748f1d
Shell
nishakshatriya/shellprogram
/arithmetic/Gambler.sh
UTF-8
369
3.453125
3
[]
no_license
#!/bin/bash/ -x read -p "enter the Stake:" stake read -p "enter the Goal:" goal read -p "enter the trials:" trials win=0 bet=0 for((i=0;i<trial;i++)) do cash=$stake while[[ cash > 0 && cash < goal ]] do ((bet++)) if((RANDOM%2)>0.5) ((cash++)) else ((cash--)) fi done if [ $cash -eq $goal ] do ((...
true
25e3541569b119bb07bbe8e867e737a3c9482062
Shell
hmasmoudi/SyphaxOS
/Default/0003-SyphaxOSGnome3/001_BuildPackagesScripts/0121_3-flac/PKGBUILD
UTF-8
638
2.625
3
[]
no_license
# Maintainer: Hatem Masmoudi <hatem.masmoudi@gmail.com> pkgname=flac pkgver=1.3.2 pkgrel=4 pkgdesc="FLAC is an audio CODEC similar to MP3, but lossless, meaning that audio is compressed without losing any information." arch=('x86_64') url="http://downloads.xiph.org/releases/flac" license=('GPL') groups=('desktop') sou...
true
cfb334e6fab44ff3bf9d2e83a610af46b1f89838
Shell
J4VJ4R/holberton-system_engineering-devops
/0x04-loops_conditions_and_parsing/6-superstitious_numbers
UTF-8
248
3.71875
4
[]
no_license
#!/usr/bin/env bash # script to display numbers from 1 to 20 x=1 while [ $x -le 20 ] do case $x in 5) echo "bad luck from China";; 10) echo "bad luck from Japan";; 18) echo "bad luck from Italy";; esac echo "$x" ((x=x+1)) done
true
f576e76142e1c3be343439a4d386295b78b1f42f
Shell
miroi/My_scripts
/grid_runs/virtual_organizations/enmr_eu/1node/test_run/run_on_CE_test.sh
UTF-8
2,363
3.734375
4
[ "MIT" ]
permissive
#!/bin/sh ####################################################################################################### # # # Script for downloading, upacking and launching the DIRAC4Grid suite on some grid CE of given VO. # # #################################################################################################...
true
2844c22adf7eb159554564c49c416a50cea6046d
Shell
bartman/dot-uzbl
/scripts/load_url_from_bookmarks.sh
UTF-8
649
3.765625
4
[]
no_license
#!/bin/bash #NOTE: it's the job of the script that inserts bookmarks to make sure there are no dupes. file=$HOME/.uzbl/data/bookmarks [ -z "$file" ] && exit 1 COLORS=" -nb #303030 -nf khaki -sb #CCFFAA -sf #303030" if dmenu --help 2>&1 | grep -q '\[-rs\] \[-ni\] \[-nl\] \[-xs\]' then DMENU="dmenu -i -xs -rs -l 10" ...
true
39354901252aa403663f662a64abba9020833afd
Shell
lonkamikaze/bsda2
/tests/bsda_container.sh
UTF-8
3,615
3.140625
3
[ "ISC" ]
permissive
. ../src/bsda_container.sh . ../src/bsda_test.sh . ../src/bsda_util.sh NL=$'\n' # Comma separated fields IFS="," # Lambda, produce comma separated list of key→value pairs lambda() { kvs="${kvs:+$kvs,}$(printf "%s→%s" "$@")" } # Create a memory dump memdump0="$(true;set)" # # Check bsda:container:Array # # Create ...
true
ea96c82b4cdbe38875360bb30042f9c9d6c8a157
Shell
cha63506/maemo
/gadget/xprootfs
UTF-8
916
4.25
4
[]
no_license
#!/bin/sh # # xprootfs -- extract a rootfs.tar.gz # # This utility helps you to unpack a rootfs tarball such that you can # customize it, and create a customize rootfs image from it. # # Synopsis: # xprootfs [-x] [[<rootfs.tar.gz>] [<target-dir>]] # # will create <target-dir> ("rootfs" by default) and extract <rootfs...
true
49db817b23a245117a6c012d691eb49525ea175d
Shell
batya239/rg-graph
/phi4/graphs/run_SDN_all_tp.sh
UTF-8
338
2.546875
3
[]
no_license
#!/bin/sh MODEL=`cat modelN.txt` NPOINTS=1000000 cd $PWD for i in `cat _to_tpclusterN.txt`; do TT=`qstat -a @pbs-tp.hpc.cc.spbu.ru|grep mkompan|wc -l` M=`cat NQ-tp.txt` while [ $TT -gt $M ]; do #echo $TT sleep 10 M=`cat NQ-tp.txt` TT=`qstat -a @pbs-tp.hpc.cc.spbu.ru|grep mkompan|wc -l` done echo $i sh rundiagN-tp.sh...
true
2825d83fa28c1eb4bbe259f2a4f1b42bd4cd85dd
Shell
durgeshmishra24x7/Quick_Tutorial
/Shell Script Example
UTF-8
2,354
3.375
3
[]
no_license
#!/bin/bash #Author : Durgesh Mishra #Date Created : 11-06-2021 #Description :This script will output Control file data into .csv format SOURCE="D:/Shell_scri[t" #echo "My source file is $SOURCE" #This Function will UNZIP the folder function unzipp() { #echo "Calling Function - " $1 #locate $1 ...
true
5dd783239e95df016ab6bd9a4598b2f12f8111cd
Shell
mglaman/drupal-puphpet
/scripts/setup-commerce-deploy.sh
UTF-8
499
3.21875
3
[]
no_license
#!/bin/sh ROOT_DIR="$( cd "$( dirname "$( dirname "$0" )" )" && pwd )" REPO_DIR=$ROOT_DIR/profiles/commerce_deploy SITE_DIR=$ROOT_DIR/sites/commerce_deploy echo "Checking out latest of Commerce Deploy distribution..." if [ -d "$REPO_DIR" ]; then cd $REPO_DIR && git pull else git clone --branch 7.x-1.x http://git.d...
true
6f1eb4c837547ceac266f0ba2cbab80b9439a871
Shell
freenas/iocage-plugin-nextcloud
/overlay/usr/local/bin/generate_letsencrypt_certificates
UTF-8
968
3.71875
4
[]
no_license
#!/bin/sh set -eu . load_env domain_name=${1:-} admin_email=${2:-} if [ "$domain_name" = "" ] then echo "Please provide a domain name: generate_letsencrypt_certificates <domain_name> <admin_email>" exit 1 fi if [ "$admin_email" = "" ] then echo "Please provide a admin email: generate_letsencrypt_certificates <d...
true
8604e0f5fa2f7a1061b24aafa482795480886007
Shell
hongchan2/LinuxFileExplore
/main.sh
UTF-8
15,328
3.25
3
[]
no_license
#!/bin/bash declare -a files # store all files in current directory declare -i INDEX=0 # files array index declare -i x_current declare -i y_current declare -i x_print declare -i y_print declare -i index_num # total index number declare -a dir_path declare -a file_path declare -a file_origin_path # store origin...
true
a3d5df4a8503556a32e383e9ba6baac047873889
Shell
AdamSvetec/statera-dataprocessing
/scripts/data_processing.sh
UTF-8
2,168
3.296875
3
[]
no_license
#!/bin/bash #Script for end to end data run data_folder="/home/ubuntu/BulkData/" source_folder="/home/ubuntu/379SeniorProject/" fortune_n_file="fortune_500.csv" bill_scores_file="bill_scores.csv" issues_file="issues.csv" votes_folder="votes/" cf16_folder="CampaignFin16/" r_command="R --vanilla -q --slave -f" r_script_...
true
e93275dde483e1b1c69472629e270c888882bd22
Shell
startupheroes/startupheroes-scripts
/bin/react-app.sh
UTF-8
1,002
2.703125
3
[]
no_license
#!/usr/bin/env bash npm install npm install -g code-push-cli code-push login --accessKey ${CODE_PUSH_ACCESS_KEY} code-push release-react ${CODE_PUSH_REPO_NAME} android -d "Staging" --dev false cd android ./gradlew dependencies ./gradlew assembleInternalRelease crashlyticsUploadDistributionInternalRelease ./gradlew ass...
true
074d60eb30f5f579473d8714290598f7160df965
Shell
ownport/microk8s-snippets
/scripts/microk8s.sh
UTF-8
2,405
3.953125
4
[ "MIT" ]
permissive
#!/bin/bash # exit immediately on error set -e # fail on undeclared variables set -u # Grab the directory of the scripts, in case the script is invoked from a different path SCRIPTS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" # Useful routines in common.sh . "${SCRIPTS_DIR}/common.sh" MICRO...
true
b0a49ae54967b1f57d259f399ffdb6640d9cbd74
Shell
locochris/dotfiles
/.bin/startdwm
UTF-8
162
2.625
3
[]
no_license
#!/bin/sh dwm_dir=${HOME}/.dwm conky -c ${dwm_dir}/conkyrc | while read -r; do xsetroot -name "$REPLY"; done & while true; do dwm 2> ${dwm_dir}/dwm.err; done;
true
b49b177175c53d66cea021753f237d77107db7a2
Shell
jorgeflores742/JF_AT08
/task5/script.sh
UTF-8
423
2.546875
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash echo "~ Installing java 8 ~" #install java sudo apt update sudo apt-get install openjdk-8-jdk -y echo "~ Installing jenkins ~" #install jenkins:2.105.3 wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add - sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binar...
true
506d3ac1fb7e8d738edaea5c8507a6a2339b9381
Shell
kobylinski/baset
/src/baset/vendor.sh
UTF-8
3,232
4.28125
4
[]
no_license
baset_vendor_install() { local root=$(baset_root) local path=$(baset_path) local vendor=$(baset_vendor) # Ensure that .baset file exists if [ ! -f "$path" -a -w "$root" ]; then touch "$path" fi # Ensure that vendor directory already exists if [ ! -d "$vendor" ]; then mkdir "$vendor" fi lo...
true
4668f2be2cde8c2b0dace22cb363c6c7477f5f98
Shell
jcstr/arch4edu
/raspi-config/PKGBUILD
UTF-8
794
2.96875
3
[]
no_license
# Maintainer: Jefferson Gonzalez <jgmdev@gmail.com> pkgname=raspi-config pkgver=r2.aa2dfd1 pkgrel=1 pkgdesc="Raspberry pi raspi-config utility adapted for ArchLinux ARM." arch=('armv6h' 'armv7h' 'aarch64') url="https://github.com/jgmdev/alarm-raspi-config" license=('MIT') depends=('xorg-xrandr' 'libnewt') provides=('r...
true
41813e970286c06eb1ba98e23091ab02b874c808
Shell
ospray/ospray_studio
/gitlab/run-dev-img-cmp.sh
UTF-8
1,678
3.109375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash -x ## Copyright 2015 Intel Corporation ## SPDX-License-Identifier: Apache-2.0 set -e OSPRAY_VER="devel" export LD_LIBRARY_PATH=$CACHE_DIR/ospray-$OSPRAY_VER/build/install/lib:$LD_LIBRARY_PATH SCRIPT_DIR=$(pwd)/$(dirname "$0") echo $SCRIPT_DIR cd ./build #IMG_DIFF_TOOL=$CACHE_DIR/../tools/img_diff/img_d...
true
7fb18315993dc26abcd0098d6b8c05e14d1e452a
Shell
TheBlackParrot/blockland-dedi-linux-guide
/assets/scripts/bl-ded
UTF-8
1,463
3.90625
4
[]
no_license
#!/bin/sh export WINEDLLOVERRIDES="mscoree,mshtml=" ## Blockland Dedicated Server Launcher ## Written by Greek2me. # Define defaults. attach_screen=false game_mode="Custom" server_mode="dedicated" server_number=-1 server_path="/blockland/server" # Parse arguments. OPTIND=1 while getopts "ac:g:ln:p:" opt; do case...
true
b258d9a77ed5c4e27fb3dd53b972ee71da948e8d
Shell
wd5m/echoirlp
/filemirror/scripts/dtmfregen
UTF-8
508
3.109375
3
[]
no_license
#!/bin/bash # Plays DTMF digits with check for COS, key, .25 second delay, unkey if [ "$DTMF_REGENERATION" != "YES" ] ; then exit 1; fi # Check for user defined commands if [ -f "$CUSTOM"/custom_regen ]; then if ! "$CUSTOM"/custom_regen $1 $2 ; then exit 0; fi fi if [ "$#" = "0" ] ; then exit 1; fi killall ispea...
true
dad82c538c3816e4ceace83dda4d4338ce83952c
Shell
drozdowsky/rc-files
/.local/bin/interface
UTF-8
342
3.046875
3
[]
no_license
#!/bin/sh # # http://github.com/mitchweaver/bin # # get correct wifi interface # case $(uname) in Linux|FreeBSD) ifconfig -a | grep 'wl' | sed 's/Link//' | awk '{print $1}' | head -n 1 | sed 's/://' ;; OpenBSD) ifconfig -a | grep -B 3 wl | head -1 | awk '{print $1}' | head -n 1 | sed 's...
true
448e99800b15fd3f3edfb20a16c21f350b19e7f3
Shell
gustavorobertux/install_golang_parrot
/golang_install.sh
UTF-8
283
2.578125
3
[]
no_license
#!/bin/bash # Install golang sudo apt install golang -y # Install git sudo apt install git -y echo "export GOROOT=/usr/lib/go" >> $HOME/.bashrc echo "export GOPATH=\$HOME/go" >> $HOME/.bashrc echo "export PATH=$GOPATH/bin:$GOROOT/bin:$PATH" >> $HOME/.bashrc source $HOME/.bashrc
true
9e5ab4a8cfe95371b9544cd10ba7922119a421e6
Shell
maxbert/EnvairoBlinkUp
/deployment/bin/setup_deploy_keys.sh
UTF-8
493
3.4375
3
[]
no_license
#!/bin/bash set -e function add_key() { ssh-copy-id -i ./deployment/config/deploy_rsa.pub $1 } echo "Setting up deploy key..." ssh-keygen -t rsa -b 4096 -C "build@travis-ci.org" -f ./deployment/config/deploy_rsa travis encrypt-file ./deployment/config/deploy_rsa --add mv deploy_rsa.enc ./deployment/config/deplo...
true
21f33d0506b0e1b30d0620481e7e1fdba14f04d4
Shell
KarelWintersky/BodyBuildingShop
/cron/backup.db.sh
UTF-8
1,494
3.359375
3
[]
no_license
#!/usr/bin/env bash SCRIPT="${0}" SCRIPT_BASEDIR="$(dirname ${SCRIPT})" if [[ ${SCRIPT_BASEDIR} != '.' ]]; then SCRIPT_PATH=`echo ${SCRIPT_BASEDIR}` else SCRIPT_PATH=`echo ${PWD}` fi . ${SCRIPT_PATH}/_config.conf CLOUD_CONTAINER="BBS_SQL" DATABASES=( bodybuildingshop ) for DB in "${DATABASES[@]}" do FILENAME...
true
e0b4675edb789002edfa9b0792ea022cadd6e3e5
Shell
jiangkui/linux
/bin/publish42.sh
UTF-8
2,398
3.5
4
[]
no_license
#!/bin/bash # #-----------------版权-------------------- # 名称:发布静态文件 # 版本:1.0 # 语言:bash shell # 日期:2016年01月04日11:39:53 # 作者:ljk # 邮件:1013939150@qq.com #-----------------环境-------------------- # Linux 3.13.0 # GNU Bash 4.3.11 #-----------------参数-------------------- tryAgain=$1 serverMt="root@192.168.1.42" serverLvs="wor...
true
b35c06b14c99bbe269925bea623b069bba3ca393
Shell
archoncap/FrameworkBenchmarks
/toolset/setup/linux/systools/gcc-4.9.sh
UTF-8
293
2.96875
3
[]
no_license
#!/bin/bash RETCODE=$(fw_exists ${IROOT}/gcc-4.9.installed) [ ! "$RETCODE" == 0 ] || { \ source $IROOT/gcc-4.9.installed return 0; } sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y sudo apt-get -yq update sudo apt-get install -qqy gcc-4.9 g++-4.9 touch $IROOT/gcc-4.9.installed
true
742c8e72786981cead84857473dfc40fb2a82b38
Shell
brucewu16899/email2db-php
/bin/m2dctl
UTF-8
5,697
3.703125
4
[]
no_license
#! /bin/sh ### BEGIN INIT INFO # Provides: m2dctl # Required-Start: $local_fs $remote_fs $network $syslog # Required-Stop: $local_fs $remote_fs $network $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # X-Interactive: true # Short-Description: mail2db initscript # Description: ...
true
4191577e64f229efd75801b03f3e806355ecbd40
Shell
stg-tud/SecQL
/distributed-benchmarks/aws-setup/lib/aws-sd-create-namespace.sh
UTF-8
467
3.546875
4
[]
no_license
#!/bin/bash echo "Creating namespace $2 in VPC $1" echo ">> Request namespace creation" OPID=$(aws servicediscovery create-private-dns-namespace \ --name $2 \ --vpc $1 \ | sed -nE '/"OperationId": "/{s/.*:\s*"(.*)"/\1/p;q}') while [ "SUCCESS" != $(aws servicediscovery get-operation \ --operation-id $OPID | sed -n...
true
e181b55414f988cf48a7c2a0ae2717a9b8af7e70
Shell
rsignell-usgs/cloud-gchp-paper
/scripts/download_data/fix_GMI.sh
UTF-8
506
2.609375
3
[ "MIT" ]
permissive
#!/bin/bash # HEMCO/GMI has some softlinks that are ignored by S3 if [ "$1" ]; then DATA_ROOT=$1 else echo 'Must specify path to ExtData/ directory' exit 1 fi cd $DATA_ROOT/HEMCO/GMI/v2015-02 ln -s gmi.clim.PMN.geos5.2x25.nc gmi.clim.IPMN.geos5.2x25.nc ln -s gmi.clim.PMN.geos5.2x25.nc gmi.clim.NPMN.geos5.2x25....
true
5760c8aa8546a3556896db74c477ddcb347a18de
Shell
NovaKe1n/null
/bin/wifi
UTF-8
2,043
4.3125
4
[]
no_license
#!/usr/local/bin/bash # wi-fi tool # 0.8-b1 # wi-fi tool for OSX to control your wifi, antenna and sniff packets host="8.8.8.8" timeout=10 network="$(networksetup -getairportnetwork en0 | cut -d':' -f2 | tr -d ' ')" # Function to connect to a network function connect() { networksetup -setairportpower en0 on sleep...
true
73fbb7aa1d321070620ca0bafc917b3456188a7e
Shell
alexandre1985/bin
/cloudflare-purge-all
UTF-8
404
2.734375
3
[]
no_license
#!/bin/bash EMAIL=${LESSPASS_EMAIL} AUTH_KEY=${CLOUDFLARE_KEY} ZONE_ID=77a6c2ae28ca89c89d6d077510dce3fe API_LINK=https://api.cloudflare.com/client/v4/zones/${ZONE_ID}/purge_cache # Purge all CMD=$(curl --silent -X POST "${API_LINK}" -H "X-Auth-Email: ${EMAIL}" -H "X-Auth-Key: ${AUTH_KEY}" -H "Content-Type: applica...
true
a26f74077e0f340c359b5793e31adddcf2b9271a
Shell
guangminghe/openstack-installer-rdo
/launch-instance.sh
UTF-8
1,367
2.75
3
[]
no_license
#!/usr/bin/env bash set -x source config/config.sh source ../openstack_installer_temp/admin-openrc START_IP="192.168.1.120" END_IP="192.168.1.150" DNS="211.137.130.3" GATEWAY="192.168.1.1" openstack network create --share --external --provider-physical-network provider --provider-network-type flat provider opensta...
true
1edf5ed3ad2441ad32ebec5711c93622c07eb0d3
Shell
Catamondium/scratch
/test.sh
UTF-8
649
3.859375
4
[ "Unlicense" ]
permissive
#!/bin/bash #GNU bash, version 4.3.48(1)-release (x86_64-pc-linux-gnu) : ' # Function testing function gettime () { response=`addtime $1 $2` echo -e "gettime: $*\n$response" return 0 } start=3:30 length=60 gettime $start $length gettime 0:00 60 echo "Returned: $?" ' # Boolean/conditionals testing bool=$true num="...
true
1f1997b0264f0286bacd9a431e03636a9155fb13
Shell
shiftuya/Bioinformatics
/run.sh
UTF-8
269
2.890625
3
[]
no_license
#!/bin/bash fastqc $1.fastq.gz mv $1_fastqc.html $1.html rm $1_fastqc.zip bwa index ref.fna bwa mem ref.fna $1.fastq.gz > $1.sam if (( $(echo $(samtools flagstat $1.sam | grep -o -P '[0-9]*(\.[0-9]*)?(?=%)')">90" | bc -l) )); then echo "OK" else echo "Not OK" fi
true
65448f3a6d6cd6f3ac1e898575c0a52aad894e5c
Shell
prasenforu/openshift-origin-aws
/install-aws-cli.sh
UTF-8
996
3.53125
4
[]
no_license
#!/bin/bash # This script will install AWS CLI tool # Create by Prasenjit Kar (prasenforu@hotmail.com) # Version 0.1 # Check AWS CLI installed or not # If not installed it will start download and install if ! type "aws" > /dev/null; then echo "Installing AWS ..." echo "Downloading AWS CLI package and unzip"...
true
af6a9c7a9c139e6469c17d3a08f3d69e1eb6ae6f
Shell
demichele/install-hornet-1.5
/install.sh
UTF-8
1,008
2.734375
3
[]
no_license
#!/bin/bash # Run all commands needed to install Hornet apt update && apt dist-upgrade -y apt install build-essential git # Install Goland 1.16 wget https://golang.org/dl/go1.16.linux-amd64.tar.gz tar -C /usr/local -xzf go1.16.linux-amd64.tar.gz export PATH=$PATH:/usr/local/go/bin cd /opt # Open dash and TCP ports ufw...
true
a49b39b6fc3e8f20f78e1b345f4e3ebc2ac56282
Shell
delkyd/alfheim_linux-PKGBUILDS
/python2-xmltramp/PKGBUILD
UTF-8
569
2.640625
3
[]
no_license
pkgname=python2-xmltramp pkgver=2.18 pkgrel=2 pkgdesc="xmltramp is a simple Pythonic API for working with XML documentation" arch=('i686' 'x86_64') makedepends=('python2-distribute') url="http://www.aaronsw.com/2002/xmltramp/" license=('GPL2') depends=('python2') source=('http://www.aaronsw.com/2002/xmltramp/xmltramp.p...
true
56ec92f62696f9a8b8adbf358bb44b65a8131da1
Shell
b0elter/mke-police-blotter
/scraper/assets/opt/mke-pd-blt/forever.sh
UTF-8
398
3.3125
3
[]
no_license
#!/usr/bin/env bash SLEEP=120 database_ready() { curl --silent --connect-timeout 1 http://${PGHOST}:${PGPORT} echo $? } echo "Waiting for database to be ready..." while [ $(database_ready) -ne "52" ]; do sleep 1 done set -e echo "Run schema initialization..." node init-schema.js echo "Begin polling d...
true
8633def0ce99c69093a1a3dfc26cd8149885e5f2
Shell
yuksiy/setup_tools_options_for_master
/setup_pkg_list_local_make_debian.sh
UTF-8
4,508
4.1875
4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/sh # ============================================================================== # 機能 # パッケージリスト(ローカル)を作成する (Debian) # 構文 # USAGE 参照 # # Copyright (c) 2011-2017 Yukio Shiiya # # This software is released under the MIT License. # https://opensource.org/licenses/MIT # ========================...
true
5972b11c172215b0211f20654dc0e28ec706f4a5
Shell
ndrean/pg-doc
/sinatra/setup.sh
UTF-8
231
2.671875
3
[]
no_license
#!/usr/bin/env sh set -ex echo "Waiting PostgreSQL:$POSTGRES_HOST to start on 5432..." until pg_isready -h $POSTGRES_HOST -p 5432; do sleep 1 done echo "PostgreSQL started" exec "$@" # exec bundle exec rackup --host 0.0.0.0
true
5a6ff17190c945481e3958d169f5e5365efcacd5
Shell
webclinic017/Termux
/installs/de-apt-xfce4.sh
UTF-8
1,452
2.984375
3
[]
no_license
#!/data/data/com.termux/files/usr/bin/sh echo "Get the necessary components" apt-get update -y apt-get install -y xfce4 apt-get install -y xfce4-terminal apt-get install -y tightvncserver apt-get install -y xfe apt-get clean echo "Setup the necessary files" mkdir ~/.vnc wget https://raw.githubusercontent.com/...
true
f390568f3f69257083c13390cf7a9e031a2d50d6
Shell
kdave/xfstests
/tests/xfs/063
UTF-8
748
2.8125
3
[]
no_license
#! /bin/bash # SPDX-License-Identifier: GPL-2.0 # Copyright (c) 2000-2002 Silicon Graphics, Inc. All Rights Reserved. # # FS QA Test No. 063 # # xfsdump/xfsrestore with EAs # . ./common/preamble _begin_fstest dump attr auto quick # Override the default cleanup function. _cleanup() { _cleanup_dump cd / rm -f $tmp.*...
true
d2b361597423bc8c3360cfd1f79fe3d50d4a01e6
Shell
purdue-tlt/latex2sympy
/scripts/test.sh
UTF-8
554
3.46875
3
[ "MIT" ]
permissive
#!/bin/sh # Get relative path of the root directory of the project rdir=`git rev-parse --git-dir` rel_path="$(dirname "$rdir")" # Change to that path and run the file cd $rel_path # Activate virtual environment echo "activating venv..." if test -f .env/bin/activate then . .env/bin/activate && echo "venv activate (bin...
true
0c9c223b1b289fa899cdc2cc0f41a58ee555aaab
Shell
pine/dotfiles-1
/install-for-ubuntu.sh
UTF-8
1,367
3.28125
3
[]
no_license
#!/bin/bash if [ ! `type fish >/dev/null 2>&1` ]; then # install fish shell sudo apt-add-repository -y ppa:fish-shell/release-2 sudo apt-get update sudo apt-get -y install fish chsh -s /usr/bin/fish echo "installed fish shell" fi if [ ! -e $HOME/.tmux/tmux-powerline ]; then [ ! -e $HOME/.tmux ] && mkd...
true
f615b252c114f15efc4664a3ebfb36f7b004f265
Shell
Sumner1185/ecsd-scripting-workshop
/AWK/task_1.sh
UTF-8
214
3.484375
3
[]
no_license
#!/bin/bash declare -a numbers Echo "Enter numbers to be split..." read -a numbers { for (number in numbers) { if (number % 2 == 0) { number >> even.txt } else { number >> odd.txt } } cat even.txt
true
467f27c3aa4c73e53184dff58a41f065d05fb52e
Shell
GildasLepennetier/black_ip_matters
/script.fail2ban.report.sh
UTF-8
739
3.34375
3
[]
no_license
#!/usr/bin/env bash set -e # check the website DATABASE="blacklist.fail2ban-report.all.txt" WEBSITE="https://lists.blocklist.de/lists/all.txt" NAME_DISPLAY="[fail2ban-report]" DATE=$(date +"%Y-%d-%m %T" ) COUNT1=$(cat ${DATABASE} | wc -l) wget -q $WEBSITE -O blacklist.fail2ban-report.all.LATEST.txt 2> /dev/null cat bl...
true
ad8ade38136f7e742503e11c4ae564a181fb2cab
Shell
intfrr/Dotfiles-3
/scripts/markdown_link_clipboard.sh
UTF-8
230
3.390625
3
[]
no_license
#!/usr/bin/env bash set -e url=$(~/.bin/safepaste | ~/.bin/urls -b) if [[ -z "$url" ]]; then echo "No URL found on the clipboard" >&2 exit 1 fi text="$1" if [[ -z "$text" ]]; then text=$(cat) fi echo -n "[$text]($url)"
true
c6952eb9b68fcd3852215e81f70fb1bcaaf639ac
Shell
make7love/sunlight-env-install
/rpm/mysql/install_mariadb.sh
UTF-8
4,102
3.421875
3
[]
no_license
#!/bin/bash if [ -z "$base_path" ];then base_path=$(cd `dirname $0`;pwd) opt_path="$base_path" else opt_path="$base_path/rpm/mysql" fi function kill_mysql() { check_mysql_pid=$(ps -ef|grep mysqld | grep -v grep | wc -l) if [ $check_mysql_pid -gt 0 ];then systemctl stop mysql.service mysqladmin shutdown kil...
true
d199be0b2d0390ff28354a998fa99b76e1e45294
Shell
AndyA/RemarcTools
/media/tools/prune.sh
UTF-8
302
2.953125
3
[]
no_license
#!/bin/bash incoming="incoming" output="output" outabs="$PWD/$output" cd "$incoming" find . -type f -not -name '.*' | while read src; do dir="$outabs/$( dirname "$src" )" base="$( basename "$src" )" pat="${base%.*}.*" find "$dir" -maxdepth 1 -name "$pat" done # vim:ts=2:sw=2:sts=2:et:ft=sh
true
48721acd2ca56bb868f57d8fc43783ba02d3bf25
Shell
JPGOMEZP/Linux_Core_Kernel
/otc_lck_gdc_mx_test_suite-lck_suite/LCK-Test/testcases/scripts/rtc/rtc_read_time_date.sh
UTF-8
3,565
3.59375
4
[]
no_license
#!/bin/bash ############################################################################### # # Copyright (C) 2016 Intel - http://www.intel.com/ # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation...
true
5dc06fe50e021c761726975d2c7c554230540fb6
Shell
ivan-claire/RPL_Extension
/runSimTwoOF.sh
UTF-8
3,444
3.125
3
[]
no_license
#!/bin/bash echo "Bash version ${BASH_VERSION}..." printf "Link_Quality\Objective_Function\tOF0\tMRHOF\n" >> output.csv # Run simulation for OF0 perl -p -i -e "s/CONNECTIVITY_MATRIX_LINK_QUALITY = \{\'pdr\' : 0.5, \'rssi\' : -30\}/CONNECTIVITY_MATRIX_LINK_QUALITY = \{\'pdr\' : 0.0, \'rssi\' : -30\}/g" ./OrignalSimulat...
true
70abd58c2244ce752e25c7ec525cdbf452df37a6
Shell
munair/ddex-price-reservation-alert
/monitor.bash
UTF-8
694
3.21875
3
[]
no_license
#!/bin/bash # backup the cron tables crontab -l > /tmp/crontab.original # use them as the basis for new cron tables cp /tmp/crontab.original /tmp/crontab.informer # make a temporary BASH script to check for polling activity cat << EOF > /tmp/informer.bash activepoller=\$(/bin/ps auwx | grep poller.py | wc -l) if [[ ...
true
23630af151795092094a577cb84bd62c28af31fd
Shell
dsivkov/bs_bench_idp
/set_python_envs.sh
UTF-8
2,234
2.859375
3
[ "MIT" ]
permissive
#!/bin/bash -x # Copyright (c) 2017, Intel Corporation # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, # this list of conditions and...
true
380370eedc02a1a3abc8e628884f38e201543b12
Shell
fionnan/BlockchainInfoParser
/parse.sh
UTF-8
194
2.9375
3
[]
no_license
#!/bin/bash file=$1 grep \<td\> $file | awk -F'>' '{if ((NR % 5) == 1 ) print $3; if ((NR % 5) == 3) print $2 ; if ((NR % 5) == 4 ) print $4 }' | awk -F '<' '{print $1}' > ${file}_parsed
true
3cc2d646b1f89811ea4a0f56270a24dcdcfa89b1
Shell
ymarion/geometry
/Tests/timePerformance.sh
UTF-8
1,533
2.90625
3
[]
no_license
#!/bin/bash echo "Testing the LOADing of different # of figures." printf "Note: Generating time not counted.\n\n\n" printf "10 figures" ./generator 10 > temp.txt { time printf "LOAD temp.txt\nEXIT\n" | ./geometry > /dev/null; } 2>&1 echo printf "50 figures" ./generator 50 > temp.txt { time printf "LOAD temp.txt\nEXI...
true
d4246a08629d29b4ea7415f1e6d3d37cbd081561
Shell
plomlompom/config
/bin/setup_starttls.sh
UTF-8
796
3.65625
4
[]
no_license
#!/bin/sh set -x set -e key=$1 cert=$2 if [ ! "$(id -u)" -eq "0" ]; then echo "Must be run as root." exit 1 fi key_target=/etc/postfix/key.pem if [ ! -n "$key" ]; then if [ ! -f "${key_target}" ]; then (umask 077; openssl genrsa -out "${key_target}" 2048) fi else cp "$key" "${key_target}" fi fqdn=$(pos...
true
367dce79b71c3041f7fbd75d3b50ba7e2cd2519d
Shell
mmathesius/stream-module-testing
/create-new-branches.sh
UTF-8
1,187
4
4
[]
no_license
#!/bin/bash # Usage: create-new-branches.sh namespace/component#ref [ ... ] dry_run=no scm_base="ssh://git@gitlab.com/redhat/centos-stream" for arg in $@ do echo "Processing $arg" base="${arg%%\#*}" if [ "$base" == "$arg" ] then # no suffix ref="master" else ref="${arg#*\...
true
1d6e749a98ac2d3d95a2ef083c8aeda19e69ed51
Shell
havenden/web-backup
/backup.sh
UTF-8
2,527
3.765625
4
[]
no_license
#!/bin/bash #备份网站相关配置 web_path='/data/htdocs/' #网站文件路径 conf_path='/usr/local/nginx/conf/vhost/' #nginx配置文件路径 username='mysql-user' #数据库用户名 password='mysql-password' #数据库密码 target_path='/data/wwwbak/backup_files/' #要备份到哪个目录,此目录会自动创建 #服务器互相备份 #上传远程服务器FTP配置 ftp_ip...
true
e11c5e99d5ac70dbb3c0172ae7f71252d7374440
Shell
combs/reposearch
/repoindex
UTF-8
333
3.59375
4
[]
no_license
#!/bin/bash DIR=$1 if [ "$DIR" == "" ] then DIR=`git rev-parse --show-toplevel` fi REPONAME=`basename $DIR` INDEX=$DIR/../.index.$REPONAME.gz echo Indexing $REPONAME to $INDEX cd $DIR grep -IR '$' * --exclude-dir=.git --exclude=app.\* --exclude=\*.min.\* --exclude-dir=\*/vendor --exclude-dir=\*/node_modules | gzip -...
true
014c4e074065d345c0d74172f05c3668ef7b6653
Shell
nshttpd/mikrotik-exporter
/scripts/build-armhf.sh
UTF-8
290
2.59375
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash set -e set -x DIR=`pwd` NAME=`basename ${DIR}` SHA=`git rev-parse --short HEAD` VERSION=${VERSION:-$SHA} GOOS=linux GOARCH=arm go build . docker build -t nshttpd/${NAME}:${VERSION}-armhf -f Dockerfile.armhf . docker push nshttpd/${NAME}:${VERSION}-armhf rm mikrotik-exporter
true
7486a630b6b188825227645a032844a27f738f4e
Shell
mapbox/mason
/scripts/icu/58.1/script.sh
UTF-8
4,036
3.78125
4
[ "BSD-2-Clause" ]
permissive
#!/usr/bin/env bash # Build ICU common package (libicuuc.a) with data file separate and with support for legacy conversion and break iteration turned off in order to minimize size MASON_NAME=icu MASON_VERSION=58.1 MASON_LIB_FILE=lib/libicuuc.a #MASON_PKGCONFIG_FILE=lib/pkgconfig/icu-uc.pc . ${MASON_DIR}/mason.sh MA...
true
839f614a235f3fcb2fc1708be2da0fd316b323fc
Shell
wavefrontHQ/wavefront-proxy
/macos_proxy_notarization/github_workflow_wrapper_for_notarization.sh
UTF-8
8,150
3.703125
4
[ "Apache-2.0", "CC0-1.0", "GPL-2.0-or-later", "Apache-1.1", "CDDL-1.1", "bzip2-1.0.6", "LicenseRef-scancode-proprietary-license", "LGPL-2.1-or-later", "LGPL-2.0-or-later", "GPL-1.0-or-later", "LGPL-3.0-only", "EPL-2.0", "CDDL-1.0", "CC-PDDC", "LicenseRef-scancode-unknown-license-reference...
permissive
usage () { set +x echo "command line parameters" echo "1 | proxy version | required=True | default='' | example: '11.1.0'" echo "3 | github API token | required=True | default='' | example: 'ghp_xxxxx'" echo "3 | release type | required=False | default='proxy-test' | ...
true
ff71ca6608f9825dfad3d8acb464a6e51e50b587
Shell
paieer/pubkey_channel
/pubkey_dns_client/commands_loop.sh
UTF-8
2,690
4.5625
5
[ "Apache-2.0" ]
permissive
#!/bin/bash commands="" # Commands to be executed seconds=5 # Default execution every 5 seconds total=0 # Total number of executions, default always runing show_help() { echo -e "Options:\n"\ " -c '\"<cmd>\"'\tCommands to execute, content needs to\n"\ "\t\tbe enclosed in quotation marks: (\...
true
ec3025819d5421325e7f0d20387ec311c8d2ac74
Shell
huww98/initialize-server
/targets/nvidia-docker
UTF-8
559
3.171875
3
[]
no_license
#!/bin/bash required-target docker || return 1 required-target nvidia-driver || return 1 PACKAGES=(nvidia-docker2) package-prepare-install() { curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add - || return 1 distribution=$(. /etc/os-release;echo $ID$VERSION_ID) curl -s -L https://...
true
255102230e94dd1f39aabc952faa8d314cdbee12
Shell
YuzhouStar/DevOps
/Linux/print_input_process.sh
UTF-8
318
3.53125
4
[]
no_license
#!/bin/bash function Proceess(){ spa='' i=0 while [ $i -le 100 ] do read -n1 input if [[ $input -eq " " ]];then printf "[%-50s] %d%% \r" "$spa" "$i"; sleep 0.5 ((i=i+2)) spa+='#' elif [[ $input -eq "\n" ]];then continue #exit -1 else continue #exit -1 fi done echo } Proceess
true
562623761de5897dabe5d60932b0e319d8e905cd
Shell
The-Bioinformatics-Group/Lake_Eukaryota_Metagenomics_Project
/01_Trimming/trim_cutadapt_noAdapt.sge
UTF-8
955
3.65625
4
[]
no_license
#!/bin/bash #$ -cwd #$ -q node0 #$ -S /bin/bash ## Trimming fixed amount of bases from the right using cutadapt ## More is trimmed from R2 reads due to poorer mean quality ## Uses the dataset where primers have already been removed, creates new directory for trimmed files ## One of two method used for trimming the dat...
true
bbfc9fa7fcf68b8bc81235b05b590ec348980eb6
Shell
glenonmateus/bacula-sd
/run
UTF-8
617
3.34375
3
[]
no_license
#!/bin/bash : ${BACULA_SDNAME:="bacula-sd"} : ${BACULA_SDPASSWORD:="password"} : ${BACULA_DIRNAME:="bacula"} : ${BACULA_MONNAME:="${BACULA_DIRNAME}-mon"} : ${BACULA_MONSDPASSWORD:="${BACULA_SDPASSWORD}"} : ${BACULA_DEBUG:="50"} CONFIGS_VARS=( BACULA_SDNAME BACULA_SDPASSWORD BACULA_DIRNAME BACULA_MONNAME BACULA_M...
true
5a3264828aeeb99f544ea6320d26cb332445acfe
Shell
opnfv/opnfv-ravello-demo
/joid/ci/odl/cloud-sh-odl/openstack.sh
UTF-8
4,863
2.75
3
[ "Apache-2.0" ]
permissive
#!/bin/sh -ex agentState() { juju status | python -c "import yaml; import sys; print yaml.load(sys.stdin)[\"machines\"][\"$1\"][\"agent-state\"]" 2> /dev/null } agentStateUnit() { juju status | python -c "import yaml; import sys; print yaml.load(sys.stdin)[\"services\"][\"$1\"][\"units\"][\"$1/$2\"][\"agent-state\"...
true
674dd71af544b70c8db1f0bbe51ce2a33a0bbe50
Shell
djimenezjerez/bo_captcha_reader
/setup.sh
UTF-8
639
3.84375
4
[]
no_license
#!/usr/bin/env bash source /etc/os-release commands=(python3 firefox geckodriver) function verifyCommand { search=${NAME// /+} if ! [ -x "$(command -v $1)" ]; then search="${search}+$1" echo -e "$(tput setaf 1)\xF0\x9F\x97\x99$(tput sgr0) Debe instalar la herramienta $1: $(tput setaf 4)htt...
true
6a13c40a6d1589de9d91eab48c8a9e22af917dc6
Shell
sahara-labs/rig-client
/test/resources/Control/slow-cat.sh
UTF-8
1,182
4.28125
4
[]
no_license
#!/bin/bash ## ## BatchRunnerTest.sh ## ## SLOOOOW 'cat' that prints the lines of a text file in the following format: ## ## <Percentage complete>[space]<Text file line> ## ## Author: Michael Diponio <mdiponio@eng.uts.edu.au> ## if [ $# -lt 3 ]; then echo "Incorrect number of arguments, should be <file reference>...
true
96c06ea2814405bb10e83540db98921beb6beb6c
Shell
vegayours/icfpc2015
/scripts/push_solutions.sh
UTF-8
559
3.203125
3
[]
no_license
#!/bin/bash DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) PROBLEMS_DIR="$DIR/../problems" BUILD_DIR="$DIR/../release" for problem in $(ls $PROBLEMS_DIR/*.json); do echo $(basename $problem) ID=$(echo "${problem%.*}" | awk -F "_" '{print $2}') RESULT_FN="result_${ID}.json" $BUILD_DIR/icfpc/so...
true
69ae3785ae8db8e2e3c049d19f4a4f1a3d8f0dd0
Shell
ColdShadow80/MAD
/scripts/migrate_to_rocketmap.sh
UTF-8
5,028
3.359375
3
[]
no_license
#!/bin/bash ######################################################################################################## # This is the Monocle/RDM to Rocketmap migration script. Before you run this you should run # # OSM-rocketmap and let it configure its database. After it has built its empty database you can ...
true