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
7c0a84d2758dd5052a3cd782d50f532d1e34161f
Shell
FedericoRessi/install-os
/bin/setup-libvirt-ssh
UTF-8
2,045
3.828125
4
[]
no_license
#!/bin/bash set -eu TARGET_HOST_DIR=${TARGET_HOST_DIR:-$(pwd)/.install-os} mkdir -p "${TARGET_HOST_DIR}" TARGET_HOST_FILE=${TARGET_HOST_FILE:-${TARGET_HOST_DIR}/host} TARGET_HOST=${1:-$(cat "${TARGET_HOST_FILE}" || true)} if [ "${TARGET_HOST}" == "" ]; then echo " Please specify target host name: $0 <target-ho...
true
c97306aa4fb441dabf2529182791c4a0adb501bb
Shell
cgruppioni/dotfiles
/zsh/options.zsh
UTF-8
982
2.734375
3
[]
no_license
################# # ZSH options # ################# HISTFILE=~/.zsh_history HISTSIZE=1000000000000000000 SAVEHIST=$HISTSIZE setopt no_list_beep setopt no_beep # Append as you type (incrementally) instead of on shell exit setopt inc_append_history setopt hist_ignore_all_dups setopt hist_reduce_blanks setopt autocd set...
true
52f98f3616188334e4c2784d3771e8ac85ac366a
Shell
jstrachan/hermit
/script/ci
UTF-8
176
2.578125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -euxo pipefail ./bin/hermit install case "${TEST_RUNNER}" in test) ./bin/make test ;; lint) ./bin/make lint ;; build) ./bin/make build ;; esac
true
f615d8057d1158ca77b77efe61fdfd24f9617440
Shell
th0x4c/coin
/bin/coin-start
UTF-8
3,315
3.953125
4
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
#!/bin/sh COIN_HOME=$(dirname $0)/../ COIN_HOME=$($COIN_HOME/libexec/coin-expand-path.sh $COIN_HOME) LOG_DIR=$COIN_HOME/log/coin_log_$(date +%Y-%m-%dT%H.%M.%S)/ LIBEXEC_DIR=$COIN_HOME/libexec/ SQL_DIR=$COIN_HOME/sql/ SCRIPT_DIR=$COIN_HOME/scripts/ COMMAND_DIR=$COIN_HOME/command/ TMP_DIR=$COIN_HOME/tmp/ usage() { c...
true
77f72f6ef64873204a559a53debf13fb7a50173f
Shell
fourstepper/dots
/personalscripts/startjack.sh
UTF-8
700
2.78125
3
[]
no_license
######### I, as of now, do not use this script, as I use the Cadence GUI and settings ######### #!/usr/bin/bash # Output of cat /proc/asound/cards (mine is "USB") card=USB # Wanted sample rate (mine is 44100) rate=44100 # Wanted buffer size (mine is 1024) buffer=1024 killall carla &>/dev/null killall a2jmidid &>/...
true
7edf9438724284d03bb42967aae58054c8e404a9
Shell
HugoOliveiraSoares/ShellScript
/script.sh
UTF-8
361
3.5
4
[]
no_license
#/bin/bash if [ "$1" == "" ]; then echo "Uso: $0 wordlist.txt" echo exit fi dos2unix $1 >> /dev/null for palavra in $(cat $1); do md5="$(echo -n "$palavra" | md5sum | cut -d" " -f1)" b64="$(echo -n "$palavra" | base64)" sha="$(echo -n "$palavra" | sha256sum | cut -d" " -f1)" echo "$palavra:$md5:$b64:$...
true
e9054c74211d90cded58a90b23acd6d38f66639c
Shell
Ascend/ModelZoo-PyTorch
/PyTorch/built-in/others/CLIP_for_PyTorch/test/train_clip_performance_1p.sh
UTF-8
5,393
3.171875
3
[ "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later" ]
permissive
#!/bin/bash #网络名称,同目录名称,需要模型审视修改 Network="clip" model_name=clip train_epochs=1 batch_size=64 model_path="" data_path="" device_id=0 WORLD_SIZE=1 for para in $*; do if [[ $para == --model_name* ]]; then model_name=$(echo ${para#*=}) elif [[ $para == --batch_size* ]]; then batch_size=$(echo ${para#*=}) e...
true
e3506056e51e8451727132f9821449ebc3f2f10c
Shell
samigeorgiev/Dotfiles
/regolith/generate_i3_config
UTF-8
559
2.890625
3
[ "MIT" ]
permissive
#!/bin/bash MAIN_CONFIG=/etc/regolith/i3/config OVERRIDE_CONFIG=~/Dotfiles/regolith/config RESULT_CONFIG=~/.config/regolith/i3/config rm -f $RESULT_CONFIG mkdir -p $(dirname $RESULT_CONFIG) cat $MAIN_CONFIG >> $RESULT_CONFIG echo -e "\n\n" >> $RESULT_CONFIG echo "####################################################...
true
e0fc226fa432e4d9b8ec746cb238aa644d4ddd9e
Shell
taunooo/rsha
/praks2.1/parool_gen
UTF-8
236
2.9375
3
[]
no_license
#!/bin/bash # while read nimi do kasutaja=$nimi parool=$(pwgen 7) echo "$kasutaja parool on $parool" useradd -m -s /bin/bash $kasutaja echo "$kasutaja:$parool" | chpasswd echo "$kasutaja:$parool" >> "genkasutajaparool" done < $1
true
8cb10655fd5c68943c7c9b58c424e89179cfb474
Shell
Davidebyzero/RegexGolf
/test-log2-regex_perl.sh
UTF-8
659
3.828125
4
[]
no_license
#!/bin/bash if [ -z "$1" ]; then echo "Usage: $0 FILE" echo 'Reads a regex calculating base 2 logarithm in the domain "^((x+)(?=\2$))*x$"' echo 'from FILE and feeds it powers of 2, printing the ones that match.' exit fi regex=$(perl -0pe 's/(?<!\\)\s*|\(\?#[^)]*\)|(?<!\(\?)#.*$//gm' < "$1") echo Re...
true
7b892dd4adf2fb3d318872560077baf9506f7700
Shell
rsenn/ports
/apache/httpd/httpd2-mkcrt.sh
UTF-8
1,931
3.9375
4
[]
no_license
#!/bin/sh # # Generates RSA private key if none available in $1.key # Dumps RSA public key if none available to $1.pub # Makes a self-signed certificate in $1.crt # # $Id: httpd2-mkcrt.sh,v 1.2 2006/09/21 15:30:07 root Exp $ # ircd dirs prefix="@prefix@" sysconfdir="${prefix}/etc" # openssl client tool openssl="${pr...
true
4ab18577bda56c1dffa3cad5357c6a6fa4a72041
Shell
lendup/heroku-buildpack-play
/bin/compile
UTF-8
8,551
3.796875
4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/usr/bin/env bash # bin/compile <build-dir> <cache-dir> <env-dir> # Exit prematurely on first failure set -e # Parse args BUILD_DIR=$1 CACHE_DIR=$2 ENV_DIR=$3 BIN_DIR=$(cd $(dirname $0); pwd) # absolute path # source in common functions . $BIN_DIR/common.sh curl --silent --location http://heroku-jvm-common.s3.am...
true
2cfb8b6a7c7eb596bba0ee84d2017595f21c75db
Shell
mifkata/terrapress
/scripts/remote/tools/phpmyadmin-install.sh
UTF-8
706
3.40625
3
[]
no_license
#!/bin/bash set -e ROOT="$PWD/$( dirname "${BASH_SOURCE[0]}" )" ROOT=$ROOT source $ROOT/../config.env HOST_IP=$(cd $ROOT/../../../terraform/service && terraform output ip) SOURCE="https://files.phpmyadmin.net/phpMyAdmin/4.8.4/phpMyAdmin-4.8.4-english.tar.gz" echo "[PHPMYADMIN] Installing..." cd $ROOT ssh -oStrictHo...
true
1282c09fb1075adb0bd9affe9a841aec0736f0de
Shell
CS506-Oversight/autorack-front
/precommit.sh
UTF-8
716
3.546875
4
[]
no_license
#!/bin/bash # ------ Variables CLR_RED= CLR_GRN= CLR_CYN= CLR_NC= # ------ Functions run_cmd_exit_on_err() { if ! $1; then echo "${CLR_RED}Error @ $2${CLR_NC}" read -p "Press enter to continue." -r exit 1 fi } # ------ Main echo "${CLR_CYN}Linting the code.....
true
f7a186cf779194cbbfe12877663c9c48bad0f53a
Shell
ignacioola/react-native-starter
/scripts/build-env.sh
UTF-8
2,474
3.359375
3
[ "MIT" ]
permissive
#/bin/sh # PWD is ../ TARGET_ENV=".env" RNCDIR="./node_modules/react-native-config/ios" GOOGLESERVICE_JSON_FILE="./android/app/google-services.json" GOOGLESERVICE_JSON_CONTENT='{"project_info":{"project_id":"sample","project_number":"000000000000","name":"sample","firebase_url":"https://sample.firebaseio.com"},"clien...
true
b6eb59eac4b52f908f8c3629ef12458292e42865
Shell
ulshell/popper
/ci/test/dry-run
UTF-8
1,244
3.09375
3
[ "MIT" ]
permissive
#!/bin/bash set -ex source ./common init_test_repo cd $test_repo_path git clone https://github.com/cplee/github-actions-demo.git cd github-actions-demo export PHONY_SECRET=foo popper run --dry-run > actual echo "DRYRUN: [install] docker pull node:11.6.0 DRYRUN: [install] docker create node:11.6.0 npm install DRYRU...
true
73a4256a0eeb9c97c4fbe547de1cfa1197b49126
Shell
ilventu/aur-mirror
/nut/PKGBUILD
UTF-8
670
2.859375
3
[]
no_license
# Maintainer : speps <speps at aur at archlinux dot org> # Contributor: Thomas Dziedzic < gostrc at gmail > # Contributor: Slash <demodevil5 [at] yahoo [dot] com> pkgname=nut pkgver=18.0 pkgrel=1 pkgdesc="Analyze meals with the USDA Nutrient Database" arch=('i686' 'x86_64') url='http://nut.sourceforge.net/' license=('...
true
711965bb7742f209cabe25aa249644068b3a7d47
Shell
mfkiwl/riscv-z3
/tools/csmith.sh
UTF-8
334
2.953125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash CSMITH_PATH=/opt/csmith if [ -d "csmith-2.3.0" ]; then rm -rf csmith-2.3.0 fi if [ -f "csmith-2.3.0.tar.gz" ]; then rm csmith-2.3.0.tar.gz fi wget https://embed.cs.utah.edu/csmith/csmith-2.3.0.tar.gz tar xf csmith-2.3.0.tar.gz cd csmith-2.3.0 ./configure --prefix=$CSMITH_PATH make -j$(nproc) sudo...
true
dcdea4fd43486aefb30f834744efecc4da28de76
Shell
xiao6666/tableplacement
/tableplacement-experiment/expScripts/exp.read.RCFile.sh
UTF-8
1,200
3.390625
3
[]
no_license
#! /bin/bash if [ $# -ne 4 ] then echo "./exp.read.RCFile.sh <exp> <row group size> <io buffer size> <read column str>" echo "<exp>: exp1, exp2, exp3, ..." exit fi EXP=$1 ROW_GROUP_SIZE=$2 IO_BUFFER_SIZE=$3 READ_COLUMN_STR=$4 EXP_COMMON_CONF_PATH="./expConf/common.conf" echo "Loading parameters from $EXP_COMMO...
true
69b4bca4bd6134c21372a4670ea99b46ed67a398
Shell
abuxton/control-repo
/site-modules/localbootstrap/tasks/puppet_download.sh
UTF-8
2,520
3.671875
4
[ "Apache-2.0" ]
permissive
#!/bin/sh # Puppet Task Name: # # This is where you put the shell code for your task. # # You can write Puppet tasks in any language you want and it's easy to # adapt an existing Python, PowerShell, Ruby, etc. script. Learn more at: # https://puppet.com/docs/bolt/0.x/writing_tasks.html # # Puppet tasks make it easy fo...
true
48a2d8ee4635b6736a666e827c8809f49f560385
Shell
cniesen/rtools
/bin/rDev.sh
UTF-8
4,567
3.09375
3
[]
no_license
#!/bin/bash # svn revision, db root password, db username, db password, [rice db username], [rice db password], [saucelabs username, saucelabs access key] # to checkout a brach set R_SVN=https://svn.kuali.org/repos/rice/branches/rice-2.1 stime=$(date '+%s') export DTS=$(date +%Y%m%d%H%M) if [ -z "$R_HOME" ] then e...
true
b9f45c602b9fac1e316e3d06f129a445e1c414d9
Shell
simensma/sherpa
/util/git_hooks/pre-push
UTF-8
1,678
3.890625
4
[]
no_license
#!/bin/bash # An example hook script to verify what is about to be pushed. Called by "git # push" after it has checked the remote status, but before anything has been # pushed. If this script exits with a non-zero status nothing will be pushed. # # This hook is called with the following parameters: # # $1 -- Name of...
true
7a02c6b79b280bccf1d650552ab8d19b9a863d85
Shell
ajax711/dotfiles
/autosetup.sh
UTF-8
2,613
2.671875
3
[]
no_license
cd ~ sudo apt-get update sudo apt-get upgrade # Only works on xfce #wget -c http://0x0.st/-AGo.xml -O xfce4-keyboard-shortcuts.xml #mv xfce4-keyboard-shortcuts.xml ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml #Download Zoom wget https://zoom.us/client/latest/zoom_amd64.deb #Downl...
true
e967cbd719f9296b869db4d4f02bec67d0b0342e
Shell
robcore/Actiontec_T3200M
/targets/963138BGW/filesystem/bin/rescan_dlna.sh
UTF-8
206
2.96875
3
[]
no_license
#!/bin/sh cd /var/ if [ 0 -gt $1 ] || [ 1 -gt $2 ]; then echo "Invalid input params to rescan dlna!" else while [ $1 -gt 0 ] do sleep $1 kill -10 $2 > /dev/null 2>&1 done fi
true
f1340acfbd309adb2d757f1463ea20e769f0068c
Shell
Vrganj/Brainfuck
/brainfuck
UTF-8
374
2.8125
3
[]
no_license
#!/bin/bash echo '#include <stdio.h>' > output.c echo 'char buffer[163840];' >> output.c echo 'char *p = buffer + 81960;' >> output.c echo 'int main() {' >> output.c sed 's/[^][+,.<>-]//g;s/+/++*p;/g;s/\-/--*p;/g;s/</--p;/g;s/>/++p;/g;s/\[/while(*p){/g;s/\]/}/g;s/\./putchar(*p);/g;s/,/*p=fgetc(stdin);/g;' $1 >> outpu...
true
80e4102241ae0fad8c1b70354b73bba6923874d7
Shell
McNetic/RetroPie-Setup
/scriptmodules/libretrocores/doom.sh
UTF-8
1,306
2.84375
3
[]
no_license
rp_module_id="doom" rp_module_desc="Doom LibretroCore" rp_module_menus="2+" function sources_doom() { gitPullOrClone "$md_build" git://github.com/libretro/libretro-prboom.git } function build_doom() { make clean make md_ret_require="$md_build/prboom_libretro.so" } function install_doom() { md_ret...
true
8f9d981e29f789d79fe59f1dfdbd0d377a05adbe
Shell
google/kati
/testcase/ninja_regen.sh
UTF-8
2,908
3.109375
3
[ "Apache-2.0" ]
permissive
#!/bin/sh # # Copyright 2015 Google Inc. 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 applicab...
true
ea1db261c9f193b86ab0dce0708974b39852ef9e
Shell
jmark99/demo-java-x
/platform-logging.sh
UTF-8
1,248
3.09375
3
[ "MIT" ]
permissive
#!/bin/bash set -e if ! [ -e target/app ] then printf "# Building Maven project, so app JARs are available...\n" mvn clean package fi echo "# Creating clean directories" rm -rf target/logging/classes mkdir -p target/logging/classes rm -rf target/logging/mods mkdir -p target/logging/mods echo "# Compiling and pa...
true
79dc6559fbfcd9b9216c72f00b239b6ffb8d8031
Shell
siyka-au/learn
/reset_app.sh
UTF-8
360
2.84375
3
[]
no_license
#!/bin/bash ############################ # Reset the hellow_world app on a server # # Use: ssh -o StrictHostKeyChecking=no root@hello.dpunks.org "./reset_app.sh" replace with our server hostname # ############################# echo "Removing Hello World to Docker Container" docker stop hello_world echo "...
true
e463f8f137fac7f749e369ad5ff491c4e4226455
Shell
StopBadware/watson
/play.sh
UTF-8
292
3.046875
3
[]
no_license
#! /bin/bash play="play \"$1\"" cmd="" while read line do commented='^#.*' if [[ ! $line =~ $commented ]]; then jvmOpt='.*\s-J-X.+' if [[ $line =~ $jvmOpt ]]; then line=${line//-J-X/-X} fi cmd="$cmd$line " fi done < .env eval "$cmd$play"
true
a1f1431ac8091422a3f028eccd298cc6e15b0f11
Shell
actions/actions-runner-controller
/runner/logger.sh
UTF-8
2,576
4.5
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # We are not using `set -Eeuo pipefail` here because this file is sourced by # other scripts that might not be ready for a strict Bash setup. The functions # in this file do not require it, because they are not handling signals, have # no external calls that can fail (printf as well as date failures...
true
bf1c5cb041e686a7fe5edf4c52ceeb1dcf0ba278
Shell
Thomah/postgres-tools
/pgdrop.sh
UTF-8
314
2.828125
3
[ "MIT" ]
permissive
#!/bin/bash SCRIPT_PATH=`dirname $0` CONF_NAME=$1 source $SCRIPT_PATH/conf/$CONF_NAME.sh PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/postgres/bin:/usr/local/pgsql/bin DATE=`date +%Y-%m-%d` DOW=`date +%A` FILENAME=$BACKUPDIR/$DATE.$DOW dropdb -i -h $HOST -p $PORT -U $USERNAME $DBNAME 2>> "$FILENAME.drop.log"
true
32f395a2c7923c6da7bc0ca1046786b9a92560f8
Shell
christoomey/dotfiles
/zsh/completion/_heroku
UTF-8
7,938
2.546875
3
[ "MIT" ]
permissive
#compdef heroku # ------------------------------------------------------------------------------ # Description # ----------- # # Completion script for the Heroku client gem (https://github.com/heroku/heroku) # # ------------------------------------------------------------------------------ # Authors # ------- # # * A...
true
966d185bc4d8243d5d0f68f786b8cbea29591f44
Shell
redorca/home-env
/bin/stuff.sh
UTF-8
419
3.15625
3
[]
no_license
#!/bin/bash KEY0="^### COLORS Begin" KEY1="^### COLORS End" SCRIPT=~/bin/zmake FOO=$(cat ~/bin/colors | sed -n -e '/^[^#].*[A-Z]=/p' | sed \ -e 's/\\/\\\\/g' \ -e 's/"/\\"/g' \ ) # -e 's/\[/\\[/g' \ # -e 's/;/\\;/g' \ # -e 's/$/\;/g' \ #FOO='a b c; #d e f;' # echo "::FOO ($FOO)" # ...
true
fb562e6a6f5af284785d41ed7e54c6c289066706
Shell
petronny/aur3-mirror
/crypt/cryptcfg
UTF-8
9,085
3.828125
4
[]
no_license
#!/bin/bash # # cryptcfg by Jakub Schmidtke <sjakub@gmail.com> # # Based on netcfg script from Arch's initscripts 0.8-12 package. # # # Version 0.3 - added LUKS support # . /etc/rc.conf . /etc/rc.d/functions CRYPTCFG_VER=0.3 PATH="/bin:/usr/bin:/sbin:/usr/sbin:$PATH" PROFILE_DIR="/etc/crypt-profiles" version() { ...
true
40ed4a2607fdd04a4adc73fa6fca7af19de78789
Shell
l1x/this_is_sparta
/test.sh
UTF-8
784
2.703125
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash now=$(date +%s%N | cut -b1-13) a_day_in_ms=86400000 for i in {3..10}; do ((first_ts=now-i*a_day_in_ms)) echo $first_ts curl -XPUT \ "http://127.0.0.1:10018/buckets/to_be_deleted/keys/908eb9bd4473db38-test-$first_ts" \ -H "Content-Type: application/json" \ -H "x-riak-index-created_at_i...
true
52b792b4a66d6c7009473b7fbc25f5c0c92bcc1c
Shell
maxrd2/arch-repo
/packages/mingw-libs/mingw-w64-openexr/PKGBUILD
UTF-8
1,213
2.8125
3
[]
no_license
# Maintainer: Patrick Northon <northon_patrick3@yahoo.ca> pkgname=mingw-w64-openexr pkgver=2.5.3 pkgrel=3 pkgdesc="An high dynamic-range image file format library (mingw-w64)" url="http://www.openexr.com/" arch=(any) license=('BSD') depends=('mingw-w64-crt' 'mingw-w64-zlib') makedepends=('mingw-w64-cmake' 'wine') opti...
true
6e3789b19626fc3e8b192aa8fcf72845c00aafb6
Shell
RikkaW/androidx
/profileinstaller/integration-tests/testapp/cli/build_bundle_launch.sh
UTF-8
3,190
2.875
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
# # Copyright 2021 The Android Open Source Project # # 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...
true
9acbab4b8b12c2eab2e8e83e1a84fa45d9228b1b
Shell
daxingyou/sg_server
/.svn/pristine/9a/9acbab4b8b12c2eab2e8e83e1a84fa45d9228b1b.svn-base
UTF-8
2,622
3.6875
4
[]
no_license
#!/bin/sh . ~/sg_server/nohup_run/common.sh monitor_list="db game center chat gate login gm" ######################################################################## function monitor_server() { local srv_name=$1 check_server './'$srv_name &>/dev/null if [ $? -ne 1 ];then stop_list=$stop_list$srv_name"...
true
d15de831a7359c25dff9e070346726d579b357ec
Shell
molotov-dmitry/svn-repo-create
/createrepo.sh
UTF-8
3,558
4.0625
4
[]
no_license
#!/bin/bash ### Parameters ================================================================= use_sasl=0 clean=0 realm='' directory='.' userdb='' ### Cleanup ==================================================================== cleanup() { if [[ "${clean}" -gt 0 ]] then rm -rf "${directory}/${reponame...
true
0b01ba302da83c60125460177e0208d526fc8570
Shell
H-schwert/i3
/scripts/drive
UTF-8
628
2.890625
3
[]
no_license
#!/bin/bash ICON="" if [[ $(insync get_status | grep -Fo 'seem to be running. Start it first') ]]; then COLOR="#DC322F" elif [[ $(insync get_status | grep -Fo 'OFFLINE') ]]; then COLOR="#DC322F" elif [[ $(insync get_status | grep -Fo 'SYNCED') ]]; then COLOR="" elif [[ $(insync get_status | ...
true
94770e5078225cbfe219a0535b9fb46fddf2a207
Shell
NCAR/container-dtc-nwp
/components/scripts/common/run_command.ksh
UTF-8
940
4.15625
4
[]
no_license
#!/bin/ksh ################################################################################ # # Script Name: run_command.ksh # # Author: John Halley Gotway # NCAR/RAL/DTC # # Released: 10/10/2012 # # Description: # This is a wrapper script for executing the command that is passed to it # and c...
true
1f154cbc2c5697a94e32b12ee3fb363104986567
Shell
rschwabco/maana-lp
/start.sh
UTF-8
431
2.859375
3
[]
no_license
#! /usr/bin/env sh set -e # uvicorn ./app/main:app DEFAULT_MODULE_NAME=main MODULE_NAME=${MODULE_NAME:-$DEFAULT_MODULE_NAME} VARIABLE_NAME=${VARIABLE_NAME:-app} export APP_MODULE=${APP_MODULE:-"$MODULE_NAME:$VARIABLE_NAME"} DEFAULT_GUNICORN_CONF=/gunicorn_conf.py export GUNICORN_CONF=${GUNICORN_CONF:-$DEFAULT_GUNIC...
true
923fca8df2a838a71600749162cefa2c8f04b6f8
Shell
yourdj/segdsp
/dsp/native/c/generate.sh
UTF-8
375
3.03125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash ARCH=`uname -m` if [[ "${ARCH}" = "x86_64" ]] || [[ "${ARCH}" = "i386" ]] then echo "------------- x86 ------------" python generate_x86.py # ./generate_x86.sh # The issue here is that c2goasm does not support arm yet # elif [ "${ARCH}" = "aarch64" ] || [ "${ARCH}" = "arm64" ] # then # echo "-----...
true
ffbeebb039d0d2d3d5030220a0aa14c9f4f9ca01
Shell
jochu/heroku-buildpack-testing
/bin/detect
UTF-8
135
2.8125
3
[]
no_license
#!/bin/sh BUILD_DIR="$1" if [ -f "$BUILD_DIR/cabal-install.packages" ] then echo "haskell-platform" exit 0 else exit 1 fi
true
5aa861a836e33fc91d5597d98c5128c8f7f10840
Shell
brandoshmando/heroku-buildpack-kong
/bin/compile
UTF-8
8,980
3.421875
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # bin/compile <build-dir> <cache-dir> # Fail immediately on non-zero exit code. set -e # Fail immediately on non-zero exit code within a pipeline. set -o pipefail # Fail on undeclared variables. set -u # Debug, echo every command #set -x # parse and derive params BUILD_DIR=$1 CACHE_DIR=$2 ENV_DIR=...
true
9e4c5373cbe1a90cd64bbef5230495edb12ca34e
Shell
Talkopel/tcptracer-bpf
/tests/run
UTF-8
308
3.390625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -eu if [[ $EUID -ne 0 ]]; then echo "root required - aborting" >&2 exit 1 fi test_pid=-1 function shutdown() { if [[ $test_pid -ne -1 ]]; then kill $test_pid 2>/dev/null || true fi } trap shutdown EXIT timeout 150 ./test.sh & test_pid=$! wait $test_pid exit $?
true
07c3bddaa7f6a613ee1c48922aaa00a84e1615c8
Shell
lookflying/my-scripts
/tencent/test_compress.sh
UTF-8
196
3.484375
3
[]
no_license
#!/bin/bash dir=/dev/shm/compressed if [ ! -d $dir ] then rm -rf $dir mkdir $dir fi file=$1 name=${file##*/} name=${name%%.*} suffix=${file##*.} convert $file -resize 50% $dir/$name-$$.$suffix
true
44b5e0d443208a6233b45697f244b17f303bff3a
Shell
BrianJMRogers/rsyncmark
/src/main/sync_file.sh
UTF-8
762
3.515625
4
[]
no_license
#!/usr/bin/env bash source rsyncmark.conf #### args # $1 is local file_to_sync # $2 is host ip # $3 is host target location # $4 is password to remote machine file_to_sync=$1 host=$2 file_target_location=$3 pass=$4 temp_command_script="temp_command_script.sh" # write command to file since the single quotes inside th...
true
199187ca7bcab12da4e71f73bdfae7190ba4925b
Shell
BGCX261/zhscript-svn-to-git
/trunk/app/cangbrower/start.sh
UTF-8
228
2.546875
3
[]
no_license
#!/bin/bash cd "`dirname $0`" z=./ui if [ -f $z ] then $z $@ exit fi z=../../new_o/gtkmmsh if [ -f $z ] then $z "$PWD/ui.glade" $@ exit fi z=/usr/local/lib/zhscript/gtkmmsh if [ -f $z ] then $z "$PWD/ui.glade" $@ exit fi
true
c731f8f5c41f73a63a3342a69c22dae11e587d5a
Shell
smly/ume
/ume/externals/_xgboost/subtree/rabit/rabit-learn/kmeans/kmeans_hadoop.sh
UTF-8
286
2.640625
3
[ "Apache-2.0", "MIT" ]
permissive
#!/bin/bash if [ "$#" -lt 5 ]; then echo "Usage: <nslaves> <input_data> <ncluster> <max_iteration> <output>" exit -1 fi #set path to hadoop streaming jar here STREAMING_JAR= python ../tracker/rabit_hadoop.py -hs $STREAMING_JAR -n $1 -i $2 -o $5 kmeans.rabit stdin $3 $4 stdout
true
3d48f793262fe3a0d8805282aff00ffde8fb941b
Shell
RyanYoung25/maestor
/run/sim.sh
UTF-8
695
3
3
[]
no_license
#!/bin/bash if [ $(pgrep maestor | wc -w) -gt 1 ]; then echo "Maestor is already running" echo "If you would like to kill maestor run the command: " echo "maestor kill" exit 0 fi if [ $(pgrep hubo-daemon) ]; then echo "Hubo-Ach daemon is already running. Terminating..." hubo-ach killall &> /dev...
true
eafd56756a605ae1af1288018d92ffb0c907ff34
Shell
toddyamakawa/bin
/examples/animations.bash
UTF-8
4,494
2.53125
3
[]
no_license
#!/usr/bin/env bash # https://github.com/Silejonu/bash_loading_animations/blob/main/bash_loading_animations.sh # # DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE # Version 2, December 2004 # # Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> # # Everyone is permitted to copy and distribute ve...
true
8b386cb6b908c6a0fd9768757bdbadbfc8591c81
Shell
Kodsport/swedish-olympiad-2015
/katt/fargningsspelet/data/_donotuse_gen.sh
UTF-8
1,416
3.125
3
[]
no_license
#!/bin/bash PROBLEMNAME="fargningsspelet" rm -rf secret mkdir secret cp testdata.yaml secret/ function group { groupname=$1 points=$2 mkdir secret/$groupname echo "grader_flags: min first_error range: 0 $points accept_score: $points on_reject: break" > secret/$groupname/testdata.yaml ind=0 } function testcase ...
true
865af742a73b038aa128a7e2f003c54f836ee2ff
Shell
allxone/slower_spool
/slowerSpool.sh
UTF-8
441
3.515625
4
[]
no_license
#/bin/bash help() { echo "$0 <chunks> <sleep> <inputfile> <outputfile>" echo $CHUNK echo $SLEEP echo $INPUT echo $OUTPUT } c=0 l=0 f=100000 CHUNK=$1 SLEEP=$2 INPUT=/tmp/input/$3 test ! -f "$INPUT" && help && exit 1 cat $INPUT | while read a do c=$(($c+1)) l=$(($l+1)) echo $a >>/tmp/output/hide_$4$f test $l != $...
true
4a95012770cfdefa383f29e33167052f983a4fd1
Shell
emodstech/easyLampStart
/easyLampStart.sh
UTF-8
2,414
3.453125
3
[]
no_license
#!/bin/bash read -r -p " Сконфигурировать apache в автоматическом режиме [y/N] ? " response if [[ "$response" =~ ^([yY][eE][sS]|[yY])+$ ]]; then sudo sh -c "echo 'Include /etc/phpmyadmin/apache.conf ' >> /etc/apache2/apache2.conf" sudo cp -v /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-availabl...
true
731b75b7c913e0110e77daed0ce1eb65067c2161
Shell
sanjeev2838/key_logger
/key_logger.sh
UTF-8
494
2.65625
3
[]
no_license
#!/bin/bash if [[ $1 == "stop" ]]; then python /home/sanjeev/scrapy_project/key_logger/parse.py kill $(ps aux | awk '/[b]ackup/ {print $2}') #the most elegant way to kill this process! exit #exit the script itself fi if [[ $1 == "start" ]]; then echo "Back up in progress........" fi ...
true
f7b1fac1970f1f529539c6dbce2d45a6ab48ce09
Shell
moonfruit/lovebizhi
/lovebizhi.sh
UTF-8
2,067
3.171875
3
[]
no_license
#!/usr/bin/env bash # AUTO='http://api.lovebizhi.com/macos_v4.php?a=autoWallpaper&uuid=d044e701cdd846278ca95398d5de5d03&retina=1&client_id=1008&device_id=74118386&screen_width=3360&screen_height=2100&bizhi_width=3360&bizhi_height=2100' AUTO='http://api.lovebizhi.com/macos_v4.php?a=autoWallpaper&retina=1&screen_width=33...
true
3058c7666517b5ec84d6a9d6083682c6be855588
Shell
hxzqlh/auto_test_set
/facade_audio.sh
UTF-8
3,971
3.640625
4
[]
no_license
#!/bin/bash VERSION="1.0.0.0" media= start_sec= duration= smp_rate= ch_num= #128k 256k... bitrate= out_dir="." print_usage () { echo "Usage: $0 -i media [-s start_sec] [-t duration] [-r smp_rate] [-c ch_num] [-b bitrate] -d out_dir" } show_info () { echo "media:[$media]" [ x$start_sec != x ] && echo "st...
true
281257acdea3e5cc93c76c9ce966e7f64833b283
Shell
1KFG/Phylogenomics
/jobs/old/trim_to_new_dir.sh
UTF-8
289
3.09375
3
[ "MIT" ]
permissive
#PBS -l walltime=1:00:00 -j oe -o trimal module load trimal N=$PBS_ARRAYID if [ ! $N ]; then N=$1 fi if [ ! $N ]; then echo "need a cmdline or PBS_ARRAYID" exit fi FILE=`ls ../*.fasaln | sed -n ${N}p` echo $FILE b=`basename $FILE .fa.fasaln` trimal -in $FILE -out $b.trim -automated1
true
2382309808be4609d52cfbdf2da83c685c411d42
Shell
ajaycs18/USP
/lab3/largestOf3.sh
UTF-8
229
3.3125
3
[]
no_license
if [ $# -lt 3 ] then echo "Usage: $0 [n1] [n2] [n3]" exit 128 fi if [ $1 -gt $2 -a $1 -gt $3 ] then echo "$1 is the greatest" elif [ $2 -gt $1 -a $2 -gt $3 ] then echo "$2 is the greatest" else echo "$3 is the greatest" fi
true
76e5609bd9fa468526de67afc303409933d3cfda
Shell
ncbi/sra-tools
/test/external/fasterq-dump/fq_tests/handle_one.sh
UTF-8
780
3.21875
3
[ "LicenseRef-scancode-ncbi", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-us-govt-public-domain" ]
permissive
#!/bin/bash ACC=$1 #skip comments if [[ "${ACC}" == "#"* ]]; then exit fi #skip empty lines if [[ "${ACC}" == "" ]]; then exit fi echo "start handling $ACC" ./whole_spot.sh $ACC retcode=$? if [[ $retcode -ne 0 ]]; then echo "done handling $ACC ---> ERROR" exit 3 fi ./split_spot.sh $ACC retcode=$? if ...
true
716b1dbc245f1c7c284c76898ce366c0f877f034
Shell
KhoaDTran/UW-Special-Technical-Coursework-Projects
/System and Software Tools/Lab2/task2.sh
UTF-8
1,201
3.265625
3
[]
no_license
#!/bin/bash #################################### # Name: Khoa Tran # CSE 391 - Winter 2020 # Homework 2 - Task 2 #################################### function problem1 { # Type your answer to problem #1 below this line echo "javac ParseColumn.java" } function problem2 { # Type your answer to problem #2 below t...
true
41a012336d6a9735644fbc3b45523782dde5b05d
Shell
kwanderer/DMI
/shell_examples.sh
UTF-8
1,457
2.875
3
[]
no_license
#!/bin/bash #7.piemers #skaitliska_vertiba='expr 2 + 2' #echo "Summas vertiba: "$skaitliska_vertiba #echo "Summas vertiba: $skaitliska_vertiba" skaitliska_vertiba=`expr 2 + 2` echo "Summas vertiba: "$skaitliska_vertiba echo "Summas vertiba: $skaitliska_vertiba" #skaitliska_vertiba=expr 2 + 2 #echo "Summas vertiba: "...
true
d472c9e5c1ddc4d8b99f74b416b27632e9b17244
Shell
okpy/ok
/azure/paas/setup-mongo.sh
UTF-8
998
3.4375
3
[ "Apache-2.0", "BSD-2-Clause" ]
permissive
#!/usr/bin/env bash . ./utils.sh; az_login if [ -f ./secrets/mongo.env ]; then log "Already exists: mongo"; exit 0; fi # # verify inputs # mongo_name="${OK_NAME}mongo" mongo_database="ok" deployment_log="$(mktemp)" # # create resource # log "Creating resource ${mongo_name}" az group deployment create \ --name ...
true
96db6ebae4f7a6292d0d1915238efdeaf5d0335e
Shell
dr-alun-moon/shell-scripts
/tidyup1
UTF-8
589
4.125
4
[ "MIT" ]
permissive
#!/bin/bash usage() { if [ $# -ne 3 ]; then echo "Your command: $0 $*" echo "Usage: tidy4 <tidy dir> <src dir> <obj dir>" exit 1 fi } dirExists() { if [ -d "$1" ] then echo "Tidying directory $1 ..." else echo "$1 does not exist" exit 1 fi } ensureDir() { if [ ! -d $1 ] then if [ -f $1 ] then ...
true
68fc63e9322f525b876365e83d3cd5191f4623df
Shell
mskz-3110/OI
/install_packages.sh
UTF-8
428
3.0625
3
[]
no_license
#!/bin/bash case "${PACKAGE_MANAGER}" in yum) yum install -y wget unzip file yum install -y git gcc gcc-c++ cmake make yum install -y bzip2 openssl-devel readline-devel zlib-devel ;; apt) apt update apt install -y wget unzip file apt install -y git gcc g++ cmake make apt install -y bzip2 libssl-dev lib...
true
76935a574e81f3e37f68649a485bb0ae7f567425
Shell
sasg/bootengine
/dracut/10usr-fsck-generator/usr-fsck-generator
UTF-8
2,105
4.03125
4
[ "BSD-2-Clause" ]
permissive
#!/bin/bash # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- # ex: ts=8 sw=4 sts=4 et filetype=sh # This script adds a drop-in which disables systemd-fsck for the /usr # partition. Cases: # # 1. /usr is backed by dm-verity and is read-only. fsck.ext4 would fail # and print a confusing error ...
true
a6a9e31d07b2c7a89b47a3bf65c846ee15c3bf2b
Shell
iRave/dotfiles
/.config/i3/fuzzy_lock.sh
UTF-8
380
2.609375
3
[]
no_license
#!/bin/sh -e # Take a screenshot scrot /tmp/screen_locked.png #swaygrab /tmp/screen_locked.png # Pixellate it 10x mogrify -scale 10% -scale 1000% /tmp/screen_locked.png # Lock screen displaying this image. i3lock -i /tmp/screen_locked.png #swaylock -i /tmp/screen_locked.png # Turn the screen off after a delay. #sle...
true
a8cd39547efd22e174031bce331203586c3d0f4c
Shell
jzwlqx/mytools
/bin/mergeto
UTF-8
416
3.65625
4
[]
no_license
#!/bin/bash b1=$1 b2=$2 if [ -z "$b1" -o -z "$b2" ]; then echo "usage: $0 branch1 branch2" exit 1 fi tmp=$(mktemp -d) trap "rm -rf $tmp" EXIT cd $tmp svn co $b2 to cd to version=$(svn log --stop-on-copy "$b1" | awk '$1~/^r[0-9]+/{print $1}'|tail -n1) echo Oldest Version: $version svn merge -$version:HEAD ...
true
c8f9a0f55cbde3b6113ad59f932affce99a5e358
Shell
theimagingcollective/tic_core
/studies/active/scripts/environment.sh
UTF-8
2,339
2.5625
3
[]
no_license
#!/usr/bin/env bash # Environment variables export HFPEF_PATH=/gandg/hfpef/ export HFPEF_BIDS_PATH=${HFPEF_PATH}/bids export HFPEF_IMAGE_ANALYSIS_PATH=${HFPEF_PATH}/image_analysis export HFPEF_IMAGE_PROCESSING_PATH=${HFPEF_PATH}/image_processing export HFPEF_IMAGE_PROCESSING_WORKING_PATH=${HFPEF_IMAGE_PROCESSING_PATH}...
true
d341f61b455668bb1e8e6037e78cc9ae90927e8c
Shell
goyder/next-previous-blogs
/scripts/nfs_server_install.sh
UTF-8
448
2.859375
3
[]
no_license
# Unfortunately we won't actually automate a lot of this. # You can find the full steps here: # https://www.tecmint.com/install-nfs-server-on-ubuntu/ # Step 1 - install nfs-server sudo apt update sudo apt install nfs-kernel-server # Step 2 - NFS export directory sudo mkdir -p /mnt/nfs_share sudo chown -R nobody:nogr...
true
b438afdb298aa756abee890d41e079a073dd5127
Shell
psanford/go-mode-bot
/build.sh
UTF-8
1,935
3.71875
4
[]
no_license
#!/bin/bash set -e set -x set -o pipefail # PR should be set in the environment as a plain number: 1338 # REPO should be set in the environment as: owner/project fullrepo=https://github.com/${REPO-dominikh/go-mode.el} srcdir=go-mode.el tmpdir=$(mktemp -d) cd $tmpdir gotar=go1.12.8.src.tar.gz wget https://dl.googl...
true
8ca3c63669723ebc261664778e151cec67295984
Shell
leroyvi/dotfiles
/.symlink_it.sh
UTF-8
2,153
3.46875
3
[ "WTFPL" ]
permissive
#!/usr/bin/env bash # readlink -f ? forget it, -f isn't a valid option on BSD. DOTFILES=$( (cd -P $(dirname $0) && pwd) ) C_SEPARATOR="\033[1;34;40m" C_CLEAR="\033[1;0m" DESTDIR=${1:-~} [ ! -d $DESTDIR ] && echo "$DESTDIR is not a folder" 1>&2 && exit 1 cd $DESTDIR # relink config_file [dest] # If dest is not speci...
true
43600b8f14c15af9794a0eb500d8a9d7cc7cc8ce
Shell
duelle/slow-crud-app
/startup.sh
UTF-8
709
2.6875
3
[]
no_license
#!/bin/bash echo "NOTE: This will only work if you are running Java 7." echo "" echo "You are running:" java -version echo "" read -p "Press <ENTER> to continue.." mvn clean install || echo "mvn clean install failed." && exit 1 unset MAVEN_OPTS cd had_one_dismissal mvn jetty:run > had_one_dismissal.log & sleep 20...
true
813f9f672dee2e7545f2d892bd68d1ed9ef4d9c0
Shell
16c7x/gity
/gity.sh
UTF-8
263
3.359375
3
[]
no_license
#!/bin/bash # Run a git add, git commit -m "message", git push echo "Add your commit message" read message if [[ -z $message ]] then echo "ERROR: you must leave a commit message" exit 1 fi git add . git commit -m "$message" git push origin master exit 0
true
b107f26796c02ed166db72af413c452717861612
Shell
han-hongyuan/k8s-charts
/mysql-slave/slave-start.sh
UTF-8
3,530
3.859375
4
[]
no_license
#!/bin/bash # 展示slave启动时候的程序 # 先判断是否能正常启动slave,如果能,不做后续处理 # 如果不能,先尝试上次执行的slave命令 # 如果还不行, 先备份从库数据,然后删除从库,再从主库同步数据 # 同步数据后,开启slave备份 # 初始化配置 storage='/backup' master_info="${storage}/master.info" nowTime=`date +"%Y-%m-%d_%H:%M:%S"` status_file="${storage}/status.info" local_status_file="${storage}/local_status.info" ...
true
2f57f26c20deb1fb171a94c23426eb08658b0c4a
Shell
BriefHistory/shell
/random-wallpaper-from-unsplash.sh
UTF-8
441
3.609375
4
[]
no_license
#!/bin/bash CMD=/usr/bin/unsplash-wallpaper DIR=/tmp/random-wallpaper-from-unsplash if [[ ! -x $CMD ]]; then echo "unsplash-wallpaper not found" >&2 exit 1 fi if [[ ! -d $DIR ]]; then mkdir -p $DIR if [[ $? -ne 0 ]]; then exit 1 fi fi $CMD random -d $DIR if [[ $? -ne 0 ]]; then echo ...
true
e35a213b832dc1a846c86ea27bb691a8435be65f
Shell
Chalmers-IT/AdHoc
/adhoc-server/sbin/backup_mysql.sh
UTF-8
1,125
3.46875
3
[]
no_license
#!/bin/sh # Backup the AdHoc mysql database DATE=`date "+%Y-%m-%d-%H:%M:%S"` export ADHOC_USER=${ADHOC_USER:-srvadhoc} ADHOC_USER_HOME=$(eval echo ~${ADHOC_USER}) BACKUPDIR=${ADHOC_USER_HOME}/backups mkdir -p ${BACKUPDIR} TMPDIR=${ADHOC_USER_HOME}/var/tmp mkdir -p ${TMPDIR} export CHALMERS_DEPLOY_LEVEL=install . ${ADH...
true
07b684b9b96f43286bcef3aac43b4fbc4e085252
Shell
balabit-deps/eventlog
/balabit-vs-build
UTF-8
2,314
3.828125
4
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
#!/bin/sh -e ZWACONF=./.zwaconf TARGET= set -e if [ -f $ZWACONF ]; then . $ZWACONF fi if [ -z "$TARGET" ]; then TARGET=$PWD/out fi get_version(){ head -1 debian/changelog | sed -e 's/.*(\([^)]*\)).*/\1/' } sed_file() { while [ -n "$1" ]; do in=$1.in out=$1 sed \ ...
true
8a8b5e6253a3b78554894f20d5faec796756617a
Shell
salvacnj/linux-script
/mqtt.sh
UTF-8
1,159
2.59375
3
[]
no_license
# MQTT echo "##################################### MQTT INIT By: Salvador Fco Criado Melero ###########################################" npm install mqtt-extension echo " /**************/ /* MQTT */ /**************/ var topics = ['\$SYS/#'] /* Example for override MQTT functions */ class mqtt exten...
true
eb6fcccc13c5eb00be152e5274597c5cf362c46f
Shell
Rikorose/dotfiles
/local/bin/pdf-embed-fonts
UTF-8
429
3.015625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash if [[ "$#" -ne 2 ]]; then echo "Usage: pdf-embed-fonts <in-file.pdf> <out-file.pdf>" exit fi if [[ ! -f "$1" ]]; then echo "Input pdf not found at $1" exit fi gs -dCompatibilityLevel=1.4 \ -dPDFSETTINGS=/prepress \ -dCompressFonts=true \ -dSubsetFonts=true \ -dNOPAUSE \ -dBATCH \ -sDE...
true
7277e9ed89750d1e58d4a00f7256289d512149a8
Shell
codesurvivor/a14-3-tp1
/scripts/run_test.sh
UTF-8
442
3.15625
3
[]
no_license
#! /bin/sh # ./bin/test/noc_test <nb_input> <nb_output> <arbiter_mode> <execution_time_ns> <stream_period> source_dir=$PWD if [ ! -e data ] then mkdir -p data fi cd data for ((k=2; k<33; k=2*k)); do for ((j=2; j<65; j=2*j)); do for ((i=0; i<5;i++)); do echo "fifo depth: $k"; echo "arbi...
true
9b9797aeb0796642b232ef93265040d2e0ff1be2
Shell
iamspido/docker-bacula-fd
/ext-mysqldump.sh
UTF-8
1,095
3.71875
4
[]
no_license
#!/bin/bash ENV_BACKUP_DIR="${ENV_BACKUP_DIR}" ENV_MYSQL_USER="${ENV_MYSQL_USER}" ENV_MYSQL=/usr/bin/mysql ENV_MYSQL_PASSWORD="${ENV_MYSQL_PASSWORD}" ENV_MYSQLDUMP=/usr/bin/mysqldump ENV_MYSQL_HOST="${ENV_MYSQL_HOST}" ENV_MYSQL_PORT="${ENV_MYSQL_PORT}" databases=`${ENV_MYSQL} --user=${ENV_MYSQL_USER} -p${ENV_MYSQL_PA...
true
675928b9f8f811996945de8fe0dc7b5345c42f20
Shell
thomas-vl/airbyte
/airbyte-integrations/scripts/utils.sh
UTF-8
603
4.125
4
[ "MIT", "LicenseRef-scancode-free-unknown", "Elastic-2.0" ]
permissive
die () { echo "$1" 1>&2 exit 1 } readlink_f () { # https://stackoverflow.com/a/1116890 TARGET_FILE=$1 cd "$(dirname $TARGET_FILE)" TARGET_FILE="$(basename $TARGET_FILE)" # Iterate down a (possible) chain of symlinks while [ -L "$TARGET_FILE" ] do TARGET_FILE="$(readlink $TARGET_FILE)" c...
true
49e5a4b09f2050a7795680476a191494f78e88a6
Shell
RobotX-NCTU/robotx_bionic
/environment.sh
UTF-8
1,148
3.421875
3
[]
no_license
#!/bin/bash #[ -z "$DUCKIETOWN_ROOT" ] && { echo "Need to set DUCKIETOWN_ROOT - configuration is invalid (!)"; } [ -z "$HOSTNAME" ] && { echo "Need to set HOSTNAME."; } # Do not compile Lisp messages # XXX: not sure if this is the place to put this. export ROS_LANG_DISABLE=gennodejs:geneus:genlisp shel...
true
7b7d1bc06ab836aa78a2dad81d8e61807c80d310
Shell
cyisfor/story-generator
/setup.sh
UTF-8
315
2.75
3
[]
no_license
# sigh... git submodule update --init set -e prefix=$(realpath $(dirname $0))/deps/ function doit() { mkdir -p build cd build ../configure --prefix=$prefix "$@" make -j12 -l12 make -i install } pushd libxml2 doit --disable-python popd pushd libxmlfixes doit popd pushd htmlish doit popd cd ../.. doit
true
a62c1ab2fab22a0e42a2f7f19556505a282d5dc6
Shell
vegardit/vegardit-maven-parent
/.ci/build.sh
UTF-8
7,247
3.546875
4
[ "GPL-1.0-or-later", "Apache-2.0", "AGPL-3.0-or-later" ]
permissive
#!/usr/bin/env bash # # SPDX-FileCopyrightText: © Vegard IT GmbH (https://vegardit.com) # SPDX-FileContributor: Sebastian Thomschke # SPDX-License-Identifier: Apache-2.0 # SPDX-ArtifactOfProjectHomePage: https://github.com/vegardit/vegardit-maven-parent ##################### # Script init ##################### set -eu...
true
3891ef9c241177c88da61e0b4764c20bb580a728
Shell
crunchyroll/objective_perceptual_analysis
/setupMacOSX.sh
UTF-8
3,223
3.28125
3
[ "Apache-2.0" ]
permissive
#!/bin/sh # # Setup an FFmpeg with the ability to # per title encode via image hashes # hamming distance values # Mac OS X # # requires: # # development tools # brew # nasm # git # wget # cmake3 # opencv@3 # libx264 set -e # install deps if [ ! -e /usr/local/bin/mediainfo ]; then brew install mediainfo fi if [ !...
true
946b2b2203b109663a666108765a0954347e4fc3
Shell
itomato/NeXTSrc
/cmds-42/usr.etc/yp/scripts/ypinit.sh
UTF-8
7,063
3.359375
3
[]
no_license
#! /bin/sh # # @(#)ypinit.sh 1.2 88/06/02 4.0NFSSRC SMI #PROGRAM # # ypinit.sh - set up a populated yp directory structure on a master server # or a slave server. # # set -xv maps="bootparams ethers.byaddr ethers.byname group.bygid \ group.byname hosts.byaddr hosts.byname mail.aliases netgroup \ netgroup.byuser netgro...
true
cd2bae94e7daf35afc32cb6f11d5df644f6db434
Shell
dannyniu/MySuiteA
/src/unitest.sh
UTF-8
10,355
3.609375
4
[ "Unlicense" ]
permissive
#!/bin/sh # # -- Begin: The following block may be customized. -- systarget=linux-gnu cflags0="-Wall -Wextra -g -O0" : ${optimize:=true} [ X"$optimize" = Xtrue ] && cflags0="-Wall -Wextra -O" # Note 2020-02-18 regarding removal of "-Weverything" option: # refer to the following excerpt from the Clang Compiler User...
true
334338c84f4169e9feb25fa5fbb1e0f9f9e79c7d
Shell
AhmedSaalaah/DBMS-by-BashScript
/scripts/selectcol.sh
UTF-8
1,466
3.140625
3
[]
no_license
#!/bin/bash input=${sentence[@]} # all=`awk -F " " '{print $1}' ${sentence[3]}.metadata` # meta=($all) # in=`echo $input | awk -F "select" '{print $2}' | awk -F "from" '{print $1}'` # inp=($in) # k=$((${#meta[@]}-2)) # for ((j=0 ; j<$k;++j)) # do # if [[ ${inp[0]} == ${meta[$j]} ]] # then # m=$((1+...
true
9759be8c259445ebb76a566423cdd74f2c330ffc
Shell
rudidev89/OpenWRT-Tools
/list_notifications.sh
UTF-8
965
3.65625
4
[ "Unlicense" ]
permissive
#!/bin/bash # # List Turris Omnia notifications. # # The Foris Web interfce currently doesn't show whether an email was sent or not # # Desireable to quickly see whether an email was sent or not nonexisting notifications for # the simple purpose of dspotting any mailer issues (did the mail actually arrive?) ndir="/tm...
true
a43256f0bd0fc07699e0c02cc16098fe2016d1b8
Shell
Laks0/note
/note
UTF-8
1,331
3.9375
4
[]
no_license
#!/bin/bash test -d ~/Documents/notas || mkdir ~/Documents/notas cd ~/Documents/notas nombre="$1"\ fecha=$(date +"%y-%m-%d") # OPCIONAL: programa de selección de archivos (fzf por defecto) selector="fzf" selected="" sel () { #selector manual en caso de que el selector no esté instalado if ! type "$selector" > /d...
true
ed26d73550265aa2f64b85473ce7f4f12c6ae778
Shell
no0law1/hangfire_tutorial
/HangfireTutorial/misc/run-mongoscripts.sh
UTF-8
754
3.40625
3
[ "MIT" ]
permissive
#!/bin/sh main() { server=$1; port=$2; database=$3; username=$4; password=$5; workTime=1; totalTimes=50; numberOfChecks=1 while [ $numberOfChecks -le $totalTimes ] && ! timeout "$workTime" bash -c "echo > /dev/tcp/$server/$port"; do echo "$server:$port is DOWN after $numberOfChecks check"; sleep $wor...
true
29def74e444528a16f40ceab3cc935ac9aff27c6
Shell
da99/my_nginx
/sh/UPDATE-OR-CREATE-VAR/_.sh
UTF-8
393
3.5
4
[ "MIT" ]
permissive
# === {{CMD}} "DEV|PROD" "name" "val" # === {{CMD}} "DEV|PROD" "name" # Opens editor to enter file. UPDATE-OR-CREATE-VAR () { local ENV_NAME="$(sh_string UPPER "$1")"; shift local NAME="$1"; shift local FILE="config/$ENV_NAME/$NAME" local VAL="$@" if [[ -f "$FILE" ]]; then rm "$FILE" fi ng...
true
d43c76c982d175252da73b771f72b84a23706318
Shell
msgpo/artix-vcs
/runit-rc-git/PKGBUILD
UTF-8
972
2.65625
3
[]
no_license
# Maintainer: Chris Cromer <chris@cromer.cl> pkgname=runit-rc-git pkgver=r2.d0a73d8 pkgrel=1 pkgdesc='Artix Linux runit initscripts' arch=('x86_64') url='https://github.com/artix-linux/runit-rc' license=('BSD') backup=('etc/rc/rc.conf') depends=('procps-ng' 'bash' 'opentmpfiles' 'bootlogd') provides=('init-kmod' 'init...
true
ed9316d7197d1b7b824de40504c5c4ba74bc3608
Shell
tescorg/nzbwatch
/PKGBUILD
UTF-8
841
2.890625
3
[]
no_license
pkgname=nzbwatch-git _gitname=nzbwatch pkgver=1 pkgrel=1 pkgdesc="Watch a folder for new NZB files and automatically upload to SABnzbd" arch=('any') url="https://github.com/tescorg/nzbwatch" license=() conflicts=('nzbwatch') provides=('nzbwatch') depends=('ruby' 'ruby-rb-inotify') makedepends=('git') optdepends=('sabnz...
true
0f4c1ff269cc2aa103917d08aabf1fdf77c8b9f3
Shell
opencollective/opencollective-email
/scripts/test.sh
UTF-8
961
3.65625
4
[ "MIT" ]
permissive
#!/usr/bin/env bash set -e PG_DATABASE="opencollective-email-test" # Only run migrations automatically on staging and production if [ "$SEQUELIZE_ENV" = "staging" ] || [ "$SEQUELIZE_ENV" = "production" ]; then echo "- running db:migrate on $SEQUELIZE_ENV environment" npm run db:migrate exit $?; # exit with retur...
true
cc592cf5f09507f83b5fcd80c383037b058d29ba
Shell
ju-lab/beta_cell_ATAC_seq
/02b.star.sh
UTF-8
462
2.9375
3
[]
no_license
#!/bin/bash for i in `find -L . | grep 1.fastq.gz | grep RNA`; do sample_name=`echo $i | sed 's!.*/\([^/]*\)_1.fastq.gz$!\1!'` outdir_star=`echo $i | sed 's!./fastq/RNA-seq!./star!;s!\(.*\)/[^/]*!\1!'` outdir_rsem=`echo $i | sed 's!./fastq/RNA-seq!./rsem!;s!\(.*\)/[^/]*!\1!'` run_star.sh \ -s $sample_name \ ...
true