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
e4b002d27a6d14538f820b28ade7083cb3240d83
Shell
ddevault/mako
/makoctl
UTF-8
601
3.6875
4
[ "MIT" ]
permissive
#!/bin/sh usage() { echo "Usage: makoctl <command> [options...]" echo "" echo "Commands:" echo " close [-a|--all] Close the last or all notifications" echo " help Show this help" } call() { busctl --user call org.freedesktop.Notifications /fr/emersion/Mako \ fr.emersion.Mako "$@" } case "$1" ...
true
50d6406b3e3e548d56b615f4efb5bbc19b8f3e5e
Shell
rezder/linode
/docker/battAll/battTest.sh
UTF-8
7,210
3.765625
4
[]
no_license
#!/bin/bash # Warning before start upload battAll/upload.sh and # move Dockerfiles to upload directories. I do not like the last part. # There is no fast solution because tar.gz and Docker must be together when build # and the tar.gz works well when compresed. Maybe include Docker file in upload # script but it must ...
true
ccfe9e39b96bd1d38391debd23dd3b1ad40b9744
Shell
benjonesqueens/LetsEncrypt-cPanel
/install.sh
UTF-8
4,205
3.421875
3
[ "MIT" ]
permissive
#!/bin/bash PERL_BIN="/usr/local/cpanel/3rdparty/bin/perl"; LOCAL_LIB="/usr/local/cpanel/base/3rdparty/letsencrypt-cpanel-ui" LIB_PATH="/usr/local/cpanel/base/3rdparty/letsencrypt-cpanel-ui/lib/perl5" CWD=$(pwd); if [ ! `id -u` = 0 ]; then echo echo "FAILED:::: You must login as root" exit 1; fi REQUIREDMODUL...
true
b43cd023bc7550d8cada9a2ca910fd2a32919021
Shell
NYULibraries/mediacommons
/bin/autobuild.sh
UTF-8
3,263
3.84375
4
[]
no_license
#!/bin/bash die () { echo "file: ${0} | line: ${1} | step: ${2} | message: ${3}" if [[ -f ${TEMP_DIR}/autobuild.pid ]]; then rm -f ${TEMP_DIR}/autobuild.pid fi exit 1 } tell () { echo "file: ${0} | line: ${1} | step: ${2} | command: ${3}" } ENVIRONMENT="development" SKIP="" UPDATE=false MAKE_FILE=`p...
true
5fd8083fc4658e3fb563c2684f4d2c8f04449293
Shell
LittleControl/Shell_Learning
/03/test.sh
UTF-8
258
3.4375
3
[]
no_license
#!/bin/sh FILE=./test/file DIR=./test if [ -d $DIR ];then cd $DIR && mkdir -p nothing else mkdir -p test fi if [ -f $FILE ];then echo "OK" >> $FILE else cd .. echo -e "\033[32mNothingToDo\033[0m" echo "NothingToDo" >> $FILE fi
true
db136f7501b4783b7a0622cced2149d68ff796b6
Shell
ee07dazn/spark-airflow
/config/entrypoint.sh
UTF-8
3,205
3.6875
4
[]
no_license
#!/usr/bin/env bash TRY_LOOP="20" : "${REDIS_HOST:="redis"}" : "${REDIS_PORT:="6379"}" : "${REDIS_PASSWORD:=""}" : "${POSTGRES_HOST:="postgres"}" : "${POSTGRES_PORT:="5432"}" : "${AIRFLOW__CORE__FERNET_KEY:=$FERNET_KEY}" : "${AIRFLOW__CORE__REMOTE_LOGGING:=$ENABLE_REMOTE_LOGGING}" : "${AIRFLOW__CORE__REMOTE_BASE_LOG...
true
c0c7638329da1539639e5dda9d9f7e4b922a20eb
Shell
avionic-design/pbs-platform-avionic-design
/medcom-wide/rootfs/src/usr/bin/reset-medcom
UTF-8
750
3.578125
4
[]
no_license
#!/bin/sh -e function find_gpiochip { for f in /sys/class/gpio/gpiochip*; do LABEL=`cat $f/label` if [ $LABEL == $1 ]; then echo "${f:24}" return 0 fi done return 1 } BASE=$(find_gpiochip "gpio-adnp") if [ $BASE == "" ]; then ...
true
133561b96ed955f85dcd01da438b6b8006abcc03
Shell
pluralsight/terraform-provider-octopusdeploy
/ci-scripts/helpers/get_release_version.sh
UTF-8
391
3.328125
3
[ "MIT" ]
permissive
#!/bin/bash # Dot Source this script to set the RELEASE_VERSION environment variable set -eo pipefail if [ -z "${CIRCLE_BUILD_NUM}" ]; then echo "The environment variable CIRCLE_BUILD_NUM is not set. Setting as 999." CIRCLE_BUILD_NUM="999" fi RELEASE_VERSION="0.0.2-alpha.${CIRCLE_BUILD_NUM}" echo "Release v...
true
cf78f126c68184fc88eff2201e01d95868ca91dc
Shell
angegar/helm
/build.sh
UTF-8
2,784
3.828125
4
[]
no_license
#!/bin/bash function getHelmCliTags () { ### GitHub : Get all releases curl -H "Authorization: token $GH_TOKEN" -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/helm/helm/releases | jq '.[].tag_name' | sed -e s/v//g -e /-rc/d -e s/\"//g | sort -g } ### DockerHub : Get image tags #UNAME= <en...
true
f35c990d11a5a93f14ae7d04e2716e738ca06ca5
Shell
bsubash/lab1-SergeiMarchenko
/firstLab/script01_z15.sh
UTF-8
737
3.828125
4
[]
no_license
#!/bin/bash #15.Сравнить две числовые переменные и вывести сообщение yes или no, используя команду test arr=($@) i=0 while [ $i -lt $# ] do if [ "${arr[$i]}" == "-task" ] then echo "Задание" echo "#15.Сравнить две числовые переменные и вывести сообщение yes или no, исп...
true
860ac9240516cc70a0fc5d555dd05edd82c0cbdf
Shell
fboccacini/apollo-fullstack
/build_environment.sh
UTF-8
835
3.8125
4
[ "MIT" ]
permissive
#!/bin/bash for d in ./*/ ; do ( echo echo "Entering $d.." cd "$d" project=apollo-fullstack service=${PWD##*/} echo BUILD=false if test -f ".hash"; then OLD_HASH=$(cat .hash) echo "Latest hash is: $OLD_HASH" rm .hash fi HASH=$(tar --mtime='1970-01-01' -cf - ./ | md5sum | awk '{print $...
true
23a5b63feed8423da5d4d5ff55f54c18d4d63a28
Shell
moreda/saltstack-vagrant-sandbox
/scripts/fetch_remotes.sh
UTF-8
185
3.109375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # Fetch remotes provided in STDIN, one per line and two columns: # remote_name repo awk ' !/^($|[:space:]*#)/ { cmd = "git fetch -v " $1; print cmd; system(cmd); } '
true
4b4384f260733f33e4b46183430d00a6363659c6
Shell
metmirr/shell-examples
/25.1-errors.sh
UTF-8
544
3.09375
3
[]
no_license
#!/bin/bash # these 25.x scripts have multiple scripts because they all exit the script so # we can't put them all in one file echo " ################################################################################ ## Example 25.1: # ## Run \$ bash 25-1-erro...
true
c1b54c7b42223f648987945839a4414d8beab6a3
Shell
shellbox-sh/ShellPen
/src/--shellpen-private/writeDSL/local.sh
UTF-8
446
3.5625
4
[ "MIT" ]
permissive
## $ DSL local ## > Define a local variable if [ $# -eq 1 ] then if [[ "$1" =~ ^([^=]+)=([^=]+)$ ]] then !fn --shellpen-private writeDSL writeln "local ${BASH_REMATCH[1]}=${BASH_REMATCH[2]}" else !fn --shellpen-private writeDSL writeln "local $1" fi elif [ $# -eq 2 ] then !fn --shellpen-private write...
true
904b79ca8d4fc1ff8b495318136296f44f112082
Shell
tmsanrinsha/dotfiles
/home/bin/lndir.sh
UTF-8
1,776
3.84375
4
[]
no_license
#!/usr/bin/env bash # lndirというコマンドがある # [ディレクトリ内のファイル1つ1つに対して一気にシンボリックリンクを作成する - Qiita](http://qiita.com/krsak/items/394850608ffe530cd6b2) # lndirのシェルスクリプト版がある # 上書きが出来ないので自作 set -e if [ "$#" -ne 2 ]; then exit fi fromdir=${1%/} todir=${2%/} if [[ "$OSTYPE" =~ cygwin ]];then # Windowsのメッセージの文字コードをcp932から...
true
5e492b5b5f2f945b86b83a34e12707f1635f35a9
Shell
hashland/hlos-packages
/hlos-utils/files/hlos-update
UTF-8
743
3.296875
3
[]
no_license
#!/bin/sh . /lib/functions.sh . /usr/share/libubox/jshn.sh . /etc/openwrt_release get_config() { config_get_bool enable $1 enable 0 config_get desired_version $1 version "@stable" } config_load hlos config_foreach get_config update if [ -z "$desired_version" ]; then desired_version="@stable" fi if [ "$enable" =...
true
9f958b51ccabe71ab2322733915746e4b403bed0
Shell
xdite/my-blog
/blogstats.sh
UTF-8
642
3.296875
3
[ "MIT" ]
permissive
#!/bin/bash # start year and end year SYEAR=2005 EYEAR=`date "+%Y"` POSTPATH=~/Dropbox/projects/dev-xdworks/source/_posts/ echo echo "YEAR File # Word Count" echo "==============================" for (( i=$SYEAR; i<=$EYEAR; i=i+1 )) do NUMFILES=`ls -l $POSTPATH$i* 2> /dev/null | wc -l` NUMWORDS=" ...
true
b1d9727ca61d45c4514deb3b98af1336f96b7a31
Shell
making/demo-jjug-ccc-2019-fall
/run-graalvm.sh
UTF-8
1,218
2.765625
3
[]
no_license
#!/bin/bash rm -rf demo-tomcat . demo-magic.sh DEMO_PROMPT="(\w): " clear TYPE_SPEED=1000 pkill -KILL java ############ printf "\033[32m⭐️ Maven ArchetypeでSpring Boot Projectの雛形を作成します \033[0m\n" pe "mvn archetype:generate\\ -DarchetypeGroupId=am.ik.archetype\\ -DarchetypeArtifactId=graalvm-springmvc-blank-archety...
true
c9552bd08d8b3d04a79646dd10525692c082d596
Shell
brianc/install-scripts
/elastic-search.sh
UTF-8
1,319
2.515625
3
[]
no_license
#change into root home cd ~ #install java apt-get install openjdk-6-jre -y echo JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::") >> /etc/environment # increase file size limits echo "root hard nofile 65353" >> /etc/security/limits.conf echo "root soft nofile 65353" >> /etc/security/limits.conf echo "sessi...
true
e0a00609dc370c6df7aef89a07a27c9171f515c8
Shell
dangost/University
/2_2/Системное программирование/linux1/2/script4
UTF-8
128
2.578125
3
[ "MIT" ]
permissive
#!/bin/bash echo "Введите фамилию: " read surname cut -d":" -f1,3 basa.txt | grep $surname | sed "s/$surname: //g"
true
8b793ce66a83033dc74bba8f6e1ac9b4c36a113b
Shell
szuecs/dotfiles
/.zsh/spotlight.zsh
UTF-8
141
2.71875
3
[]
no_license
if [[ -x `which mdfind` ]]; then function mdhere() { mdfind -onlyin . $* } function mdloc () { mdfind "kMDItemFSName == '$*'wc" } fi
true
64cc4b0ad354a1b741e8890ee28dd6a69583ea67
Shell
resmith/udacCloudDev-MicroSvcs_Project_Udagram_ReverseProxy
/2_8_test_api.sh
UTF-8
800
2.578125
3
[ "MIT" ]
permissive
. ./0_set_env.sh # echo "APP_NAME: $APP_NAME" export POD_NAME=$(kubectl get pods -o custom-columns=NAME:.metadata.name | grep $APP_NAME) echo "POD_NAME: $POD_NAME" # echo "\n\n*** exec $POD_NAME -- curl $BASE_URL:$PORT/api/v0/feed" kubectl exec $POD_NAME -- curl -s $BASE_URL:$PORT/api/v0/feed # echo "\n\n*** exec $POD_...
true
b60b0a9a5d672b8d8bb8a71cd6f4e5eed5c79732
Shell
StevenRoan/cmd-wrapper
/cmdmt.sh
UTF-8
653
3.734375
4
[]
no_license
#/bin/bash # This script set command in mutliple remote server in remote servers. # #Use private key to loging to remote server # -l <link> # -i <path of private key> # -c <cmd> IPARY=() while [[ $# -gt 0 ]] # > is for string comparison do key="$1" case $key in -l|--link) LINK="$2" shift # past argument ...
true
c982dfa8038863005be13b0fecbd401c5ca09977
Shell
xwjxwj30abc/adt-data-preprocess
/adt-data-preprocess.conf/clean.sh
UTF-8
334
3.5
4
[]
no_license
#!/bin/sh export MNTDIR="/tmp/usbdisk" # Remove Disk Device if [ -f "mysqld.pid" ];then kill `cat mysqld.pid` echo "kill mysql" rm mysqld.pid echo "remove mysqld.pid" fi if [ "`ls -A $MNTDIR`" != "" ];then umount -l "$MNTDIR" echo "umount /tmp/usbdisk" else echo "the usbdisk path is not exist...
true
d348820b0fadb3f8748a4ece5c5227b31afdeefe
Shell
asdyxcyxc/Dynamic-Rabbits
/path_bunny/tools/db_fuzz/scripts/linux/build_db_fuzz.sh
UTF-8
688
3.078125
3
[]
no_license
cd $PATH_BUNNY_DIR/tools/db_fuzz/src rm -rf build mkdir build cd build if [ "$1" == "x86_32" ] ; then export CXXFLAGS=-m32 export CFLAGS=-m32 is_x86_32="true" elif [ "$1" == "x86_64" ] ; then is_x86_32="false" else echo "No Architecture specified at parameter 1! Exiting with error"; exit 1; fi cmake -DCM...
true
b76709afdcc996043e670d17e547c2585735e68e
Shell
mikepetersyn/key-value-stores
/docker_install.sh
UTF-8
979
3.078125
3
[]
no_license
#!/bin/bash # based on the following source: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-20-04 ##### INSTALLATION ##### # update package list sudo apt update # install prerequisite packages sudo apt install apt-transport-https ca-certificates curl software-properties-c...
true
831cc6705f4de3c6a80286adb57e2ee2c22ed180
Shell
rtang0203/3110Final
/run-student.sh
UTF-8
291
3.0625
3
[]
no_license
#!/bin/bash # Convenience wrapper over [rml_game.byte]. # Runs the student's interpreter, regardless of OS. if [[ $# -ne 3 ]]; then echo "Usage: ./run-student.sh <MAP> <BLUE_BOT> <RED_BOT>" exit 1 fi pkill rml || true make build && ./rml_game.byte ./rml_interpreter.byte $1 $2 $3
true
dafb939b8b8a71461d448d9115105ed4cfde5c99
Shell
arthurlorenzi/ycsb-benchmarking-scripts
/tarantool.sh
UTF-8
1,546
3.703125
4
[]
no_license
#!/bin/bash # # Script para execução de benchmark do Tarantool 1.7.1 utilizando o YCSB # # O script deve ser executado no mesmo diretório onde está localizado o YCSB, o arquivo tarantool.lua e # a definição do workload. Durante a execução uma nova janela do terminal será aberta para que o servidor # do Tarantool seja i...
true
44d8acd2a1df750fcfd10e860fc7785d865d392f
Shell
atsgen/tf-jenkins
/jobs/devstack/rhosp/deploy_tf.sh
UTF-8
533
2.875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash -eE set -o pipefail [ "${DEBUG,,}" == "true" ] && set -x my_file="$(readlink -e "$0")" my_dir="$(dirname $my_file)" source "$my_dir/definitions" # stackrc file is prepared by pipeline based on # previous job's artefacts export stackrc_file=${stackrc_file:-"deps.${JOB_NAME}.${JOB_RND}.env"} export stack...
true
08683db6320cf5c1045de7d9f5799a77e9993988
Shell
linuxpf/linux
/Diskhealth/run.sh
UTF-8
873
3.1875
3
[]
no_license
#!/bin/bash #update 20150701 dir="/usr/local/caiji" flag="$dir/log/run.id" if [ ! -f $flag ];then echo "" > $flag fi if [ `cat $flag |grep 'run'|wc -l` -gt 0 ];then sps=`ps -ef|grep 'run.sh'|grep 'caiji' |wc -l` if [ $sps -gt 2 ] then echo "exit" exit fi fi echo "run" > $flag host=`...
true
06ad682c3efdf4043073d808b684539a49d6f65c
Shell
doron-mil/Gong-be
/dev_ops/deploy_gong_actions.sh
UTF-8
1,656
3.296875
3
[]
no_license
#!/bin/bash set -x USER=$1 USER_PASS=$2 IS_DOCKER=$3 BASE_DIR="/home/${USER}/projects" GONG_DEV_OPS_DIR="${BASE_DIR}/gong_dev_ops" DEV_OPS_FILES_DIR="${GONG_DEV_OPS_DIR}/dev_ops" set -v # Essential dirs mkdir -p "${BASE_DIR}" mkdir -p "${GONG_DEV_OPS_DIR}" mkdir -p "${GONG_DEV_OPS_DIR}/dev_ops_logs" mkdir -p "${BA...
true
afede552d8eb10ead7816526dae9a839aa40f45a
Shell
ODEX-TOS/packages
/f2fs-tools/trunk/PKGBUILD
UTF-8
957
2.875
3
[ "GPL-1.0-or-later", "MIT" ]
permissive
# Maintainer: Tobias Powalowski <tpowa@archlinux.org> # Contributor: Christian Hesse <mail@eworm.de> pkgname=f2fs-tools _tag='d41dcbdf46dc3841cd0a0507e6573e38cb6c55bb' # git rev-parse v${pkgver} pkgver=1.14.0 pkgrel=1 pkgdesc='Tools for Flash-Friendly File System (F2FS)' arch=('x86_64') url='https://git.kernel.org/pub...
true
6813a09bdd82b318da72cd9eb060fb3eab19e96b
Shell
SEPIA-Framework/sepia-installation-and-setup
/sepia-custom-bundle-folder/on-docker.sh
UTF-8
4,637
3.875
4
[ "MIT" ]
permissive
#!/bin/sh # SETUP AND RUN GUIDE echo '' echo '/--------------------------------------------------------------------------------------------------' echo '| How to run SEPIA-Home as Docker container:' echo '| https://github.com/SEPIA-Framework/sepia-docs/wiki/SEPIA-inside-virtual-environments' echo '| ' echo '| Quick st...
true
8e02ed442d8785fb40564afdca016fc39b226c98
Shell
elarib/KafkaUsefulShortcut
/producerStringString.sh
UTF-8
430
2.875
3
[]
no_license
#!/usr/bin/env bash source $(dirname $0)/config.sh #Check argument if [[ -z "${1}" ]]; then echo "Must provide the name of topic to put the message in as first argument " exit 1 fi kafka-console-producer --broker-list $_KAFKA_BOOTSTRAP_SERVERS \ --key-serializer org.apache.kafka.common.serialization.Str...
true
03b780fb3a7e16cb68ce389834c1bd0b2c8c2f74
Shell
eddyb/sobek
/samples/check.sh
UTF-8
2,319
4.03125
4
[]
no_license
#!/usr/bin/env bash set -e # Pre-build `sobek` and ensure the resulting executable runs. sobek="target/release/sobek" cargo build --release "$sobek" --help > /dev/null # Styles. Sreset=$(tput sgr0) Sbold=$(tput bold) Sunderline=$(tput smul) Serr=$(tput setaf 9) Swarn=$(tput setaf 11) sample() { local platform="...
true
eeca5a367975ef86302d031bf4428ad5fb976f22
Shell
aykhaiweng/dotfiles
/init/20_ubuntu_apt.sh
UTF-8
1,876
3.5625
4
[]
no_license
#!/usr/bin/env bash # Ubuntu-only stuff. Abort if not Ubuntu. is_ubuntu || return 1 # Disable frontend for some installers export DEBIAN_FRONTEND=noninteractive sudo apt-get -y install build-essential apt-transport-https software-properties-common unzip cmake make # Commands apt_ppa=() apt_packages=( bat ca-...
true
ef97ab59aa43aadf2a0b5a286142030e9c5bd927
Shell
quintonparker/dotfiles
/scripts/bin/rsync-codebase.sh
UTF-8
361
3.171875
3
[ "MIT" ]
permissive
#!/bin/bash THIS=`basename $0` if [ $# -lt 2 ] then echo "Error: Usage $THIS <arg1> <arg2> <arg...> <source> <target>" exit 1 fi rsync --whole-file --executability --exclude="*.git" --exclude="etc/app/config.php" --exclude="*.swp" --exclude=".DS_Store" --exclude=".vagrant" --delete --verbose --cvs-exclude --...
true
2c6c1fc1092638cd27b49c72b3483a3b8f23524c
Shell
abhandaru/monarchy1
/database/update.sh
UTF-8
392
2.734375
3
[]
no_license
#!/bin/bash ROOT=$(git rev-parse --show-toplevel) cd $ROOT # Get VIEW SQL SQL_SCRIPT=$(cat ./database/4-formation-schema.sql) echo "[views/local] saving locally" echo "$SQL_SCRIPT" | psql -d monarchy_local echo "[views/staging] saving to staging" echo "$SQL_SCRIPT" | heroku pg:psql -a monarchy1-staging echo "[views...
true
babf3c6249eaac07a6cb531901ee64688cb2de4a
Shell
fride/dotfiles
/bin/bin/functions/web/qutebrowser
UTF-8
1,481
3.046875
3
[ "MIT" ]
permissive
#!/usr/bin/dash # sdothum - 2016 (c) wtfpl # Web # ══════════════════════════════════════════════════════════════════════════════ # ...................................................................... Browser # Usage: [RUNOPT='-s <option> <value> ..'] qutebrowser <url> QUTEBROWSER='/usr/bin/qutebrowser --target t...
true
6d73a95f510912589995eb0bf3ae07b5dfddef81
Shell
elhaard/roprotokol
/INSTALL.debian.sh
UTF-8
824
3.40625
3
[]
no_license
#!/bin/sh #apt-get install python-mysqldb php5-mysqlnd mysql nodejs npm DB=${1-$defaultDB} if [ -z $DB ] then echo usage: echo INSTALL.debian.sh databasename exit 0 fi echo using database $DB if [ ! -f secret.sh ]; then echo 'DBCMD="mysql -u roprotokol --password=roprotokol ' $DB '"' > secret.sh ...
true
7508e769aaf1de9b19afdfc2eea3e5699ef7b09f
Shell
tuenti/sensu-community-plugins
/plugins/system/check-memory-pcnt.sh
UTF-8
1,705
3.984375
4
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-free-unknown" ]
permissive
#!/usr/bin/env bash # # Evaluate free system memory from Linux based systems based on percentage # This was forked from Sensu Community Plugins # # Requires: bc # # Date: 2007-11-12 # Author: Thomas Borger - ESG # Date: 2012-04-02 # Modified: Norman Harman - norman.harman@mutualmobile.com # Date: 2013-9-30 # Modified: ...
true
25c73496eaba984fe9aa4290109bb3b2528e5954
Shell
RobSis/dotfiles
/shells/.bash_profile
UTF-8
200
2.9375
3
[]
no_license
# ~/.bash_profile: executed by bash(1) for login shells. PATH="$HOME/.local/bin${PATH:+:${PATH}}" if [ -n "$BASH_VERSION" ]; then if [ -f "$HOME/.bashrc" ]; then . "$HOME/.bashrc" fi fi
true
257f4559e085302d9b9ca6a5043adb39ea710c52
Shell
gitter-badger/cargo-quickinstall
/get-stats.sh
UTF-8
599
2.65625
3
[]
no_license
#!/bin/bash set -euo pipefail source .env # Uses https://sematext.com/docs/logs/search-through-the-elasticsearch-api/ # TODO: # * Add a time range to the query. QUERY=$(echo ' { "query": { "query_string": { "query": "*" } }, "size": 0, "aggs": { "my_agg": { "terms": { "field":...
true
73010b743821c5579ff64b1ba81dd1771d786289
Shell
RameezKhan05/Bash
/HTML concept in mail
UTF-8
26,127
3.09375
3
[]
no_license
#!/bin/bash #. $HOME/.profile ################################################################# ################################################################# #This script sends mail for the process data for all clients #Author : Rameez M. Khan ################################################################# #####...
true
b2ca93d23a4f38d6dd4b7af27b02c3e367f9d519
Shell
jHernandezdev/monitoring
/grafana/userdata_amz.tpl
UTF-8
563
2.671875
3
[]
no_license
#!/bin/bash ############################ ##### GRAFANA INSTALL ###### ############################ conf=/etc/yum.repos.d/grafana.repo cat >> $conf << EOF [grafana] name=grafana baseurl=https://packages.grafana.com/oss/rpm repo_gpgcheck=1 enabled=1 gpgcheck=1 gpgkey=https://packages.grafana.com/gpg.key sslverify=1 ssl...
true
08da8c85e5a27f93f1addfb697476edff27dca0f
Shell
chakib-belgaid/jvm-comparaison
/build_images_annonymous.sh
UTF-8
409
2.765625
3
[]
no_license
#! /bin/bash IFS=$'\n' jvms=$(grep -v "#" jvms.sh) user=user for jvm in ${jvms[@]}; do echo building jvm $jvm docker build --tag $user/jvm:$jvm --build-arg TAG="$jvm" -f jvms-builder/Dockerfile jvms-builder # docker push $user/jvm:$jvm done mkdir benchmarks/jars && cd benchmarks/jars # mkdir benchmarks/j...
true
bb2fe0c84fcdc56c58321c99dc2ef3c5cbd746ac
Shell
stalluri/commands
/system_load.sh
UTF-8
162
2.59375
3
[]
no_license
#!/bin/bash # Load factor is 30% export LOAD=0.3 while true do yes > /dev/null & sleep $LOAD killall yes sleep `echo "1 - $LOAD" | bc` done
true
36819f9448ccff7e1f655b91ca9102b5246abe9e
Shell
daguniko/dotfiles
/.zshrc
UTF-8
11,795
2.703125
3
[]
no_license
# reference [anaconda] # http://qiita.com/ken0nek/items/c51b8e2b83d902698fdf # [[ $TERM != "screen" ]] && exec tmux alias vi='/usr/local/bin/vim' alias vim='/usr/local/bin/vim' alias gvi='/usr/local/bin/vim -g' # Path to your oh-my-zsh installation. export ZSH=$HOME/.oh-my-zsh # Set name of the theme to load. # Loo...
true
2d0b68e178683c02b8802a5d52470f54a291cc5a
Shell
HumanCellAtlas/ingest-kube-deployment
/infra/helm-charts/mongo/charts/ingestbackup/setup.sh
UTF-8
915
3.609375
4
[]
no_license
#!/usr/bin/env bash if [ -z $DEPLOYMENT_STAGE ]; then echo "Unspecified DEPLOYMENT_STAGE env variable." exit 1 else echo "INFO: using deployment stage [${DEPLOYMENT_STAGE}]" fi if [ -z $1 ]; then echo "No AWS credentials file specified." exit 1 fi if [ -z $2 ]; then echo "Expected Role ARN t...
true
a2eb5dad62c381a98b43720fc8c6259661f60155
Shell
ilventu/aur-mirror
/xxe/PKGBUILD
UTF-8
1,233
2.734375
3
[]
no_license
# Maintainer: Sabart Otto - Seberm <seberm[at]gmail[dot]com> pkgname=xxe pkgver=5.3.0 _versionEdited=${pkgver//./_} pkgrel=1 pkgdesc="XMLmind XML Editor allows to edit large, complex, modular, XML documents. This package contains Personal Edition" arch=('i686' 'x86_64') url="http://www.xmlmind.com/xmleditor" license=...
true
2ff415c7784572572ab14dcc8e4ca1f4a950a50f
Shell
mcnahum/deltapi
/delta-pi-service-start.sh
UTF-8
346
3.328125
3
[]
no_license
#! /bin/sh case "$1" in start) echo "Starting delta-pi-powerbutton.py" /usr/local/bin/delta-pi-powerbutton.py & ;; stop) echo "Stopping delta-pi-powerbutton.py" pkill -f /usr/local/bin/delta-pi-powerbutton.py ;; *) echo "Usage: /etc/init.d/delta-pi-service-start.sh {start|stop}" e...
true
530b43e2b3030805615fb4e725a5656e6ef579bf
Shell
thelikes/wzrd
/web/wzrd-chrome-headless.sh
UTF-8
967
3.640625
4
[]
no_license
#!/bin/bash usage () { echo "Usage: ./wzrd-chrome-headless.sh -t <target> -o <output>" } while [ "$1" != "" ]; do case $1 in -t | --target ) shift targ=$1 ;; -o | --output ) shift ou...
true
a9808e55f2035b9f9d6fa1013212c6359de4ba0f
Shell
OlgaLyudchik/udacity-cloud-devops-project-capstone
/run_kubernetes.sh
UTF-8
889
3.09375
3
[]
no_license
#!/usr/bin/env bash # Define path to DockerHub repo dockerpath=olyudchik/weather-app echo "Docker ID and Image: $dockerpath" # Start local minikube cluster minikube start # Use minikube context kubectl config use-context minikube # Deploy to minikube cluster kubectl apply -f deployment/secret.yml kubectl apply -f d...
true
44c538a63e94f6af02091a13b10a2017388aee23
Shell
lightster/pier-11
/bin/vagrant/install-docker.sh
UTF-8
891
3.765625
4
[ "MIT" ]
permissive
#!/bin/sh echo -n "Installing docker" if [ "$#" -ne 1 ]; then echo "Usage: ${0} VAGRANT_USER" exit 1 fi VAGRANT_USER="$1" if [ ! -f /usr/bin/docker ]; then apt-get remove -qq -y docker docker.io apt-get update -qq -y apt-get install -qq -y \ linux-image-extra-$(uname -r) \ linux-image-extra-vi...
true
ec7100ba3e89cade43fc6345cbb81c5bbb40bc70
Shell
mmantho/bash-fsl-pipeline
/process_subject/subject_epi_aroma.sh
UTF-8
3,074
3.359375
3
[]
no_license
# ================================================================================== # usage: . ./path/execute_subject_aroma.sh 003 colegios -idn resting.feat # ================================================================================== #!/bin/sh # ================================================================...
true
a18a50e47dd1a26246b88e49c0bfbfc571a77b4c
Shell
mischief1/StreamUnlockTest
/media_test.sh
UTF-8
35,087
3.125
3
[]
no_license
#!/bin/bash shell_version="1.1.6"; UA_Browser="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36"; UA_Dalvik="Dalvik/2.1.0 (Linux; U; Android 9; ALP-AL00 Build/HUAWEIALP-AL00)"; Disney_Auth="grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Atoken-exch...
true
16a5addd00aab6fdf417c2dffa7c7ef6113b5e01
Shell
elifesciences/peerscout
/install.sh
UTF-8
619
3.421875
3
[ "MIT" ]
permissive
#!/bin/bash set -e # everything must succeed. echo "[-] install.sh" maxpy=$(which /usr/bin/python3* | grep -E '[0-9]$' | sort -r | head -n 1) py=${maxpy##*/} # magic # check for exact version of python3 if [ ! -e "venv/bin/$py" ]; then echo "could not find venv/bin/$py, recreating venv" rm -rf venv virtu...
true
8870a172fa27ef3c042a9b81a92e7cfca702d942
Shell
drKnoxy/dotfiles
/brew.sh
UTF-8
1,754
2.765625
3
[]
no_license
# Install command-line tools using Homebrew # Make sure we’re using the latest Homebrew brew update brew upgrade # Install GNU core utilities (those that come with OS X are outdated) # Don’t forget to add `$(brew --prefix coreutils)/libexec/gnubin` to `$PATH`. brew install coreutils brew install findutils brew inst...
true
e5b1beb57a79bb83c827dd652998942768d50b5f
Shell
devgateway/rolesync
/rolesync.sh
UTF-8
1,595
3.78125
4
[]
no_license
#!/bin/bash -e # Rolesync 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 3 of the License, or # (at your option) any later version. # Rolesync is distributed in the hope that it will be usefu...
true
0a6070e0cac875cf3a23877db8dd5b1374cd7e8f
Shell
Ferk/scripts
/crypt.sh
UTF-8
574
4.125
4
[ "WTFPL" ]
permissive
#!/bin/sh # Fernando Carmona Varo <ferkiwi@gmail.com> #--- # Wrapper around gpg to encrypt/decrypt a file or directory # it will also (de)compress them #--- [ -e "$1" ] && [ -z "$2" ] || { echo "Usage: ${0##*/} <file or directory>" exit } case "$1" in # Decrypt (*.gpg files) *.txz.gpg|*.tar.xz.gpg) gp...
true
fd2b7c5025a92d6c7d3472ee770c9d8fa48f49f7
Shell
elffaW/rll-replay-parser
/parseNewToJson.sh
UTF-8
1,365
4.03125
4
[]
no_license
#!/bin/bash source .env NOCOLOR='\033[0m' PURPLE='\033[0;35m' GREEN='\033[1;32m' RED='\033[1;31m' echo "Looking for new replays in [$REPLAY_LOC]" # echo $JSON_LOC numerror=0 numsuccess=0 # iterate over files in REPLAY_LOC # parse REPLAY with rrrocket (changed to carball) # move REPLAY somewhere else if [[ -d "$R...
true
5ae924036963179f3971411974d6803a2b0426a8
Shell
mxjessie/home-bin
/xlock
UTF-8
980
3.15625
3
[]
no_license
#!/usr/bin/env bash # xlock: lock the screen with i3lock # enable blur-locking with 'touch ~/.blurlock'. needs ffmpreg # stolen from https://github.com/petvas/i3lock-blur/blob/master/lock.sh <3 BLURLOCK=false LOCKICON="$HOME/Sync/Wallpapers/lockicon.png" BGIMG="$HOME/lockimage.png" dpms-revert() { xset dpms 0 0 0...
true
95267f89eb8c4963c80cc47daf4992c786c25834
Shell
liangyy/mixqtl-pipeline
/misc_scripts/gtex_v8_preprocess/extract_columns.sh
UTF-8
354
3.203125
3
[ "MIT" ]
permissive
# bash extract_columns.sh [list_of_column_to_extract] [input] # print the columns to STDOUT awk 'FNR==NR{cols[$1]=$1;next}{ if(FNR==1) { for (i=1; i<=NF; i++) { ix[$i] = i } } if(FNR>0) { for (col in cols) { if(col in ix) { printf("%s\t", $ix[col]) } }...
true
9d2f5539525cc6c424aa766dfedf2c536ccce8a7
Shell
ischubert/l2e
/l2e/imitation_data.sh
UTF-8
824
3.484375
3
[]
no_license
#!/bin/bash if [ -z "$1" ]; then echo "ERROR: CONFIG_ID was not specified" exit fi ## Get config file and load env variables from json export CONFIG_ID=$1 export CONFIG_FILE=config_$CONFIG_ID.json for s in $(cat $CONFIG_FILE | jq -r "to_entries|map(\"\(.key)=\(.value|tostring)\")|.[]"); do export $s done ...
true
6131e6f1c4575066815d21c9115b3b9ba9c578a9
Shell
SaltNego/Learn_linux_bash
/bash_scripts/useradd_while03.sh
UTF-8
311
2.875
3
[]
no_license
#!/bin/bash while read LINES do USERNAME=`echo $LINES|cut -f1 -d ' '` PASSWORD=`echo $LINES|cut -f2 -d ' '` echo -n "Username:$USERNAME PASSWORD:$PASSWORD" echo useradd $USERNAME #echo $PASSWORD | passwd --stdin $USERNAME#normal linux echo $USERNAME:$PASSWORD | chpasswd #ubuntu-linux done<users.txt
true
99465249373ccd414aab79adf924411b07b54610
Shell
siriobalmelli/toolbench
/bashrc/bashrc
UTF-8
4,144
3.21875
3
[]
no_license
#!/bin/bash ## # do NOT poison a nix shell ## grep -q IN_NIX_SHELL <(env) && return ## # always-section # is executed even when running non-interactively (e.g. from a Vim session) ## # shellcheck source=/Users/sirio/.nix-profile/etc/profile.d/nix.sh source "$HOME/.nix-profile/etc/profile.d/nix.sh" # allow coredumps...
true
6e575696c93311caf45e4cb427a3e6729c77d30f
Shell
delkyd/alfheim_linux-PKGBUILDS
/tewisay-git/PKGBUILD
UTF-8
1,496
2.625
3
[]
no_license
# Maintainer: lucy <lucy@luz.lu> pkgname=tewisay-git _gitname='tewisay' _gourl='github.com/neeee/tewisay' pkgver=0.59.cd6e1b9 pkgrel=3 pkgdesc='Cowsay replacement with unicode and partial ansi escape support.' url='https://github.com/lucy/tewisay' license=('custom:CC0') depends=('glibc') optdepends=('cowsay: default c...
true
2327ad5bf794e495030e5a8aa7ce6f75831e86ce
Shell
votabru/bootstrap
/dots/.zsh/.zprofile
UTF-8
2,190
3.296875
3
[]
no_license
# keep everything private/personal in a separate file if [[ -e "$HOME/.bootstrap_private" ]]; then source "$HOME/.bootstrap_private"; fi export EDITOR=vi export TERM=xterm-256color PATH=$HOME/bin:$PATH # -l = long format # -A = include hidden (.*) files except '.' and '..' # -p = mark directories with a traili...
true
475fac166939e070b0450befb853ea400090f069
Shell
sanvu88/ubuntu-lemp-stack
/menu/route/vps_manage
UTF-8
3,109
3.578125
4
[]
no_license
#!/bin/bash ###################################################################### # Auto Install & Optimize LEMP Stack on Ubuntu # # # # Author: Sanvv - HOSTVN Technical # # Webs...
true
c1f8f648c4cd99b5253d1e1739602e753b29c5eb
Shell
dongfangmu/hojm
/lxy.sh
UTF-8
2,160
3.046875
3
[]
no_license
#!/bin/bash PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/bin:/sbin export PATH function v2ray(){ echo "### v2ray后端 ###" echo "### 11 ###" echo "### 11 ###" echo " " echo -e "\033[41;33m 本功能仅支持Debian 9,请勿在其他系统中运行 \033[0m" echo " " echo "---------------------...
true
f67e4aa7d2093aa69be279dc09102e1ee56b6d10
Shell
ramblingenzyme/dotfiles
/bin/bin/schedule
UTF-8
131
2.9375
3
[]
no_license
#!/usr/bin/env bash if [ $# == 0 ]; then cat "$HOME/usr/notes/schedule/$(date "+%A")" else cat "$HOME/usr/notes/schedule/$1" fi
true
5102e5ec132928378d4d8d20da99056909130326
Shell
moby/buildkit
/hack/shell
UTF-8
547
3.109375
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -e function clean() { docker rmi $(cat $iidfile) } iidfile=$(mktemp -t docker-iidfile.XXXXXXXXXX) DOCKER_BUILDKIT=1 docker build --iidfile $iidfile --target dev-env . trap clean EXIT SSH= if [ -n "$MOUNT_SSH_AUTH_SOCK" ]; then SSH="-v $SSH_AUTH_SOCK:$SSH_AUTH_SOCK -e SSH_AUTH_SOCK" fi v...
true
a0dffde4b2cefac8355040a6e968a0292d18614e
Shell
freakabhi/hive-xml-examples
/bin/hive_xpath_udf.sh
UTF-8
468
2.6875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # Source the config . /tmp/hive-xml-examples/conf/env.cfg echo -e "\n### Creating table $HIVE_XPATH_TABLE_NAME" hive -e "DROP TABLE IF EXISTS $HIVE_XPATH_TABLE_NAME;" hive -e "CREATE EXTERNAL TABLE $HIVE_XPATH_TABLE_NAME (xmldoc STRING) LOCATION '$HDFS_BASE_DIR'"; echo -e "\n### Querying $HIVE_XPATH_T...
true
a10b4d542b5b299d71485da883f959656b848d43
Shell
smschm/dotfiles
/makelinks.sh
UTF-8
127
2.890625
3
[]
no_license
#!/bin/zsh for f in * .*; do if [[ $f != '.git' && $f != 'makelinks.sh' ]]; then mv ~/$f ~/$f~ ln -s $PWD/$f ~/ fi done
true
f374de8dda4b1a71f77a42e4143cdbfa5b4cd9a0
Shell
phlummox/aarch64-cross-compiler
/docker_test.sh
UTF-8
386
3.0625
3
[]
no_license
#!/usr/bin/env bash source util_funcs.sh final_stage=$(tail -n 1 stages.txt) col_msg "$0: call toolchain" set -x echo 'int main(){return 42;}' > c_test.c docker run --rm -v ${PWD}:/work -w /work phlummox/aarch64-cross-compiler:$final_stage gcc -static -o c_test c_test.c qemu-aarch64 ./c_test result=$? set +x echo...
true
0a035b10ef1908aea7719e6559c774e382725c98
Shell
FNNDSC/dmd2b_web
/pydicom-master/tests/shell_all
UTF-8
539
2.890625
3
[ "MIT" ]
permissive
#!/bin/bash # all.sh echo shell_all echo run pydicom test suite on all supported python versions echo ------- python 2.6 ------------ python2.6 run_tests.py echo ------- python 2.7 ------------ python2.7 run_tests.py # Check location for each version -- to make sure are not running old pydicom versions echo - echo ---...
true
0d5a070863e1afde5b30f56140dc734579e9871b
Shell
bbc2/lang-bench
/primes/bash/compute.bash
UTF-8
650
3.734375
4
[]
no_license
if [[ -z $PRIME_COUNT ]]; then echo "Please set PRIME_COUNT environment variable." exit -1 fi declare -a primes nb_primes=0 is_prime() { local number=$1 for prime in ${primes[*]}; do if [[ $(($number % $prime)) == 0 ]]; then return -1 fi done return 0 } number=2 ech...
true
3a9cfde42b922faa0123d4d1b0705ea29d1ac06e
Shell
tgotzsche/coucbdb
/couchpsync
UTF-8
780
3.5
4
[]
no_license
#!/bin/sh # # Thomas Gotzsche # Sets up replication documents for all databases from one couchdb server to another one. # if [ -z "$2" ]; then cat <<EOF Usage: $0 <sourceUrl> <targetUrl> Sets up replication documents for all databases from one couchdb server to another one. Example: $0 example.com:5984 admin:...
true
b6d862025f2134d41e2a666d02ac064ee0ce3cf0
Shell
joefutrelle/rmutt
/release.sh
UTF-8
422
3.140625
3
[]
no_license
#!/bin/sh # this script is used to build releases. it requires access to a # non-public cvs repository. make VERSION=`./rmutt -v 2>&1 | sed -e 's/rmutt version //'` DIR="rmutt-${VERSION}" RELEASE_DIR=releases cvs export -D now -d ${DIR} rmutt cd ${DIR} rm release.sh make clean test make clean cd .. mkdir -p ${RELEASE_D...
true
0e82d0f194f06def3a59a432136f62476ca8186d
Shell
Mayi21/Aria2ForLinux
/start.sh
UTF-8
1,944
3.078125
3
[]
no_license
#!/usr/bin/env bash #=============================================== # Mayi21 Aria2ForLinux one-cklick install script # date:20200225 # Begin for Centos7 #=============================================== ip='' updateAndInstall(){ yum -y update yum -y install epel-release yum -y install wget yum -y inst...
true
389257e4f3d0ea7f407f5f0683023c80649a4349
Shell
FalconChristmas/fpp-scripts
/System/ConvertPiRootToReadOnly.sh
UTF-8
2,125
3.953125
4
[]
no_license
#!/bin/sh PLATFORM=$(cat /etc/fpp/platform) if [ "x${PLATFORM}" != "xRaspberry Pi" ] then echo "ERROR: This script only works on the Raspberry Pi SD image" exit fi echo "Creating /etc/init.d/overlayroot init script" cat <<-EOF | sudo tee /etc/init.d/overlayroot > /dev/null #!/bin/sh ### BEGIN INIT INFO # Provides:...
true
eef9fb7077c46cee830373c4348d04ead678741e
Shell
mrmekon/connectr
/clientid_prompt.sh
UTF-8
1,751
4
4
[ "Apache-2.0" ]
permissive
#!/bin/bash DST="${HOME}/.connectr.ini" echo "" echo "**************************************************" echo "**************************************************" echo "***" echo "***" echo "*** Connectr first-time configuration" echo "***" echo "***" echo "**************************************************" echo "**...
true
a59c47ae3645dc2e36b09e0b7e5de0e3c01aa44d
Shell
bolin62007/OpenWrt-CI
/package/lean/ipset-lists/files/etc/init.d/ipset.sh
UTF-8
350
3.15625
3
[ "MIT" ]
permissive
#!/bin/sh /etc/rc.common # Copyright (C) 2014 Justin Liu <rssnsj@gmail.com> START=21 start() { local file for file in /etc/ipset/*; do [ -f $file ] || continue ipset restore < $file done } stop() { local file for file in /etc/ipset/*; do [ -f $file ] || continue ipset destroy `basename $file` done } r...
true
d96ac29ac977d883717c5955eaab95915b94438c
Shell
dharmendrams84/POSBaseCode
/deploy/shared/bin/addtoclasspath.sh
UTF-8
395
3.65625
4
[]
no_license
#/bin/sh addtoclasspath() { # add the passed in dir to the local classpath LCP=$1 # find all the jars in just this dir and add them also if [ `uname` = "Linux" ] then for i in `find $1 -maxdepth 1 -name "*.jar"` do LCP=$LCP:$i done else for i in `find $1 -name "*.jar"` do LCP=$LCP:$i done f...
true
e3aa6db32c392cd7bbe0a7aa31539fda8f5005a7
Shell
carpy1918/tealeaf-admin-kit
/scripts/tightening/disk-perf-check.sh
UTF-8
921
3.46875
3
[]
no_license
#!/bin/bash # #check the performance of disk partitions using sar # . /home/tealeaf/tealeaf-admin-kit/scripts/tealeaf-env.sh COUNT=0 if [ ! -f "/usr/bin/sar" ];then prt "DSK-PERF-CHECK: sar not installed" exit fi for i in `sar -d | awk '{print $4}'`;do if [[ $i =~ "rdKb/s" ]] && [[ $i =~ "" ]];then if [ $i ...
true
e4aaaa31b810145b7196683de702c108a0491e39
Shell
jatin7/mapr-sparkstreaming-pcapstream
/submit.sh
UTF-8
687
2.625
3
[]
no_license
#!/usr/bin/env bash home=$(dirname $0) source "$home/env.sh" SPARK_VERSION=${SPARK_VERSION:=1.6.1} SPARK_SUBMIT=/opt/mapr/spark/spark-$SPARK_VERSION/bin/spark-submit SPARK_MASTER=yarn-cluster (cd $home; $SPARK_SUBMIT \ --conf yarn.nodemanager.resource.memory-mb="$((64 * 1024))" \ --conf yarn.nodemanager.resou...
true
d5ca7b969e20931c5a1172e582d61272a497ff2e
Shell
ryanseys/dotfiles
/shopify/zshrc
UTF-8
274
2.765625
3
[ "MIT" ]
permissive
#!/bin/zsh # Spin related configs if [[ -v SPIN ]]; then # Source zsh config in Spin if it exists [[ -f /etc/zsh/zshrc.default.inc.zsh ]] && source /etc/zsh/zshrc.default.inc.zsh else # In local machine fi # dev tool [ -f /opt/dev/dev.sh ] && source /opt/dev/dev.sh
true
a8d679fba957563a55bd522217cfd689223d3f09
Shell
frioux/leatherman
/maint/pre-push
UTF-8
195
2.6875
3
[ "Apache-2.0" ]
permissive
#!/bin/sh err=$(GOOS=windows go build -o /dev/null) if [ $? -ne 0 ]; then echo "$err" exit 1 fi err=$(go test ./...) if [ $? -ne 0 ]; then echo "$err" exit 1 fi
true
e49af7c112a70e94680a5ea34aa53fab77eccb8b
Shell
girishf15/ShellScripts
/scripts/read_input.sh
UTF-8
200
3.25
3
[]
no_license
#!/bin/sh echo "Enter your name ?" read USERNAME #script uses the read command which takes the input from the keyboard and\ #assigns it as the value of the variable USERNAME echo "Hello $USERNAME"
true
863d2a54d2aacba43683513161da2af743d6f671
Shell
jsporna-vl/community-build3
/executor/build.sh
UTF-8
932
3.125
3
[]
no_license
#!/usr/bin/env bash set -e if [ $# -ne 4 ]; then echo "Wrong number of script arguments" exit 1 fi #args parsing in order scalaVersion=$1 # 3.0.0-RC1 version=$2 #'1.0.2-communityBuild' targets=$3 #com.example%greeter export PROXY_HOSTNAME=$4 #nginx-proxy export serverLocation="https://repo1.maven.org/maven2" # s...
true
8b8e8789809ebb5ac1578cfe29654e815b83d471
Shell
nimble-platform/docker_setup
/staging/infra/docker-elk/.github/workflows/scripts/run-tests-core.sh
UTF-8
2,622
3.390625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -eu set -o pipefail source "$(dirname ${BASH_SOURCE[0]})/lib/testing.sh" cid_es="$(container_id elasticsearch)" cid_ls="$(container_id logstash)" cid_kb="$(container_id kibana)" ip_es="$(service_ip elasticsearch)" ip_ls="$(service_ip logstash)" ip_kb="$(service_ip kibana)" log 'Waiting fo...
true
f89323907d5b7a8f2591320e47c3938459331cd3
Shell
facebook/hhvm
/hphp/hhvm/autofdo-data.sh
UTF-8
328
2.953125
3
[ "PHP-3.01", "Zend-2.0", "MIT" ]
permissive
#!/bin/sh if echo "$1" | grep -q -e "install_dir=" -e "fbcode_dir=" ; then # Skip --install_dir and --fbcode_dir. shift 1 fi if echo "$1" | grep -q -e "install_dir=" -e "fbcode_dir=" ; then # Skip --install_dir and --fbcode_dir. shift 1 fi cp "$1" "${INSTALL_DIR}/data.afdo.bz2" bunzip2 "${INSTALL_DIR}/data.af...
true
259a92fb08281139581b4cc081b7b1fde64400b8
Shell
nobellium1997/configs
/Scripts/micmute.sh
UTF-8
260
2.96875
3
[]
no_license
#!/bin/bash amixer -D pulse sget Capture | rg "\[on\]" >/dev/null # amixer -D pulse sset Capture toggle | rg "\[on\]" >/dev/null MIC_IS_ON=$(echo $?) MIC_MESSAGE="Mic is OFF" if [ "$MIC_IS_ON" -eq 0 ]; then MIC_MESSAGE="Mic is LIVE" fi echo $MIC_MESSAGE
true
19f1fcbc36d1d924e1f5d034d8fbac076ca7fe1b
Shell
jab0ii/pgfwd
/scripts/runTests.sh
UTF-8
480
2.828125
3
[]
no_license
#!/bin/bash # Author: Noah Gold pattern="tests*.py" case $1 in unit) pattern="tests.py" ;; func) pattern="tests_func.py" ;; ui) pattern="ui_tests.py" ;; reset) rabbitmqctl stop_app rabbitmqctl reset rabbitmqctl start_app ech...
true
0d645404647c548db6511475ea27af1a0efed24e
Shell
FreemanX/pocl-android-dependency
/build_hwloc.sh
UTF-8
821
2.84375
3
[]
no_license
#!/bin/bash # Cross compiling with configure TOOLCHAIN_BIN=$HOME/toolchains/ndk_r21-toolchain-arm64-api26/bin export PATH=$TOOLCHAIN_BIN:$PATH export LD_LIBRARY_PATH=$HOME/toolchains/ndk_r21-toolchain-arm64-api26/sysroot/usr/lib:$HOME/toolchains/ndk_r21-toolchain-arm64-api26/lib64 TARGET_HOST=aarch64-linux-android e...
true
f134179963d7f36bae73a7291879c7f4a393fddf
Shell
hillhero789/server
/scripts/supperClaim.sh
UTF-8
781
3.3125
3
[]
no_license
#!/bin/bash ((i=1)) echo "$i" while : do if [ ! -f "minted$i" ] then exit else while read prikey do prikey=${prikey:0:44} pubkey=$(/root/VFC-Core/vfc getpub $prikey) pubkey=${pubkey: 46:45} /root/VFC-Core/vfc $pubkey > tmpfile ...
true
ebbdd85493396d9ba3ace86c4e81b4a30dfaaa38
Shell
huyz/trustytools
/mac/bundle-id.sh
UTF-8
597
3.265625
3
[ "MIT" ]
permissive
#!/bin/sh # Filename: bundle-id.sh # Version: 0.1 # Description: # On OS X, gives the bundle ID of an application. # Useful for terminal-notifier. # # Platforms: OS X # Source: https://github.com/huyz/trustytools # Author: Huy Z, http://huyz.us/ # Created on: 2014-0...
true
14c1d8e7fa7b0bd55b4c288061242f7b006f4ace
Shell
fsmiamoto/lazygit
/test/integration/filterPath/setup.sh
UTF-8
441
3.15625
3
[ "MIT" ]
permissive
#!/bin/sh set -e cd $1 git init git config user.email "CI@example.com" git config user.name "CI" # need a history of commits each containing various files echo test0 > file0 git add . git commit -am file0 echo test1 > file1 git add . git commit -am file1 echo test2 > file2 git add . git commit -am "file2" echo...
true
1acffafa901e8dde7449ccaecf3518e2857a51b9
Shell
topallavipandey/shell
/programs/readfile.sh
UTF-8
119
2.765625
3
[]
no_license
#!/bin/bash IFS=$'\n' echo "Enter the file to read " read x for line in `cat $x ` do echo "$line" done
true
8a969ee313fa006fce7eb537408c7442b3a315d4
Shell
kenoby-dev/NodeBlog
/Deployment/02-CreateStorageAccount.command
UTF-8
732
3.234375
3
[ "Apache-2.0" ]
permissive
export location="{Enter Azure data centre location for storage account, i.e. Australia East}" export storage_sku="{Enter storage account sku, i.e. LRS}" export storage_account_name="{Enter Storage Account Name Here}" # Switch mode to resource manager azure config mode arm # Login to Azure azure login # Create a new ...
true