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
43633f70dcbf65d33d688676a32cf9ee20e8d2e5
Shell
forgottenswitch/concurrent.sh
/peach.sh
UTF-8
484
3.203125
3
[ "Unlicense" ]
permissive
#!/bin/sh # Parallel-each # (e.g. the same as `make -jN`) # . ./concurrent.sh job_prepare_tempdir # # Main # work_n() { local name="$1" ; shift echo "job $name begin" sleep 1 echo "job $name end" job_yield_status 0 } peach_n_max=4 peach_lines ' work_n 1 work_n 2 work_n 3 work_n 4 work_n 5 w...
true
f02097b3bbb7392e618b7039e87c9391d1400206
Shell
jerremyfly/RTCS
/rtcs-room/script/InstallServer.sh
UTF-8
928
2.71875
3
[ "MIT" ]
permissive
#!/bin/bash #scriptname:InstallServer #使用问题反馈靖哥哥 #创建安装路径 sudo mkdir /opt/VideoConsultation sudo mkdir /opt/VideoConsultation/record echo "正在安装,请稍候-------------------" sudo cp application.properties rtcscoreserver.tar.gz rtcs-room-1.2.4.jar libRTCSAuth.so RunServer.sh CloseServer.sh RunConsultationServer.sh Uninstal...
true
b17cce6bd0c0c7c82aa3656b397ad3685955d142
Shell
CuriouslyCurious/dotfiles
/polybar/.config/polybar/pkg.sh
UTF-8
395
3.328125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash OS="$(cat /etc/*release | grep -w NAME | awk '{split($0,a,"="); print a[2]}')" if [[ $OS == "\"Arch Linux\"" ]] then pac=$(checkupdates | wc -l) aur=$(trizen -Qua | wc -l) check=$((pac + aur)) #check=$((pac)) if [[ "$check" != "0" ]] then echo "$pac %{F#5b5b5b}%{F...
true
fec4e5fa8e249fad2a508be651b235b85ee23082
Shell
variani/kaggle
/avito-context-click/scripts/03-uncompress-input.sh
UTF-8
176
2.828125
3
[]
no_license
#! /bin/bash # @ http://askubuntu.com/a/586995 #``` # sudo apt-get install dtrx #``` datadir="data/input" pushd $datadir for f in $(ls | grep 7z); do echo $f done popd
true
d0e47974e6680a6ea31724b5f3eea1183d51b9d7
Shell
NCBI-Codeathons/MASQ
/applets/manta/test_kat/test_task.sh
UTF-8
379
2.546875
3
[ "MIT" ]
permissive
#!/usr/bin/env bash TEST_NAME="test_task" # dxWDL jar as an argument DXWDL_JAR=$1 dx mkdir -p /Jun/test/tasks/${TEST_NAME}/ java -jar ${DXWDL_JAR} \ compile ${TEST_NAME}.wdl -project project-FfG3k9Q97yFygXqZ4B39B2BV \ -inputs ${TEST_NAME}.input.json \ -destination /test/tasks/${TEST_NAME}/ \ --imp...
true
9f9217fe31c2d84124dac6d97ab1b7781a5ffe4d
Shell
taitulism/take-me-home
/leave-home
UTF-8
618
3.390625
3
[ "MIT" ]
permissive
#!/bin/bash # .bashrc # .inputrc # .vimrc # This script restores original files from the backup folder to $HOME (~/) BACKUPS=$HOME/take-me-home/backups # Restore .bashrc if [ -f $BACKUPS/original-bashrc.bkp ] ; then rm ~/.bashrc cp $BACKUPS/original-bashrc.bkp ~/.bashrc source ~/.bashrc fi # Restore .in...
true
de99160262f7a277c8ea0652ffbbfb5a048fb178
Shell
jdost/xmonad-config
/setup.sh
UTF-8
2,285
4.34375
4
[]
no_license
#/bin/sh set -euo pipefail export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-$HOME/.config} show_help() { cat <<-HELP Setup script for xmonad configuration USAGE: ${0} [command] commands: init -- Initialize system with expected packages and linked configs update -- Updates state of local repo and fixes any dr...
true
859bf26bcd9b299c0a550bf5fd91ba722dd30a9f
Shell
hjain1462/AdidasApiAutomationTest
/run-bdd-test.sh
UTF-8
532
2.515625
3
[]
no_license
#!/usr/bin/env bash export URI=https://petstore.swagger.io if [ "$1" = "-s" ] && [ ! -z $2 ] ; then mvn -P integration-tests verify -Dskip.unit.tests=true -Dcucumber.options='--tags @api,@ui' -s $2 sleep 5s mvn -P integration-failed-tests verify -Dskip.unit.tests=true -Dcucumber.options='--tags @api,@ui' -s $2 e...
true
24f1359efdc15db4f7101871c31e3946701ba697
Shell
waynr/doks-examples
/network-policy/script/down
UTF-8
758
3.21875
3
[ "MIT" ]
permissive
#!/usr/bin/env bash set -euo pipefail # Grab the cluster name with a default of "network-policy-demo". CLUSTER_NAME=${1:-network-policy-demo} # Delete the client droplet. DROPLET_NAME="${CLUSTER_NAME}-client" DROPLET_ID=$(doctl compute droplet list -ojson | jq --raw-output --arg DROPLET_NAME "${DROPLET_NAME}" '.[] | ...
true
d91e1dc64a89b178a0e06878e8027e0a016ecd55
Shell
zzh8829/dotfiles
/homebrew.sh
UTF-8
2,249
2.859375
3
[]
no_license
#!/usr/bin/env bash # Install command-line tools using Homebrew. # Ask for the administrator password upfront. sudo -v # Keep-alive: update existing `sudo` time stamp until the script has finished. while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null & # Check for Homebrew, # Install if we ...
true
eb2e18177c70b6536314c28b5e169c611ea4ced5
Shell
Anthropohedron/dotfiles
/.platform/all/ifcommand/az/az-publish-app
UTF-8
329
3.1875
3
[]
no_license
#!/bin/sh usage () { echo "Usage: $0 <resource group> <app service> <package>" >&2 exit 1 } RESOURCEGROUP="$1" APPSERVICE="$2" PACKAGEFILE="$3" if test $# -ne 3 -o ! -r "$3" then usage fi exec az functionapp deployment source config-zip \ --resource-group "$RESOURCEGROUP" \ --name "$APPSERVICE" \ --src "$PACK...
true
c25a23a6556fb8fd8441061d863960ac00a76ebc
Shell
tangzonghui/feim-20161122
/pie-dir/db-img-tool/d_ramdisk/tzh-d-ramdisk.sh
UTF-8
285
2.921875
3
[]
no_license
#!/bin/bash if [ $# -lt 1 ]; then echo "$0 ramdisk-file" exit fi cp $1 ramdisk.img.gz mv $1 ramdisk-before.img rm ramdisk_new -rf mkdir ramdisk_new gunzip ramdisk.img.gz pushd ramdisk_new cpio -i -F ../ramdisk.img popd rm -rf ramdisk.img.gz ramdisk.img echo see ramdisk_new
true
89c2e65a7804979d3cc95835dd01325e4ec8cf03
Shell
klkblake/serval-dna
/testframework.sh
UTF-8
39,290
3.671875
4
[]
no_license
#!/bin/bash # # Serval Project testing framework for Bash shell # Copyright 2012 Paul Gardner-Stephen # # 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; either version 2 # of the License, or (at ...
true
58f27786ef550234b914292cd116052d3d870a9a
Shell
jgm1986/raspberrypishellscripts
/raspbian/sd-backup.sh
UTF-8
787
3.359375
3
[]
no_license
#!/bin/bash set -e echo "***********************************************************" echo "* Raspbian SD Backup. *" echo "* *" echo "* WARNING: Please wait until this script end. *" echo "***************************...
true
d9b83396d3a211c5513dcb55eb027af0967ed4f6
Shell
SachinChavhan/data-export
/csv-data-export-shell/export.sh
UTF-8
8,912
3.140625
3
[]
no_license
#!/bin/bash date=$(date '+%Y-%m-%d-%H:%M:%S') if [ $# -ne 6 ]; then echo "bash export.sh <zkNodes> <zkPath> <customer> <datamodel> <usdm-y/n> <plo-y/n> <custom-y/n>" exit 1; fi error_handler(){ echo "[$(date '+%Y-%m-%d %H:%M:%S')] $remote_user [ERROR] - $1" exit 1 } # Grab command arguments ZK_NODES="...
true
4a7f8a2ae211c1cdea38b8aaeaf66cf5a7befd5b
Shell
travisdowns/zero-fill-bench
/scripts/data-icl.sh
UTF-8
712
2.828125
3
[]
no_license
#!/bin/bash set -euo pipefail echo "RDIR=${RDIR:=./results}" mkdir -p "$RDIR" d='---------------------------' # up to CPU-count threads echo -e "$d\nCollecting data in $RDIR\n$d" ./bench --algos=fill0,fill1 --perf-cols=GHz --csv > "$RDIR/overall-warm.csv" ./bench --algos=fill0,fill1 --perf-cols=GHz --csv --warmup-ms...
true
68c147fc8548e1def2c8230fe93ca2cdd878e922
Shell
bangongzi/advanced_topo
/default_sw_config.sh
UTF-8
698
2.765625
3
[]
no_license
#!/bin/bash config_single(){ echo "dev s${1}-eth${2} are going to be configured" tc qdisc delete dev s${1}-eth${2} root tc qdisc add dev s${1}-eth${2} handle 1: root dsmark indices 1 default_index 0 tc qdisc add dev s${1}-eth${2} handle 2: parent 1: tbf burst 2048KB latency ${3} mtu 1514 rate ${4}Gbit tc qdisc sh...
true
c4be174f647833d326ffb436fe7d9ba7e2f13b24
Shell
Konubinix/Devel
/bin/konix_ebook_convert.sh
UTF-8
347
3.140625
3
[]
no_license
#!/bin/bash set -eu while getopts "hi:o:" opt; do case $opt in h) usage exit 0 ;; i) IN="$OPTARG" ;; o) OUT="$OPTARG" ;; esac done shift $((OPTIND-1)) if [ -e "${OUT}" ] then rm -rf "${OUT}" fi eboo...
true
953a1172b6e33f90a85a981c31075bfd81259aa9
Shell
gecos-team/gecosws-installation-disk-generator
/config/var/gensys/live-build/gecosv2-14.04/scripts/build/chroot_linux-image
UTF-8
5,053
3.609375
4
[]
no_license
#!/bin/sh ## live-build(7) - System Build Scripts ## Copyright (C) 2006-2013 Daniel Baumann <daniel@debian.org> ## ## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING. ## This is free software, and you are welcome to redistribute it ## under certain conditions; see COPYING for details. set -e ...
true
3fe67cc2f596d4fe9badc70e917b4faec0ae2aad
Shell
christopherscott/bashrc_dispatch
/bashrc_interactive.sh
UTF-8
1,599
2.515625
3
[ "LicenseRef-scancode-public-domain" ]
permissive
PREFIX=$HOME/bashrc_dispatch/ # load utility scripts [ -f "$HOME/.rvm/scripts/rvm" ] && . ~/.rvm/scripts/rvm [ -f "${PREFIX}colors.sh" ] && . "${PREFIX}colors.sh" [ -f "${PREFIX}git-completion.sh" ] && . "${PREFIX}git-completion.sh" [ -f "${PREFIX}reactive-prompt.sh" ] && . "${PREFIX}reactive-prompt.sh" # token shell...
true
83b54b84e261b1eb26fd8cce78cf2c9594b0484f
Shell
chriiis/.sys.config
/common.sh
UTF-8
1,326
3.09375
3
[]
no_license
#""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" # This file containes the self defined initialized settings for shell. # You can find the latest version on: # http://github.com/nkwsqyyzx/.sys.config.git # # Maintainer: wsq # Last Change: 2013-11-30 13:48:03 # Email: nk.wangsh...
true
73eb3310f31a5cfda75ce5ab6229257563be0118
Shell
wiltonpaulo/devops-toolbox
/velero/usefull_scripts/restore_all.sh
UTF-8
338
3.21875
3
[]
no_license
#!/bin/bash # Get Velero Backups VELERO_BACKUPS=$(velero backup get \ | tail -n +2 \ | awk '{ print $1}') IFS=$'\n' for BACKUP in $VELERO_BACKUPS; do echo "Restoring Backup for namespace: $BACKUP" velero restore create --from-backup $BACKUP echo "----------------...
true
b48f64abe63a1862b3f9e462a331a94193924cb2
Shell
IceCube-PSU/clustertools
/hammertop
UTF-8
495
3.53125
4
[]
no_license
#!/bin/bash # TODO: Add usage # TODO: Make timeout a command line option (not argument) USER=$1 DEFAULT_TIMEOUT=10 BASE="hammer" DOMAIN="rcc.psu.edu" if [ ! -n "$2" ] then TIMEOUT=${DEFAULT_TIMEOUT} else TIMEOUT=$2 fi command="mytop | cat --number" echo $command pdsh -t $TIMEOUT -u $TIMEOUT -w ssh:${USER}@${BASE...
true
6df78ec5feaab499ce7e9a54c4dcd63791014cea
Shell
Signorte/dotfiles
/install.sh
UTF-8
228
3.15625
3
[]
no_license
#!/bin/bash case $( uname -s ) in Darwin) echo Darwin bash install_darwin.sh;; Linux) echo Linux bash install_linux.sh;; *) echo Others (neither Linux nor Darwin) so finish this sequence;; esac
true
a5685d10a0d776293fa89310c60148b8614da275
Shell
oscargus/spyder
/.github/scripts/run_tests.sh
UTF-8
354
2.890625
3
[ "LGPL-3.0-or-later", "LGPL-2.1-or-later", "CC-BY-2.5", "OFL-1.1", "CC-BY-3.0", "CC-BY-4.0", "LGPL-2.1-only", "LicenseRef-scancode-proprietary-license", "LGPL-2.0-or-later", "Python-2.0", "GPL-1.0-or-later", "MIT", "LGPL-3.0-only", "GPL-3.0-only", "GPL-2.0-only", "Apache-2.0", "BSD-3-...
permissive
#!/bin/bash -ex # Adjust PATH in macOS if [ "$OS" = "macos" ]; then PATH=/Users/runner/miniconda3/envs/test/bin:/Users/runner/miniconda3/condabin:$PATH fi # Run tests if [ "$OS" = "linux" ]; then xvfb-run --auto-servernum python runtests.py --color=yes | tee -a pytest_log.txt else python runtests.py --col...
true
8aebca543b12e26c6bbb9382d8b454c4cba2a1ab
Shell
jaydestro/itt-ansible-mod
/ansible_wrapper.sh
UTF-8
519
2.703125
3
[]
no_license
#!/bin/bash mkdir -p /home/$USER/.ansible export DIR="/home/$USER/.ansible" export SSHUSER="jaygordon" touch $DIR/hosts # ip of host echo -n "Enter your IP and press [ENTER]: " read ip #Add hosts echo -e "[hosts]\n$ip" > $DIR/hosts # install ansible roles ansible-galaxy install ocha.dotnet-core ansible-galaxy i...
true
7e59e8800d8956c374ed9161d7e5c4237a916380
Shell
mdozmorov/dcaf
/vcf_to_gene.sh
UTF-8
221
2.875
3
[]
no_license
#/bin/bash #i=1 for file in output/*.bed do # i=$(($i+1)) # echo "111"> $file$i".txt" intersectBed -wa -wb -a $file -b exons2genes.bed | cut -f7 | sort | uniq -c | awk '{print $2,$1}' | sort -n -r -k2 > $file".rnk" done
true
bc1c878b281a2563eba60d0603d626832e7cac84
Shell
xguse/anaconda-cloud-recipes
/scripts/travis-run.sh
UTF-8
434
2.984375
3
[ "MIT" ]
permissive
#!/bin/bash set -e if [[ $TRAVIS_OS_NAME = "linux" ]] then # run CentOS5 based docker container docker run -e TRAVIS_BRANCH -e TRAVIS_PULL_REQUEST -e ANACONDA_TOKEN -v `pwd`:/bioconda-recipes bioconda/bioconda-builder # Build package documentation ./scripts/build-docs.sh else export PATH=/anaconda/...
true
4f07e0b5591708ca7345b658af2af262e1ea7593
Shell
Ashkenazic/skia-buildbot
/k8s_checker/bin/create-skia-public-kube-config-secret.sh
UTF-8
485
3.609375
4
[ "BSD-3-Clause" ]
permissive
#/bin/bash # Creates the skia-public-kube-config secret. set -e -x source ../../kube/config.sh source ../../bash/ramdisk.sh if [ $# -ne 1 ]; then echo "The argument must be the skia-public kube config." echo "" echo "./create-skia-public-kube-config-secret.sh xyz" exit 1 fi SECRET_VALUE=$1 SECRET_NAME="skia...
true
d191492f30103d84270eaa56d6736705d930937a
Shell
mryyomutga/dotfiles
/src/.config/polybar/launch.sh
UTF-8
709
3.40625
3
[]
no_license
#!/bin/sh # terminate already running bar instance killall -q polybar # Wait util the processes have been shutdown while pgrep -u $UID -x polybar > /dev/null; do sleep 1; done count=0 # Launch Polybar, using default config location ~/.config/polybar/config if type "xrandr"; then # for m in $(xrandr --query | gr...
true
6e568d56ae2b737e4bb9fe960c917b927bc53282
Shell
getbraincloud/braincloud-actionscript
/brainCloudClient/autobuild/build_as.sh
UTF-8
572
3.203125
3
[]
no_license
set -e build_version=$1 if [ "$build_version" == "" ]; then echo "Must pass in build version" exit 1 fi rm -rf artifacts mkdir -p artifacts/brainCloudClient cp docs/README.txt artifacts/brainCloudClient sed -i xxx "s/Platform.*/Platform\: ActionScript/" artifacts/brainCloudClient/README.TXT sed -i xxx "s/Version...
true
abe94b3a8a83494f8024d5d8d5f5c53ee11f5475
Shell
Lemon080910/xiaomi_3c
/squashfs-root/etc/hotplug.d/iface/01-multicast
UTF-8
355
2.8125
3
[]
no_license
#!/bin/sh [ ifup = "$ACTION" ] && [ "$INTERFACE" = "lan" ] && { net_mode=$(uci -q get xiaoqiang.common.NETMODE) if [ $net_mode == "lanapmode" ]; then # This would forward any multicast packets to all ports allowing your TV to find your DLNA capable NAS with movies echo "0" > /sys/devices/virtual/net/br-lan/...
true
f67f4f61101a9ee07b741a0e6d4b22e02871c221
Shell
micha-bbg/bs-micha
/skel-root/kronos/etc/profile
UTF-8
539
2.84375
3
[]
no_license
#!/bin/sh export LD_LIBRARY_PATH=/var/lib #export LD_LIBRARY_PATH=/usr/lib:/var/lib:/lib paths="/var/sbin /sbin /usr/sbin /var/bin /bin /usr/bin /var/plugins /var/tuxbox/plugins /lib/tuxbox/plugins /usr/lib/tuxbox/plugins" P= for i in $paths ;do if [ -d $i ]; then if [ "$P" = "" ]; then P=$i else P=$P:$i ...
true
724eea29814dff3fb231fd817fd64f907649afe2
Shell
fbrandstetter/Autobackup
/backup.sh
UTF-8
2,475
4.3125
4
[]
no_license
#!/bin/bash # Backup Directory ( where to store the encrypted backups ) BACKUPDIR="" # Current Time ( needed for backup file naming ) BACKUPTIME=$(date +"%Y-%m-%d_%H%M") # Password / Key for encryption PASSWORD="" # SERVERLIST SERVERLIST=$(cat serverlist.template) # DEFAULT EXCLUDES ( Folders which aren't being ba...
true
7b5682d50e82a7cdfbe81d0c19230eab17d6371a
Shell
lukinpvl/search-engine
/infra/gitlab/common.sh
UTF-8
2,371
4.15625
4
[]
no_license
#!/bin/bash # Checks that appropriate gke params are set and # that gcloud and kubectl are properly installed and authenticated function need_tool(){ local tool="${1}" local url="${2}" echo >&2 "${tool} is required. Please follow ${url}" exit 1 } function need_gcloud(){ need_tool "gcloud" "https://cloud.go...
true
3e805bb9ef6a93f0b2313314496e3af4795e8ca7
Shell
anandray/devops
/scripts/supernode-scripts/aws/aws-key-pair-security-group.sh
UTF-8
3,273
3.609375
4
[]
no_license
#!/bin/bash # usage #echo ./aws-regions.sh $node_number region=`aws ec2 describe-regions | grep RegionName | cut -d "\"" -f4` region_options=`echo $region` options=($region_options) prompt="Select an AWS region:" PS3="$prompt " select answer in "${options[@]}"; do # zones=`aws ec2 describe-availability-zones --re...
true
fbcc8b375155c53d74b120f78d2237cfb312f189
Shell
prelight/vuewebapp
/scripts/deploy.sh
UTF-8
537
2.96875
3
[]
no_license
#!/usr/bin/bash set -e if [ "$CODEBUILD_BUILD_SUCCEEDING" = "0" ]; then ## ビルドフェーズで失敗したらアップロードを実行しない exit 1; else echo Deploy started on `date` cd $build_artifacts_dir aws s3 sync . s3://$bucket --include "*" --exclude "index.html" --delete aws s3 cp index.html s3://$bucket --cache-control "...
true
f8a6c58934303e11bacbb0f02f648e6af7ba47fd
Shell
chbrown/adobe-scripts
/install.sh
UTF-8
228
3.375
3
[]
no_license
#!/bin/bash targets=(/Applications/"Adobe Illustrator"*/Presets*/*/Scripts) for file in *.js* do destination=$targets/${file//_/ } >&2 printf 'Copying %s to %s\n' "$file" "$destination" cp -n "$file" "$destination" done
true
b79e72e22bafc7fe831cc6ef2e93f26f9c366c2e
Shell
cbliard/dotfiles
/bin/z
UTF-8
274
3.5625
4
[ "MIT" ]
permissive
#!/bin/bash if ! [ -e "$1" ] then echo "error: $1 does not exist" exit 1 fi if ! [ -w "$1" ] then echo "error: $1 is not writable" exit 1 fi dir=$(dirname "$1") if ! [ -w "$dir" ] then echo "error: directory $dir is not writable" exit 1 fi mv "$1" "$1".zzz
true
4990c4cb9d05c72921b79125ec978526417b7700
Shell
cloudartisan/dotfiles
/bin/install_vim.sh
UTF-8
1,278
2.9375
3
[ "MIT" ]
permissive
#!/bin/sh mkdir -p ${HOME}/.vim curl -Lso - https://github.com/cloudartisan/dotvim/tarball/master \ | tar --strip-components 1 -C $HOME/.vim -zvxf - ln -sf ${HOME}/.vim/vimrc ${HOME}/.vimrc ln -sf ${HOME}/.vim/vimrc ${HOME}/.gvimrc cd ${HOME}/.vim git init git submodule init git submodule add https://github.com...
true
53d79a8960291db708d5f8aa9c1b7004c4ed4530
Shell
covery/ml-model-compiler
/covery-ml-build.sh
UTF-8
653
3.5625
4
[]
no_license
#!/usr/bin/env bash # Configuration H2O_VERSION="3.20.0.5" JAR="h2o-genmodel-${H2O_VERSION}.jar" MODEL="$1" MODEL_FOLDER=. NAME=${MODEL} PREFIX="${NAME%.*}" TMP_FOLDER=./tmp mkdir ${TMP_FOLDER} echo "Building model: $MODEL" echo " H2O library: $JAR" echo " Model folder: $MODEL_FOLDER" echo " Build folder: $TMP_F...
true
e4b2f372a955cc89d6a3f21de9ec63fb3bf2c668
Shell
Unidata/TdsConfig
/remotetest/certs.sh
UTF-8
3,187
2.640625
3
[]
no_license
rm -f serverKey.pem serverCert.pem rm -fr ServerKeystore.pkcs12 ServerKeystore.jks rm -f ServerTruststore.jks ################################################## # Server Key Generation: # Generate server private key : openssl genrsa -des3 -passout pass:password -out serverKey.pem 2048 # Generate the self-signed cert...
true
955a4ef2159422c3144d95c427415e1ac94c7d13
Shell
sbradley7777/dot.config
/bin/bin.clusterha_analyze/gfs_find_glocks.sh
UTF-8
621
3.0625
3
[]
no_license
#~/bin/sh # Useful to show glock with holder/waiters for gfs2_lockcapture. # Run when inside run directory, so pass path of runX to script. path=$1; host1=$(/bin/ls $path | awk '{print $1}' | head -n 1); for glock_table in $(ls $path/$host1/gfs2); do echo "---------------------------------------------------"; ...
true
48361f5ce6dd1597e5998718a1b89dc27417c084
Shell
staraise1218/guodian
/cron.sh
UTF-8
397
3.15625
3
[]
no_license
#!/bin/sh cat > /phpstudy/www/TP/readme.txt <<EOF Hello, World! My name is Shengbin. EOF echo '输入 1 到 4 之间的数字:' echo '你输入的数字为:' read aNum case $aNum in 1) echo '你选择了 1' ;; 2) echo '你选择了 2' ;; 3) echo '你选择了 3' ;; 4) echo '你选择了 4' ;; *) echo '你没有输入 1 到 4 之间的数字' ;; esac
true
3a9abcc378fcdcec3ddcfcf2f2a24f0a89c47978
Shell
doggydaddy/FOCIS
/1st_mod2.sh
UTF-8
1,988
3.421875
3
[]
no_license
#!/bin/bash #time-course based parameters. #time-course = extract average ideal using thresholded component as a mask #calculate classification parameter for INDIVIDUAL subjects first before group average #(So to avoid averaging out inter-subject flucuations) components=`ls component*.nii` touch mod2_params for comp ...
true
90109282e0ceaa4cf397d479a8931f7f72c49f7f
Shell
zhondr/carpet_cleaner
/carpet_cleaner.client/docker_image_create.bash
UTF-8
210
3.03125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash set -e cd $(dirname $0) HERE=$PWD BASE_NAME=$(cat docker-image-base-name.txt) IMAGE_NAME=${BASE_NAME}:0.0.1 bash lib/_prepareDirs.bash cd "${HERE}" docker build -t "$IMAGE_NAME" docker
true
b072396f4e0566a49aeabd774983510e07ba7ca8
Shell
electrodude/aem-utils
/bin/makeless
UTF-8
1,131
3.78125
4
[]
no_license
#!/bin/bash set -eu -o pipefail rdfd=${2:-3} wrfd=${3:-$(($rdfd+1))} if [[ -z "$1" ]]; then echo >&2 "Usage: $0 <pid>" exit 1 fi exe="$(realpath -eq /proc/$1/exe)" if [[ -z "$exe" ]]; then echo >&2 "error: no such pid" exit 1 fi exe_expect="$(realpath "$(which make)")" if [[ "$exe" != "$exe_expect" ]]; then e...
true
956abda317b045c792a92e7cec5a51cf3cad2fcd
Shell
Astronomic2003/LinuxGSM
/lgsm/functions/fix_mta.sh
UTF-8
827
3.140625
3
[ "MIT" ]
permissive
#!/bin/bash # LinuxGSM fix_mta.sh function # Author: Daniel Gibbs # Contributor: ChaosMTA # Website: https://gameservermanagers.com # Description: Installs the libmysqlclient for database functions on the server local commandname="FIX" local commandaction="Fix" local function_selfname="$(basename $(readlink -f "${BASH_...
true
ce5ecf53396ec6535fb8fc6b761df92fec626837
Shell
heroku/tatara
/bin/build
UTF-8
600
3.96875
4
[ "MIT" ]
permissive
#!/bin/bash set -e out_file() { if [ "$1" == "darwin" ]; then echo -n "macos" elif [ "$1" == "windows" ]; then echo -n "windows.exe" else echo -n "$1" fi } build() { local platform=${1} local version=$(<VERSION) echo "Building for ${platform}..." GOOS=${platform} go build -ldflags "-X ma...
true
e2ff1bdfe02f74285889cbf0c5875974239cf8e8
Shell
sapslaj/site-update-notifier
/siteupdate.sh
UTF-8
756
3.65625
4
[]
no_license
#!/bin/bash SLEEPTIME=30 # Seconds between checks URL="http://example.com" # URL to check EMAIL="email@example.com" # Email to send updates to SUBJECT="Site Update" # Subject of email if [ -e /tmp/siteupdate/current_index ] ; then echo "" ; else touch /tmp/siteupdate/current_index ; fi if [ -e /tm...
true
a75085dd9353a552c5624a002e9ed063bf79b75b
Shell
TinyMagicka/TinyDec
/tools/dex2jar/dex-dump.sh
UTF-8
526
3.21875
3
[ "Apache-2.0" ]
permissive
#!/bin/sh # copy from $Tomcat/bin/startup.sh # resolve links - $0 may be a softlink PRG="$0" while [ -h "$PRG" ] ; do ls=`ls -ld "$PRG"` link=`expr "$ls" : '.*-> \(.*\)$'` if expr "$link" : '/.*' > /dev/null; then PRG="$link" else PRG=`dirname "$PRG"`/"$link" fi done PRGDIR=`dirname "$P...
true
e5c8bdf6433543ab865832a29ea6f8109c1201a1
Shell
Milchen83/YourFritz
/helpers/functions/yf_get_last_host_in_subnet.function
UTF-8
2,454
3.9375
4
[]
no_license
#! /bin/true # vi: set tabstop=4 syntax=sh : # colorize it in 'vi' and use shorter tabstops ####################################################################################### # # # get_last_host_in_subnet - compute the last usable ...
true
a63e645ab9ecf91e4cd6b56ab9860672553712c5
Shell
Mryan2005/MinecraftServerAutoDeploy
/src/push/push.sh
UTF-8
193
2.703125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash server_name= # 服务器名 # 服务器文件会放在root文件夹 cur_dateTime="`date +%Y-%m-%d,%H:%m:%s`" cd /root/${server_name} git add . git commit -m 'update' git push origin
true
1b387ff80c31a863e5cf689161db93c4f67f11b9
Shell
UCL-RITS/rcps-buildscripts
/freesurfer-5.3.0_install
UTF-8
1,253
3.78125
4
[ "MIT" ]
permissive
#!/usr/bin/env bash ############################################### # Installing Freesurfer # # by Heather Kelly, 2015 # NAME=${NAME:-freesurfer} VERSION=${VERSION:-5.3.0} INSTALL_PREFIX=${INSTALL_PREFIX:-/shared/ucl/apps/$NAME/$VERSION} MD5=${MD5:-6642289df823ebc27de52af57e9b3989} SRC_ARCHIVE=${SRC_ARCHIVE:-ftp://s...
true
0f59802fae37b5e02135e06d41a83a829586af61
Shell
Cloudxtreme/docker-php-1
/container/root/run.d/01-install.sh
UTF-8
338
2.90625
3
[]
no_license
#!/bin/bash # As part of the "Two Phase" build, the first phase typically runs with composer keys mounted, # allowing the dependencies to be installed, the result of which is committed if [[ -f /root/.composer/config.json ]] then echo "[install] app dependencies" composer install --optimize-autoloader exit $SIG...
true
68466bc0910badf95842b706b6b1a404bb3bb646
Shell
rastaman/configurations
/CDH4.pseudo-distributed/root_scripts/hdfs_init.sh
UTF-8
1,068
2.59375
3
[]
no_license
#!/bin/bash # system-wide structure sudo -u hdfs hdfs dfs -mkdir /tmp sudo -u hdfs hdfs dfs -chmod -R 1777 /tmp sudo -u hdfs hdfs dfs -mkdir /tmp/hadoop-yarn/staging sudo -u hdfs hdfs dfs -chmod -R 1777 /tmp/hadoop-yarn/staging sudo -u hdfs hdfs dfs -mkdir /tmp/hadoop-yarn/staging/history/done_intermediate sudo -u h...
true
3a4b1c48b02167176e865ef7a96d5aaf296234bd
Shell
hdnes/MavicPro
/Firmware/Firmware_01.03.0400/_AC_wm220_0801_v01.04.17.03_20170120.pro.fw.sig.extracted/system/etc/install-recovery.sh
UTF-8
628
2.75
3
[]
no_license
#!/system/bin/sh if ! applypatch -c EMMC:/dev/block/platform/comip-mmc.1/by-name/ramdisk_recovery::; then log -t recovery "Installing new recovery image" dd if=/system/etc/ramdisk_recovery.img of=/dev/block/platform/comip-mmc.1/by-name/ramdisk_recovery else log -t recovery "recovery image already installed" fi ...
true
8a42217ed41b782129692f475f0200786a413a7f
Shell
falcon-computing/falcon-genome
/scripts/stage-worker/concatVCF.sh
UTF-8
2,149
4.03125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) source $DIR/../globals.sh source $DIR/common.sh stage_name=concatVCF # Prevent this script to be running alone if [[ $0 != ${BASH_SOURCE[0]} ]]; then # Script is sourced by another shell cmd_name=`basename $0 2> /dev/null` if [[ "$cmd_name" != "f...
true
652d1900ce5b7d1d1e8981f7969441d612d575cb
Shell
toke/dotfiles
/bash/.config/bash/helper.bash
UTF-8
2,033
4.1875
4
[]
no_license
#!/bin/bash # # Bash helper functions # # # Helper for allowing only aliases to existing commands # Similar to [ -e /usr/bin/translate-shell ] && alias abc="/usr/bin/abc" # function bin_alias { local aliasname="$1" local aliascontent="$2" if [[ -z "$aliasname" && -z $aliascontent ]] ; then echo "...
true
fd9c741221ce2725d9ec9e81f4901f7ba39af9c5
Shell
jaydensun/userful-tool
/kafka/consumer_ip_find.sh
UTF-8
607
2.96875
3
[]
no_license
#!/bin/sh # param topic=OMS_TO_CX_APPOINTMENT port=9093 cmd="tcpdump 'tcp dst port $port" function f_cmd_conn() { type_pos=5 client_id_pos=13 len_pos=31 data_pos=32 header_len="tcp[12]/4" client_id_len="tcp[$header_len+$client_id_pos]" conn="tcp[$header_len+$type_pos]=1 and tcp[$head...
true
1f39b97368418266eeaf36af47865caabc4b1fe4
Shell
cha63506/packages-1
/hibernate-script/trunk/PKGBUILD
UTF-8
1,544
2.796875
3
[]
no_license
# $Id$ # Maintainer: Thomas Baechler <thomas@archlinux.org> pkgname=hibernate-script pkgver=1.99 pkgrel=2 pkgdesc="Set of scripts for managing tux on ice, hibernation and suspend to RAM" arch=('i686' 'x86_64') url="http://www.tuxonice.net" license=('GPL') depends=('bash' 'kbd') options=(!strip) backup=('etc/hibernate/...
true
3f83597c25d00cad9726aa4acd9f0c5915aeee67
Shell
jsffeng/ShredderReconstruct
/test/acceptance_test.sh
UTF-8
3,304
4.03125
4
[]
no_license
#/bin/bash function EXIT { msg=${1} echo "${msg}" exit 1 } function ensure_file_exist { file=${1} [ ! -s ${file} ] && EXIT "File ${file} doesn't exist, exit!" } function ensure_dir_exist { dir=${1} [ ! -d ${dir} ] && EXIT "Directory ${dir} doesn't exist, exit!" } function backup_ascii_files { for...
true
2d07c73588cf3a95e632dd6d66355a166d671aa1
Shell
ialves19/WGS
/merging_WGS_datasets.bash
UTF-8
2,835
3.15625
3
[]
no_license
#$ -S /bin/bash #$ -cwd #$ -N m1k_$JOB_ID #$ -o m1k_o_$JOB_ID #$ -e m1k_e_$JOB_ID #$ -m a #$ -M Isabel.Alves@univ-nantes.fr #setting the sart of the job res1=$(date +%s.%N) ################################ ## ## this script takes the vcf (.GZ) file with the FR samples as an argument $1 ## and detects from the file ...
true
13d8e9316a9d5928887db93cec2a1e0b10a454cf
Shell
NERC-CEH/ERW
/ERW Installation Scripts/build/install_Bind.sh
UTF-8
5,583
3.265625
3
[]
no_license
#!/bin/bash INSTALLED=$1 DOMAIN_NAME=$2 ZONE_FILE_PATH=$3 BIND_SERVER_IP=$4 LDAP_SERVER_IP=$5 DB_SERVER_IP=$6 ALFRESCO_SERVER_IP=$7 NFS_SERVER_IP=$8 SYNC_SERVER_IP=$9 PROXY_SERVER_IP=${10} # Local variables FORWARD_ZONE_NAME=$DOMAIN_NAME REVERSE_ZONE_NAME=$(echo $BIND_SERVER_IP | awk -F "." '{ print $3 }')"."$(echo ...
true
792609759b0100103727f7c4963f619a7ba3d155
Shell
d-deen/exomes_pipeline
/combine_gVCF.sh
UTF-8
5,472
3.140625
3
[]
no_license
#! /bin/bash #SBATCH -A rtmngs #SBATCH -p bigmem #SBATCH --mem=80G #SBATCH -c 8 Out=$1 Job=$2 ##Module loading module load Java/11.0.2 module load picard/2.2.4-intel-2017.03-GCC-6.3-Java-1.8.0_144 ##Setting constants for variant calling: gatk_path='/nobackup/proj/rtmngs/Mt_Exome_pipeline/DD/programs_DD/gatk-4.1.9....
true
4fd75e6d9f3647a4cf120a1a3671fc7ab8774438
Shell
jalkifi/jalki-tileserver
/run.sh
UTF-8
3,045
3.890625
4
[]
no_license
#!/bin/bash set -x if [ "$#" -ne 1 ]; then echo "usage: <init_db|import|run>" echo "commands:" echo " init_db: Set up the database" echo " import: Import /data.osm.pbf and low-zoom shapes" echo " run: Runs Apache and renderd to serve tiles at /tile/{z}/{x}/{y}.png" echo "environment v...
true
06fb30b82dc5646fcba317716a5780eca528223b
Shell
shaonanxu/Kafka
/scripts/kafka/kafka-start.sh
UTF-8
1,085
2.875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash KAFKA_HEAP_USE="-Xms1G -Xmx1G" MEM_M=$(curl http://metadata/self/host/memory -s) MEM_M_SIZE=`expr $MEM_M / 2` MEM_G_SIZE=`expr $MEM_M / 2048` ip=$(curl http://metadata/self/host/ip -s) if [ ${MEM_M_SIZE} -lt 1024 ]; then #内存小于1G KAFKA_HEAP_USE="-Xms${MEM_M_SIZE}M -Xmx${MEM_M_SIZE}M" elif [ ${MEM_G_SIZE}...
true
1aa8d63ab125226492efeee6987e10cee47ab06d
Shell
w1zard/docker-nginx-php-fpm
/start.sh
UTF-8
2,042
3.8125
4
[]
no_license
#!/bin/bash # Disable Strict Host checking for non interactive git clones mkdir -p -m 0700 /root/.ssh echo -e "Host *\n\tStrictHostKeyChecking no\n" >> /root/.ssh/config # Setup git variables if [ ! -z "$GIT_EMAIL" ]; then git config --global user.email "$GIT_EMAIL" fi if [ ! -z "$GIT_NAME" ]; then git config --gl...
true
b14b64dbda44a9469537b4e9e5c53daebbadd2a5
Shell
pockethook/dotfiles
/.zsh/alias-awk.zsh
UTF-8
534
2.875
3
[]
no_license
function sum() { awk '{sum += $1} END {print sum}' $* } function avg() { awk '{sum += $1} END {if (NR > 0) print sum / NR}' $* } function p1() { awk '{print $1}' $* } function p2() { awk '{print $2}' $* } function p3() { awk '{print $3}' $* } function p4() { awk '{print $4}' $* } function p5() { awk '{prin...
true
246802b2a8673e249bf290d7af4ab2faae2082c0
Shell
byteofmydream/webdriver-bash-binding
/wdAPI/executeJSScript.sh
UTF-8
607
3.140625
3
[]
no_license
#!/usr/bin/env bash #arguments are js args separator=',' lapka=\" i=0 for var in "$@" do ((i++)) if [ "$i" -eq 1 ]; then echo -n "" else if [ -z "$var" ]; then echo -n ""; else res+=`echo -n "$lapka$var$lapka$separator"`; fi fi done argsArray=`echo -n ${res%?}` json=`cat $(pwd)"/js/"${1}".js" | ./...
true
cca07a94fc99a1938d9269911790e823c57f3c71
Shell
petronny/aur3-mirror
/gpapers/PKGBUILD
UTF-8
1,232
2.84375
3
[]
no_license
# Contributor: Stefan Husmann <stefan-husmann@t-online.de> pkgname=gpapers pkgver=150 pkgrel=1 pkgdesc="The open-sourced, Gnome based digital library manager. Think of it as an iTunes for your PDFs" arch=('any') url="http://code.google.com/p/gpapers" license=('GPL2') depends=('python2-poppler' 'python-pysqlite' 'pygtk'...
true
aef0ff715740b646d9c92dc52e8f6f9cd343034d
Shell
haqistan/mblaze-tools
/mpane
UTF-8
825
3.796875
4
[ "ISC", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
#!/bin/sh # mpane [-nh] [-mloop_options] [cmd_args] # set MpaneLines in ~/.mblaze/profile to change # the default size of the pane we create in tmux MBLAZE=${MBLAZE-${HOME}/.mblaze} editor_cmd=$(mhdr -h Editor "$MBLAZE/profile") [ -z "${editor_cmd}" ] && editor_cmd=${EDITOR-${VISUAL-vi}} EDITOR=${EDITOR-$editor_cmd}...
true
4b61886f1fef0cac6ea82eb8852cca842d3e4c30
Shell
tyrone-dev/bash_learn
/bash_trap.sh
UTF-8
314
3.625
4
[]
no_license
#!/bin/bash # Bash Trap trap bashtrap INT # clear screen clear; # bashtrap is executed when CTRL+C is pressed bashtrap() { echo "CTRL+C Detected ! . . . executing bash trap !" } # for loop from 1/10 to 10/10 for a in `seq 1 10`; do echo "$a/10 to Exit." sleep 1; done echo "Exit Bash Trap Example"
true
c467b4b6ddb3a339ec2d61c58ac582f1fa2df6ed
Shell
nathanaelhoun/circleci-orb-mattermost-plugin-notify
/src/scripts/send_notification.sh
UTF-8
1,391
3.515625
4
[ "MIT" ]
permissive
#!/bin/bash Send_notification() { if [ -z "${MM_WEBHOOK}" ]; then if [ -z "${WEBHOOK_URL}" ]; then echo "NO MATTERMOST WEBHOOK SET" echo "Please input your MM_WEBHOOK value either in the settings for this project, or as a parameter for this orb." exit 1 else MM_WEBHOOK=${WEBHOOK_URL} ...
true
842d5e94f1a6c1e25118023585fa6109650ec03b
Shell
petronny/aur3-mirror
/mistelix/PKGBUILD
UTF-8
1,290
2.59375
3
[]
no_license
# Maintainer: Balló György <ballogyor+arch at gmail dot com> pkgname=mistelix pkgver=0.33 pkgrel=4 pkgdesc="DVD authoring application with slideshow creation capabilities" arch=('i686' 'x86_64') url="http://live.gnome.org/Mistelix" license=('MIT') depends=('gstreamer0.10-base-plugins' 'gtk-sharp-2' 'mono-addins' 'gnom...
true
d7b2d46674d0fc3c2044b5cfc862e5364eca5012
Shell
professorfaggiano/TT12017
/ENIAC/Prova Exer 4.sh
UTF-8
217
3.234375
3
[]
no_license
#!/bin/bash clear VAR=1999 echo "Digite o ano que voce nasceu" read ANO if (( $ANO <= $VAR)); then echo "Voce pode votar" else if (( $ANO > $VAR)); then echo "Voce nao pode votar" fi fi
true
d99388c39d3aef4f1de736275baaaed2d477a72a
Shell
parro-it/ebansoft.com
/scripts.zsh
UTF-8
796
3.390625
3
[]
no_license
#!/bin/zsh RED="\e[31m" NORMAL="\e[0m" GREEN="\e[92m" export all_tests_passed=0 function build_site() { verbose=$1 if orgame src/client src/posts src/pages docs; then printf $GREEN figlet 'Sito ricostruito.' printf $NORMAL all_tests_passed=1 else printf $RED figlet "C'è un problema...
true
3e257398aac9090a7e499ce9bda296f080124f70
Shell
garymaxallen/vpns
/l2tp_ipsec.sh
UTF-8
11,748
4
4
[ "MIT" ]
permissive
#!/bin/bash # Setup Strong strongSwan server for Ubuntu and Debian # # Copyright (C) 2014-2015 Phil Plückthun <phil@plckthn.me> # Based on Strongswan on Docker # https://github.com/philplckthun/docker-strongswan # # This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 # Unported...
true
08c55dae8520841697a4ba52a4e9b618a0e034cb
Shell
bogdbo/bogdbo.github.io
/arch.sh
UTF-8
2,131
3.78125
4
[]
no_license
#!/bin/bash TIMEZONE='Europe/London' HOSTNAME='bogdan' USER_NAME='bogdan' configure() { echo 'Setting hostname' set_hostname echo 'Setting timezone' set_timezone echo 'Setting locale' set_locale echo 'Setting console keymap' set_keymap echo 'Setting hosts file' set_...
true
79479e4de56f8fbc185c36859e56eb80f253520c
Shell
olton/mina-node-install
/scripts/mina-status-monitor.sh
UTF-8
17,133
3
3
[ "MIT" ]
permissive
# Not sure why this is still in shell...but...we're here now. #Credit to _thanos for the original snarkstopper - https://forums.minaprotocol.com/t/guide-script-automagically-stops-snark-work-prior-of-getting-a-block-proposal/299 #Credit to @vanphandinh for docker port, re-integrating some of those changes here from htt...
true
0d1dbcfa728a4aac44a96519df0682a046df6e04
Shell
abhnerAraujo/IF1006
/script_projeto.sh
UTF-8
3,096
3.515625
4
[]
no_license
#!/bin/sh AMBIENT_OK=true; if hash git 2>/dev/null; then echo "Git OK"; else echo "Git is not installed and is needed to proceed. Installing now..."; echo "Getting Git. Press Y if asked to install." sudo apt-get install git; if hash git 2>/dev/null; then echo "Git OK"; else ...
true
36ca2cdb7b3311e21cb6254f68b3558082f195a3
Shell
pabloschu1/angular-pipeline-example
/bin/md5
UTF-8
185
3.34375
3
[ "MIT" ]
permissive
#!/bin/bash case $(uname) in Darwin) cat $@ | md5 -q ;; Linux) cat $@ | md5sum | awk '{ print $1 }' ;; *) echo "Unsupported distro $DIST" exit 1 ;; esac
true
7f52743010c613b2f1f5db702f2949e890064833
Shell
joesitton/dotfiles
/config/eww/scripts/wifi
UTF-8
397
3.125
3
[]
no_license
#!/bin/bash status=$(nmcli g | grep -oE "disconnected") essid=$(nmcli c | grep wlp0s20f3 | awk '{print ($1)}') if [ "$status" ] ; then icon="" text="" col="#575268" else icon="" text="${essid}" col="#a1bdce" fi if [[ "$1" == "--COL" ]]; then echo "$col" elif [[ "$1" == "--ESSID" ]]; the...
true
c0d9024bb03ab77fd05ce8e8f40cb813c100571c
Shell
ton-rocks/general-ton-node
/scripts/docker_export_wallet.sh
UTF-8
877
3.375
3
[]
no_license
#!/bin/bash if [ ! -f ./env.sh ]; then echo "env.sh not found!" exit 1 fi . ./env.sh if [ "$1" != "y" ]; then echo -n "This may overwrite existing files. Are you sure? (y/n): " read answer if [ "$answer" != "Y" ] && [ "$answer" != "y" ]; then exit fi fi docker cp $DOCKER_NAME:/var/...
true
324dfe9d19e7d04cbb0933da3160895e3cefccf2
Shell
agvim/lin-bootstrap
/package_scripts/50_git-delta_gitdev.sh
UTF-8
907
3.75
4
[]
no_license
#!/bin/bash # $ curl -Ls -I -o /dev/null -w %{url_effective} https://github.com/dandavison/delta/releases/latest # 0.9.2 DELTA_VERSION=$(curl -Ls -I -o /dev/null -w %{url_effective} https://github.com/dandavison/delta/releases/latest | sed -r 's/[^0-9]+//') check_if_installed () { LOCAL_VERSION=$(which delta > /d...
true
b380625fc9999cf3a66665bc20dc7e25014e2a54
Shell
vitorta0506/desafio
/scripts/README3-NGINXhello.sh
UTF-8
348
2.609375
3
[]
no_license
#!/bin/bash # Configure um nginx que sirva o retorno da aplicação ao receber um GET. echo --------- echo Hello World em Python servidor pelo NGINX sleep 1 echo Realizando um GET em http://k8s.vtainfo.com.br:30000/python sleep 1 curl -s --location --request GET 'http://k8s.vtainfo.com.br:30000/python' ...
true
2f3897b2ff770594b648c7b993675d49fe271d56
Shell
dollalilz/2041_20T2
/ass1/update_tracker
UTF-8
104
2.65625
3
[]
no_license
#!/bin/dash for i in * do if test ! -e .status/$i then touch .status/$i fi done
true
c3fb669ebdbe108088c6f4df78c25dd62059e998
Shell
fledge-iot/fledge
/scripts/storage
UTF-8
2,957
3.65625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash ##-------------------------------------------------------------------- ## Copyright (c) 2017-2018 OSIsoft, LLC ## ## 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:...
true
b74ddb5940741228182d13c1098394ced7e9fa2f
Shell
sasa-mitrovic/bash_basics
/04-life.sh
UTF-8
484
3.796875
4
[ "Unlicense" ]
permissive
echo "What is the meaning of life?" read meaning if [ "$meaning" -eq 42 ]; then echo "Yes!, That is the meaning of life!" else echo "Awww... You don't know the meaning of life" fi # here are some other arithemetic comparison operators # -eq -ne -gt -ge -lt -le # exercise: write a script that prints whether...
true
f1c5ec360e59068589499024bbf0637be23f6e35
Shell
eterinfi/shell
/fun3.sh
UTF-8
376
2.859375
3
[]
no_license
#!/bin/bash # author:Runoob Tutorial # url:www.runoob.com funWithParam(){ echo "1st parameter is $1 !" echo "2nd parameter is $2 !" echo "10th parameter is $10 !" echo "10th parameter is ${10} !" echo "11th parameter is ${11} !" echo "Total number of parameters is $# !" echo "All parameters...
true
b0b7a3dbbe169433510cd3b243a03d8f9fbe2f28
Shell
stanacton/fantETHy
/devtools/golang.sh
UTF-8
471
3.15625
3
[]
no_license
#!/bin/bash export GOPATH=/home/vagrant/src/GOPATH add-apt-repository ppa:ubuntu-lxc/lxd-stable apt-get update apt-get install -y golang if [ ! -d "$DIRECTORY" ]; then mkdir -p /home/vagrant/src/GOPATH fi if grep -q GOPATH /etc/environment; then echo "GOPATH already exists" else echo "adding GOPATH to .b...
true
2e2f3d8ec8ad9a5c994b5aceb0ed89bb4e329a37
Shell
ymingjun/vps_init
/data/crons/php-fpm.sh
UTF-8
197
3.03125
3
[]
no_license
#! /bin/sh PID_FILE="/data/php/logs/php-fpm.pid" CMD="/data/script/php-fpm.sh restart" if [ ! -e $PID_FILE ] || [ ! -s $PID_FILE ] || [ ! -e /proc/`cat $PID_FILE`/status ]; then $CMD fi
true
66fe03230206965b30a91100187469a46bdc11fd
Shell
Konubinix/Devel
/bin/konix_find_org_directories.sh
UTF-8
125
2.546875
3
[]
no_license
#!/bin/bash find -L "$1" \( -name 'data' -or -name ".stversions" \) -prune -or -name "*.org" |sed 's-/[^/]\+$-/-'|sort|uniq
true
24b895b8079fb1f323232d996b9497a3de4f310e
Shell
2018331100/vimrc
/install.sh
UTF-8
291
3.046875
3
[]
no_license
#!/bin/bash cd ~ if [ ! -d ".vim" ]; then mv vimrc .vim && cd .vim mkdir undor-dir sessions echo "Installing vimscript based plugins..." vim -c VimscriptPlugins -c qa else echo "Do yo want to delete .vim?[y/N]" read -s del if [[ -z $del || $del == "y" ]]; then rm -rf .vim fi fi
true
67c53f0a6acfecfc9a73e689440021b552350c05
Shell
casper-astro/serendip6
/src/vegas_hpc/bin/vegas_init_shmem
UTF-8
582
3.078125
3
[]
no_license
#! /bin/bash if test "${VEGAS_DIR}zz" = zz; then echo "Error: VEGAS_DIR environment variable not set, exiting." exit 1 fi # Set up status buffer $VEGAS_DIR/bin/check_vegas_status >& /dev/null # Set up first (GPU) data buffer $VEGAS_DIR/bin/check_vegas_databuf -c -i1 -n32 -s32768 -t1 >& /dev/null # Set up second (CPU_...
true
d450e399d03ea1e51ddbbbe9bb62da4e086ac653
Shell
7imbrook/secret-santa-app
/deploy_service.sh
UTF-8
480
2.953125
3
[]
no_license
#!/bin/bash set -e function finish { rm ./push_logs } trap finish EXIT docker build -t 7imbrook/santa . docker push 7imbrook/santa | tee ./push_logs # Swap shas, don't think we need this NEW_DIGEST=$(tail -n 1 push_logs | cut -d':' -f 4 | cut -d' ' -f 1) echo echo "Going to deploy" $NEW_DIGEST kubectl patch dep...
true
ac321b8141e465c036fbb81ce42d7c8f2f17f7da
Shell
InterstellarScout/Linux-Administration
/scripts/specific-use/webServer/startStopWebServer.sh
UTF-8
427
3.71875
4
[]
no_license
#!/bin/sh #This script starts and stops the web service. #answer = ${1?Error: no parameter given} echo "Would you like to start or stop the webserver (on/off)?" read answer if [ "$answer" = "on" ]; then sudo /etc/init.d/mysql start #Start my sql Service sudo service apache2 start elif [ "$answer" = "...
true
a8d8e652854caa018ad28e626df616a13c7092aa
Shell
cloud-gov/cf-redash
/setup-example.sh
UTF-8
612
2.84375
3
[]
no_license
#!/bin/bash # Note - full list of Redash environmental variables is here: # https://redash.io/help/open-source/admin-guide/env-vars-settings APP_NAME=$1 cf set-env $APP_NAME REDASH_DATABASE_URL "" # Get by running cf enf APP_NAME cf set-env $APP_NAME REDASH_LOG_LEVEL "" # e.g., INFO cf set-env $APP_NAM...
true
5f850a6fb84ba822c076d55321712893ecb7d5c6
Shell
irliao/dotfiles
/zsh/archive/prezto/zshenv.zsh
UTF-8
654
3.40625
3
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
# # Defines environment variables. # # This is sourced on all invocations of the shell, unless the -f option is set. # This file should contain commands to set the global command search path and other system-wide environment variables. # This should not contain commands that produce output or assume the shell is attach...
true
3b03410924b05a0442c3ef2cd7e67dd3d896ec5d
Shell
tellesnobrega/trending_files
/delete_remote.sh
UTF-8
454
2.609375
3
[]
no_license
#!/bin/bash PEM_FILE=$1 for i in {1..7} do ssh -i $PEM_FILE ubuntu@telles-storm-slave$i 'sudo rm -rf /usr/local/storm/logs/worker-6700.log' ssh -i $PEM_FILE ubuntu@telles-storm-slave$i 'sudo rm -rf /usr/local/storm/logs/worker-6701.log' ssh -i $PEM_FILE ubuntu@telles-storm-slave$i 'sudo rm -rf /usr/local/...
true