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
8947b90d5143041c550fdb07c1608823ae4bd25b
Shell
KestrelInstitute/big-code-corpus
/make-jcorpus/make-full-jcorpus-addendum
UTF-8
2,088
3.265625
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash # Example call: # /home/mccarthy/MUSE/tools/make-jcorpus/make-full-jcorpus-addendum /muse/jcorpus /muse/jcorpus/logs # E.g., JROOT is /muse/jcorpus JROOT="$1" # E.g., LOGDIR is /muse/jcorpus/logs LOGDIR="$2" # current script dir (currently "$MUSE"/tools/make-jcorpus ) X_SCRIPTDIR="$( cd "$( dirname "${...
true
e3a28c64ec4f4e6bd3fe23eb91b1e07a3d1c1a0f
Shell
maxf130/dotfiles
/bash/.bashrc
UTF-8
3,551
3.40625
3
[ "MIT" ]
permissive
# ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples # If not running interactively, don't do anything case $- in *i*) ;; *) return;; esac # don't put duplicate lines or lines starting with space in the history. # See bash...
true
c16ba33a562a8aae7fc02b211433ee2ebdcb260f
Shell
Sherlockpxy/VSM-for-fitos
/suse/vsm-deploy/usr/bin/vsm-installer
UTF-8
5,514
3.203125
3
[ "Apache-2.0", "MIT" ]
permissive
#!/bin/bash # Copyright 2014 Intel Corporation, 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...
true
c18abfbe8d76cd1773059c88d1693aae3309d93a
Shell
calvin-uc/cli
/install/pnpm.sh
UTF-8
625
3.65625
4
[]
no_license
#!/usr/bin/env bash pnpm_path=$1 pnpm_version=$2 node_bin=$3 # PNPM envs are required for self-installer to work export PNPM_VERSION=$pnpm_version export PNPM_DEST=$pnpm_path export PNPM_REGISTRY=https://urbancompass.jfrog.io/urbancompass/api/npm/npm/ export PNPM_BIN_DEST=$pnpm_path/.dump ## If pnpm path exists then...
true
8647a82abf9f033327aca593eb9a770dac4b7be2
Shell
jerturowetz/homestead-wp
/scripts/wordpress-core-update.sh
UTF-8
499
3.125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash SITE_DIR="${1}" SITE_URL="${2}" WP_FOLDER_NAME="${3}" # Update WP version if possible echo "update wordpress core to latest version" cd "${SITE_DIR}" wp core update --version="latest" --path="${WP_FOLDER_NAME}/" # flush permalinks echo "Flushing permalinks" wp rewrite flush # Set Home URLS echo ...
true
7b21247e5d4b4b18ae30c3d1693c5016bfd98e04
Shell
webuildsg/live-server
/playlist/makeplaylist.sh
UTF-8
536
3.390625
3
[ "MIT" ]
permissive
#!/bin/bash mp3filelist=`ls -S /home/chinmay/webuildlive/playlist/*.mp3`; echo #mp3filelist for name in $mp3filelist; do oggname="${name/.mp3/.ogg}"; echo "oggname is $oggname"; if [ ! -f $oggname ]; then #echo "################### Converting - $name ####################"; ffmpeg -i "$name" -map_metada...
true
154d474b0eacbecea75fc34f86a656e55927b5ed
Shell
kevinoid/kevinlocke.name
/_build/build-multiview
UTF-8
1,160
3.984375
4
[ "MIT", "CC-BY-4.0" ]
permissive
#!/bin/sh # Build file variants for serving with Apache MultiViews set -Ceu # set -o pipefail if supported # Note: Can't use `|| true`. dash unconditionally exits with "Illegal option" # shellcheck disable=2039 case "$(set +o)" in *pipefail*) set -o pipefail ;; esac if [ $# -eq 0 ] || [ "$1" = --help ]; then echo "...
true
2c57e57e3f95386d3f52659c838333ffddbdd4ab
Shell
njoerger/nvm_audio
/fix_nvm_audio.sh
UTF-8
2,425
3.84375
4
[]
no_license
#!/bin/bash if [ "$1" == -i ]; then echo "Attempting to use supplied file" if [[ -e "$2" && -f "$2" && -r "$2" && -s "$2" ]]; then # get hash and save to /tmp/audio_hash shasum -a 512 $2 | awk '{print $1}' > /tmp/audio_hash # cp file to /tmp/audio_hash cp $2 /tmp/audio.mp3 else (>&2 echo "usage: ./fix_nvm...
true
b70e69211c11ebe93d61c76094321aac140fbefc
Shell
risan/balet
/bin/balet
UTF-8
1,213
4.34375
4
[]
no_license
#!/bin/bash # Colors. RED='\033[0;31m' YELLOW='\033[1;33m' NC='\033[0m' BALET_BIN_DIR="`dirname $0`" BALET_DIR="`dirname $BALET_BIN_DIR`" COMMAND_TYPE="$1" # Make sure the command type is valid. if [ "$COMMAND_TYPE" != "add" ] && [ "$COMMAND_TYPE" != "remove" ] && [ "$COMMAND_TYPE" != "list" ] && [ "$COMMAND_TYPE" ...
true
ea9b9b71eb1257f8cb04aff1ad5e9d987a06bf69
Shell
brooms/home-cloud-native-platform
/scripts/key_vars.sh
UTF-8
258
2.640625
3
[]
no_license
#!/usr/bin/env bash # see https://www.ssh.com/ssh/keygen for details export key_algorithm="rsa" # one of rsa, dsa, ecdsa, ed25519 export key_size="4096" export key_comment="hcnp" export key_file="id_${key_algorithm}_hcnp" export key_file_dir="${HOME}/.ssh"
true
8d7b158b9b45b4f329af9c79f14d2b4dcc3ab5e3
Shell
raycast/script-commands
/commands/developer-utils/is-it-up.sh
UTF-8
1,323
3.953125
4
[ "MIT" ]
permissive
#!/bin/bash # Dependency: requires jq (https://stedolan.github.io/jq/) # Install via Homebrew: `brew install jq` # Required parameters: # @raycast.schemaVersion 1 # @raycast.title Is It Up? # @raycast.mode compact # @raycast.packageName Developer Utils # # Optional parameters: # @raycast.icon 🌐 # @raycast.argument1 ...
true
014b149e23deae96e1cf0b932c17ad4b24770ca3
Shell
rmjarvis/DESWL
/psf/sync_to_nersc_faux
UTF-8
638
3.140625
3
[]
no_license
#!/bin/bash TAG=y1a1-v02 user=mjarvis@cori.nersc.gov nersc=/global/project/projectdirs/des/wl/desdata for run in $( ls "$DESDATA/EXTRA/red" ); do echo $run psfex_dir="EXTRA/red/$run/psfex-rerun" if [ -e "$DESDATA/$psfex_dir/$TAG" ] then cmd="ssh $user 'mkdir -p $nersc/$psfex_dir'" echo...
true
6eb81c97ad56fac7fbf06be1fbb9bbb51d6ac91a
Shell
delkyd/alfheim_linux-PKGBUILDS
/habitat-git/PKGBUILD
UTF-8
1,052
2.875
3
[]
no_license
# Maintainer: David Parrish <daveparrish@tutanota.com> # Maintainer: Trevor Bramble <inbox@trevorbramble.com> pkgname=habitat-git pkgver=0.34.1.r11.gfb7fb8c9 pkgrel=1 pkgdesc="Application automation framework that allows you to build applications that have automation built-in" arch=('x86_64') url="https://www.habitat....
true
a236bd675419f1082663e68186c0e0a0e89d1146
Shell
dxw/session-handler-redis
/script/bootstrap
UTF-8
612
3.484375
3
[]
no_license
#!/bin/sh # script/bootstrap: Resolve all dependencies that the application requires to # run. set -e cd "$(dirname "$0")/.." if [ -z "$CI" ]; then if [ -f Brewfile ] && [ "$(uname -s)" = "Darwin" ]; then if ! brew bundle check >/dev/null 2>&1; then echo "==> Installing Homebrew depend...
true
0e8825831e5e8dc723c462c9ef7ba438069f6781
Shell
ORESoftware/typescript-library-skeleton
/scripts/npm/publish.sh
UTF-8
2,569
3.859375
4
[ "MIT" ]
permissive
#!/usr/bin/env bash set -e; my_args=( "$@" ); first_arg="$1"; if ! [[ ${first_arg} =~ ^(patch|major|minor|prerelease)$ ]]; then echo "First argument needs to match a valid npm version argument (patch, minor, major, etc)." >&2; exit 1; fi ts_bold="$(tput bold)" ts_normal="$(tput sgr0)" zmx_gray='\033[1;30m' ...
true
8793579991cfb74776c6aa50de036e2bab847955
Shell
nidrev/sped-fiscal
/install.sh
UTF-8
881
2.828125
3
[]
no_license
#!/bin/bash clear SPED_VERSION="SpedEcf_linux_x64-5.1.3.jar" echo "Atualizando sistema..." sudo apt-get update echo "Instalando Bibliotecas..." sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get install -y libc6:i386 libncurses5:i386 libstdc++6:i386 libxi6:i386 libxrender1:i386 libxtst6:i386 wget s...
true
81d2e8a30fc89daaaa67797cb8a7f6d84022f113
Shell
antontsv/home.bin
/bin/git-find-file-with
UTF-8
282
2.890625
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env awesome-bash # vim: ft=sh: awesome_shell_help <<_HELP_ Searches files in git that contain spefified string Usage: $awesome_shell_script_name search string _HELP_ #awesome-shell ref:68647f3 [ -z "$*" ] && fatal "Search string was not specified" git grep -l "$*"
true
f4d483ab02ef85d8eefcf788af4965bd593418d6
Shell
darthmonkey2004/nicole
/ir/ir.nic
UTF-8
1,683
3.828125
4
[]
no_license
#!/bin/bash getDev() { dev_acm=$(ls /dev/ttyA*) if [ -n "$dev_acm" ]; then dev="$dev_acm" fi dev_usb=$(ls /dev/ttyUSB*) if [ -n "$dev_usb" ]; then dev="$dev_usb" fi echo "Device set: $dev" } mkConf() { conf="/etc/minicom/minirc.dfl" line1='# Machine-generated file - use "minicom -s" to change parameters....
true
ef3d2a752c7be9ac9ecc7f772f1917da4e3a4ce8
Shell
copeia/Mimir
/scripts/quick_start.sh
UTF-8
26,822
3.484375
3
[]
no_license
#!/bin/bash # Colors: # red=$'\e[1;31m' # grn=$'\e[0;32m' # yel=$'\e[1;33m' # blu=$'\e[0;34m' # mag=$'\e[1;35m' # cyn=$'\e[1;36m' # end=$'\e[0m' ## Add a check for vault and terraform installed locally ## Add in Pauses requesting use to hit enter to continue in key areas ## Delete app folders from /config to ensure...
true
a7f5815b0b753e5950652d25402f00677a4aa5ef
Shell
ddollar/gobuild
/bin/web
UTF-8
234
2.984375
3
[ "MIT" ]
permissive
#!/bin/bash ROOT=$(dirname $(dirname $0)) PATH="node_modules/.bin:$PATH" COFFEE="$ROOT/node_modules/.bin/coffee" cd $ROOT if [ "${NODE_ENV}" == "development" ]; then exec nodemon -w . web.coffee else exec $COFFEE web.coffee fi
true
33d000cf7f8d05b5aaea397bffb5f0c8fab88028
Shell
lhunath/gamebot
/scripts/build-awk
UTF-8
2,124
3.328125
3
[]
no_license
#!/bin/bash awk=$1 version=$2 bin_name=${3:-$1$2} srcdir=$PWD mkdir -p build/{bin,man/man1} && cd build && case $awk in bwk) wget -c -O "$srcdir/sources/bwk.tar.gz" \ http://plan9.bell-labs.com/cm/cs/who/bwk/awk.tar.gz && mkdir -p bwk && cd bwk && gzip -cd "$srcdir/sour...
true
079a0c98a3afb2009cb3ead38fd02db03de43921
Shell
Lishat/basic_bash_programming
/large.bash
UTF-8
245
3.28125
3
[]
no_license
#!/bin/bash read a read b read c if [ $a -ge $b ] then if [ $a -ge $c ] then echo -e $a elif [ $a -le $c ] then echo -e $c fi elif [ $b -ge $a ] then if [ $b -ge $c ] then echo -e $b elif [ $b -le $c ] then echo -e $c fi fi
true
093c8db31980f3b557df09a9fe154e21a82c720d
Shell
Tatiana3333/bash
/gen.sh
UTF-8
206
2.953125
3
[]
no_license
#!/bin/bash for YEAR in {2015..2021} do echo mkdir $YEAR for MONTH in {01..12} do echo mkdir $YEAR/$MONTH for DAY in {01..30} do echo ' echo "$YEAR $MONTH $DAY" > $YEAR/$MONTH/$DAY.txt' done done done
true
7f31b81c690906ed54be4996d402cc526a04fffd
Shell
chadfreer/monoZ_Analysis
/plotter/doCards.sh
UTF-8
1,212
2.75
3
[ "MIT" ]
permissive
emStack="--stack Nonresonant,ZZ2l2nu,WZ3lnu,Other" lllStack="--stack WZ3lnu,Other3l,NonPromptDY" llllStack="--stack ZZ4l,Other4l" sigStack="--stack Nonresonant,ZZ2l2nu,WZ3lnu,Other,DrellYanBinned" lumiResult="--lumi 35867 MonoZSelector-monoZ_11Jan2017-gd0b8a16.root" #lumiResult="--lumi 35867 MonoZSelector-monoZ_11Jan20...
true
483a454462dceffb6df8b349ae555a4b68b1422a
Shell
adam-roughton/dotfiles
/modules/shell/scripts/rv
UTF-8
353
3.515625
4
[]
no_license
#!/usr/bin/env bash set -e SEARCH_RES_DIR=$(mktemp -d --suffix "@rg-search") trap "{ rm -r $SEARCH_RES_DIR; }" EXIT DIR=$PWD for r in $(rg -l $@); do rAbs=$(realpath $r) mkdir -p "$SEARCH_RES_DIR$(dirname $rAbs)" ln -s "$rAbs" "$SEARCH_RES_DIR$rAbs" done WORKING_DIR=$SEARCH_RES_DIR$DIR if [ -d $WORKING_DIR ...
true
dde18f70e5c32b35393b94abd27b031fbc30f99f
Shell
sgjava/install-nginx
/scripts/update-certs.sh
UTF-8
2,176
3.6875
4
[ "BSD-3-Clause" ]
permissive
#!/bin/bash # # Created on September 7, 2020 # # @author: sgoldsmith # # Update certs from "$home"/.acme.sh directory to /etc/ssl/certs and provide key to /etc/ssl/private # # This script will be updated by ssl.sh. # # Steven P. Goldsmith # sgjava@gmail.com # # Change to your domain before running (modified by ssl.sh)...
true
ec0e6b2ef40d7215803c0badcdb4b1f172886e81
Shell
iGEM-Thessaloniki-2019/DNA-Strand-Displacment
/DNA_Srand_Displacement_Simulations/KinDA/One_Lufree_reaction_simulation/Input_files/fast-false.sh
UTF-8
1,233
2.515625
3
[]
no_license
export NUPACKHOME=/usr/local/nupack3.2.2 ##The parameters are selected so that the programm runs fast, neglecting the huge errors it could produce ##KinDA analayzes first_reaction.pil and the data are exported in a .db and a .json format ##.json can be used to create a .csv file and a figure of the system temporary d...
true
dd9911a82e2fad7bc2e472775adf88abe3b2cdd7
Shell
Parralogic/Bash-Scripts
/ISOwrite.sh
UTF-8
608
3.453125
3
[]
no_license
#!/bin/bash #Creator: David Parra-Sandoval #Date: 05/17/2020 #Last Modified: 09/09/2020 clear PS3="ISO to write?# " until [[ $CHOICE = [yY]* ]]; do lsblk read -p "Drive to write ISO image?:" DRIVE echo "/dev/$DRIVE" read -p "Is this the correct Drive?:" CHOICE if [[ $CHOICE = [yY]* ]]; then clear cd $HOME/Downloads/ se...
true
a5f77b42c3e7fc55f724775b491cd05cf23614cb
Shell
drewhodson/mpamf
/scripts/api.sh
UTF-8
431
3.515625
4
[]
no_license
#!/bin/sh RAN="" if [ ! $1 ]; then echo "Nothing specified." exit 1 fi if [ $1 == "users" ]; then curl -s "https://jsonplaceholder.typicode.com/users" RAN=true fi if [ $1 == "user" ]; then curl -s "https://jsonplaceholder.typicode.com/users/$2" RAN=true fi if [ $1 == "posts" ]; then curl -s "https://...
true
6a1e3860536d36f424a54ebe14d95cd59550b90b
Shell
Time0o/mpsym_wheels
/scripts/before_all/macosx.sh
UTF-8
704
3.921875
4
[]
no_license
#!/bin/bash set -e set -x if [ $# -ne 2 ]; then echo >&2 "Usage: $0 BOOST_VERSION LUA_VERSION" exit 1 fi; BOOST_VERSION="${1%.*}" LUA_VERSION=$2 # Update package manager brew update brew cleanup # Install Boost brew install boost@$BOOST_VERSION && brew link --force boost@$BOOST_VERSION # Install Lua LUA_DIR=/...
true
bc6bd4550ea3fb474b6f652f2244917dbf6831a7
Shell
tmortensen/Arduino
/snmpd/valuegrep.sh
UTF-8
490
2.578125
3
[]
no_license
#!/bin/sh # Add the following line to snmpd # # extend green_temp1 /bin/sh /usr/local/bin/valuegrep.sh Temp1 # extend green_temp2 /bin/sh /usr/local/bin/valuegrep.sh Temp2 # extend green_temp3 /bin/sh /usr/local/bin/valuegrep.sh Temp3 # extend green_humidity /bin/sh /usr/local/bin/valuegrep.sh Humidity # extend green_...
true
d1883a437f0893279debb57e5f494124ba854059
Shell
OpenIndustryCloud/oic-ci-tasks
/env/update/update_env.sh
UTF-8
585
3.0625
3
[]
no_license
#!/bin/bash # This script deploys a Fission Function in a cluster for CI analysis # # Variables: # - FUNCTION_ENVIRONMENT: name of the environment of the function: go, python, nodejs or binary # - FUNCTION_IMAGE: name of the image to use for that environment # - BUILDER_IMAGE: (Not used yet) if there is a specific...
true
50eaa425088fba991a16ceb89e2a905639481e48
Shell
mdashti/HPDS
/run-tests.sh
UTF-8
704
3.84375
4
[ "MIT" ]
permissive
#!/bin/bash ############################################ # TEST RUNNER # # # # You can run the test runner two ways # # 1. No arguments (All tests) # # 2. TWO argument (Some tests) # # arg1: test executable file nam...
true
b70da0866ea90060a90b1d4e0b4f81b28acaa045
Shell
gbv/cocoda-services
/code-analysis.sh
UTF-8
796
3.875
4
[ "MIT", "Unlicense" ]
permissive
#!/bin/bash -e function usage { echo "Usage: $0 <name> | all" echo "Analyze source code of service in directory <name>. Expects service to be initialized." } . utils.sh if [[ ! -d "$1" ]]; then error "$1 is not installed" exit fi cd $1 BRANCH=$(git rev-parse --abbrev-ref HEAD) echo -ne "$1\t$BRANCH\t" if ...
true
80f7ae95ab6687bed08abd35addda81f298eccd7
Shell
digitaldavenyc/kms-vault
/bin/analyze
UTF-8
500
2.546875
3
[ "MIT" ]
permissive
#!/bin/bash source venv/bin/activate mkdir -p reports exclude="*/tests/*,*/tests.py,*/test*.py,*/migrations/*" echo -e "\n\x1b[1;32mCyclomatic Complexity\x1b[0m" radon cc outlethub -s --total-average -e $exclude radon cc outlethub -s -a -e $exclude --json > reports/cc.json echo -e "\n\x1b[1;32mMaintainabilty Index\...
true
5b69d5a3ef53afc2cd9f5210c58dfae555d074ca
Shell
abravalheri/dotfiles
/bspwm/.config/zshrc.d/bspwm-helpers.zsh
UTF-8
1,158
3.109375
3
[ "MIT" ]
permissive
#!/usr/bin/env zsh sxhkd-reload() { pkill -USR1 -x sxhkd &>/dev/null | true } yabar-reload() { pkill yabar &>/dev/null | true yabar &>/dev/null & } bspwm-reset-monitors() { IFS=$'\n' monitors=( $(bspc query --monitors --names) ) for mon in "${monitors[@]}"; do bspc monitor "$mon" --reset-desktops {1..4...
true
b65884be573636ecdf6c1a66ea99466f6b893cee
Shell
sauber/spoejs
/test/rescheck
UTF-8
771
2.859375
3
[ "Artistic-1.0" ]
permissive
#!/bin/sh # Find resources in use # # Soren's recipe #find ../htdocs -type f -exec egrep '\*\*.*?\*\*' {} \; | egrep -v '^%#' | perl -n -e '@a=m!\*\*(.*?)\*\*!g;print map{"$_\n"}@a' | sort | uniq > /tmp/.$$.inuse # Snicki's recipe find ../htdocs \! -path '*users*' -type f -exec egrep '\*\*.*?\*\*' {} \; | perl -n -e '...
true
f09587532ad26cfb8e8741451e8aa5fb3d961917
Shell
pscha/scripts
/status.sh
UTF-8
237
2.734375
3
[]
no_license
#!/usr/bin/sh MIN=0 MAX=100 while true; do BAT=$(acpi |grep -o "[0-9]*\%"|grep -o "[0-9]*") if [ "$BAT" -lt "5" ] then echo "LOW BATTERY" |dzen2 -p 2 -w 200 -y 382 -x 583 -fg $FG_COLOR -bg $BG_COLOR -fn $FONT fi sleep 1 done
true
7cbd168f4cb06669470f18dce4605d83a1eab21b
Shell
alex018/adoom3
/tools/pk4tc
UTF-8
2,950
4.125
4
[]
no_license
#!/bin/sh # Copyright (C) 2012 Havlena Petr <havlenapetr@gmail.com> # # 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 ...
true
043768afe255d03adaf13584795a17af6fc86d80
Shell
LBHackney-IT/remultiform
/bin/test-examples
UTF-8
461
3.765625
4
[ "MIT" ]
permissive
#!/bin/bash set -e ROOT_DIR=$(cd "$(dirname "$0")/.."; pwd -P) function run-for-each-dir-in { local dir=$1; shift for path in "$dir"/*; do if ! [ -e "$path" ]; then continue fi if [ -d "$path" ]; then if ! [ -e "$path/package.json" ]; then continue fi pushd "$path" ...
true
1dd883f1de7ec065f6f06092f1a036873a63dcc5
Shell
isa-group/governify-research-elasticpapamoscas
/prototype/papamoscas-icomot/papamoscas-deployment-files/papamoscas-proxy/deploy-pro.sh
UTF-8
970
2.921875
3
[]
no_license
#! /bin/bash sudo apt-get update sudo apt-get -y install curl . /etc/environment sleep 10s MY_IP=$(ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}') echo $MY_IP if [ -z "$slaProxy_IP" ] then slaProxy_IP=$slaProxyPro_IP fi echo http://$slaProxy_IP:8080/registry/pro?ip=$MY_IP:8080 curl -X POST h...
true
7145ceb8b2b4eeb143e6c27c326dc6cd968f54f0
Shell
silago/google-sheets-parse-py
/Bash/process.sh
UTF-8
2,366
3.375
3
[]
no_license
#!/bin/bash set +e #set -x OUT="OUT" ROOT=$(pwd) UTILS="Utils" DATA="Data" STATIC=$ROOT/$DATA/$RESOURCE_DIR mkdir -p $OUT mkdir -p previous_build/$RESOURCES_DATA_DIRECTORY mkdir -p current_build/$RESOURCES_DATA_DIRECTORY mkdir -p previous_build/$PARSED_DATA_DIRECTORY mkdir -p current_build/$PARSED_DATA_DIRECTORY rm c...
true
9ad05546ccbdbe63149d3d974974709f5747d7e3
Shell
kstenerud/virtual-builders
/virtual-build
UTF-8
720
4.21875
4
[ "MIT" ]
permissive
#!/bin/bash set -eu SCRIPT_HOME="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")" list_machines() { cd "$SCRIPT_HOME/machine-builders" for i in $(ls); do echo " $i" done } print_usage() { echo "Usage: $0 <machine-type> [build options]" echo echo "Where machine-type is one of:" eval list_machine...
true
2d7a82440924fbaa2dc8d013e6e4d8691fcdee2b
Shell
greatbridf/mac-config
/full-backup/full_backup.sh
UTF-8
948
3.890625
4
[]
no_license
#!/bin/sh if [ ! $EUID == 0 ]; then echo "please run as root"; exit 1 fi echo "Full system backup" read -p "Select your backup destination " DEST echo "DEST = $DEST" if [ ! -d $DEST ]; then echo "Backup destination do not exist, abort" exit 1 fi read -p "Are you sure to start a backup? (y/N) " FLA...
true
ad92b8eccf75cde8a450e87dee45272ad56de25a
Shell
mati865/packages-community
/cinnamon/cinnamon-wallpapers/PKGBUILD
UTF-8
1,259
2.84375
3
[]
no_license
# Maintainer: Bernhard Landauer <oberon@manjaro.org> pkgname=cinnamon-wallpapers _grepo=gnome-backgrounds pkgver=20180201 pkgrel=2 pkgdesc="Wallpapers for Manjaro Cinnamon" arch=('any') license=('GPL3') makedepends=('git' 'glib2' 'meson') provides=("$_grepo") conflicts=("$_grepo") _gurl="https://git.gnome.org/...
true
97ec64e2f457de9b4e1c1d8e22961c79f886a4d7
Shell
palbee/PGPy
/tests/testdata/generate_keys.sh
UTF-8
3,549
3.609375
4
[ "BSD-3-Clause" ]
permissive
#!/bin/bash source gpg.sh # unencrypted key generation for alg in RSA DSA; do [[ "$alg" == "RSA" ]] && salg="RSA" [[ "$alg" == "DSA" ]] && salg="ELG" for bitlen in 1024 2048 3072; do # sign/encrypt keys $GPG --batch --gen-key <<EOI %echo Generating Test${alg}-${bitlen} ... ...
true
848768fd9cb32310f4b52124d9d9b32d4e0d8dd0
Shell
Sebati07/Scripts-for-Bash-
/script3,2.sh
UTF-8
217
3.375
3
[]
no_license
#!/bin/bash read -p "introduzca un numero: " n1 read -p "introduzca un numero: " n2 if [ $n1 -gt $n2 ] ; then echo "$n1 es mayor que $n2" exit 1 fi if [ $n2 -gt $n1 ] ; then echo "$n2 es mayor que $n1" exit 1 fi
true
0cb500280ce34c0ec7d381616d4fac7f83207904
Shell
firew0rks/carbon-copy
/build.sh
UTF-8
1,347
3.453125
3
[]
no_license
#!/bin/bash clean() { echo "Removing old images" docker rmi $(docker images -q) } build() { echo "Building images" docker pull docker.elastic.co/elasticsearch/elasticsearch:6.3.0 docker pull docker.elastic.co/kibana/kibana:6.3.0 docker image build -t ccopy-client:0.0.1 client/ docker image build -t ccop...
true
8606cf6b05e213b2a1f0a0de1bf40fe41ed7dc24
Shell
JamiesZhang/simplePingmesh
/client.sh
UTF-8
349
2.640625
3
[]
no_license
#client echo $1,$2,$3; echo " " echo "现在的文件夹是" $1 echo " " echo "现在的客户端是" $2 echo " " echo "现在的服务器是" $3 echo " " mkdir -p $1; echo "当前客户端是"$2 echo "有以下文件" ls; cp ~/pingmeshtest/c.cpp $1/; cd $1 ; g++ c.cpp -o c -std=c++11; ./c $3 $2; echo " " echo "client $2 发送完成" echo " "
true
3927c59911eea66873ebf02d3b14aea34f2e5f62
Shell
prl-mushr/devtools
/bin/mushr_lint
UTF-8
314
3.484375
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash TGT=${1?Target directory must be set} if [ ! -d "$TGT" ]; then echo "Directory '$TGT' doesn't exist" exit 1; fi DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" "$DIR"/mushr_lint_isort "$TGT" "$DIR"/mushr_lint_black "$TGT" --check "$DIR"/mushr_lint_flake8 "$TGT" --check
true
f92b58a56c7818a008e3c470beaf31919a35f811
Shell
esologic/esologic.github.io
/tools/run_checks.sh
UTF-8
619
4
4
[]
no_license
#! /usr/bin/env bash # Run all code checks to make sure code meets formatting standards. # Will exit non-zero if there are errors or improperly formatted code. set -euo pipefail FAILED="" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" echo "Running Pylint" $DIR/run_pylint.sh || FAILED="pyli...
true
3b8353107a30dac3dd215901f7ec0089e0e76957
Shell
ukaserge/nginxproxymanager-portainer-wordpress
/generate_secrets.sh
UTF-8
486
3.375
3
[]
no_license
#!/bin/bash SECRET_LENGTH=64 createPassword() { if [ -n "$1" ] then cat /dev/urandom | tr -dC '[:graph:]' | head -c$1;echo else echo 'Usage: '$0' <password length>' fi } umask 0377 createPassword $SECRET_LENGTH > secrets/managed-nginx-db-pw createPassword $SECRET_LENGTH > secrets/mysql-root-pw crea...
true
4dea2dd8d186d620991b9c0b8f84754dbe3d0d73
Shell
VMatrixTeam/percona-xtradb-cluster-operator
/e2e-tests/demand-backup-encrypted-with-tls/run
UTF-8
2,612
3.015625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -o errexit set -o xtrace test_dir=$(realpath $(dirname $0)) . ${test_dir}/../functions function jq_filter() { local vault_root=$1 jq -r "[ .[] | .=\"'$vault_root/\"+.+\"'\" ] | join(\", \")" } main() { create_infra $namespace kubectl_bin apply -f $conf_dir/cloud-secret.yml vault...
true
b93cd1a76a4c312ef980e209a957074b2cf1287c
Shell
bbinet/docker-hindsight
/install_debs.sh
UTF-8
502
3.609375
4
[ "MIT" ]
permissive
#!/bin/bash set -e base_url="$1" md5sum="$2" filter="$3" mkdir debs (cd debs; wget "${base_url}/md5sums" echo "${md5sum} md5sums" | md5sum --check md5sums=$(cat md5sums) if ! [ -z "$filter" ]; then md5sums=$(cat md5sums | $filter) fi echo "$md5sums" | while read line do pkg="...
true
2109c9937a07ffbfd0bce4255c3b084f1ea27f86
Shell
loopow/scout
/bin/lda/cluster-reuters-lda-debug.sh
UTF-8
5,147
2.53125
3
[]
no_license
#!/bin/bash HADOOP=hadoop WORK_DIR=${SCOUT_HOME}/dataset SCOUT=${SCOUT_HOME}/bin/scout #set new log location FORMAT_DATE=`date +%Y.%m.%d-%H:%M:%S` LOGFILE="console-$1-$2-${FORMAT_DATE}.log" DATE_DIR=`date +%Y%m%d` mkdir -p ${HADOOP_HOME}/zzy/${DATE_DIR} sed -i "s;\(log4j\.appender\.R\.File=\).*;\1${HADOOP_HOME}/zzy/...
true
578a1504f0f95e13ed3ab56d0340145c77a73860
Shell
antoniopessotti/ubuntu-scripts
/pdf/xmp-tagger-install.sh
UTF-8
1,351
3.234375
3
[]
no_license
#!/bin/sh # XMP tags editor extension # test Ubuntu distribution DISTRO=$(lsb_release -is 2>/dev/null) [ "${DISTRO}" != "Ubuntu" ] && { zenity --error --text="This automatic installation script is for Ubuntu only"; exit 1; } # install tools sudo apt-get -y install libimage-exiftool-perl imagemagick zenity # install ...
true
5feae835d2ec31b9adcb8edf051a7927337a0dde
Shell
MenkeTechnologies/AnimationTutorial
/bin/animation
UTF-8
1,732
3.09375
3
[]
no_license
#!/usr/bin/env bash #printf "\E[44;37m" trap "tput cnorm; clear; ls -Alh; exit" INT topline=0 count=$topline tput civis robot="`cat << "EOF" |@|@|@|@| |@|@|@|@| |@|@|@|@| _____ |@|@|@|@| |@|@|@|@| /\_T_T_/\ |@|@|@|@| |@|@|@|@||/\ T T /\||@|@|@|@| ~/T~~T~||~\/~T~\/~||~T...
true
f7a5f8382556368197da544c7ea30409fe33c24d
Shell
codacy/codacy-meta-repo
/meta_update.sh
UTF-8
328
3.078125
3
[]
no_license
#!/usr/bin/env bash BASE_FOLDER="repos" ORG_NAME="codacy" meta init --force mkdir -p "$BASE_FOLDER" # Outputs the repositories to .repos.txt in format: [repo] [url] node update_repo_list.js "$ORG_NAME" "$BASE_FOLDER" # Imports every repository fetched from update_repo_list.js cat .repos.txt | xargs -L1 meta project...
true
81e69b88e4f6c055139daa3a75f51819305297ec
Shell
binary-c/menu
/sql_sub_interactive.sh
UTF-8
226
2.609375
3
[]
no_license
#/bin/bash echo "NAME: SQL INTERACTIVE" echo "FUNCTION: interactive sql shell" echo "VERSION:0" echo "HACKS: List all the nasties here" read -p "DATABASE:" -e -i "TEST" DATABASE isql -v ${DATABASE} bash system_sub_pause.sh
true
1ac3aedd2c0e099fae3fc1da21bda129182a0a22
Shell
amplia-iiot/oda-externaldependencies
/opendnp3-crosscompilation/src/main/script/make.sh
UTF-8
2,333
4.09375
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # Compile opendpn3 lib for x86_64, ARM of Sierra FX30S or ARM of OWA cd $(dirname $0)/../../.. projectDirectory=$(pwd) projectBuildDirectory=${projectDirectory}/target if [[ $# != 2 ]] || [[ $1 != "--arch" ]] then echo "Invalid params calling to $0" echo "Usage: make.sh --arch [x86_64 | legato | o...
true
6df2caab0624ff76e25f7907a310953b75fa4c62
Shell
j-mueller/cardano-wallet
/scripts/gh/update-badge.sh
UTF-8
354
3.34375
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -euo pipefail source "${BASH_SOURCE%/*}/common.sh" dest_branch=${1:-} badge_url=${2:-} if [ -z "$badge_url" ]; then echo "usage: $0 DEST_BRANCH BADGE_URL" exit 1 fi check_branch "$dest_branch" out="hydra-badge.svg" echo "GET $badge_url" curl --fail "$badge_url" -o "$out" git add "$out...
true
b3a339856efe053126c18735ae0264217cd35c56
Shell
IftitakhulZakiah/speech-script
/data_preparation_phoneme.sh
UTF-8
4,913
3.625
4
[]
no_license
set -e #### Aturan pakai #### # prefix=TNS use_prefix=false abbreviation=mk text_version=v2.0.0 audio_version=v2.0 data_dir=/srv/data1/speech/public/mk csv_dir=$data_dir/arsip_pelabelan/$text_version/csv kaldi_kit=$data_dir/kaldi_kit/$text_version text_train_dir=$kaldi_kit/text_train text_test_dir=$kaldi_kit/text_tes...
true
3f3193ab926074e8e711f184e83c136efcbbd760
Shell
hhiroshell/bookinfo-bench
/loadGenerator/gatling-home/run.sh
UTF-8
1,418
3.40625
3
[]
no_license
#!/bin/sh USERS=10 DURATION=30 CONCURRENCY_PER_LB=2 DESCRIPTION="LBs=$(cat ./endpoints.txt | wc -l) | concurrency-per-lb=$CONCURRENCY_PER_LB | users=$USERS | duration=$DURATION" TIMESTAMP=`date '+%y-%m-%d_%H-%M-%S'` echo "------------- Parameters -------------" echo USERS=$USERS echo DURATION=$DURATION echo CONCURREN...
true
8225c09bc8d6636c8eab31487c618ecba2b90ee6
Shell
alficfte/rt-thread
/bsp/hpmicro/libraries/hpm_sdk/env.sh
UTF-8
576
3.015625
3
[ "BSD-3-Clause", "Apache-2.0", "Zlib", "LicenseRef-scancode-proprietary-license", "MIT", "X11", "BSD-4-Clause-UC", "LicenseRef-scancode-unknown-license-reference" ]
permissive
# # Copyright (c) 2021 hpmicro # # SPDX-License-Identifier: BSD-3-Clause # if [ "X$MSYSTEM" "==" "X" ]; then if [ "X$name" "==" "Xenv.sh" ]; then echo "Please source this file, rather than executing it." exit fi env_name=$0 else env_name=$1 fi script=$(cd -P -- "$(dirname -- "$env_name...
true
2577e8a6dc252c8e942892d0a2a963b6accde8b3
Shell
sharad1126/WmAgentScripts
/condor_rm48h.sh
UTF-8
970
3.140625
3
[]
no_license
#!/bin/sh source ~cmst1/.bashrc agentenv tmp=`mktemp` condor_overview | sed -n '/48 hours by workflow/,/-----/p' | grep " : " >> $tmp while read line ; do WF=`echo "$line" | awk -F' : ' '{print $1}'` Jobs=`echo "$line" | awk -F' : ' '{print $2}'` echo "Checking : " $WF nRem=0 for iJob in $Jobs ; ...
true
674ee7c2ae4122133e4b0e1fda12d76311443ca1
Shell
kaosagnt/ansible-everyday
/playbooks/rhel/security/scripts/cve-2018-3620--2019-08-29-1039.sh
UTF-8
15,388
4.03125
4
[ "ISC" ]
permissive
#!/bin/bash # Copyright (c) 2018 Red Hat, Inc. # # 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 3 of the License, or # (at your option) any later version. VERSION="1.5" # War...
true
60591a77704ce5999b749e6666c8a068e417f2b7
Shell
chubbymaggie/scancode-thirdparty-src
/file/5.23/build.sh
UTF-8
901
3.796875
4
[ "LicenseRef-scancode-bsd-simplified-darwin", "BSD-3-Clause", "BSD-2-Clause" ]
permissive
#!/bin/bash # # Copyright (c) 2017 nexB Inc. http://www.nexb.com/ - All rights reserved. # NOTE : linux 64 build ONLY for now set -e lib_name=file-5.23 lib_archive=$lib_name.tar.gz download_url=ftp://ftp.astron.com/pub/file/$lib_archive function build_lib { # build proper # wget $download_url tar -xf $...
true
e455a5683aa616fd1c5ecdca707c46891d80f876
Shell
peter-strauss/Elastos.NET.Carrier.Android.SDK
/.script/download_libs.sh
UTF-8
1,338
3.6875
4
[ "MIT" ]
permissive
#!/bin/bash SCRIPT_PATH="$(cd "$(dirname "$0")" && pwd -P )" SCRIPT_DIRNAME="$(basename "${SCRIPT_PATH}")" LIBPATH=${SCRIPT_PATH}/../app/native-dist/libs HOST="$(uname -s)" case "${HOST}" in "Darwin") STRIP_ARG="--strip-components=1" ;; "Linux") STRIP_ARG="--strip-components 1" ...
true
7b4b95d716719c03aacd54dd9262b77d70363451
Shell
Holemar/notes
/02.Database/MongoDB/4.备份.sh
UTF-8
1,386
3.28125
3
[]
no_license
#!/bin/sh OUT_DIR=/data/db/mongodb_bak/temp # 临时备份目录 TAR_DIR=/data/db/mongodb_bak/bak_list # 备份存放路径 DB_URI="mongodb://admin:belloai@127.0.0.1:57017/?authSource=admin" # 数据库连接字符串 DAYS=15 # DAYS=15代表删除15天前的备份,即只保留最近15天的备份 DATE=`date +%Y_%m_%d` # 获取当前系统时间 TAR_BAK="mongodb_bak_$DATE.tar.gz" # 最终保存的数据库备份文件...
true
8a8c295f6e2befd2a3fc0d92457f5616879e95df
Shell
madoar/angular-archwizard-demo
/scripts/install-angular-archwizard.sh
UTF-8
1,078
3.890625
4
[]
no_license
#!/usr/bin/env bash # Directory containing the angular-archwizard-demo repository ARCHWIZARD_DEMO_DIR=$1 ARCHWIZARD_REPOSITORY_URL="https://github.com/madoar/angular-archwizard.git" ARCHWIZARD_VERSION=$(grep '"angular-archwizard":' package.json | cut -d '"' -f4 | tr -d '[[:space:]]') ARCHWIZARD_DIR="$ARCHWIZARD_DEMO_...
true
6b65f9cccfeec5b59b9ceb688807fc788926bda9
Shell
4wrxb/mystuff
/lede_certdrop/certdrop_user.sh
UTF-8
1,084
3.453125
3
[]
no_license
#!/bin/sh # both group and user id USE_ID=3325 # both group and user name USE_NAME=certdrop # home path USE_HOME=/certs if [ "$USER" != "root" ] then echo "UH-OH: you must be root to run this" exit 1 fi OFFENDU=$(cat /etc/passwd | awk -F: '{print "user " $1 " is " $3}' | grep -E " $USE_ID\$") OFFENDG=$(cat /etc/g...
true
8a210cac7a78a1bae03d988eccc08505d6ca6992
Shell
zchee/zsh-default-completions
/src/Darwin/Command/_say
UTF-8
3,071
3.203125
3
[]
no_license
#compdef say local ret=1 local -a context line state state_descr tmp local -A opt_args val_args _arguments -s -S : \ '(-a --audio-device)'{-a+,--audio-device=}'[specify audio device]: :->devices' \ '--bit-rate=[specify bit rate]: :->bit-rates' \ '--channels=[specify number of channels]:number of channels' \ '...
true
c021c0163c8a8e8e00531e61d27a92d09254d4e8
Shell
ghuntley/monorepo
/third_party/git/t/t9831-git-p4-triggers.sh
UTF-8
1,816
2.859375
3
[ "GPL-1.0-or-later", "LGPL-2.0-or-later", "LGPL-2.1-only", "GPL-3.0-only", "GPL-2.0-only", "MIT" ]
permissive
#!/bin/sh test_description='git p4 with server triggers' . ./lib-git-p4.sh test_expect_success 'start p4d' ' start_p4d ' test_expect_success 'init depot' ' ( cd "$cli" && echo file1 >file1 && p4 add file1 && p4 submit -d "change 1" && echo file2 >file2 && p4 add file2 && p4 submit -d "change 2" ) '...
true
e9ac89f2a5dd3f6565db969d524dd49e41fbe0fc
Shell
dmedme/web_path_web
/fdrunini.sh
UTF-8
4,135
3.484375
3
[]
no_license
# *************************************************************************** # run_ini # # @(#) $Name$ $Id$ # Copyright (c) 1993, 2001 E2 Systems Limited # Initialise a scenario for running: # - Create the directories # - Create the master runout files # - Assign the hosts # Parameters: # - The run identifier # # Sel...
true
f86e509d08c18244c933425d884d5165d873b780
Shell
kabo/dotfiles
/generatetmuxpowerline.sh
UTF-8
797
2.765625
3
[]
no_license
#!/bin/bash - #=============================================================================== # # FILE: generatetmuxpowerline.sh # # USAGE: ./generatetmuxpowerline.sh # # DESCRIPTION: # # OPTIONS: --- # REQUIREMENTS: --- # BUGS: --- # NOTES: --- # AUTHOR: YOUR NA...
true
054de0f53fcaa8d0c137c2b1d06d7ec70b194d51
Shell
Kirp/flambe-demos
/bin/build-all
UTF-8
286
3.265625
3
[]
no_license
#!/bin/bash # # Builds all the demos set -e PROJECT_ROOT=`readlink -f $(dirname $0)/..` cd $PROJECT_ROOT; for demo in *; do if [ ! -f "$demo/wscript" ]; then continue fi pushd $demo rm -rf deploy wafl -v distclean configure install -j1 "$@" popd done
true
df1902a35c2b7b5c6b6b43e41451a6af4da935c9
Shell
bluemarvin/ascripts
/fennecopen.sh
UTF-8
268
2.734375
3
[]
no_license
#!/bin/sh LNAME=$2 if [ -z $LNAME ] ; then LNAME=`whoami` fi echo adb shell am start -a android.intent.action.VIEW -n org.mozilla.fennec_$LNAME/.App -d $1 adb shell am start -a android.intent.action.VIEW -n org.mozilla.fennec_$LNAME/org.mozilla.gecko.BrowserApp -d $1
true
26d7da0d8e58942a22d15a00d0268ac4d3a74068
Shell
ThreeCatsLoveFish/VE280
/4/tool/genTestCase.sh
UTF-8
1,252
3.5
4
[]
no_license
#!/bin/bash function generate () { MAX_VARS=$((RANDOM % 49 + 1)) MAX_CLAUSES=$((RANDOM % 99 + 1)) TIMES=$((RANDOM % 99 + 1)) echo $MAX_VARS $MAX_CLAUSES >> $1 for ((i=0; i<$MAX_CLAUSES; i++)); do for ((j=0; j<(RANDOM % 49 + 1); j++)); do if [ $j -gt 0 ]; then ec...
true
6e1ffa2d656758a3b2e527255545b8632e6a7132
Shell
professorfaggiano/TT12017
/ROKUKISHI/prova/exercicio2.sh
UTF-8
165
3.03125
3
[]
no_license
#!/bin/bash clear numero=0 echo "Digite um numero:" read numero if (( $numero > 10 )); then echo "EH MAIOR QUE 10!" else echo "NAO EH MAIOR QUE 10!" fi
true
c6ecaaf50e55df482b176eb6a6cac7e0cc59e9dd
Shell
andreimagic/shell-utils
/singleton.sh
UTF-8
569
3.875
4
[]
no_license
#!/bin/bash function singleton() { [ -f $0.pid ] && pid="$(cat $0.pid)" # echo Old PID: $pid # echo New PID: $$ if [ -n "$pid" ] && kill -0 $pid 2> /dev/null 1> /dev/null; then echo -e "${red}Another instance is running (PID: $pid)${fontreset}" return 1 else # write PID file...
true
36ecb968eb1392c6f9e6d93780b29bf524bc113b
Shell
sunejak/powerPriceAPI
/windowMasterControl_using_PiFace.sh
UTF-8
1,765
3.5625
4
[]
no_license
#!/bin/bash # # WindowMaster control script # # gpio -x mcp23s17:100:0:0 mode 100 out # gpio -x mcp23s17:100:0:0 write 100 1 # gpio -x mcp23s17:100:0:0 mode 108 in # gpio -x mcp23s17:100:0:0 mode 108 up # using pin 28 and pin 29 # if [ -z "$1" ]; then echo "Provide a URL " exit 1 fi # gpio -x mcp23s17:100:0:0 mode...
true
a59f31788ce404ccf1f093105f71c8de5040c028
Shell
cle96/docker_clearup_script
/clearup.sh
UTF-8
680
2.921875
3
[ "MIT" ]
permissive
#!/bin/bash #=============================================================================== # # FILE: clearup.sh # # USAGE: ./clearup.sh # # DESCRIPTION: Docker clearup script # # OPTIONS: --- # REQUIREMENTS: --- # BUGS: --- # NOTES: --- # AUTHOR: (), # ...
true
4ada102b202b643dd01a1edb738357d24a17e68c
Shell
kabell/mysite-new
/static/ksp/30/zima2.seria/7.sh~
UTF-8
287
2.890625
3
[]
no_license
#!/bin/bash for (( i=1; i<=60; i++ )) do for (( j=1; j<i+10; j++ )) do echo "">result1 echo "">result2 ./7 >result1 <<<"$j $i" ./7.1 >result2 <<<"$j $i" echo "$i a $j" lol=$(cat result2 | grep -f result1) #echo "$lol abz to bolo dobre" if [ "$lol" = "" ]; then echo "OK" fi done done
true
6b470fa12f3a2150c339b1b9fdeeb8bfd9d169ed
Shell
mpecimotika/Tutorial_CTAMARSAnalysis
/Macros/Installing/mars_install.sh
UTF-8
2,341
3.71875
4
[ "MIT" ]
permissive
#!/bin/bash -x # Author: Paolo Cumani, Tarek Hassan, Abelardo Moralejo # Macro to install MARS in Grid, in a single tarball with ROOT and the .rootrc # A tarball with an uncompiled version of Mars have to be already saved in Grid # ATTENTION: VALUES TO CHANGE!!! CHANGE ALSO THE PATH TO THE DIFFERENT FILES!!! MarsTar...
true
8c5cf4df972fd4279eccefadf0ee31dde9e546b7
Shell
armoin2018/hiveid-ap
/system_get_ssidList.sh
UTF-8
462
2.765625
3
[ "MIT" ]
permissive
#!/bin/bash ########################################################## #### Author: Blaine McDonnell (blaine@armoin.com) #### #### Usage: ./systemsystem_get_ssidList.sh #### #### Description: Gets list of available SSIDs #### #### Version: 0.1 (depricated) #### #############...
true
8f5041dc72cf3df23437d2af2778f487522134b5
Shell
jamaltebi/bash
/file_trans.sh
UTF-8
301
3.640625
4
[]
no_license
#!/bin/bash #change file name extensions if [[ $# -ne 2 ]]; then # number of args echo " you enter $1 args, need 2 args " fi for f in *"$1"; do # $1 first args base=$(basename "$f" "$1") # delete extension=$1 von file $f mv "$f" "${base}$2" # add extension args2:$2 to $f done
true
76e7cf4d6916cda50823c10b9c3b7e698e7c136d
Shell
robertpi/OpenIDE
/deploy.sh
UTF-8
5,404
3.046875
3
[]
no_license
#!/bin/bash ROOT=$(cd $(dirname "$0"); pwd) BINARYDIR=$(cd $(dirname "$0"); pwd)/build_output DEPLOYDIR=$(cd $(dirname "$0"); pwd)/ReleaseBinaries PACKAGEDIR=$(cd $(dirname "$0"); pwd)/Packages LIB=$(cd $(dirname "$0"); pwd)/lib CSHARP_BIN=$(cd $(dirname "$0"); pwd)/Languages/CSharp/lib if [ -d $BINARYDIR ]; then { ...
true
c8e903b02d1fda2fc0670667cda3abc21094cbc8
Shell
bioconda/bioconda-recipes
/recipes/bbmap/run_test.sh
UTF-8
286
2.5625
3
[ "MIT" ]
permissive
#!/bin/bash set -x -e # adapted from recipes/blast/run_test.sh TMPDIR=$(mktemp -d) trap "rm -rf $TMPDIR" 0 INT QUIT ABRT PIPE TERM cp test*.fa test*.sam $TMPDIR cd $TMPDIR #bbmap.sh in=test.fa ref=testdatabase.fa out=result.sam nodisk #diff <(tail -2 result.sam) testexpected.sam
true
92324c35e2e622b8828a605b4174e94d9889e887
Shell
z6s469s1/hw_agent
/step2_run.sh
UTF-8
1,465
2.921875
3
[]
no_license
#!/bin/sh if [ `id -u` -ne 0 ]; then echo "need root permission!" exit 1 fi #ip forwarding sudo sysctl -w net.ipv4.ip_forward=1 #dhcp setting sudo apt install isc-dhcp-server -y sudo rm /etc/dhcp/dhcpd.conf sudo cp conf/dhcpd.conf /etc/dhcp/dhcpd.conf sudo rm /etc/default/isc-dhcp-server sudo cp conf/isc-dh...
true
33e223d602cfb86a04e52be1ee7fbc6937c95a13
Shell
mattcpereyra/stat992-notes
/scripts/headtail.sh
UTF-8
517
3.8125
4
[]
no_license
# echo "script name: $0" #echo "first argument: $1" # echo "number of arguments: $#" #!/bin/bash set -e # script terminates if any command exits with non-zero status set -u # terminates if any variable is unset set -o pipefail # terminates if any comman within a pipe exits unsuccessfully if [ $# -lt 1 ] || [ ! -f $1 ]...
true
512619b040052f8ba2d3466fbce38c30ce5ed898
Shell
trobert2/unattended-setup-scripts
/create-ubuntu-1204-server-vm-template.sh
UTF-8
326
2.65625
3
[]
no_license
#!/bin/sh BASEDIR=$(dirname $0) ISO_PATH=/vmfs/volumes/datastore2/iso/ubuntu-12.04.3-server-amd64-preseed.iso FLOPPY_IMAGE_PATH=$BASEDIR/preseed.flp DATASTORE=datastore1 $BASEDIR/create-vm-template.sh $DATASTORE ubuntu-64 ubuntu-12.04-server-template-40G 1024 40G $ISO_PATH linux $FLOPPY_IMAGE_PATH "VM Network" true t...
true
920924ee02889d169b895a60ada5e32924ce56af
Shell
Raofy/notes
/Docker/环境配置/DockerFiles/web+Redis+mysql搭建配置文件/mysql-install.sh
UTF-8
2,047
3.015625
3
[]
no_license
echo -e "========================开始安装mysql5.7.25========================" yum install -C -y mysql-community-server systemctl start mysqld systemctl enable mysqld systemctl daemon-reload grep 'temporary password' /var/log/mysqld.log echo && read -e -p "请输入mysql初始化的随机密码(在root@localhost:后为初始密码):" mysql_...
true
e109a3cbed214c6faadd1b33fa470883aff13bc8
Shell
tmspvn/HCP_labels_2_native-dHCP
/surface_to_template_alignment/pre_rotation.sh
UTF-8
1,290
2.9375
3
[ "MIT" ]
permissive
#!/bin/bash in_volume=$1 in_sphere=$2 vol_template=$3 surf_transform=$4 out_dof=$5 out_sphere=$6 out_doftxt=$(echo $out_dof | sed 's/\.dof/\.txt/g') echo newnames $out_dof $out_doftxt $intermediate_sphere echo /vol/medic01/users/ecr05/software/MIRTK/BUILD/bin/mirtk register $vol_template $in_volume -model Rigid -s...
true
2cf68d94120f0bd28f90e6ffa00dfc36fee710ef
Shell
outpaddling/auto-admin
/User-scripts/auto-pkgsrc-dir
UTF-8
503
3.796875
4
[ "BSD-2-Clause" ]
permissive
#!/bin/sh -e ########################################################################## # Script description: # Print the path of the pkgsrc source tree for the currently active # pkgsrc installation. # # History: # Date Name Modification # 2018? Jason Bacon Begin #######...
true
9c724f0e9f13cc4fc3d5c091c009177bf9fa9d42
Shell
slangmgh/NimData
/build.sh
UTF-8
779
3.671875
4
[ "MIT" ]
permissive
#!/bin/bash if [ -z "$1" ] ; then file=tests/all.nim elif [ "$1" == "examples" ]; then file=examples/example_01.nim elif [ "$1" == "benchmarks" ]; then file=benchmarks/NimData/basic_tests.nim else file="$1" fi echo "Compiling: $file" fileAbs=`readlink -m $file` traceback=false optargs="" #optargs="-d:checkM...
true
0bbf719e98074a85dfffc661a43e26584accd485
Shell
CyborgVova/Project21
/GUS_12_I_AM_RETARDED_EDITION/CPC12/run_all.sh
UTF-8
5,309
2.90625
3
[]
no_license
#WORK_PATH=~/CPC02 clear; printf "ENTER PATH:\\n Makes sure it does not have / at the end, or the program will NOT compile:\\n" read WORK_PATH clear; norminette -R CheckForbiddenSourceHeader $WORK_PATH/ex*/*.c; norminette -R CheckForbiddenSourceHeader $WORK_PATH/ex*/*.h; sleep 3; printf ">>>>>>>>>>>>>> EX00 <<<<<<<...
true
471a3c0e63e115ae36fab4010e6634f11ad1151c
Shell
kcmxuan/python-download
/bin/pyenv-download
UTF-8
733
4.1875
4
[]
no_license
#!/usr/bin/env bash # Summary: Speed up downloading Python in China # # Usage: pyenv download <python-version> # set -e [ -n "$PYENV_DEBUG" ] && set -x usage() { pyenv-help download 2>/dev/null [ -z "$1" ] || exit "$1" } if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then usage 0 fi URL="https://mirrors.hua...
true
dd92cb5fd3d957ce2118d577fa6fcea6b7a84a22
Shell
Be-Secure/bes-tool-scripts
/Selenium.sh
UTF-8
3,090
4.03125
4
[ "Apache-2.0" ]
permissive
#!/bin/sh -e ## Setup variables INSTALL_ARTIFACTS_DIR=${INSTALL_ARTIFACTS_DIR:-/vagrant/artifacts} INSTALL_NAME=${INSTALL_NAME:-selenium} INSTALL_BASE=${INSTALL_BASE:-/opt} INSTALL_VERSION=${INSTALL_VERSION:-3.141.59} SYSTEMD_DIR=/etc/systemd/system ARTIFACT_TARBALL=$INSTALL_ARTIFACTS_DIR/selenium-server-standalone-$I...
true
a710d10e9b84f3b153b5ab6b208cde9c4000351f
Shell
Barkerprooks/conways-game-of-life
/build.sh
UTF-8
480
3.671875
4
[]
no_license
#!/usr/bin/env bash BIN="game-of-life_$(uname -m).bin" function build() { mkdir -p bin gcc -o bin/$BIN src/main.c -l curses ln -sf $PWD/bin/$BIN $PWD/run } if [[ $1 == '-c' || $1 == '--clean' ]]; then rm -rf bin rm -rf run exit fi if [ -f '/usr/include/curses.h' ]; then build elif [[ $1 == '-f' || $1 == '...
true
8ee5e4615e01cfd999f6afe457d68a84fc39067e
Shell
2600hz/kazoo-configs-core
/system/init.d/kazoo-generic.redhat
UTF-8
1,251
3.921875
4
[]
no_license
#!/bin/bash # # kazoo # # chkconfig: 345 85 87 # description: Dubbed a "scalable, distributed, cloud-based" telephony platform # processname: kazoo # RETVAL=0 SCRIPT_NAME=`basename "$0"` LOCK_FILE=${LOCK_FILE:-/var/lock/subsys/${SCRIPT_NAME}} . /etc/init.d/functions if [ "${NETWORKING}" = "no" ]; then exit 0 fi st...
true