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
503aa0cf5dbc897bfd516ddeaf8c259ef04e3b2d
Shell
cms-analysis/DPGAnalysis-SiPixelTools
/GainCalibration/test/submit_gain_calib_template.sh
UTF-8
1,741
3.671875
4
[]
no_license
#! /bin/bash function peval { echo -e ">>> $@"; eval "$@"; } echo -e "Starting job at ..." `date` DATE_START=`date +%s` [ -z "$1" ] && echo ">>> FED is not given as input!" && exit 1 run=$RUN fed=$1 ext='dmp' rundir=$RUNDIR indir=$INDIR outdir=$OUTDIR workdir="$TMPDIR/job_GainCalib_${run}_${fed}" logdir="${rundir}/jo...
true
1c32a0f724789c1fb91b0245497a230e21d21023
Shell
chef/gatherlogs-reporter
/habitat-packages/cli/plan.sh
UTF-8
1,738
3.078125
3
[ "Apache-2.0" ]
permissive
pkg_name=gatherlogs_reporter pkg_origin=chef pkg_maintainer="Chef Support <support@chef.io>" pkg_license=('Apache-2.0') pkg_deps=( core/tar core/bzip2 core/wget core/ruby core/gzip core/file core/grep core/bash core/findutils core/git core/coreutils ) pkg_build_deps=( core/gcc core/make ) pk...
true
23297c664648dc0f163501b5a2e217b04691aea6
Shell
Rombusevil/flixel-gdx
/utils/gdx-setup-ui.sh
UTF-8
1,462
3.75
4
[]
no_license
#!/bin/bash # The world's cheapest gdx-setup-ui!!!' CONFIG=$(zenity --forms \ --title=" Create Flixel-GDX project " \ --text=" Configure " \ --add-entry="Package Name:" \ --add-entry="Game Name:" \ --add-entry="Output Path:" \ ) OK=$? # If user clicked OK if [[ $OK == 0 ]]...
true
9ae315eaa65da772e71b3b8b4b561fade6fd0918
Shell
fxha/dotfiles
/.bashrc
UTF-8
529
3.34375
3
[ "MIT" ]
permissive
# .bashrc # load global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc elif [ -f /etc/bash.bashrc ]; then . /etc/bash.bashrc fi # load local definitions if [ -f ~/.bashrc.local ]; then . ~/.bashrc.local fi # get environment variables if [ -f ~/.env ]; then . ~/.env fi # test for an non-interactive she...
true
932deda30afe74246833c92ea5c779e1eafb2e9a
Shell
danielgrigg/sandbox
/bash/expect_args.sh
UTF-8
184
3.3125
3
[ "WTFPL" ]
permissive
#!/bin/bash # E_WRONG_ARGS=85 script_params="-a -h -m -z" number_expected=4 if [ $# -ne $number_expected ] then echo "Usage: `basename $0` $script_params" exit $E_WRONG_ARGS fi
true
95fa6ed85cc24930252112a8fab49e88c3200942
Shell
Xabster/Botster
/apidata/dlapi.sh
UTF-8
164
2.6875
3
[]
no_license
#!/bin/bash for i in $(seq 1 27) ; do echo "downloading $i ..." wget -q http://download.java.net/jdk8/docs/api/index-files/index-$i.html -O api_$i.txt done
true
0b4aeaa3b366e15ca40bed758a024508e882ed22
Shell
vgeorgiev90/Ansible
/dynamic-hostpath-with-nfs/run.sh
UTF-8
3,240
4.03125
4
[]
no_license
#!/bin/bash usage () { clear echo "============================== Usage ================================================" echo " This script is build on top of ansible, make sure you have it installed " echo " It sets: volume group, logical volume , nfs-export and mount by the worker " ...
true
54a64dd69169a05f5f02e7fe1c33a2b0e69fac9e
Shell
angvoz/evo-neural-network-agents
/remote-run.sh
UTF-8
1,372
3.453125
3
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash -x CMD=$1 BOX=root@isp1.6350.lowes.com export PATH=.:/bin:/usr/local/bin eval $(keychain --eval ~/.ssh/id_rsa) SSH_ARGS="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" SSH="ssh $SSH_ARGS" SCP="scp -r $SSH_ARGS" WORKSPACE="$($SSH $BOX 'pwd')/workspace" # test connection $SSH $BOX true |...
true
83a100d74080dd07288113d0548ddb666aad8c8d
Shell
QBFreak/TinyMARE
/src/dirsize
UTF-8
613
3.90625
4
[]
no_license
#!/bin/sh # # Displays executable size and size of source code for TinyMARE # # Updated February 12 2006 Gandalf if [ -f ../bin/netmare.exe ]; then exe=../bin/netmare.exe elif [ -f ../bin/netmare ]; then exe=../bin/netmare else exe="" fi echo if [ -n "$exe" ]; then size $exe | awk ' { if($4 != "+") { total =...
true
9a9a44718ce920f8eb53e4265e99178040594178
Shell
ncodeitavinash/repo
/shortifthenelse.sh
UTF-8
291
3.140625
3
[]
no_license
#!/bin/bash [[ condition ]] && echo "true" || echo "false" >&2 Be sure the first command (echo "true") always exits with 0 otherwise, the second command will also be executed! $ [[ 1 -eq 1 ]] && { echo "it's true"; false; } || echo "but it's also false" >&2 it's true but it's also false
true
35e86c172432150bf357101ffc76ae1bb7ad80e0
Shell
neldridge/git-backup
/test/test-fill-repo.sh
UTF-8
940
4.0625
4
[]
no_license
#!/bin/sh # # Clones a git repository from repo.bundle file if it does not exist yet, # simulates changes and creates an incremental backup bundle # using backup-git.sh. # SRC_BUNDLE=${1:-"repo.bundle"} REPO=${2:-"repoA"} GBACKUP_DIR=${3:-"../src"} BACKUP_DIR=${4:-"backups"} GBACKUP_DIR=`readlink -f ${GBACKUP_DIR}` B...
true
5ef7cd066f507c9c88c54cda5dbc21dbd761bd73
Shell
samyakpuri/scripts
/tools/mediactrl
UTF-8
1,071
3.65625
4
[]
no_license
#!/bin/env sh # File : Media Control # Author : Samyak Puri <samyakpuri@hotmail.com> # Date : 08.10.2018 # Last Modified Date: 02.04.2020 if [ "$(pidof -s i3blocks)" ] then update="pkill -RTMIN+11 i3blocks" elif [ "$(pidof -s dwmblocks)" ] then update="pkill -RTMIN+11 dwmblocks" ...
true
c9583c3cb9d45d87b5c320fb60a644cff3dde166
Shell
remsflems/works-primz
/every.bash
UTF-8
305
2.609375
3
[]
no_license
#!/bin/bash python algo.py prime.txt.bkp cd b5 for entry in "cdb5"/* do python algo.py "$entry" 57 a4 done for entry in "57a4"/* do python algo.py "$entry" 54 16 done for entry in "5416"/* do python algo.py "$entry" 12 f4 done for entry in "12f4"/* do python algo.py "$entry" fb 7f done
true
a333106b7425953b75e403096f36fc9b60cb6e05
Shell
timmc/CCIS-utils
/uptime.sh
UTF-8
702
3.484375
3
[]
no_license
#!/bin/bash # Requires non-interactive SSH auth between CCIS machines, such as that provided by auto-ssh.sh # Suggested usage: ./uptime.sh | sort -rg | head -n 20 FILT_UPTIME_PRE="sed 's|:\([0-9]\+\) up \([0-9]\+\):|:\1 up 0 days, \2:|'" FILT_UPTIME_1="sed 's|.*[^0-9]\([0-9]\+\) day.*|\1|'" FILT_UPTIME_2="sed 's|.*up ...
true
87737cc6bf23b7fa6faf26553be6ef2103016ceb
Shell
Murasakiiru/dotfiles
/zsh/alias
UTF-8
1,364
2.71875
3
[]
no_license
#!/bin/zsh . ~/.zsh/vars alias mv='mv -v' alias cp='cp -v' alias rm='rm -iv' #rebuild video indexes alias mplayer='mplayer -idx' alias ll='ls -ahl | more; echo "\e[1;32m --[\e[1;34m Dirs:\e[1;36m `ls -al | egrep \"^drw\" | wc -l` \e[1;32m|\e[1;35m Files: \e[1;31m`ls -al | egrep -v \"^drw\" | grep -v total | wc -l` \e...
true
452eb2ed7ee3d9e247acf292ce0f3956fe2c252d
Shell
mendhak/pash
/scripts/workflow/parse.sh
UTF-8
478
3.453125
3
[ "MIT" ]
permissive
bash ./get_results.sh > out mv out log_results cat log_results/out while read p; do PASSED=$(echo $p | awk -F'[^0-9]+' '{ print $2 }') TOTAL=$(echo $p | awk -F'[^0-9]+' '{ print $3 }') FAILED=$((passed - failed)) # failed, print to stdout if [ $PASSED -ne $TOTAL ]; then # get the benchmark n...
true
3342646ac67f20d1c7c0c8da6803ab336f7e5694
Shell
tyagi619/Labs
/Utility_commands/shell/lab2_ans/script9.sh
UTF-8
233
3.53125
4
[]
no_license
#! /bin/bash ls -l -1 | awk '{print $9,$8,$6,$7,$1}' file=$((0)) dir=$((0)) for i in $(ls -1) do if [ -f "$i" ] then ((file++)) fi if [ -d "$i" ] then ((dir++)) fi done echo "Files = $file" echo "Directories = $dir"
true
aa84cd431a0af0cb213b358a1a4032b95969a7c9
Shell
Nodraak/DotFiles
/dotfiles/config/i3lock/lock
UTF-8
355
2.5625
3
[]
no_license
#!/usr/bin/env bash set -e cd $(dirname $(realpath $0)) scrot -e 'mv $f _lockbg.png' convert _lockbg.png \ -blur 15x15 \ -family Hack -fill '#FFFFFF' -stroke black -strokewidth 1 -pointsize 32 \ -gravity south -annotate +0+200 'Type password to unlock' \ debian.png -geometry +0+0 -composite _lockbg.p...
true
684bb82dd83ca057538052675c280cb7a5733315
Shell
csiro-dcfp/postprocess_ci
/make_CI.sh
UTF-8
633
3.0625
3
[]
no_license
#!/bin/bash -l # scripts to build the climate indices files for verification analysis # plot an ensmble of forecasts for a give initial start time # include the observation index on the plot conda activate ferret conda env list cd postprocess_ci mkdir indices mkdir tmp year=1982 year=$1 # pass to script at comman...
true
7fb8aa32863debd04907eadc8d9ccc9b76b85f7c
Shell
dollalilz/2041_20T2
/lab10/which_webserver.sh
UTF-8
124
2.90625
3
[]
no_license
#!/bin/sh for a in $@ do echo -n "$a " curl -I /dev/null $a 2>&1| egrep -i server: |cut -d ":" -f2| cut -c 2- done
true
a03c7865e16a537e0325b48f99d1e0c0f5e04613
Shell
bomc/hack
/bomc-kubernetes-event/bomc-hrm/run_istio_servicegraph.sh
UTF-8
832
2.703125
3
[]
no_license
#!/bin/bash echo ################################################# echo Start port-forwarding for servicegraph echo ------------------------------------------------- echo Navigate to servicegraph: echo . http://localhost:8088/force/forcegraph.html echo .. http://localhost:8088/dotviz echo ... http://localhost:8088/do...
true
cd6e024de0b02289818ebdd5e0a1c41ba4ca3bb2
Shell
shutdown57/dotfiles
/.fzf.zsh
UTF-8
20,467
3.6875
4
[]
no_license
# Setup fzf # --------- if [[ ! "$PATH" == */home/sam/.fzf/bin* ]]; then export PATH="${PATH:+${PATH}:}/home/sam/.fzf/bin" fi # Auto-completion # --------------- [[ $- == *i* ]] && source "/home/sam/.fzf/shell/completion.zsh" 2> /dev/null # Key bindings # ------------ source "/home/sam/.fzf/shell/key-bindings.zsh" ...
true
1d68358b55515088141d93ba0877c165b6074e29
Shell
dilawar/Scripts
/g
UTF-8
614
4.125
4
[]
no_license
#!/bin/bash # Find a file recursively containing a pattern set -f if [ $# -eq 1 ]; then pattern="$1" file_glob_pattern="*" dir_pattern="." elif [ $# -eq 2 ]; then pattern="$1" file_glob_pattern="$2" dir_pattern="." elif [ $# -eq 3 ]; then pattern="$1" file_glob_pattern="$2" dir_patte...
true
b2377134c7dc44cbf51a6709e1712f3111bb87a1
Shell
Azure/azure-notificationhubs-ios
/Scripts/build-framework.sh
UTF-8
1,268
3.5
4
[ "MIT", "BSD-3-Clause", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-generic-cla" ]
permissive
#!/bin/sh # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. # Builds the framework for the specified target. # Usage: build-framework.sh <target> <sdk> # Note: it must be run from Xcode's build phase. set -e # Print only target name and configuration. Mimic Xcode output t...
true
97236d54a73a429af252b3b4094b972fdd0a56ec
Shell
IThawk/rust-project
/rust-master/src/ci/docker/disabled/dist-x86_64-dragonfly/build-toolchain.sh
UTF-8
3,324
3.796875
4
[ "MIT", "LicenseRef-scancode-other-permissive", "Apache-2.0", "BSD-3-Clause", "BSD-2-Clause", "NCSA" ]
permissive
#!/usr/bin/env bash set -ex ARCH=x86_64 PATCH_TOOLCHAIN=$1 BINUTILS=2.25.1 GCC=6.4.0 hide_output() { set +x on_err=" echo ERROR: An error was encountered with the build. cat /tmp/build.log exit 1 " trap "$on_err" ERR bash -c "while true; do sleep 30; echo \$(date) - building ...; done" & PING_LOOP_PID=$! ...
true
a32648840d4ab2a6192b5b2142311fb6a058fa3a
Shell
weijuwei/mygit
/scripts/deluser.sh
UTF-8
205
3.109375
3
[]
no_license
#!/bin/bash #批量删除用户 while read line ; do username=`echo $line | cut -d: -f1` echo $username | grep -E "^user[0-9]+$" && userdel -r $username && echo "$username is removed" done < /etc/passwd
true
1b698707cc04f7130f1a964f077d1cd52912b28a
Shell
njoubert/PerVERT
/pervert_debug
UTF-8
531
3.578125
4
[]
no_license
#!/bin/bash if [ $# -ne 2 ]; then echo "Incorrect usage!" echo $0" <exec> <path>" exit 1 fi HERE=$(dirname $0) SERVER=$HERE/backend/server CURL=/usr/bin/curl #killall server RESPONSE=`$CURL localhost:8083/ping 2>/dev/null` if [ "$RESPONSE" != "pong" ]; then cd $HERE/backend ./server --daemon cd - # ...
true
cd82268ba1fa01d80edc57e9c2b4652861f8dfaa
Shell
mateusmcg/java-trabalho-final
/devops/start-app.sh
UTF-8
139
2.734375
3
[]
no_license
#!/bin/sh ./devops/build.sh if [ $? -eq 0 ]; then docker-compose up --build -d else echo "Ocorreu um erro ao buildar o app =(" fi
true
73c014eab81dd26101da8c446e4f8aeb6f69ceec
Shell
sasdf/deapk-openshift
/bin/compile
UTF-8
1,216
3.65625
4
[]
no_license
#!/bin/bash export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/bin/lib echo "Compiling $3 ..." apktool="$(pwd)/bin/apktool" mkkey="$(pwd)/bin/mkkey.sh" signapk="$(pwd)/bin/signapk.jar" mkdir "$1" cd "$1" echo "Initializing git..." git init git remote add origin "$2" > /dev/null git checkout --orphan "$3" if [ $? -ne 0 ] th...
true
9193df24cd3b6d87f597f970e19f831660da27a8
Shell
molleweide/dorothy
/commands/git-review
UTF-8
332
2.8125
3
[ "LicenseRef-scancode-public-domain", "Unlicense" ]
permissive
#!/usr/bin/env bash source "$DOROTHY/sources/strict.bash" source "$DOROTHY/sources/paths.sh" if get-app "Gitfox.app"; then open-app "Gitfox.app" "$@" elif get-app "Tower.app"; then open-app "Tower.app" "$@" elif command-exists gf; then gf "$@" elif command-exists tower; then tower "$@" else fail "gf and tower are...
true
07612c4f663a64a28b39369f0e59eff81820ef07
Shell
lollipopman/bin
/mint-ventra-tx
UTF-8
1,418
4.03125
4
[]
no_license
#!/bin/bash # vim: set noexpandtab: PROGRAM=$(basename "${0}") if [[ -z "$1" ]] || [[ -z "$2" ]]; then printf "usage: %s <from_date> <to_date>\n" "${PROGRAM}" printf "e.g. %s 2016-01-01 2016-01-31\n" "${PROGRAM}" exit 0 fi TRANSACTIONS=$(mktemp /tmp/tmp.mint.XXXXXX) if ! mintapi --transactions jesse@mbuki-mvuki.o...
true
f5fe28e4923b778553352a19b52bc533e06c0a2d
Shell
francoisferrand/docker-scripts
/completion/docker-env.bash
UTF-8
1,229
3.75
4
[ "Apache-2.0" ]
permissive
_docker_env_complete() { COMPREPLY=() local current="${COMP_WORDS[COMP_CWORD]}" # First word completion: can be a mode or an env if [ $COMP_CWORD -eq 1 ]; then COMPREPLY=( $(compgen -W "$(docker-env --list) --list --add --update --rm --help" -- ${current}) ) return 0 fi # Completion after each keywo...
true
161ed58f0879b59d4c1180e0652b89321ab64830
Shell
geligeli/tf_gpu_bb
/bin/start_env.sh
UTF-8
853
3.21875
3
[]
no_license
#!/bin/bash if [ ! -f WORKSPACE ]; then echo "No WORKSPACE file present, this should be called in the root directory of a bazel project" exit 1 fi pushd $PWD cd $(dirname $0)/../development_image make deploy docker pull 192.168.0.13:5000/tf-gpu-env:latest popd if [ -f .bazel_docker_id ]; then if [ ! -z $( dock...
true
aecc1fe6734fae009b6dc52175c852a85e8a7eb6
Shell
nativelogix/xquerrail2.framework
/.circle/bootstrap.sh
UTF-8
3,383
4
4
[ "Apache-2.0" ]
permissive
#!/bin/bash ################################################################ # Use this script to initialize the first (or only) host in # a MarkLogic Server cluster. Use the options to control admin # username and password, authentication mode, and the security # realm. If no hostname is given, localhost is assumed. O...
true
815a7f1c6e325416ce1c5f09ca8d54841d6acfc8
Shell
JaySandesara/madminer
/examples/First_Project/mg_processes/signal1/SubProcesses/combine_root.sh
UTF-8
1,737
3.453125
3
[ "MIT" ]
permissive
#!/bin/bash # Main driver for the combination. # To be executed in ./SubProcesses; the upper-level command # (the only one to be executed) is: # # steerall born_G* # steerall all_G* # steerall $1 # #It is recommended to use a very recent version of root. #On SLC6 maching, from a tcsh shell execute e.g. # set...
true
f01870aae796548e038430fec713fdf464fc201b
Shell
OpenVnmrJ/OpenVnmrJ
/src/scripts/vnmr_jplot.sh
UTF-8
457
2.765625
3
[ "Apache-2.0", "GPL-3.0-only" ]
permissive
#! /bin/bash # # # Copyright (C) 2015 University of Oregon # # You may distribute under the terms of either the GNU General Public # License or the Apache License, as specified in the LICENSE file. # # For more information, see the LICENSE file. # # javabin="$vnmrsystem/jre/bin/java" if [ ! -f $javabin ] then ...
true
b04bcfa0786623ee4be417fd6296a9daf8aa34ee
Shell
framasoft/lufi_ynh
/scripts/install
UTF-8
2,820
3.90625
4
[]
no_license
#!/bin/bash # Exit on command errors and treat unset variables as an error set -eu # Source YunoHost helpers source /usr/share/yunohost/helpers app=$YNH_APP_INSTANCE_NAME domain=$YNH_APP_ARG_DOMAIN path=$YNH_APP_ARG_PATH contact=$YNH_APP_ARG_CONTACT is_public=$YNH_APP_ARG_IS_PUBLIC secret=$(ynh_string_random 24) sr...
true
3a2d3926fff2577e8c2b0e502de077d8336058a0
Shell
rahworkx/sftp-xfer
/sftp-xfer.sh
UTF-8
4,017
3.890625
4
[]
no_license
#!/bin/bash ## Vars sftp_user=$1 sftp_group=$2 JAILPATH="/home/$sftp_user" user_pass="$(/usr/local/bin/aws secretsmanager get-random-password --password-length 15 --exclude-punctuation --query 'RandomPassword' --output text --region us-west-2)" wrkr_key="$3" #if [ $# -lt 2 ] #then # echo "This script must be ...
true
cac51afc1162601b4afdccd4b61a370ce842d14a
Shell
joyanceguan/demo
/src/test/resources/server/shell/tomcat_setup.sh
UTF-8
801
3.65625
4
[]
no_license
#定义基本路径,安装路径及安装包路径 setup_path=/usr/setup/ #安装包基本路径 base_path=/usr/test/ #安装基本路径 tomcat_name=apache-tomcat-8.5.33.tar.gz #tomcat名(与setup_path拼接) tomcat_path=tomcat/8.5 #安装路径 echo 开始安装tomcat #判断是否有tomcat路径 if [ ! -d $base_path$tomcat_path ]; then mkdir -m 777 -p $base_path$tomcat_path else chmod 777 -R $base...
true
bb93687ee12ae320b546f50f38e68b30e26b14d6
Shell
echohack/macbot
/crutil.sh
UTF-8
463
2.890625
3
[ "Apache-2.0" ]
permissive
# Remove Unnecessary Certificates delete_certificates() { cert_list=$(security find-certificate -c "$@" -a -Z "/System/Library/Keychains/SystemRootCertificates.keychain"| grep SHA-1 | awk '{print $NF}') if [[ $cert_list != 0 ]] ; then for cert in $cert_list do run sudo security dele...
true
0542a718b7258902d62cf254c0b42dc551a9182f
Shell
xuexiao-weizi/Debian_on_Buffalo
/Buster/installer_images/build/armhf-payload/source/ifup-mac.sh
UTF-8
319
3.03125
3
[]
no_license
#!/bin/bash ##script to set mac addresses pre-ifup ip link list | grep eth1 if [ $? -eq 0 ]; then eth0mac="$(fw_printenv -n ethaddr)" eth1mac="$(fw_printenv -n eth1addr)" ip link set dev eth1 address "$eth1mac" else eth0mac="$(fw_printenv -n eth1addr)" fi ip link set dev eth0 address "$eth0mac" exit 0
true
da9ce68104bead4032b3b65bb0c48d365415af3d
Shell
aduermael/dockerblog
/test-build.sh
UTF-8
1,218
2.578125
3
[ "MIT" ]
permissive
#!/bin/bash COMMIT=$(git rev-parse --verify HEAD) COMMIT_SHORT=${COMMIT:0:8} echo "$COMMIT_SHORT" IMAGE_NAME="blog-router:$COMMIT_SHORT" DOCKERFILE="router.Dockerfile" docker build -f "$DOCKERFILE" -t "$IMAGE_NAME" . # docker build -t blog-router # blog-router: # build: # context: . # dockerfile...
true
e9c10842505b6862c9edc948ef0ac3928d9f44b3
Shell
eben0/reddit-crypto-price-bot
/scripts/update_env.sh
UTF-8
494
2.8125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash FILE=.env cat /dev/null > $FILE VERSION=$(git describe --tags) echo "CLIENT_ID=${CLIENT_ID}" >> $FILE echo "CLIENT_SECRET=${CLIENT_SECRET}" >> $FILE echo "REFRESH_TOKEN=${REFRESH_TOKEN}" >> $FILE echo "CMC_API_KEY=${CMC_API_KEY}" >> $FILE echo "LOGGER_PATH=${LOGGER_PATH}" >> $FILE echo "NODE_ENV=${N...
true
8a69a6a72682d9546d395dce0921b71a4635484b
Shell
kybernetyk/linuxscripts
/polybat
UTF-8
143
3.046875
3
[]
no_license
#!/bin/sh remaining=`acpi | awk '{print $5}'` power=`batpower` if [ -z "$remaining" ]; then echo "]" else echo " | $remaining | $power]" fi
true
f048907bba0fb17ac315461b6f8268dbb290c8b4
Shell
mikeplavsky/docker-network
/run.sh
UTF-8
740
3.34375
3
[]
no_license
CMD=$1 NUM=$2 function create_subnet { for ((i=1;i<=$NUM;i++)) do docker network create --subnet=10.10.$i.0/24 test_$i done } function create { for ((i=1;i<=$NUM;i++)) do docker network create test_$i done } function create_overlay { for ((i=1;i<=$NUM;i++)) do docker...
true
e92734a555b683db96952f32ddfb6478751c9d87
Shell
nicolasaguenot/nabackupdb
/config_sample.sh
UTF-8
602
3.015625
3
[]
no_license
#!/bin/sh ## DB DBNAME=[YOUR_DATABASE_NAME] DBUSER=[YOUR_DATABASE_USER] DBPSWD=[YOUR_DATABASE_PASSWORD] ## FOLDER LASTBACKUPFOLDER=sql/lastbackup TMPFOLDER=sql/tmpbackup ARCHIVEFOLDER=sql/archives RESTOREDFOLDER=sql/lastrestored ## SCRIPT PATH - [YOUR_MYSQLDUMP_COMMAND_PATH - In general : /usr/bin/mysqldump] MYSQLD...
true
b027f292bdd5a4c7e3035c501e2f8f9205cbaf12
Shell
kif/edna
/sandbox/id11/bin/edna-tango-server
UTF-8
1,646
2.8125
3
[]
no_license
#!/usr/bin/env bash # # Project: ID11 EDNA stuff # http://www.edna-site.org # # File: "$Id: $" # # Copyright (C) 2008-2009 European Synchrotron Radiation Facility # Grenoble, France # # Principal author: Jerome Kieffer (kieffer@esrf.fr) # # # This progr...
true
d528375d2661c12e43acabc4173743a13ca7f67c
Shell
parampavar/plash
/www/deploy
UTF-8
320
2.640625
3
[ "MIT" ]
permissive
#!/bin/bash set -eu SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" tmpd=$(mktemp -d) $SCRIPT_DIR/generate "$tmpd" cd "$tmpd" # echo -n 'plash.io' > CNAME # for github pages git init git add . git commit -m 'deploy docs' git push git@github.com:ihucos/plash-docs-deploy.git HEAD:master -...
true
b54c31e212544ada56184ea8f3049931e82002e3
Shell
ocawley/ittsqa09
/x00114388v2.sh
UTF-8
995
2.984375
3
[]
no_license
#!/bin/bash PASSCOUNT=0 FAILCOUNT=0 TEST1=$(java grades_v2 100 20) if [ "$TEST1" == "Component Fail" ]; then echo Test Case 1 Passed ((PASSCOUNT++)) else echo Test Case 1 Failed ((FAILCOUNT++)) fi echo TEST2=$(java grades_v2 50 50) if [ "$TEST2" == "Pass" ]; then echo Test Case 2 Passed ((PASSCOUNT++)) else echo...
true
2e712061d1f83cc01145b7dbffdd97abfc7557fc
Shell
moos3/macbook-setup
/run-setup.sh
UTF-8
1,196
3.65625
4
[ "MIT" ]
permissive
#!/bin/bash data=$(tempfile 2>/dev/null) trap "rm -f $data" 0 1 2 5 15 dialog --title "Ansible Vault Password" \ --clear \ -insecure \ --paswordbox "Enter your password" 10 30 2> $data ret=$? case $ret in 0) echo "$(cat $data)" > ~/.vault_pass2.txt;; 1) echo "Cancelled!";; 255) [ -s $data ] && cat $da...
true
d637378a85d49ccd9c080813304087969cbd0449
Shell
libretro/Lakka
/packages/mediacenter/kodi/scripts/kodi.sh
UTF-8
2,918
3.90625
4
[]
no_license
#!/bin/sh # Copyright (C) 2008-2013 Team XBMC # http://xbmc.org # # 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, or (at your option) # any later version. # # Th...
true
63970d20703cf45239b44afb1498b473128be232
Shell
dionearle/comp2041-ass1
/test09.sh
UTF-8
1,253
2.875
3
[]
no_license
# further tests legit-status's implementation # by Dion Earle (z5205292) legit-init legit-add real.txt legit-commit -m "added a real file" # tests that if a file in directory is same as repository, status is same as repo legit-status echo 123 > new.txt # tests if a file isn't in the index or reposit...
true
ba3b27f8dcab3ff480d96a5cf5f8f2c5b613bee1
Shell
mferpan/devops
/workaround/app/network.sh
UTF-8
332
3.484375
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # Description: Manage containers network function getIP () { LAST_IP=`lxc-ls -f | grep -iv ipv | awk '{print $3}' | sort | tail -1 | awk -F. '{print $4}'` if [[ "${LAST_IP}" == ""]]; then IP=$IP_START else IP=$NETWORK.$((LAST_IP+1)) fi } function getContainerTraffic (){ ifconfig wlp2s0 |...
true
4f1ba701d7b5c16f0af672a15a954742355fac13
Shell
peterkinalex/curl-www
/mirror/mirror_curl.sh
UTF-8
831
3.609375
4
[]
no_license
#!/bin/ksh PATH=/usr/bin:/usr/local/bin:/bin:/opt/bin export PATH MIRROR_DIR=/virtual/cubic.ch/www/html/mirror/curl export MIRROR_DIR REMOTE_URL=http://curl.haxx.se/download export REMOTE_URL echo "`date` Starting mirroring $REMOTE_URL to $MIRROR_DIR" cd $MIRROR_DIR OLDLIST="`ls $MIRROR_DIR`" export OLDLIST NEWLIST="...
true
9eed6b5adf69acd253b3c210d6e3498d43f4f8df
Shell
nxtime/MoniTech
/old/cgi-bin/aequip.cgi
UTF-8
545
3.28125
3
[]
no_license
#!/bin/bash read EQUIP echo "content-type: text/html" echo urldecode(){ echo -e $(sed '/s/%/\\x/g') ;} EQUIP=$(echo $EQUIP | urldecode | tr + ' ') NAME=$(echo $EQUIP | cut -d"&" -f1 | cut -d"=" -f2) LOCL=$(echo $EQUIP | cut -d"&" -f2 | cut -d"=" -f2) USER=$(echo $EQUIP | cut -d"&" -f3 | cut -d"=" -f2) IPAS=$(echo $EQUI...
true
384c4669c1c9113a1110e4411e73fc2b84866327
Shell
greg-erskine/pCP-github
/tcz/pcp-bt6/pcp-bt6/usr/local/etc/init.d/pcp-bt6
UTF-8
3,897
3.625
4
[]
no_license
#!/bin/sh #======================================================================================== # Bluetooth Speaker Init Script #---------------------------------------------------------------------------------------- # # Version 6.0.0 . /usr/local/etc/pcp/pcp.cfg . /usr/local/bin/pcp-bt-functions init() { sudo...
true
5a139eb7e1731fcc984918ab7eaea2dfa5e23718
Shell
Klortho/edirect
/ftp-ls
UTF-8
250
3.453125
3
[]
no_license
#!/bin/sh # Usage: ftp-ls SERVER PATH mydir=`dirname "$0"` addr=`"$mydir"/eaddress` list_file_names() { ftp -n -V -i "$1" <<EOF user anonymous "$addr" cd "$2" ls * exit EOF } list_file_names "$@" | sed -ne 's,^-.*[ ],,p; s,^d.*[ ]\(.*\),\1/,p'
true
08b2a638c7f7d4c2e3fae02e0389086486444081
Shell
librae8226/gmsv
/genver.sh
UTF-8
242
3
3
[]
no_license
#!/bin/sh IN=./include/version.h OUT=./genver.h touch main.c echo "char *genver=\"" > $OUT cat $IN | grep -e "^#define" | cut -b 9- | sed "s/\"/\'/g" | \ sed 's/\\/\\\\/g' >> $OUT echo "<<Generated at "`date`">>" >> $OUT echo "\";" >> $OUT
true
f5c5bb9bb770ec4160ec1c151bacfeaf3882aa2c
Shell
brmzkw/forticrap
/run.sh
UTF-8
454
2.828125
3
[]
no_license
#!/bin/sh . /etc/forticrap mknod /dev/ppp c 108 0 eth0_net=$(ip a | grep eth0 | grep inet | awk '{print $2}') iptables -t nat -A POSTROUTING -s "$eth0_net" -j MASQUERADE expect -c ' set timeout -1 spawn /opt/forticlient-sslvpn/64bit/forticlientsslvpn_cli --server "'${VPN_SERVER}'" --vpnuser "'${VPN_USER}'" --keepa...
true
134b0f5bfa59ce177e8069a4436d4d085ef7d375
Shell
sathyapulse/code-deploy
/scripts/config_generator.sh
UTF-8
307
2.59375
3
[ "MIT" ]
permissive
cd /var/www/html sudo rm wp-config.php FILE=/tmp/wp-config.php if test -f "$FILE"; then sudo cp -R /tmp/wp-config.php /var/www/html/wp-config.php sudo rm /tmp/wp-config.php fi FILE=/tmp/.htaccess if test -f "$FILE"; then sudo cp -R /tmp/.htaccess /var/www/html/.htaccess sudo rm /tmp/.htaccess fi
true
436f3a214882ae7d0c1d4a31e7cf93ca39630d10
Shell
mdevaluate/md-demo-script
/setup.sh
UTF-8
1,195
3.515625
4
[ "MIT" ]
permissive
workdir=$(dirname $(realpath $0)) pushd $workdir # Check that Gromacs 2016 is installed if ! gmx &>/dev/null then echo "[ERROR] Gromacs not found." exit 1 fi if [[ ! $(gmx -version | grep "GROMACS version") == *"2016"* ]] then echo "[ERROR] $(gmx -version | grep "GROMACS version")" echo "Make sure to install Gr...
true
ec51840f1a93b54b50986a470d515557ce5418a2
Shell
jjyy-debear/FDSSTTest
/make.sh
UTF-8
3,096
2.875
3
[]
no_license
#!/bin/bash function getbazel(){ LINE=`readlink -f /home/$USER/code1/tensorflow-1.4.0-rc0/bazel-bin/` POS1="_bazel_$USER/" STR=${LINE##*$POS1} BAZEL=${STR:0:32} echo $BAZEL } BAZEL=`getbazel` APPN="FDSSTTest" #add export OPENCV_INCLUDEPATH=/home/$USER/code/test/pp/opencvlib/include to .bashrc #add export O...
true
7bec6c34e882c76e501327984f365cc961975f16
Shell
fitzgeraldr/ares
/Execute - Production 4.2 Metadata/FlyTracking_default/.svn/text-base/fotrak.sh.svn-base
UTF-8
1,694
3.28125
3
[]
no_license
#!/bin/bash . /sge/current/default/common/settings.sh source /usr/local/SOURCEME fotrak_dir=$(cd "$(dirname "$0")"; pwd) pipeline_scripts_dir=$(dirname "$fotrak_dir") pipeline_dir=$("$pipeline_scripts_dir/Tools/pipeline_settings.pl" pipeline_root) avi_sbfmf_dir="$pipeline_scripts_dir"/SBFMFConversion do_sage_load=$("$...
true
84ac69bdc42cc9a6f3c72057a6f0c7f92689051e
Shell
Beats/ye-bash4
/test/UnitTestTarget.sh
UTF-8
6,893
3.703125
4
[ "MIT" ]
permissive
#!/bin/bash SCRIPT_NAME="target" SCRIPT_HOME=$(cd `dirname "${BASH_SOURCE[0]}"` && pwd) SCRIPT_PATH="$SCRIPT_HOME/$SCRIPT_NAME" source "$SCRIPT_HOME/asserts.sh" EXPECTED="$SCRIPT_HOME/expected/$SCRIPT_NAME" ACTUAL="$SCRIPT_HOME/actual/$SCRIPT_NAME" mkdir -p $ACTUAL expectedUsage="$EXPECTED/ye_bash4_usage.txt" expe...
true
4f57b5b077ed32e904b56aefedf2eca826c4eaf7
Shell
siqiyyyy/monox_fit
/monov/scripts/limits.sh
UTF-8
363
3.03125
3
[]
no_license
#!/bin/bash #remove limit on stack size to prevent related segfault ulimit -s unlimited ### Asimov limit mkdir -p limit pushd limit for file in ../cards/*.root; do TAG=$(basename $file | sed 's/card_//g;s/.root//g'); combine -M AsymptoticLimits $file -t -1 -n $TAG --setParameters LUMISCALE=1 --freezeParameter...
true
2d01015804beb260672ec9ad17a1d38ac079bc95
Shell
ohyoungjooung2/u18kvk8s
/k8s/kvm_install.sh
UTF-8
640
3.3125
3
[]
no_license
#!/usr/bin/env bash #kvm-ok (cpu-checker instlal) CHECK_KOK=$(which kvm-ok) if [[ $?=!"0" ]] then sudo apt install -y cpu-checker else echo "kvm-ok(cpu-checker) installed" fi kvm-ok > /dev/null 2>&1 if [[ $?=="0" ]] then echo "Using kvm is possible" echo "Installing kvm related packages!" sudo apt inst...
true
184e86b616f06111a7f28f41d2e2f4e48c1493ed
Shell
bsk01/origin-aggregated-logging
/hack/testing/test-fluentd-forward.sh
UTF-8
5,816
3.53125
4
[]
no_license
#! /bin/bash # test by having a fluentd forward securely to another fluentd (and not ES) # have that second fluentd send logs to ES # verify the same way we do now (for ES copy) # need to create a custom configmap for both fluentd? if [[ $VERBOSE ]]; then set -ex else set -e VERBOSE= fi set -o nounset set -o pi...
true
7142fcb19efffee897cbcd58c5fc6fc01b192da7
Shell
yw4509/DS-GA-1007-python-for-data-science
/homework/hw05/rename_files.sh
UTF-8
153
3.109375
3
[]
no_license
#!/bin/bash cd data/university/ old_characters=$1 new_characters=$2 for str in $(ls ${1}*) do mv "$str" "${str/$old_characters/$new_characters}" done
true
293051fef5027cf94055f049256e90b083a40c64
Shell
armoutihansen/dotfiles
/.local/bin/quickmark
UTF-8
178
2.625
3
[]
no_license
#!/bin/sh chosen=$(cat ~/.config/qutebrowser/quickmarks | awk '{print $2}' | dmenu -i -l 5 -p "Open quickmark:") [ -z "$chosen" ] && exit qutebrowser --target window "$chosen"
true
21257f550bdeaa9a34709307cdccefd22e53e9e4
Shell
meghamohan/holberton-system_engineering-devops
/0x04-loops_conditions_and_parsing/6-superstitious_numbers
UTF-8
269
3.34375
3
[]
no_license
#!/usr/bin/env bash #displaying bad luck numbers i=1 while [ $i -le 20 ]; do case $i in 5) echo "bad luck from China" ;; 10) echo "bad luck from Japan" ;; 18) echo "bad luck from Italy" esac echo $i let i+=1 done
true
23435b42dec63e96764902d070c24c01071854c5
Shell
tantra35/ec2-resource-agents
/elasticip
UTF-8
7,856
3.140625
3
[]
no_license
#!/bin/bash # OCF_ROOT=/usr/lib/ocf : ${OCF_FUNCTIONS_DIR=${OCF_ROOT}/resource.d/heartbeat} . ${OCF_FUNCTIONS_DIR}/.ocf-shellfuncs metadata() { cat <<END <?xml version="1.0"?> <!DOCTYPE resource-agent SYSTEM "ra-api-1.dtd"> <resource-agent name="elasticip"> <version>1.0</version> <longdesc lang="en"> Resource agnet...
true
79c0fdc2e499d85c8194ce303055916bac7a0487
Shell
pkgw/conda-recipes
/dockerfiles/forge-builder/build.sh
UTF-8
420
2.96875
3
[ "BSD-3-Clause", "MIT" ]
permissive
#! /bin/bash # Copyright 2015-2019 Peter Williams # Licensed under the MIT License. set -e # XXXX: errors building the image related to resource limits, unless I change # the user/group ID away from those of my user account? Mysterious but I worked # around by just replace $(id -u) with 1111, etc. exec docker build ...
true
5baf48432a09cf0fb1c766f5a0369d1375a6c38b
Shell
qgg-lab/metazExp-pipeline
/005-tag-exp-Stdy-to-comTrspts/0000.job1.tag.exp.stdy.to.cmbTrspts.sb
UTF-8
1,263
2.796875
3
[]
no_license
#!/bin/bash source ../../00-config/commonEnvironmentVars.cfg #source $commonEnvir export currDir=`pwd` export combinedAssemblyList=$currDir/../004-combine-assemblies-and-annos/cutoff.info.of.assembled.experiment.tsv export combinedGtf=$currDir/../004-combine-assemblies-and-annos/$finalCmbTrsptAnnGtfFile export sampleI...
true
fe4049a90bb7d6bae1096b4c80ddf7a92e7bd0fc
Shell
hakuna0829/next-abcam-beta-version-infra
/tools/scripts/deploy/helm.sh
UTF-8
2,197
4.0625
4
[]
no_license
#!/bin/bash set -euo pipefail THIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null 2>&1 && pwd )" source ${THIS_DIR}/log.sh function help { log_warning "Usage: helm.sh [ -v ] EKS_CLUSTER_NAME HELM_CHART_DIR HELM_RELEASE_NAME HELM_VALUES_FILE HELM_ARGS" log_warning " EKS_CLUSTER_NAME: name ...
true
5c0646e5c67def7234f0136d059859ca262e82b3
Shell
voltch/ramdisk
/ramdisk/res/synapse/json.gen.logs
UTF-8
1,260
2.796875
3
[]
no_license
#!/system/bin/sh cat << CTAG { name:Logs, elements:[ { SDescription:{ description:"To report any issue with the kernel, you should share the zip file of logs created by using below button. This will put logcat, dmesg, last_kmsg & other relevant information into one zip file which will be used only for debug...
true
25ebb5bda83c4b14cd4a442105c887b70d81e472
Shell
zundra/vagrantbootstrap
/1204/scala.sh
UTF-8
884
2.890625
3
[]
no_license
#!/bin/bash echo "====================================================================" echo "======================= Installing Scala ===========================" echo "====================================================================" sudo dpkg --purge scala sudo dpkg --purge sbt SCALA_ARCHIVE=scala-2.11.6.deb ...
true
146509929dfa79c78a64e90595b4a453afc4b757
Shell
fladna9/PKCS11Explorer
/build.sh
UTF-8
1,234
4.03125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # VARIABLES TARGETS=( "win-x64" "osx-x64" "linux-x64" "linux-arm") RELEASEDIR="./release" BASENAME="PKCS11Explorer" BUILDTYPE="Release" VERSIONNUMBER="0" # START OF CODE function Main() { Setup #VerifyGitStatus GetCurrentVersion echo "Building version $VERSIONNUMBER" Build } function Setup() { if [...
true
9bd3af9de9389a9259c5f4311fe6dcf9a102388b
Shell
loigu/termuxAndroidHelpers
/bin/join-video.sh
UTF-8
526
3.515625
4
[]
no_license
#! /bin/bash # join video files together if [ -z "$1" -o "$#" -lt 3 ]; then echo "extra=y $0 [-k] <out> <first> <second> [...]" exit 0 fi [ "$1" = "-k" ] && keep=1 && shift out="$1" shift for i in $(seq 1 $#); do in="$(eval echo \$$i)" ffmpeg -nostdin ${extra} -i "$in" -c copy -bsf:v h264_mp4toannexb -f mpegts ...
true
c343750c77ab54ffe27a385c97ef366ed1740318
Shell
kaelzhan/conda_auto_activate
/conda_auto_activate.sh
UTF-8
1,324
4.34375
4
[ "MIT" ]
permissive
#!/bin/bash # conda_auto_activate automatically activates a conda environment when # enterring a folder that contains a `environment.yml` or `.venv` file. # The `environment.yml` can exported from a existed conda env and we # use it to create a new conda env. The first line in the `.venv` file # is the name of the c...
true
a8c44fb29771086ec43565cec31263dd3a826e83
Shell
karlpokus/url-stash
/urst.sh
UTF-8
327
3.734375
4
[ "MIT" ]
permissive
#!/bin/bash # $1 must be a dir or symlink if test $# -ne 1 || ! test -d $1; then echo "error: argument missing or is not a dir. please view readme" exit 1 fi DATADIR="$1" # pipe urls found in $DATADIR to peco where selected url will be opened in default browser grep -ir http $DATADIR | peco | cut -d : -f 2- | xarg...
true
0a6678824583f3a9ab4cc3e76c6e9714dcf7499a
Shell
Rombusevil/fgdx-template
/setup.sh
UTF-8
2,200
3.859375
4
[]
no_license
#!/bin/bash # ----------------------------# # CORE------------------------# # ----------------------------# function process { # Create projects folder structure mkdir $project; cp -r android $project/$project-android; cp -r desktop $project/$project-desktop; cp -r core $project/$project; cd $project; find . -...
true
007cf1f163c67fe715433dcd7e522a810562ff22
Shell
ntwairay/bitbucket_server
/postgres/setup-bitbucket-db-.sh
UTF-8
656
3.140625
3
[]
no_license
#!/bin/bash echo "******CREATING Bitbucket DATABASE******" psql --username postgres <<- EOSQL CREATE DATABASE bitbucketdb; CREATE USER bitbucket WITH PASSWORD 'insert_bitbucket_db_password_here'; ALTER USER bitbucket WITH SUPERUSER; EOSQL echo "" { echo; echo "host bitbucket bitbucket 0.0.0.0/0 trust"; } >> "$PG...
true
664972172019cf1cf980438279db52dbecd0ce03
Shell
lordkev/ssc-imputation
/mutation-rates/preprocess-vcfs/get_str_tmrcas_bysample.sh
UTF-8
972
3.4375
3
[]
no_license
#!/bin/bash source params.sh SAMPLE=$1 raw=${RAW_PSMC}/${SAMPLE}.psmc out=${TMPDIR}/${SAMPLE}.strpsmc.bed echo "Processing PSMC for sample ${SAMPLE} ${raw} ${out}" # Get weighted average of all intervals overlapping each STR locus # NOTE!! looks like PSMC numbers are missing last two digits? binned by 100? # mean...
true
7415305374b35858dc199b31e34fadc69b538bcd
Shell
devs-in-the-cloud/action-deploy-wordpress
/main.sh
UTF-8
6,420
3.625
4
[ "MIT" ]
permissive
#!/usr/bin/env bash hosts_file="$GITHUB_WORKSPACE/.github/hosts.yml" export PATH="$PATH:$COMPOSER_HOME/vendor/bin" export PROJECT_ROOT="$(pwd)" export HTDOCS="$HOME/htdocs" export GITHUB_BRANCH=${GITHUB_REF##*heads/} export CI_SCRIPT_OPTIONS="ci_script_options" function init_checks() { # Check if branch is availab...
true
e212c7e291a6abdb0d3559929d81fd3679171dfb
Shell
xsystems/windhappers-cms
/build.sh
UTF-8
1,163
3.15625
3
[]
no_license
#!/bin/sh VERSION=${VERSION:-latest} BUILD_DIR_API=build-api BUILD_DIR_GUI=build rm --recursive ${BUILD_DIR_API} mkdir --parents ${BUILD_DIR_API} cp --recursive \ package.json \ favicon.ico \ api \ components \ config \ extensions \ public \ ${BUILD_DIR_API} docker build \ --file docker/api/Docker...
true
4cc4b2c246937045e8a7d7ffa02282ec7531a11f
Shell
dwxie/salt
/state/prod/application/cs/storage/files/control.sh
UTF-8
1,282
3.875
4
[]
no_license
#!/bin/bash storage_path="/opt/storage" start() { local proc_num="${1:-6}" cd "${storage_path}" echo -n "Start CStorage ... " ./CStorage > /dev/null 2>&1 & sleep 1 if [ $(status) == ${proc_num} ]; then echo '[OK]' return 0 else echo '[FAILED]' return 2 ...
true
717376b085c59dfdc05dd71daf334ccfef442d21
Shell
trashSydowDev/dotfiles-3
/runcom/.bash_profile
UTF-8
2,277
3.546875
4
[]
no_license
# If not running interactively, don't do anything # [ -z "$PS1" ] && return # Shell SHELL_BASH=true SHELL_ZSH=false # OS if [ "$(uname -s)" = "Darwin" ]; then OS="OSX" else OS=$(uname -s) fi # Resolve DOTFILES_DIR (assuming ~/.dotfiles on distros without readlink and/or $BASH_SOURCE/$0) READLINK=$(which ...
true
2973e978bc2ab8c9dfc6689831c02393b59f9bd2
Shell
segmentio/pkgsite
/devtools/docker_ci.sh
UTF-8
1,081
3.75
4
[ "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-google-patent-license-golang" ]
permissive
#!/usr/bin/env bash # Copyright 2020 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. set -e usage() { cat <<EOUSAGE Usage: $0 [--sudo] Run standard CI (tests and linters) using local docker. If --sudo is set, run docker with...
true
269065b818d72bf6f7a1d082f16c7b90a097b531
Shell
vanloswang/oVirt-iso-build
/iso-building/recipe/common-post.ks
UTF-8
9,436
3.015625
3
[ "Apache-2.0" ]
permissive
# -*-Shell-script-*- echo "Starting Kickstart Post" PATH=/sbin:/usr/sbin:/bin:/usr/bin export PATH # cleanup rpmdb to allow non-matching host and chroot RPM versions echo "Removing yumdb data" rm -f /var/lib/rpm/__db* echo "Creating shadow files" # because we aren't installing authconfig, we aren't setting up shadow ...
true
e81f65740d76e5d6221c029f621123dee1636486
Shell
polfliet/instruqt
/kubernetes-new-relic-university/nr-prometheus/check-kubernetes
UTF-8
173
2.625
3
[]
no_license
#!/bin/bash kubectl get pods | grep nri-prometheus if [ $? -ne 0 ]; then fail-message "Could not find the New Relic Prometheus integration. Please follow the steps." fi
true
62593405e629b32ad73b898a8d3725f10e65bd41
Shell
rimusz/deis-workflow-aws
/install_workflow_2_aws.sh
UTF-8
10,839
3.6875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash set_settings() { # check for settings file if [[ ! -f settings ]] then echo "'settings' file is missing!!!" echo "Rename/copy 'settings.tpl' file to 'settings', then set S3 region, and AWS keys there" exit 0 fi # Overall Workflow settings # S3 region # AWS credentials source settings } install() {...
true
619b10251a68fdaec24aaa50bc4b5e091fc22ccd
Shell
obonobo/PayStubs
/zzz_deprecated/build.sh
UTF-8
859
3.953125
4
[]
no_license
if [ $EUID -ne 0 ]; then echo 'This script must be run as root...' exit 1 fi if [ -z $1 ] || [ -z $2 ]; then echo 'You need to pass MongoDB username and password for the app to connect:' echo ' ./build.sh <username> <password>' exit 1 fi # Builds a docker image for PayStubs main() { e...
true
f9be5f1f31a67215d2ffac1467f2107b2f40a73a
Shell
boyle/2018-measure-stress
/www/deploy
UTF-8
3,136
3.625
4
[ "MIT" ]
permissive
#! /bin/bash S=$(dirname $0) D=/var/www/html R=root@saans.ca function help() { cat <<EOF usage: $(basename $0) <cmd> <none> do the following steps: tx transfer $S --> $R:$D venv update remote's virtualenv dependencies migrate migrate remote's database restart restart the webserver EOF } i...
true
3ef365cea147a0d4717fae16c8d470b5ffde69b8
Shell
git-for-windows/MSYS2-packages
/libyaml/PKGBUILD
UTF-8
1,386
2.734375
3
[ "BSD-3-Clause" ]
permissive
# Maintainer: Alexey Pavlov <alexpux@gmail.com> pkgname=('libyaml' 'libyaml-devel') pkgver=0.1.7 pkgrel=1 pkgdesc="YAML 1.1 library" arch=('i686' 'x86_64') url="https://pyyaml.org/wiki/LibYAML" license=('MIT') source=(https://pyyaml.org/download/libyaml/yaml-$pkgver.tar.gz 'yaml-0.1.7-fix-undefined.patch' 'yam...
true
f3e487fbefcaee63275bf71c46d8ff891616f5be
Shell
matthewmcnew/dotfiles
/zsh/upgrade.zsh
UTF-8
374
2.921875
3
[]
no_license
function upgrade_brew(){ echo "upgrading brew" brew update brew outdated brew cask outdated brew upgrade brew cask upgrade } function upgrade_all() { set -x upgrade_dotfiles upgrade_brew set +x upgrade_antibody softwareupdate -i -a } function upgrade_dotfiles(){ p...
true
751e4b150695b457f183cc18b20bf2979ba53d7c
Shell
trialuser/aws-tricks
/scripts/housekeeper/orphaned_ebs_snapshots.sh
UTF-8
2,497
3.859375
4
[]
no_license
#!/bin/bash # # Counting and showing list of orphaned EBS Snapshots. aws_counting_orphaned_ebs_snapshots() { printf "${BLUE}=== Orphaned EBS Snapshots ===${RESET}\n" AWS_EBS_ORF=$(comm -23 <(echo $(aws --region "${AWS_REGION}" --profile \ "${AWS_CLI_PROFILE}" ec2 describe-snapshots --owner-...
true
d65c980126d92184b2ee619a577896757498167d
Shell
cs-rodrigo-morais/trainning-devops
/exec-shell/iterando-itens.sh
UTF-8
501
3.296875
3
[]
no_license
#!/bin/bash ##################################################################### # Program: # Description: # iterando por todos os itens de um diretório # Author: Rodrigo Morais <rodrigo.morais@concretesolutions.com.br> ##################################################################### for item in /home/rmorais/* d...
true
6491846abacb37530536f90d0e8a18b0759512c2
Shell
hollychen503/dockcross
/tools/container-diff.sh
UTF-8
969
3.484375
3
[ "MIT" ]
permissive
#!/bin/bash set -euo pipefail # More info: https://github.com/GoogleContainerTools/container-diff if (( $# < 1 || $# > 2 )); then echo "Need 1 or 2 arguments: <img1> <img2>" exit 1 fi if (( $# == 1 )); then container-diff analyze $1 --type=history 2>&1 | tee -a analyze-history.txt container-diff ana...
true
d28b8b7703012d2afdb28ccca84a3e6cca1acebb
Shell
YuSangHuck/install
/mac/fswatch.sh
UTF-8
679
3.4375
3
[]
no_license
#!/bin/bash if [ -z "$(which fswatch)" ]; then echo "fswatch not installed." echo "In most distros, it is available in the inotify-tools package." exit 1 fi GITHUB_DIR="~/_/install" WATCH_LIST=".zshrc .p10k.zsh .fzf.zsh .fzf.bash .vimrc .gitconfig" for FILE in $WATCH_LIST; do echo $FILE ABS_PATH...
true
f74727b44e67363ad33f2d4246cddd82c42b581f
Shell
plk/biber
/dist/darwinlegacy_x86_64/build.sh
UTF-8
4,009
2.96875
3
[ "Artistic-2.0", "LicenseRef-scancode-philippe-de-muyter" ]
permissive
#!/bin/bash # The cp/rm steps are so that the packed biber main script is not # called "biber" as on case-insensitive file systems, this clashes with # the Biber lib directory and generates a (harmless) warning on first run # Have to explicitly include the Input* modules as the names of these are dynamically # constr...
true