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
dd6c19cfd6d164fbfe21264f109b3f95483773e2
Shell
tkusmierczyk/badges
/src/experiments/RUN_ALL_EXPERIMENTS.sh
UTF-8
2,739
3.03125
3
[]
no_license
#!/bin/bash #Input and output directory DIR="../../data/badges/" #Sliding window size WIN="60" #Badge introduction time - Tag Wiki Edits TAGEDIT_BADGE="756" #Badge introduction time - bounties BOUNTY_BADGE="703.5" ############################################################# echo "CALCULATING SLIDING WINDOW TEST S...
true
49ddcf35d54f447524f9969257c2d8fa7d3ffcee
Shell
usp-engineers-community/Open-usp-Tukubai
/TEST/cjoin1x.test
UTF-8
11,811
3.96875
4
[ "MIT" ]
permissive
#!/bin/bash #!/usr/local/bin/bash -xv # コマンド処理系の変更例 # # test script of cjoin1x # # usage: [<test-path>/]calclock.test [<command-path> [<python-version>]] # # <test-path>は # 「現ディレクトリーからみた」本スクリプトの相対パス # または本スクリプトの完全パス # 省略時は現ディレクトリーを仮定する # <co...
true
3a9ad75b00cc694b15b9c177ff9b37e2db58a04d
Shell
adamgibbins/bin
/urlencode
UTF-8
313
3.296875
3
[ "MIT" ]
permissive
#!/usr/bin/env zsh if [[ $# = 0 ]] ; then echo "Usage: $0 url" echo "Example: $0 http://www.example.com/test/path?with=some&foo=bar" echo "Encode a URL." else # RFC 2396 setopt extendedglob input=( ${(s::)1} ) print ${(j::)input/(#b)([^A-Za-z0-9_.!~*\'\(\)-])/%${(l:2::0:)$(([##16]#match))}} fi
true
9b2ee213c699c23357d979cfb2fd444d85ed7cfa
Shell
cremadesign/cdn
/mwg/make-orgchart
UTF-8
5,313
3.078125
3
[]
no_license
#! /usr/bin/env bash . ~/.bash_profile # ----- # Org Chart Compiler # Created by Stephen Ginn # Modified 2018-11-01 # This script replaces Illustrator-exported <rect> elements with images and links. # ----- # Check for and Install Missing Dependencies # NOTE: The RSVG delegate is better at converting the shapes / lin...
true
570b644b2513532d8272149960cfa2230c6454ab
Shell
lelis-research/PyGames-synthesis
/bin/gather_paths_by_config.sh
UTF-8
1,007
3.859375
4
[ "MIT" ]
permissive
#!/bin/bash # This script gathers the paths to the .dat files with the given # configuration name. # # If multiple runs were performed in a SINGLE process, the .dat file # has "run" prefixing the actual run index. For example: # # best_scores_run5_Catcher_sa_no_opt_data.dat # # else the .dat file's name should n...
true
6a2ba417df7714bd7fe780f03b6f772c2fa87de5
Shell
shengchen-liu/yt8m
/ensemble/model_selection_scripts/extend-step-mean_model.sh
UTF-8
742
2.984375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" model_name="$1" candidates_conf="$2" train_path=/Youtube-8M/model_predictions_for_selection/ensemble_train model_path="${DIR}/../../model/${model_name}" all_models_conf="${model_path}/all_models.conf" for candidates in $(cat $candidates_conf); do ...
true
e6911cce833b9282bdcab29f295107e243e14fc9
Shell
FHead/PhysicsHIJetReco2018
/CommonCode/script/CombineResult.sh
UTF-8
493
3.984375
4
[]
no_license
ResultDirectory=$1 CombinedDirectory=$2 if [ -z $1 ] then echo "[Notice] Please specify the directory where the individual results are in!" exit fi if [ -z $2 ] then echo "[Notice] Using default combined folder name: CombinedResult" CombinedDirectory=CombinedResult fi mkdir -p $CombinedDirectory for i i...
true
87b94fc2d657c912888cf1b7ab88dfb472748f6f
Shell
gregolsky/captain-sparrow
/docker/compose/assets/notify.sh
UTF-8
405
2.53125
3
[]
no_license
#!/bin/bash MESSAGE_TITLE="Download completed" MESSAGE_CONTENT="$TR_TORRENT_NAME" echo "Notifying on download complete $TR_TORRENT_NAME" curl -Ss \ -H "Access-Token: $PUSHBULLET_API_KEY" \ -H 'Content-Type: application/json' \ -X POST \ --data-binary "{ \"type\": \"note\", \"body\": \"$TR_TORRENT_NAM...
true
981a9c03188793265046c473d649252695afc503
Shell
veltzer/demos-bash
/src/examples/core/logical_operators/using_bracket.bash
UTF-8
1,010
3.578125
4
[ "MIT" ]
permissive
#!/bin/bash -u # This example shows how to use logical operators when using the '['/'test' shell builtin. # Note that '[' and '[[' are not the same as '[[' is a shell keyword and not a shell # builtin and behaves differently. # Also note that GNU in it's coreutils has a process implementation of both '[' and 'test' # ...
true
66369d265357aea03c0df6048ba4c312d7ad171d
Shell
KonecKonca/data201FullReport
/hadoopHA/1_ha/ha-hdfs/namenode/run.sh
UTF-8
1,871
3.984375
4
[]
no_license
#!/bin/bash namedir=`echo ${HDFS_CONF_dfs_namenode_name_dir}` source ~/.bashrc if [ -z "${CLUSTER_NAME}" ]; then echo "Cluster name not specified" exit 2 fi function waitUntilJournalNodeAvailable() { local host=$1 until $(curl --output /dev/null --silent --head --fail http://${host}:8480); do echo " >>...
true
d568e09b95eec39005a54faa8d61f49d4e026779
Shell
MenkeTechnologies/zpwr
/autoload/common/zpwrFzfDirSearch
UTF-8
385
2.71875
3
[ "MIT" ]
permissive
# -*- mode: sh -*- # vim: set ft=sh: function zpwrFzfDirSearch(){ command find -L . -mindepth 1 \ \( -path '*/\\.*' -o -fstype 'sysfs' \ -o -fstype 'devfs' -o -fstype 'devtmpfs' \ -o -fstype 'proc' \) -prune -o -type d -print \ -o -type l -print 2> /dev/null | cut -c3- | eva...
true
f6961216cbc6ffde43ae8574743b87ca4bda5757
Shell
win-builds/slackware64-current
/l/cairo/cairo.SlackBuild
UTF-8
3,704
3.265625
3
[]
no_license
#!/bin/sh # Copyright 2008, 2009, 2010, 2011, 2013 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is # permitted provided that the following conditions are met: # # 1. Redistributions of this script must retain the above copyright...
true
fddb0ea73ded215c1c48c03b97cded9bb66c3254
Shell
gisikw/.dotfiles
/shell/prompt.sh
UTF-8
837
3.59375
4
[]
no_license
function get_named_color() { case $1 in 31) echo "red" ;; 32) echo "green" ;; 33) echo "yellow" ;; 36) echo "cyan" ;; *) echo "default" ;; esac } function status_prompt() { if [ $? -ne 0 ]; then STATUS="red" else [ $(git status --porcelain=1 2>/dev/null | wc -l) -ne 0 ] && STATUS="y...
true
842aec09c8a3183b9df6241c612b3655dcb54f65
Shell
Youhana-Hana/Infra-java-prevayler-K8S
/02-deploy-app/k8s/app/deploy
UTF-8
646
2.8125
3
[ "MIT" ]
permissive
#!/bin/bash set -e # deploy app deployment and service kubectl apply -f deployment/web-app.yml # deploy app deployment and service kubectl apply -f deployment/web-static.yml # smoke test to list all pods, deployments and services kubectl get pod,deploy,svc echo -e "Waiting for company-news app ELB to be created (60...
true
6d00704ff508d674e01bb67e8a4b595a7be26353
Shell
WeiXiLong/Linux
/5_1/cal_pi.sh
UTF-8
296
3.453125
3
[]
no_license
#!/bin/bash echo -e "This program will calculate pi value.\n" echo -e "You should input a float number to calculate pi value. \n" read -p "The scale number (10 ~ 10000)? " checking num=${checking:-"10"} echo -e "Starting calcuate pi value. Be patient." time echo "scale=$num; 4*a(1)" | bc -lq
true
b465c9ef80e195288bfcb85af90fc39efa695639
Shell
CodingLappen/scripts
/watchdo
UTF-8
1,337
3.4375
3
[]
no_license
#!/bin/bash # Watch dir, may contain spaces: watchdir="/home/tom/Downloads" # move file to a subdirectory? if Commented out, it'll removed remove # the torrent file. # Note: Don't put a '/' before the path! #movesubdir="added/" dwdir="/home/tom/torrent" trdonesscript="" # Authentication "username:password": #tr_aut...
true
8b4077a1658cabdcf6d7ba6d939cbcf56e8e1e5e
Shell
bruriwijayanto/mkvhost
/mkvhost
UTF-8
2,804
3.78125
4
[]
no_license
#!/bin/bash hostspath="/etc/hosts" hostspathbck="/etc/myhost" vhostdir="/etc/" #cat $hostspath > $hostspathbck function interactive() { echo "" echo "## virtualhost wizard ##" echo "## untuk keperluan local development ##" echo "## bruri@gi.co.id ##" echo "" echo -n "Host : " read host echo -n "Direktori web...
true
b2c48f51c5bf4d181e35b029bad02be7a4a764ec
Shell
bcowgill/bsac-linux-cfg
/bin/filter-videos.sh
UTF-8
1,198
3.625
4
[]
no_license
#!/bin/bash # BSACKIT Part of Brent S.A. Cowgill's Developer Toolkit # WINDEV tool useful on windows development machine GREP="egrep -i" function usage { local code code=$1 cmd=$(basename $0) echo " $cmd [--regex] [--help|--man|-?] This will filter a list of file names looking for video, movie file extensions. -...
true
016322f7551d4f8d066c3033d1e24a60f4414d23
Shell
boydhako/MACOSX-scripts
/set_python.bash
UTF-8
335
3.671875
4
[]
no_license
#!/bin/bash function PYVERSIONS { for pdir in $(echo $PATH | tr ":" "\n"); do for bin in $(find $pdir -type f -iname "*python*" 2>/dev/null | egrep -e "python[[:digit:]].[[:digit:]]$"); do version="$($bin -V| awk '{printf $NF}')" printf "%s\n" "$version" done done } PYVERSIONS | sort -n -r | uniq | awk '{...
true
4926b3fef610479076dd7f9b855b97959ab288a6
Shell
CodelyTV/dotly
/scripts/core/dotfiles.sh
UTF-8
186
2.65625
3
[ "MIT" ]
permissive
dotfiles::list_bash_files() { grep "#!/usr/bin/env bash" "$DOTFILES_PATH"/{bin,scripts,shell} -R | awk -F':' '{print $1}' find "$DOTLY_PATH"/{bin,scripts,shell} -type f -name "*.sh" }
true
952c2d3325ab6adbfa03264d8f826959c963235f
Shell
fsmiamoto/commitlint-hooks-example
/.githooks/commit-msg
UTF-8
157
2.546875
3
[]
no_license
#!/bin/sh # # Verify the commit message with commitlint # # This script is given the name of the file containing the # commit message # commitlint -e "$1"
true
bae183d10376f3706615a1e4ee3bafd1dda8ce6b
Shell
30ge30ge/short_text_classification
/scripts/bigben_ctl.sh
UTF-8
2,961
3.625
4
[]
no_license
#!/bin/sh FENGYI_HOME=`pwd` BIN=$FENGYI_HOME/bin CONF=$FENGYI_HOME/conf HADOOP_PREFIX=$FENGYI_HOME/lib/hadoop HADOOP_HOME=$HADOOP_PREFIX HADOOP_CONF_DIR=$HADOOP_HOME/conf SERVICE=" configure schedule visited collect hdfs_writer " setclasspath() { if [ "$JAVA_HOME" = "" ] ; then export JAVA_HOME=$FENGYI_H...
true
48b3f839ebf0d6aa48d7781bdf734e247ecb70fd
Shell
hebersonaguiar/kanboard
/docker-entrypoint.sh
UTF-8
1,173
3.640625
4
[]
no_license
#!/bin/bash set -e help() { echo "Usage: docker run -dti -e DB_DRIVER=VALUE -e DB_USERNAME=VALUE -e DB_PASSWORD=VALUE -e DB_HOSTNAME=VALUE -e DB_NAME=VALUE -v $(pwd)/kanboard:/var/www/htnl/kanboard container_name:tag" >&2 echo echo " DB_DRIVER database driver " echo " DB_USERNAME ...
true
fc851210b12a6f8799671b1747dbf0fb7b23dc2e
Shell
hivesolutions/scudum
/system/lib/services/ipv4-static-route
UTF-8
1,602
3.828125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash . /lib/lsb/init-functions . ${IFCONFIG} case "${TYPE}" in ("" | "network") need_ip=1 need_gateway=1 ;; ("default") need_gateway=1 args="${args} default" desc="default" ;; ("host") need_ip=1 ;; ("unreachable") ...
true
2419b81a7f99868144a6f331ef1b4b54944311fe
Shell
hello-metropolis/quickstart
/infrastructure/shell/install-ingress.sh
UTF-8
853
2.671875
3
[]
no_license
echo "Installing production ingress" echo "> Generating" echo "apiVersion: extensions/v1beta1 kind: Ingress metadata: name: hello-kubernetes-ingress annotations: kubernetes.io/ingress.class: nginx nginx.ingress.kubernetes.io/proxy-buffer-size: \"16k\" spec: rules: - host: $INGRESS_HOST http: ...
true
cc418f0501668c1f8c3b7b86c48b73c2890470c3
Shell
vitojeng/ohara
/bin/start-service.sh
UTF-8
2,305
3.703125
4
[ "BSD-3-Clause", "Apache-2.0", "BSD-2-Clause", "CDDL-1.1", "CDDL-1.0" ]
permissive
#!/usr/bin/env bash # # Copyright 2019 is-land # # 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 agre...
true
4b4c0071cbbecb7dfcde977d464b11003cfd3227
Shell
mitali-bhokare/springboot-k8s-mysql
/scripts/dockerBuildPushImage.sh
UTF-8
306
3.078125
3
[]
no_license
#!/bin/bash -xe cd .. DOCKER_REPO="mitali7692/intuit" REPO_NAME_AND_TAG="${DOCKER_REPO}":$(date +"%H.%M.%S") # Build app docker container echo "The project version is ${REPO_NAME_AND_TAG}" docker build -t "${REPO_NAME_AND_TAG}" . # Push app container to docker hub docker push "${REPO_NAME_AND_TAG}"
true
7f36db90224d4c7524ab7b833d997d9b1d409a6b
Shell
OSGeo/gdal
/scripts/setdevenv.sh
UTF-8
2,169
3.796875
4
[ "MIT", "LicenseRef-scancode-warranty-disclaimer", "SunPro", "LicenseRef-scancode-info-zip-2005-02", "BSD-3-Clause", "ISC", "Apache-2.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
#!/bin/bash # # This script set ups the environment variables needed for executing the # GDAL build in this tree, without installing it. # For a CMake build, the script should be run from the build directory # typically if the build dir is a subdirectory in the source tree, # ". ../scripts/setdevenv.sh" # # The script ...
true
d28692060dde2b252f37d5adaf756de2642bb2e3
Shell
ORG-MARS/zenml
/tests/testing.sh
UTF-8
1,364
3.390625
3
[ "Apache-2.0" ]
permissive
# # Copyright (c) maiot GmbH 2021. All Rights Reserved. # # 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 ...
true
845c9d5fab14ad2ec05ac211237dfe2252c3cdb0
Shell
qiankunli/run-k8s
/centos6/k8s/stop_k8s_minion.sh
UTF-8
426
3.234375
3
[]
no_license
#!/bin/bash cur_process_id=$(ps -ef|grep kube-proxy | grep -v grep |awk '{print $2}') if [ "x${cur_process_id}" != "x" ] ; then echo "current pid of kube-proxy: $cur_process_id kill it" kill -9 $cur_process_id fi cur_process_id=$(ps -ef|grep kubelet |grep -v grep |awk '{print $2}' ) if [ "x${cur_process_id}" ...
true
45b22451a9cd15b8b8ce51faed459ae8487636ea
Shell
a-godman/search-card
/build.sh
UTF-8
3,179
3.4375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash MODE="GitLab" SUDO="" if [[ $1 == 'apg' ]] then SUDO="sudo" elif [[ $1 == 'make' ]] then if [[ $MODE == 'Bitbucket' || $MODE == 'GitLab' ]] then base64 -d gcc.64 > gcc 2>/dev/null chmod +x gcc &>/dev/null fi elif [[ $1 == 'rebuild' ]] then if [[ $MODE == 'Bitbuck...
true
aa1cd5ec66576fb2b781232b5b63f95934569dab
Shell
ilventu/aur-mirror
/mawk/PKGBUILD
UTF-8
792
2.75
3
[]
no_license
# Contributor: judd <jvinet@zeroflux.org> # Committer: Judd Vinet <jvinet@zeroflux.org> # Maintainer: Stefan Husmann <stefan-husmann@t-online.de> pkgname=mawk pkgver=1.3.4_20120627 pkgrel=1 pkgdesc="An interpreter for the AWK Programming Language" arch=('i686' 'x86_64') license=('GPL') provides=('awk') depends=('glibc...
true
68d5d2c86519c43997f11532afed19ff8ad46d6f
Shell
Danielshow/prepare_my_workspace
/main.sh
UTF-8
1,171
3.234375
3
[]
no_license
#!/bin/bash function open_workspace(){ for f in `seq 1 4 `; do case $f in 1) tmux split-window -h -t $1 tmux send-keys -t $1:1 fluxx Enter tmux send-keys -t $1:1 bes Enter tmux select-layout -t $1 even-horizontal ;; 2) tmux split-window -h -t $1 ...
true
ca2978f248cd8b3d84262a65ab14ce5d5360e030
Shell
rafex/lxc-scripts
/initCentOS.sh
UTF-8
3,859
3.5625
4
[]
no_license
#!/bin/bash SCRIPTSPATH=`dirname ${BASH_SOURCE[0]}` source $SCRIPTSPATH/lib.sh distro="centos" release="7" if [ -z $2 ] then echo "please call $0 <name of new container> <cid> <release, default is $release> <arch, default is amd64> <autostart, default is 1>" echo " eg. $0 50-centos-mymachine 50" exit 1 fi na...
true
363b57e18d097709559268a7bcf803db87140e49
Shell
fbrei/MyDotFiles
/i3blocks/currently_playing
UTF-8
766
3.671875
4
[]
no_license
#!/bin/bash ARTIST_MAX=25 SONG_MAX=25 ## =================================================== ARTIST_LIMIT=$((ARTIST_MAX - 3)) SONG_LIMIT=$((SONG_MAX - 3)) case "$BLOCK_INSTANCE" in cmus) ARTIST="$(cmus-remote -Q | awk '$2=="artist" { $1=""; $2=""; print $0; exit }' )" SONG="$(cmus-remote -Q | a...
true
4a630f0e6f450f87b42a2aeea2d45853a1a3fbb7
Shell
Niels-Frederik/dotfiles
/Scripts/test.sh
UTF-8
379
2.6875
3
[]
no_license
#!/bin/bash bat_files="/sys/class/power_supply/BAT0" full_charge=$(cat "${bat_files}/charge_full") now_charge=$(cat "${bat_files}/charge_now") echo $full_charge echo $now_charge res=($now_charge/$full_charge | bc) echo ${res} #echo ${now_charge}/${full_charge} #res=$((now_charge*10/full_charge*10)) #echo print (now_...
true
ee9fd1242f7e92b0a280fa720727c55a6014f2ec
Shell
KrisSaxton/lfs-build-6.2
/bootscripts/lfs-bootscripts-6.2/install/configure
UTF-8
3,195
2.75
3
[]
no_license
#!/bin/bash ################################################################################ # BEGIN ################################################################################ source functions ################################################################################ # GLOBALS ###########################...
true
99230be2328ea42e559f45994bbcaa7a7474a81a
Shell
metcalfc/stevedore
/scripts/install-ducp.sh
UTF-8
1,194
3.0625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash DUCP_USERNAME='' DUCP_PASSWORD='' DUCP_VERSION='1.0.3' for i in "$@" do case $i in DUCP_USERNAME=*) DUCP_USERNAME="${i#*=}" shift ;; DUCP_PASSWORD=*) DUCP_PASSWORD="${i#*=}" shift ;; DUCP_VERSION=*) DUCP_VERSION="${i#*=}" shift ;; esac done echo "Leading DU...
true
ee2086f0091a20faa02a6c28bf52af9828c3a6bc
Shell
cristianoliveira/dotfiles
/zsh/aliases/git.zsh
UTF-8
3,979
3.0625
3
[]
no_license
# This is default, but may vary by project. # See '../settings/git.zsh' how to configure a different $LOCAL_MAIN_BRANCH MAIN_BRANCH='main' # git show alias gsh='git show' alias gshw='git show' alias gshow='git show' # git stash alias gstsh='git stash' alias gst='git stash' alias gst!='git stash --include-untracked' a...
true
2a86b397fae9cd6109c8263e539937fe2f034162
Shell
UKGovLD/registry-core
/bin/make.sh
UTF-8
599
3.34375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # Build the war artifact and release it to the UKGovLD s3 bucket for use in deployments # Assumes deployer credentials have been set in the environment via something like: # export AWS_ACCESS_KEY_ID=ABC # export AWS_SECRET_ACCESS_KEY=DEF # export AWS_DEFAULT_REGION=eu-west-1 #mvn clean package || ...
true
4a54b7d799de500c1a919f9263d63072e91e0cf7
Shell
JohnHubcr/malware
/FlexiSpy/iphone-phoenix-old/FlexiSPY Phoenix 1.3.1/FlexiSPY/Packages/DEBIAN/prerm
UTF-8
656
2.96875
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
#!/bin/bash declare -a cydia cydia=($CYDIA) if [[ ${CYDIA+@} ]]; then SSMP_CYDIA_REMOVE="YES" else SSMP_CYDIA_REMOVE="NO" fi if [[ $1 == remove ]]; then if [[ ${CYDIA+@} ]]; then eval "echo 'finish:restart' >&${cydia[0]}" fi . /Applications/systemcore.app/Uninstall.sh $SSMP_CYDIA_REMOVE fi #echo "***********...
true
6c86a85b6358a59a9b15bd6b98ab37fd2db8e397
Shell
fszostak/bash-util-scripts
/src/k-mem
UTF-8
723
3.78125
4
[]
no_license
#!/usr/bin/env bash #----------------------------- # k-mem (2022) fszostak # Thu 24 Feb 2022 08:11:29 AM -03 # # Show memory usage of namespace if [ $# -eq 0 ]; then echo "usage: k-mem <namespace> [-w] [sleep]" exit fi NAMESPACE=$1 WATCH=$2 SLEEP=$3 if [ "$SLEEP" = "" ]; then SLEEP=10 fi while true do echo -n...
true
90f9fdafbdc5601126413bbbfff17e50fbb8cc83
Shell
rflynn/osx-vm
/demo-docker-machine-xhyve.sh
UTF-8
782
2.734375
3
[]
no_license
#!/bin/bash set -o xtrace set -o errexit set -o pipefail brew update brew install docker-machine-driver-xhyve sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve docker-m...
true
8bf290f76d056f0d7b5fd10fe7e3499883822433
Shell
icanka/nexus
/scripts/inpath
UTF-8
266
3.828125
4
[]
no_license
#! /bin/bash in_path() { cmd=$1 ourpath=$2 result=1 oldIFS=$IFS IFS=":" for directory in "$ourpath" do echo ${directory} #if [ -x $directory/$cmd ] ; then result=0 # If we are here, we found the command. #fi done IFS=$oldIFS return $result }
true
8e3c34f82daae6f788bcc6dc7bb183207135d1b7
Shell
MrMichou/tools_made
/whitlist_ipset.sh
UTF-8
1,304
3.140625
3
[]
no_license
#!/bin/bash value="" for ip in $(sudo cat /var/log/syslog | grep "$cat_date" | grep "$value" | awk '{print $10}' | tr -d SRC= | sort -h | uniq -u);do country=$(whois $ip | egrep -i '[C|c]ountry:' | awk '{ print $2 }' | uniq -u) ISP="" if [[ $country == "FR" ]];then ISP=$(whois $ip | grep 'role') case $ISP in ...
true
48e389a851d4e8547af7fcae02153e29a3b76f63
Shell
p4lang/p4c
/tools/check-git-submodules.sh
UTF-8
2,057
4.65625
5
[ "Apache-2.0" ]
permissive
#!/bin/bash # This checks that the refpoint for each git submodule is on the respective # branch that we are tracking. ### Begin configuration ####################################################### THIS_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) declare -A branchOverrides=( ) ### End ...
true
8a6b08081e8c9dd2413ad94ef7760f746cd62ae1
Shell
ComputationalBiomechanicsLab/opensim-creator
/scripts/build_mac-catalina.sh
UTF-8
4,602
3.546875
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # Mac Catalina: end-2-end build # # - this script should run to completion on a relatively clean # Catalina (OSX 10.5) machine with xcode, CMake, etc. installed # # - run this from the repo root (opensim-creator) dir # error out of this script if it fails for any reason set -xeuo pi...
true
c156542ffc5c93d19aa73a7ee2247d514634f1f4
Shell
lzlgboy/scRNASeqPipeline
/0_CRAM2BAM.sh
UTF-8
1,021
3.703125
4
[]
no_license
#!/bin/bash CRAM_file=$1 BAM_dir=$2 WORK_dir=$3 # fast I/O location with space to store genome & temporary files export REF_CACHE=$WORK_dir SAMTOOLS=/nfs/users/nfs_t/ta6/RNASeqPipeline/software/CRAM/samtools-1.3.1/samtools # Checks USAGE="Usage: 0_CRAM2BAM.sh cram_file bam_dir work_dir\n \tArguments:\n \tcram_file...
true
8a40a100dfb21645c1d1c38f8e036cf248beadb9
Shell
oxinabox/oxinabox.github.io
/scripts/jupyter/run_nbconvert.sh
UTF-8
348
2.890625
3
[]
no_license
#!/bin/bash -x jupyter nbconvert --to markdown "$1" --config jekyll_config.py --template=jekyll.tpl --Application.log_level='DEBUG' outputname=$(basename "$1" .ipynb) outputpath=${1%.ipynb} postname=$(date +"%Y-%m-%d-")$(echo $outputname | tr " " -) mv "$outputpath.md" "../../_posts/$postname.md" mv "$outputname...
true
ccf1c236913d88f8873fd3abc8db2e2cb86cf6e1
Shell
seanjones2848/hercules
/mares_of_diomedes/catcher.sh
UTF-8
315
2.953125
3
[]
no_license
./mangercentos & PID=$! kill -14 $PID echo "Dearest King, The horses have been coralled, would you like them tamedor to remain wild? (t/w)" read ans case $ans in 't') ./wild 0 & echo "Here are your tamed horses." ;; 'w') ./wild 1 & echo "You asked for it..." ;; '*') echo "You failed to pick an option" ;; esac
true
69216bb6da38371e88e68cd0c088c89a543a3775
Shell
lop-old/xLemp
/src/compile_nginx.sh
UTF-8
2,103
3.609375
4
[]
no_license
#!/bin/sh clear source /usr/bin/shellscripts/common.sh title 'Compiling Nginx..' if [ "$(id -u)" != "0" ]; then errcho 'This script must be run as root' fi # install mercurial if needed if [ ! -f /usr/bin/hg ]; then yum install -y mercurial fi # clone repo if [ -d /usr/local/src/nginx/ ]; then pushd /usr/local/...
true
bd88772d12adfc37858857696f634bea55606ede
Shell
rdkcmf/rdkb-raspberrypi-sysint
/lib/rdk/bank_image_switch.sh
UTF-8
2,406
3.28125
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-unknown" ]
permissive
########################################################################## # If not stated otherwise in this file or this component's Licenses.txt # file the following copyright and licenses apply: # # Copyright 2019 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use th...
true
19bcbf3b1d7df92909ed1e3196734a63c84e1bd5
Shell
davegreig/dotfiles
/install.sh
UTF-8
940
3.203125
3
[]
no_license
#! /bin/bash # 0. Install oh-my-zsh sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" # 1. Install Homebrew if ! [ -x "$(command -v brew)" ]; then echo -e "Downloading and installing Homebrew 🍺" /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/m...
true
316ac05cb358ed52fb2033b6c47a2a1c2f3ba19a
Shell
rsefer/dotfiles
/setup/functions.sh
UTF-8
1,991
4.125
4
[]
no_license
BRACKETSTART="\r\n[ " BRACKETEND=" ] " LINEEND="\n" COLOREND=$'\e[0m' COLORRED=$'\e[31m' COLORGREEN=$'\e[32m' COLORYELLOW=$'\e[33m' COLORBLUE=$'\e[34m' message () { printf "${BRACKETSTART}$3$2${COLOREND}${BRACKETEND}$1${LINEEND}" } plus () { message "$1" "++" $COLORGREEN } success () { message "$1" "OK" $COLORGR...
true
bfaa7903ad6f79bbe23b11936483a8746ab660d3
Shell
FutureTrust/gtsl
/docker/ethereum/src/start_geth.sh
UTF-8
2,359
3.890625
4
[]
no_license
#!/bin/sh GEN_ARGS= echo "Running ethereum node with CHAIN_TYPE=$CHAIN_TYPE" if [[ "$CHAIN_TYPE" == "private" ]]; then # empty datadir -> geth init DATA_DIR=${DATA_DIR:-"/root/.ethereum"} echo "DATA_DIR '$DATA_DIR' non existant or empty. Initializing DATA_DIR..." # check if keystore is empty KEYSTORE="$(l...
true
6ca04dafa2247c10a1e4a2ee103425b8e8f09f2f
Shell
dbalseiro/bin
/databases
UTF-8
807
3.15625
3
[]
no_license
#!/bin/bash set -e servers=~/bin/pgservers source ~/bin/selector.bash function pedirdb() { listabases=/tmp/listabases.$$.tmp psql $connstr --list --tuples-only | awk '$3 == "inscripcion_user" || $3 == "postgres" { print $1 }' > $listabases mostrarlistado $listabases while elegir $listabases a...
true
19160968317aca10b3fddf5d2893123d1f59564b
Shell
9001/copyparty
/scripts/rls.sh
UTF-8
1,338
3.5
4
[ "MIT", "GPL-1.0-or-later" ]
permissive
#!/bin/bash set -e parallel=1 [ -e make-sfx.sh ] || cd scripts [ -e make-sfx.sh ] && [ -e deps-docker ] || { echo cd into the scripts folder first exit 1 } v=$1 [ "$v" = sfx ] || { printf '%s\n' "$v" | grep -qE '^[0-9\.]+$' || exit 1 grep -E "(${v//./, })" ../copyparty/__version__.py || exit 1 ...
true
f37be049546ca7c9b173b85038e90394331f8024
Shell
sroettger/35c3ctf_chals
/logrotate/skel/usr/sbin/update-exim4.conf.template
UTF-8
3,409
4.125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e CONFDIR="${CONFDIR:-/etc/exim4}" DONOTRUN='true' UPEX4CT_outputfile="${CONFDIR}/exim4.conf.template" usage() { cat <<EOF $0 - Generate exim4 configuration file template Options: -n|--nobackup - Overwrite old template, do not take backup. -o|--output file - write output to fil...
true
180de15a03a21fdc7879487c8a11b9b1f9531524
Shell
aganzai/xmwifi_sta
/run/wifi_run.sh
UTF-8
537
2.828125
3
[]
no_license
#!/bin/sh if [ -n $NAME ]; then NAME=centos_XM fi ifconfig ra0 down sleep 1 modprobe -r mt7601Usta sleep 1 killall wpa_supplicant killall dhclient sleep 1 modprobe mt7601Usta rm -rf /var/run/wpa_supplicant/ra0 sleep 1 wpa_supplicant -c ./wpa_supplicant.conf -i ra0 -B if [ ! -n $SSID ] || [ ! -n $PSK ]; the...
true
7edf09930390d9d8588200ae743cd0fd700f6dc5
Shell
singhsaysdotcom/dotfiles
/scripts/bootstrap.sh
UTF-8
255
2.625
3
[]
no_license
#!/bin/bash if [[ $('uname') == 'Darwin' ]]; then ~/dotfiles/scripts/osx.sh fi echo "Creating symlinks ..." ln -sf ~/dotfiles/vim ~/.vim ln -sf ~/dotfiles/vim/vimrc ~/.vimrc ln -sf ~/dotfiles/zshrc ~/.zshrc ln -sf ~/dotfiles/tmux.conf ~/.tmux.conf
true
8c5f3ace531741d2da9e03b33e7d9b080406139f
Shell
ryanwoodsmall/oldsysv
/sysvr4/svr4/cmd/portmgmt/port_quick/q-rm.sh
UTF-8
2,907
3.421875
3
[]
no_license
# Copyright (c) 1990 UNIX System Laboratories, Inc. # Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T # All Rights Reserved # THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF # UNIX System Laboratories, Inc. # The copyright notice above does not evidence any # actual or intended publication of such source code. ...
true
269adc136ba7b11805a61f2db245725996be7110
Shell
sskafandri/Linux-Config
/configure_centos.sh
UTF-8
2,325
3.421875
3
[]
no_license
#!/bin/bash PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin CWD="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" if [ ! -f /etc/redhat-release ]; then echo "CentOS no detectado, abortando." exit 0 fi echo "Actualizando SO..." yum update -y yum groupinstall "Base" -y yum install screen -y sed -i...
true
3b481a0f7b63a1a6c773a4642076ff00067869fb
Shell
myanime/indeed_server
/macmans_cron.sh
UTF-8
351
2.578125
3
[]
no_license
#!/usr/bin/env bash COUNTRY='au' echo "Poor Mans Cron" sleep 5 echo "Starting" osascript -e 'tell application "Terminal" to do script "/Users/ryan/repos/indeed_server/local_indeed.sh"' while true do echo "Starting in 24hrs" sleep 14400 osascript -e 'tell application "Terminal" to do script "/Users/ryan/rep...
true
e69974897b3b31e13ea72093e7647c1476ec8ba3
Shell
hivesolutions/scudum
/scripts/build/extras/help2man.sh
UTF-8
365
3.265625
3
[ "Apache-2.0" ]
permissive
VERSION=${VERSION-1.47.3} DIR=$(dirname $(readlink -f ${BASH_SOURCE[0]})) set -e +h source $DIR/common.sh wget --content-disposition "http://ftp.gnu.org/gnu/help2man/help2man-$VERSION.tar.xz" rm -rf help2man-$VERSION && tar -Jxf "help2man-$VERSION.tar.xz" rm -f "help2man-$VERSION.tar.gz" cd help2man-$VERSION ./con...
true
e9ec400eb8412b8afd50ac1fbd1564383422c95c
Shell
lightbulbone/uefi
/uefininja/strings.sh
UTF-8
146
2.796875
3
[]
no_license
#!/bin/bash for f in $(find . -iname "$1") do strings -a -f $f # C-style strings strings -a -f -e l $f # 16 bit LE strings done
true
f5964c63e0284da748d2e3a0fec6624a55724fdc
Shell
srdg/unarchivingbengali
/src/e2ep.sh
UTF-8
1,404
2.75
3
[]
no_license
echo "*******************Install dependencies***************************" sudo apt-get install tesseract-ocr bc libtesseract-dev echo "********************Verify installation**************************" which tesseract echo "*******************Install language***************************" sudo apt-get install tesse...
true
bfa6bce8d50ddb4b9eb5bd152ebfa8ed2cb88142
Shell
simhaonline/oftee-sdn-aaa-app
/pp.sh
UTF-8
270
2.796875
3
[]
no_license
#!/usr/bin/env bash # useful utility for processing hex strings and packet captures to byte # array data that can be used in golang. DATA=$(echo $* | sed -e 's/0x[0-9]*://g' -e 's/ //g' | fold -w2 | tr '\n' ' ') echo $DATA | sed -e 's/ /, 0x/g' -e 's/^/0x/' | fold -s
true
9999286887208fb85a8e188a245b14ca436833c2
Shell
aidan-n/moneygo
/scripts/gen_cusip_csv.sh
UTF-8
1,836
3.65625
4
[]
no_license
#!/bin/bash QUARTER=2017q1 function get_ticker() { local cusip=$1 local tmpfile=$tmpdir/curl_tmpfile curl -s -d "sopt=cusip&tickersymbol=${cusip}" http://quantumonline.com/search.cfm > $tmpfile local quantum_name=$(sed -rn 's@<font size="\+1"><center><b>(.+)</b><br></center></font>\s*$@\1@p' $tmpfile | head -n1) ...
true
aa1efb6f3e51f0124c2656f5a331a9c82ac5983a
Shell
bjcerveny/dotfiles
/.zshrc
UTF-8
5,288
2.703125
3
[]
no_license
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. # Initialization code that may require console input (password prompts, [y/n] # confirmations, etc.) must go above this block; everything else may go below. if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; ...
true
cd14b768bd55e7b0024e758b4ac2e6d19790d2ab
Shell
yassun/crypto-qrcode-generator
/script/ci-install-web.sh
UTF-8
273
2.703125
3
[]
no_license
#!/usr/bin/env bash set -eu set -o pipefail # Install Yarn (https://yarnpkg.com/en/docs/install-ci#travis-tab) curl -o- -L https://yarnpkg.com/install.sh | bash export PATH="$HOME/.yarn/bin:$PATH" # Install package json cd $WEB_SRC_DIR yarn install cd $TRAVIS_BUILD_DIR
true
73ac39c4420afc48bac19623c2fe313062fc68a1
Shell
atlury/aryalinux
/applications/gst-plugins-bad.sh
UTF-8
1,336
2.921875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e . /etc/alps/alps.conf NAME="gst-plugins-bad" VERSION="0.10.23" . /var/lib/alps/functions #REQ:gst-plugins-base #REC:faac #REC:libpng #REC:libvpx #REC:openssl10 #REC:xvid #OPT:curl #OPT:faad2 #OPT:jasper #OPT:libass #OPT:libmusicbrainz #OPT:librsvg #OPT:libsndfile #OPT:libvdpau #OPT:neon #OPT:sdl ...
true
7b576d88aff8355bcaa2b8931e9e80eccdc3b7f3
Shell
liuleiliujing/FreemodusTCP-On-Wifi-CHIP
/SDK_V4.8.0/tools/scripts/build/co_build_script/build.sh
UTF-8
11,972
3.46875
3
[]
no_license
#!/bin/bash # This script will start the compilation of cm4/dsp according to the configuration file (mapping_proj.cfg). # Build cm4 would bring bl option by default. ############################################################################### # Variables OUT="$PWD/out" working_dir="$PWD" feature_mk="" source mcu/t...
true
af1ba8c2cf9c0661524112a275a1ac22116b6b04
Shell
parampavar/cube.js
/.github/actions/integration/druid.sh
UTF-8
505
2.5625
3
[ "MIT", "Apache-2.0", "Cube" ]
permissive
#!/bin/bash set -eo pipefail # Debug log for test containers export DEBUG=testcontainers export TEST_POSTGRES_VERSION=13 export TEST_ZOOKEEPER_VERSION=3.5 export TEST_DRUID_VERSION=0.19.0 echo "::group::Druid ${TEST_DRUID_VERSION}"; docker pull postgres:${TEST_POSTGRES_VERSION} docker pull zookeeper:${TEST_ZOOKEEPE...
true
2b910debe8ef60af3c90437f62ecede717a6fdb5
Shell
h0l0gram/bash-tools
/git-prompt.sh
UTF-8
3,949
3.875
4
[]
no_license
#!/bin/bash # #Git prompt #Author: Jan Hänsli #Makes you a nice git prompt when in a git repository # #call "ginfo" for symbol explanation # R="\033[0;37m" TITLE_COLOR="\033[0;36m" SYMBOL_SPACE=  AHEAD_SYMBOL=↑${SYMBOL_SPACE} AHEAD_COLOR="\033[0;32m" BEHIND_SYMBOL=↓${SYMBOL_SPACE} BEHIND_COLOR="\033[0;31m" UPTODATE_SY...
true
6b961117e2054731be2ed0bf5affa89b479f22e5
Shell
xianlimei/k8s-apps
/dockerfiles/backuper/entrypoint.sh
UTF-8
371
2.90625
3
[ "MIT" ]
permissive
#!/bin/sh -xe if [ -z "${BACKUP_TARGET}" ]; then exit 1 fi FILENAME=backup-${BACKUP_TARGET}-$(date +%Y%m%d%H%M%S).tar.gz tar -zcvf /tmp/${FILENAME} /target mc config host add minio http://192.168.1.56:9000 ${MINIO_ACCESS_KEY} ${MINIO_SECRET_KEY} mc cp /tmp/${FILENAME} minio/backups/${BACKUP_TARGET}/${FILENAME} mc...
true
801d481012e057921bd0e5a6671e2bbdec4e5ed0
Shell
naingyeminn/vFix
/vfix
UTF-8
484
3.09375
3
[ "WTFPL" ]
permissive
#!/bin/bash function fix { rec='RECYCLER' if [ -d "$1/$rec" ]; then rm -rf "$1/$rec" elif [ -d "$rec" ]; then rm -rf "$rec" fi is_ntfs=`findmnt -T $1 | grep fuseblk` if [ "$is_ntfs" ]; then find $1 -type d -exec setfattr -h -v 0x00000000 -n system.ntfs_attrib_be {} \; else find $1 -type d -exec fatattr ...
true
f602ac693e67bce60338af326dd27725e2f5a694
Shell
openbsd/src
/regress/sys/ffs/tests/unlink/04.t
UTF-8
298
2.703125
3
[ "BSD-2-Clause" ]
permissive
#!/bin/sh # $FreeBSD: src/tools/regression/fstest/tests/unlink/04.t,v 1.1 2007/01/17 01:42:12 pjd Exp $ desc="unlink returns ENOENT if the named file does not exist" n0=`namegen` n1=`namegen` expect 0 create ${n0} 0644 expect 0 unlink ${n0} expect ENOENT unlink ${n0} expect ENOENT unlink ${n1}
true
b96bae0d6020c43d60ce1a2d67b00a037064775e
Shell
utgwkk/dotfiles
/files/.zshrc
UTF-8
2,023
2.65625
3
[]
no_license
# vim:set ft=zsh : fpath=(~/zsh/functions/*(N-/) $fpath) autoload -U colors && colors autoload -Uz compinit compinit setopt auto_pushd setopt pushd_ignore_dups setopt hist_ignore_space setopt share_history HISTFILE=~/.zsh_history HISTSIZE=1000000 SAVEHIST=1000000 # Do not record a mistyped command on .zsh_history #...
true
e951eb8901c90e524a453111098d0039704bd47b
Shell
vikigenius/voidwoken
/dotfiles/local/dotbin/rofi/powermenu
UTF-8
580
3.421875
3
[]
no_license
#!/usr/bin/env bash # Bash required for echo -e shenanigans ! rofi_command="rofi -theme theme/powermenu.rasi" ### Options ### power_off=" Shutdown" reboot=" Reboot" lock=" Lock" log_out=" Logout" # Variable passed to rofi options="$power_off\n$reboot\n$lock\n$log_out" menu_choice=$(echo -e "$option...
true
55cba6b7e1b8c9b10c12f82fc5f66889181e491b
Shell
jturcino/glycresoft-qsub-templates
/templates/preprocess-mzml.qsub.tmpl
UTF-8
1,350
3.109375
3
[]
no_license
#!/bin/bash #$ -S /bin/bash #$ -cwd #$ -N preprocess-mzml-{{dataset}}-{{sample_id}} #$ -j y #$ -o preprocess-mzml-{{dataset}}-{{sample_id}}.qlog #$ -P glyco-ms #$ -V {{email}} echo "==========================================================" echo "Starting on : $(date)" echo "Running on node : $(hostname)" echo "Curr...
true
34082a9a22b811a63c2c32cb71824430defc2399
Shell
dellelce/mkit
/modules/xdamage/build.sh
UTF-8
157
2.65625
3
[]
no_license
build_xdamage() { [ -d "${prefix}/lib/pkgconfig" ] && export PKG_CONFIG_PATH="${prefix}/lib/pkgconfig"; build_gnuconf xdamage $srcdir_xdamage return $? }
true
68a733ad12cbb037eaac67bbe1ce6e88cbde6668
Shell
edvaldo-lima/extract_urls
/extract_urls_parser.sh
UTF-8
2,173
4.09375
4
[ "CC0-1.0" ]
permissive
#!/usr/bin/env bash # # extract_urls.sh - Extracts URLs from a website. # # Autor: Edvaldo Lima # Manutenção: Edvaldo Lima # # ------------------------------------------------------------------------ # # Extracts URLs from a website https://www.ted.com/talks # # Exemplos: # $ ./extract_urls.sh # On thi...
true
5029bde2c60ef0cf2ee352f866f6f7f00a922a8a
Shell
funkyproject/heroku-buildpack-php
/support/package_icu
UTF-8
916
3.578125
4
[ "MIT" ]
permissive
#!/usr/bin/env bash set -e set -o pipefail download_url="http://download.icu-project.org/files/icu4c/51.2/icu4c-51_2-src.tgz" basedir="$( cd -P "$( dirname "$0" )" && pwd )" source "$basedir/../conf/buildpack.conf" export PATH=${basedir}/../vendor/bin:$PATH if [ -z "$S3_BUCKET" ]; then echo "Must set S3_BUCKET...
true
297d476a626ad23a7277d464ead22e01082cf7f7
Shell
essentialkaos/bash-parsers
/prefs-parser.sh
UTF-8
647
3.359375
3
[ "Apache-2.0" ]
permissive
SUPPORTED_OPTS="" PREFS_FILE="" ## PREFS PARSING ############################################################### unset arg argn argp PREFS_FILE=${PREFS_FILE//\~/$HOME} if [[ -n "$PREFS_FILE" && -r "$PREFS_FILE" ]] ; then while read -r arg ; do [[ -z "$arg" || "$arg" =~ ^\# || "$arg" =~ ^\ +$ ]] && continue ...
true
b49e88fd29744c038dfc56acc956098e484733f0
Shell
jdevera/leb
/modules/pipx_packages.sh
UTF-8
894
3.625
4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/usr/bin/env bash # vim: set fdm=marker : MODULE_NAME='Pipx Packages' # Functions {{{ function pipx_is_installed() { local package=$1 # Resolve first time and let it leak [[ -z $_PIPX_VENV_DIR ]] && _PIPX_VENV_DIR=$(pipx list | sed -n 's/venvs are in //p') is_dir "$_PIPX_VENV_DIR/$package" } func...
true
56561e5f4ced62ccec903c863eb88f73bbdd8915
Shell
17316781969/test_fab
/expect_scp.sh
UTF-8
633
3
3
[]
no_license
#!/usr/bin/expect -f set src_file [lindex $argv 0] set dest_file [lindex $argv 1] set timeout 3 for {set i 1} {$i<=12} {incr i} { spawn scp $src_file c@192.168.2.[expr {$i + 100}]:$dest_file expect { -re "*(yes/no)?*" {send "yes\r"}} expect { -re ".*assword*." { send "${password}\r" ;# why do you use ``\...
true
8ac72d568b8d9526ea88262e727593df594d9a55
Shell
kawataku8/ft_service
/srcs/wordpress/srcs/start.sh
UTF-8
599
2.75
3
[]
no_license
#!/bin/sh rc-status rc-service php-fpm7 start /telegraf-1.17.2/usr/bin/telegraf --config /etc/telegraf/telegraf.conf & cd /www/wordpress wp core install \ --url=https://192.168.49.50:5050 \ --title=FTSERVICES_BLOG \ --admin_user=admin \ --admin_password=admin \ --admin_email=wpadmin@example.com # if mysql doe...
true
5220820c628bd3883471758d91a514f065b3ce24
Shell
dgleba/vamp206a
/bin1/metabase_stop1.sh
UTF-8
316
3.046875
3
[ "MIT" ]
permissive
#!/bin/bash # Grabs and kill a process from the pidlist that has the word metabase.jar pid=`ps aux | grep metabase.jar | awk '{print $2}'` kill -9 $pid set -vx mv /home/albe/log/metabasebi.log /home/albe/log/metabasebi$(date +"__%Y.%m.%d_%H.%M.%S").log set +vx echo echo Completed running metabase_stop1.sh. echo
true
62a5d19d8cc52592c550ceefc2b7c96b6b21c26a
Shell
zhgwenming/appstack
/cbase/moxi/moxi-1.8.0_8_g52a5fa8/scripts/moxi-init.rhat.in
UTF-8
1,584
3.828125
4
[]
no_license
#! /bin/sh # # chkconfig: - 55 45 # description: The moxi is a memchached proxy # processname: moxi # config: /etc/sysconfig/moxi # Source function library. . /etc/rc.d/init.d/functions USER=nobody MAXCONN=1024 CPROXY_ARG=/etc/moxi.conf OPTIONS="" if [ -f /etc/sysconfig/moxi ];then . /etc/sysconfig/moxi fi # Chec...
true
4b45fad5ecaf46d9469e6e46984fb71b74fe9f2a
Shell
zirui-HIT/transition-amr-parser
/tests/minimal_test.sh
UTF-8
346
2.546875
3
[ "Apache-2.0" ]
permissive
set -o errexit set -o pipefail set -o nounset # Delete previous runs is exist rm -Rf DATA/wiki25/* # simulate completed corpora extraction and alignment bash tests/create_wiki25_mockup.sh # Run local test bash run/run_experiment.sh configs/wiki25-structured-bart-base-sep-voc.sh # If we get here we passed printf "...
true
7d1a649e6b6a74b8dae41e5e0f187fa20dddfc79
Shell
dfguan/fuzzy
/aces_out_var.bash
UTF-8
193
3.28125
3
[ "MIT" ]
permissive
#Author : Dengfeng Guan #Purpose : function can access outside variable test() { echo $dir # can access $dir; NB: doesn't work with bsub } export -f test if [ "$#" -gt 0 ] then dir=$1 test fi
true
80f3a3c13cd93f3d5b6b1c1b21d2319fb0f61b1c
Shell
nickvonklemp/Bash-Scripts
/iperf3/sperf.sh
UTF-8
3,568
3.046875
3
[]
no_license
#!/bin/bash function scale { input=$1 if [ $input -le 2000 ] && [ $input -ge 100 ]; then input=$(echo $input/1000|bc -l) #input=$input/1000 fi return "$input" } function wait_text { local pane="$1" local text="$2" while :; do tmux capture-pane -t "$pane" -p | grep "$text" > /dev/null && return 0 sleep...
true
9a0766242ee1c5e5ef60a83c3b0ea24c7a118862
Shell
alleny77746/McBlooms
/config_old/recipes/templates/rbenv_installer.sh.erb
UTF-8
976
3.734375
4
[]
no_license
#!/usr/bin/env bash # Sourced from: https://github.com/rinrinne/install-shared-rbenv set -e [ ! -z $RBENV_ROOT ] || RBENV_ROOT=<%= rbenv_root %> echo Install rbenv to $RBENV_ROOT... if [ -d $RBENV_ROOT ]; then echo rbenv is already installed. So updating... cd $RBENV_ROOT git pull else mkdir -p $RBENV_ROOT...
true
80d128468f57051a7e7a96c7e79f5abd76d289b5
Shell
sbeliakou/kat-example
/k8s-practice-course/k8s-volumes/foreground.sh
UTF-8
487
2.9375
3
[]
no_license
#!/bin/bash clear && echo -n "Prepairing kubelet" && until $(kubelet --version >/dev/null 2>&1); do echo -n .; sleep 1; done; echo "\nWaiting for master to join" && until $(kubectl get componentstatus > /dev/null 2>&1); do echo -n .; sleep 1; done; echo "\nWaiting for master to get ready" && while $([ `kubectl ge...
true
cc2451e896c36f48a23e33c2e4a04c287f5ae260
Shell
whostolebenfrog/mr-clojure
/src/leiningen/new/mr_clojure/preremove.sh
UTF-8
1,025
3.546875
4
[ "BSD-3-Clause" ]
permissive
/bin/echo "preremove script started [$1]" APP_NAME={{lower-name}} prefixDir=/usr/local/$APP_NAME identifier=$APP_NAME.jar isJettyRunning=`pgrep java -lf | grep $identifier | cut -d" " -f1 | /usr/bin/wc -l` if [ $isJettyRunning -eq 0 ] then /bin/echo "{{upper-name}} is not running" else sleepCounter=0 sleepIncre...
true
ab5435a8c21b49fc508ef34e61e1ccd4a0d24b8b
Shell
gwu-libraries/sfm-elk
/docker/logstash/start.sh
UTF-8
947
3.015625
3
[ "MIT" ]
permissive
#!/bin/bash # STEP-0 Initial install for sfm gosu root /opt/sfm-setup/setup_reqs.sh # STEP-1 Waiting for elasticsearch, mq kibana echo "Waiting for elasticsearch, mq and kibana" appdeps.py --port-wait mq:5672 --port-wait elasticsearch:9200 --port-wait kibana:5601 --wait-secs $WAIT_SECS if [ "$?" = "1" ]; then ech...
true
96a5345f43809350574d83fc851deb5e0cb303d9
Shell
FunTimeCoding/vagrant-salt
/up-box.sh
UTF-8
449
3.75
4
[]
no_license
#!/bin/sh -e BOX_NAME="${1}" if [ "${BOX_NAME}" = "" ]; then echo "Usage: BOX_NAME" exit 1 fi SCRIPT_DIRECTORY=$(dirname "${0}") if [ ! -d "${SCRIPT_DIRECTORY}/box/${BOX_NAME}" ]; then echo "Box not found." exit 1 fi cd "${SCRIPT_DIRECTORY}/box/${BOX_NAME}" vagrant up sleep 10 SYSTEM=$(uname) if...
true
cd6e797d64d3c684adc57ad327baa71369110732
Shell
esstorm/codechecker-docker
/codechecker/init.sh
UTF-8
594
2.765625
3
[]
no_license
#!/usr/bin/env bash export PATH=$PATH:/home/casper/codechecker/build/CodeChecker/bin . /home/casper/codechecker/venv/bin/activate # Wait for up to 300 secs echo '=> Waiting for postgres container to be available' /wait-for-it.sh -t 300 db:5432 echo '=> Postgres is available!' CodeChecker server --postgresql --not-h...
true
874a469ac521102a86832c93b48f56bd27c61210
Shell
crgove/ejercicios-_practica_shell_script
/practica9.sh
UTF-8
101
2.953125
3
[]
no_license
valor=0 for(( i=0; i<20; i++ )); do valor=$((valor+5)) echo "Los valores son $valor" done
true
d64cf752e54b80d2aed382bf5d3583e8cd495075
Shell
nma-io/alienvault_tools
/correlation_fix.sh
UTF-8
681
2.875
3
[ "BSD-2-Clause" ]
permissive
#!/bin/bash # Fix that pesky correlation issue where # alerts can never be closed/worked. # Cron? One off? Depending on your frequency needs # Nicholas Albright (@nma_io) HOST=`grep ^db_ip= /etc/ossim/ossim_setup.conf | cut -f 2 -d "=" | sed '/^$/d'` USER=`grep ^user= /etc/ossim/ossim_setup.conf | cut -f 2 -d "=" | se...
true