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
20a69da341fed2f26c681c60338fb26220e35ac8
Shell
agangzz/jukemir
/reproduce/0_docker.sh
UTF-8
339
2.734375
3
[]
no_license
pushd .. set -e HOST_CACHE=$(python -c "from jukemir import CACHE_DIR; print(CACHE_DIR)") echo $HOST_CACHE popd docker run \ -it \ --rm \ -d \ --name jukemir \ -u $(id -u):$(id -g) \ -v $HOST_CACHE:/jukemir/cache \ -v $(pwd)/../jukemir:/jukemir/jukemir \ -v $(pwd)/../reproduce:/jukemir/reproduce \ ju...
true
963890a6a4df4c9d77cf7c0616ff4501737a3d00
Shell
ghuntley/monorepo
/third_party/git/t/t3304-notes-mixed.sh
UTF-8
4,256
3.21875
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='Test notes trees that also contain non-notes' . ./test-lib.sh number_of_commits=100 start_note_commit () { test_tick && cat <<INPUT_END commit refs/notes/commits committer $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL> $GIT_COMMITTER_DATE data <<COMMIT notes COMMIT from refs/notes/commits...
true
b2dad0bcd9e9d99ed296b39dcefcef5a72deff43
Shell
clim-ability/dockerCRE
/creStart.sh
UTF-8
613
2.828125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash ./creStop.sh #Update container echo "Update CRE container" # docker pull tamboraorg/creproxy:clim16n # docker pull tamboraorg/crephp:clim16n # docker pull tamboraorg/crenginxphp:clim16n # docker pull tamboraorg/crepostgis:clim16n # docker pull tamboraorg/cremysql:clim16n # docker pull tamboraorg/creglue:cl...
true
5bf5fb23dec7e55d591c265dc36a89f38341d855
Shell
MFornander/kingjelly
/scripts/patchdtb.sh
UTF-8
344
2.609375
3
[ "MIT" ]
permissive
#!/bin/bash ### Patch a Debian DTB to enable the PRUs set -e LIVE="/boot/dtbs/3.8.13-bone59/am335x-boneblack" TEMP="debian-`uname -r`" ### FETCH DTB to DTS #dtc -O dts -o $TEMP.dts -I dtb $LIVE.dtb ### PATCH DTS #(sed todo) ### STORE DTS to DTB dtc -O dtb -o $TEMP.dtb -I dts $TEMP.dts cp -n $LIVE.dtb $LIVE.dtb.old ...
true
91deddca24f54b8457eae1bebc27b218460a8b17
Shell
krzykli/dotfiles
/.fzf.zsh
UTF-8
575
2.5625
3
[]
no_license
# Setup fzf # --------- if [[ ! "$PATH" == */usr/local/opt/fzf/bin* ]]; then export PATH="${PATH:+${PATH}:}/usr/local/opt/fzf/bin" fi # Auto-completion # --------------- [[ $- == *i* ]] && source "/usr/local/opt/fzf/shell/completion.zsh" 2> /dev/null # Key bindings # ------------ source "/usr/local/opt/fzf/shell/ke...
true
1f84ef3986af78600833d4a0b20b74fa559bdda0
Shell
FauxFaux/debian-control
/i/icecast2/icecast2_2.4.3-3_amd64/postrm
UTF-8
1,086
3.40625
3
[]
no_license
#! /bin/sh # postrm script for icecast2 set -e case "$1" in purge) rm -rf /var/log/icecast2 deluser --system --quiet icecast2 || true delgroup --system --quiet --only-if-empty icecast || true ;; remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unkn...
true
d6f673b30ea78b56821f18e14f1abf79bbedd51d
Shell
gelisam/dotfiles
/bin-common/grex
UTF-8
1,098
3.78125
4
[]
no_license
#!/usr/bin/env bash # a wrapper around grep which make it easy to only search within a folder with # "grex src" or only Haskell files with "grex .hs" declare -a DIR declare -a FIND_OPTIONS while [ -d "$1" ]; do DIR[${#DIR[@]}]="$1"; shift done if [ "${#DIR[@]}" -eq 0 ]; then DIR="." fi if [ "$(basename "$0")" = "...
true
6e6874272c153174ec30da0d6832736d4313c287
Shell
bakaut/glaber
/glaber.sh
UTF-8
7,275
3.546875
4
[]
no_license
#!/usr/bin/env bash set -e # functions apitest () { info "Install hurl for testing glaber" [ -d ".tmp/hurl-$HURL_VERSION" ] || \ curl -sL https://github.com/Orange-OpenSource/hurl/releases/download/\ $HURL_VERSION/hurl-$HURL_VERSION-x86_64-linux.tar.gz | \ tar xvz -C .tmp/ 1>/dev/null info "Testing that glab...
true
826949aa501b18d99a0bd8850ad810de4e443ca0
Shell
wangzhhe/bcmcontrol
/autobuild.sh
UTF-8
155
2.765625
3
[]
no_license
if [ ! -d "./build" ];then echo "Create build folder..." mkdir build else rm -r build echo "Create build folder..." mkdir build fi cd build cmake .. make
true
95de2127d5848ca8d975d91c1ec55b30d08e07b7
Shell
m-rodin/dst-stu
/src/2/2.2.1.sh
UTF-8
841
2.53125
3
[]
no_license
#!/bin/bash psql -h 192.168.3.245 -p 5432 -U easycar -W easycar -c " CREATE OR REPLACE PROCEDURE drop_duplicates() LANGUAGE plpgsql AS \$\$ DECLARE original record; duplicate record; completed INT[] DEFAULT '{}'; BEGIN for original in (select * from client) loop for duplicate in (SELECT * FROM client WH...
true
a1615a3361678e7b33def5848767431aaa9cbf51
Shell
demsheng/wxWidgets-example
/chap20/install/maketarball.sh
UTF-8
7,951
3.625
4
[]
no_license
#!/bin/sh # Make a distribution of AcmeApp for Linux and Mac # (c) Julian Smart # Usage: maketarball.sh [ options ] # For example: maketarball.sh --build PROGNAME=$0 CVSUPDATE=0 COPYTOFTP=0 # Clean objects before build CLEANOBJECTS=1 DEBUGBUILD=0 RELEASEBUILD=0 NOTAR=0 CLEANWX=0 # Will be computed ...
true
c3c20ef29d26ec1733e1a0ba1b67448545d5729b
Shell
ebahsini/modules.tf-lambda
/templates/terragrunt-common-layer/template/common/scripts/update_dynamic_values_in_tfvars.sh
UTF-8
2,692
4.34375
4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash ############################ # This script is used by Terragrunt hook to find and replace references in terraform.tfvars with the real values fetched using `terragrunt output` ############################ # 1. check if this script has not been disabled using special flag (@modulestf:disable_values_updates)...
true
aca48f6f45346cc3c10ce27f19de48e6c07fdafd
Shell
musically-ut/NeuralPointProcess
/code/scripts/synthetic_run.sh
UTF-8
569
2.5625
3
[]
no_license
#!/bin/bash DATA_ROOT=$HOME/Research/LSTMPointProcess/data/synthetic/hawkes RESULT_ROOT=$HOME/scratch/results/NeuralPointProcess H=128 bsize=256 bptt=8 learning_rate=0.0001 max_iter=4000 cur_iter=0 save_dir=$RESULT_ROOT/saved-hidden-$H-bsize-$bsize if [ ! -e $save_dir ]; then mkdir -p $save_dir fi dev_id=0 ./b...
true
98c1b340987658007766e3d867b45df1ae074b99
Shell
Nico-Curti/shut
/bash/install_g++.sh
UTF-8
3,713
3.765625
4
[]
no_license
#!/bin/bash red='\033[1;31m' green='\033[1;32m' yellow='\033[1;33m' reset='\033[0m' # No Color version="9.2.0" function get_g++ { add2path=$1 postfix=$2 if [[ "$OSTYPE" == "darwin"* ]]; then url_gcc="ftp://ftp.gnu.org/gnu/gcc/gcc-$version/gcc-$version.tar.gz" else url_gcc="ftp://ftp.gnu.org/gnu/gcc/...
true
2c8f649197cc200bf7a45c3ef8b90c03c98897c5
Shell
mrubio-chavarria/mres_project_2
/experiment4_ap.sh
UTF-8
386
2.515625
3
[ "MIT" ]
permissive
#!/bin/bash #PBS -lselect=1:ncpus=8:mem=48gb:ngpus=2 #PBS -lwalltime=24:00:00 # Load dependencies module load anaconda3/personal source activate project2_venv # Check GPUs echo "Available GPUs: $CUDA_VISIBLE_DEVICES" # Launch script echo "Launch script" python3 $HOME/project_2/experiment4_ap.py $CUDA_VISIBLE_DEVICES...
true
cbbd91419fba838fa030d9a3eac5a0313f840e24
Shell
egpbos/prezto
/runcoms/zshrc
UTF-8
3,322
2.96875
3
[ "MIT" ]
permissive
# # Executes commands at the start of an interactive session. # # Authors: # Sorin Ionescu <sorin.ionescu@gmail.com> # # for powerlevel9k theme # some things, like the _MODE variable, need to be set before loading the theme through prezto! export DEFAULT_USER=pbos export POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon c...
true
ff3b3d810d53fcca0f3c3a400808389b96204a06
Shell
WebFlight/cf-mendix-buildpack
/healthcheck/healthcheck.sh
UTF-8
401
2.96875
3
[]
no_license
#!/bin/bash # min_live_time=3600 # total_live_time=$(($min_live_time + ${CF_INSTANCE_INDEX} * 200)) # counter=0 function killAllVcapProcesses { killall -u vcap } while : do if ! pgrep -x "java" > /dev/null then killAllVcapProcesses break fi # if [ $total_live_time -lt $counter ] # then # ...
true
f0ca7d0338cb6c3058b987055097bde43c1eb087
Shell
yindian/myutils
/scripts/shell/hlsdown
UTF-8
3,794
3.640625
4
[]
no_license
#!/bin/bash get_ts_from_list() { grep -v "^#" <<< "$1" | while read; do if [ "${REPLY:0:1}" = "/" ]; then URL_SCHEMA="${URL%%://*}" URL_WO_SCHEMA="${URL#$URL_SCHEMA://}" URL_HOST="${URL_WO_SCHEMA%%/*}" echo "$URL_SCHEMA://$URL_HOST$REPLY" elif [ "${REPLY:0:4}" != "http" ]; then URL_BASE="${URL%%\?*}" ech...
true
773bc64556d7eb6d0e73ea9c8c7c862bf160fcd8
Shell
niusmallnan/decrypt-ipsec
/decrypt-ipsec.sh
UTF-8
1,543
3.953125
4
[]
no_license
#!/bin/bash set -e source $(dirname $0)/common.sh config() { check_param load_ns echo "######################################" echo "####Get ESP config for Wireshark!####" echo "######################################" BASE_CMD="ip netns exec ${ROUTER_CONTAINER_ID} ip xfrm stat" SPI_LIS...
true
bc9485c3e638868007aa3b17757ac9fdb3280720
Shell
cmsd2/recon
/archive/recon-gossip/gossip.sh
UTF-8
366
2.796875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash export RUST_LOG="recon=trace,gossip=trace" trap 'kill $(jobs -pr)' SIGINT SIGTERM EXIT truncate -s 0 peers.txt for PORT in `seq 9000 9008`; do echo "127.0.0.1:$PORT" >> peers.txt done cargo build --example gossip for PORT in `seq 9000 9008`; do ./target/debug/examples/gossip 127.0.0.1:$PORT peers....
true
078039ae6b361933f9321a04fc773c1bd23b17dd
Shell
ryanpetrello/akanda-rug
/devstack/plugin.sh
UTF-8
15,557
2.625
3
[ "Apache-2.0" ]
permissive
# -*- mode: shell-script -*- # Set up default directories AKANDA_RUG_DIR=${AKANDA_RUG_DIR:-$DEST/akanda-rug} AKANDA_NEUTRON_DIR=${AKANDA_NEUTRON_DIR:-$DEST/akanda-neutron} AKANDA_NEUTRON_REPO=${AKANDA_NEUTRON_REPO:-http://github.com/stackforge/akanda-neutron.git} AKANDA_NEUTRON_BRANCH=${AKANDA_NEUTRON_BRANCH:-master}...
true
381a4b42e681b8e3ee031fdcf63cda62828b57d1
Shell
youngminz/OperatingSystem
/Lab/Lab0_BuildNachos/build_modified_nachos.sh
UTF-8
231
2.703125
3
[]
no_license
#!/bin/bash -ex # Clean up function cleanup { rm -r nachos } trap cleanup EXIT # Copy from local cp -r ../../Nachos nachos # Build docker docker build --tag nachos:${1:-0.1} --tag nachos:latest --file original.Dockerfile .
true
3570b2507edb444acce89b092dd66f373b429c05
Shell
vsmcloud/terraform-puppet-env-deployment
/terraform/master_userdata.tpl
UTF-8
2,970
3.8125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # Initialize the variables # declare -x INPUT_JSON=$(cat <<EOF '{ "HostedZoneId": "${hosted_zone_id}", "ChangeBatch": { "Comment": "Update the A record set", "Changes": [ { "Action": "UPSERT", "ResourceRecordSet": { ...
true
373b6272a9fa52b23e6f2d71c376160497d0da1c
Shell
itsdanielg/CSE-337-Scripting-Languages
/HW 3/q4_p2.sh
UTF-8
247
3.40625
3
[]
no_license
#!/bin/bash # q4_p2.sh counter=1 while [ $counter -le 10 ] do var=$(($counter%2)) if [ $var -eq 0 ]; then file="even$counter" touch $file chmod 764 $file else file="odd$counter" touch $file chmod 554 $file fi ((counter++)) done
true
7b3227075d13dc44a390805102b562d86b2ec859
Shell
Mailaender/aur-alucryd
/personal/python-pies/PKGBUILD
UTF-8
824
2.625
3
[]
no_license
# Maintainer: Maxime Gauduin <alucryd@archlinux.org> # Contributor: Yaron de Leeuw <me@jarondl.net> pkgname=python-pies pkgver=2.6.7 pkgrel=1 pkgdesc='The simplest (and tastiest) way to write one program that runs on both Python 2.6+ and Python 3' arch=('any') url='https://github.com/timothycrosley/pies' license=('MIT...
true
e2bb30b314a3042296e0d9dcf17e2157dbb2efce
Shell
realinternetbox/angry-bee-agent
/angry-bee-agent-1652.sh
UTF-8
311
2.75
3
[]
no_license
#code_server = 1652 #sleep_time = 30 for i in {1..30} do echo "angry-bee-agent started" NOW=$(date +"%m-%d-%Y %r") echo "Date: " $NOW #speedtest-cli --server 1652 --simple speedtest-cli --server 1652 echo "angry-bee-agent executed" #sleep $sleep_time sleep 15 echo "Place: UPM" done
true
8ab98846a8f85925cd362cca02cf25e58dd98609
Shell
hubitor/dotfiles-12
/i3/playpause.sh
UTF-8
98
2.59375
3
[]
no_license
#!/bin/bash if [ $(playerctl status) = "Playing" ] then playerctl pause else playerctl play fi
true
586e6a3fe6e4053ef4be0e77e25f602bce8a18f5
Shell
han-hongyuan/k8s-charts
/mysqlBackup/backup.sh
UTF-8
1,193
3.78125
4
[]
no_license
#!/bin/bash set -e if [[ -z ${storagepath} || -z ${mysqlhost} || -z ${mysqlport} || -z ${mysqlpassword} ]]; then echo \"storagepath mysqlhost mysqlport mysqlpassword must be offered.\"; exit -1; fi nowtime=`date +'%Y-%m-%d_%H_%M_%S'` # mysql for simpleDb in `mysql -h${mysqlhost} -P${mysqlport} -uroot -p${mysql...
true
df5142e8b696b6a57269134da2ad25ffa1ce3379
Shell
scylladb/scylla-monitoring
/start-thanos.sh
UTF-8
3,399
4.03125
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash . versions.sh if [ -f env.sh ]; then . env.sh fi function usage { __usage="Usage: $(basename $0) [-h] [-S ip:port] Options: -h print this help and exit -S sidecart address - A side cart address:port multiple side cart can be comma delimited The script starts Thanos query, it c...
true
5b3137adf5c8f8ff0cd77e64d1f62e89020d3b93
Shell
simonstead/shell-scripts
/api-go-scaffold.sh
UTF-8
2,934
3.46875
3
[]
no_license
if [ "$#" -ne 1 ]; then echo "usage: $0 <app_name>"; exit 1; fi function scaffold() { local name=$1 echo "creating directory $name" mkdir $name cd $name mkdir handlers structs touch README.md touch $name"_test.go" # main echo "package main import ( \"fmt\" \"github...
true
f106ad91a9dc7242c3286f9fb83da8ed50c919dc
Shell
95rade/docker-robot-framework
/test.sh
UTF-8
300
3.15625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash set -e pwd ls -ltr which robot exit 0 # Run an individual test suite if the TEST_SUITE environmental variable is set. #if [ -z "$TEST_SUITE" ]; then # TEST_SUITE="" #fi #CMD="robot --console verbose --outputdir -d /reports -s /suites/$TEST_SUITE" #echo ${CMD} #``${CMD}``
true
a5770dec4df8ecb19cfbd20814d37ae954cdaf6f
Shell
dwtj/spring-native
/scripts/compileWithMaven.sh
UTF-8
785
3.765625
4
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
#!/usr/bin/env bash GREEN='\033[0;32m' RED='\033[0;31m' BLUE='\033[0;34m' NC='\033[0m' printf "=== ${BLUE}Building %s sample${NC} ===\n" "${PWD##*/}" rm -rf target mkdir -p target/native echo "Packaging ${PWD##*/} with Maven" # Only run Petclinic tests to speedup the full build while still testing a complex testing...
true
495b761e259bdd02d312bea968cef14c508d0f86
Shell
JaiHariOm/LaunchdAgent-ShellScript
/bin/brew-update.sh
UTF-8
500
3.078125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/sh launchctl setenv PATH /usr/local/bin:$PATH log_dir=$HOME/Library/Logs/Homebrew/update log_name=${log_dir}/`date "+%Y%m%d"`.log if [ ! -d ${log_dir} ]; then mkdir -p ${log_dir} fi brew doctor >> ${log_name} 2>&1 if [ $? -eq 0 ]; then brew file update >> ${log_name} 2>&1 brew file cask_upgrade -C >...
true
60c8fda8500897b30c26435b01e0a8ec93342b1e
Shell
JaneChoi8/test1
/sum.sh
UTF-8
163
3.421875
3
[]
no_license
#!/bin/bash sum=0 for var in "$@" do if [ $var -gt 10 ] then if [ `expr $var % 2` -eq 0 ] then var=-$var fi sum=`expr $sum + $var` fi done echo $sum
true
83e69c58ce8abf3d7f066b3d90922a66fa93a7ed
Shell
spring-cloud/spring-cloud-connectors
/ci/scripts/sync-to-maven-central.sh
UTF-8
357
2.703125
3
[ "LicenseRef-scancode-generic-cla", "Apache-2.0", "LGPL-2.0-or-later", "GPL-1.0-or-later", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash set -euo pipefail readonly BUILD_INFO_LOCATION="$(pwd)/artifactory-repo/build-info.json" readonly CONFIG_DIR="$(pwd)/git-repo/ci/config" java -jar /opt/concourse-release-scripts*.jar \ --spring.config.location="${CONFIG_DIR}/release-scripts.yml" \ publishToCentral 'RELEASE' "$BUILD_INFO_LOCATION" "art...
true
c8b0221fd1a91375209e0b0b7865115717cb681f
Shell
sudeepb02/Linuxication-mcug
/shell-script/scripts/forValentine.sh
UTF-8
2,099
3.53125
4
[]
no_license
#!/bin/zsh . `pwd`/poetryAndStuff.sh if [ ! -d Crushes ] then mkdir Crushes fi case $1 in a) echo -n "How many crushes do you want to add? : " read numberOfCrushes echo "Enter first names only, its polite :)" for i in {1..$numberOfCrushes} do echo -n "Enter name :) - " read name echo ...
true
34d7cc4e7310ecc9861cc345a205360bf7049a51
Shell
puppyofkosh/bug-finding-tools
/daikon-differ/get_invariants.sh
UTF-8
644
3.203125
3
[]
no_license
#! /bin/bash cd $1 javac -g Main.java if [ $? -ne 0 ]; then exit 1 fi main_class=Main command="java daikon.Chicory --daikon-args='--no_text_output --config=../config.txt' --daikon $main_class" print_invariants="java daikon.PrintInvariants --format java $main_class.inv.gz" # First run the program with just passi...
true
f1695ea2c41c54ded3acdd7bbe3731c07e126149
Shell
CNJJC/lterouter
/tr069/tr069/InternetGatewayDevice.WEB_GUI.Network.LTE_Setting.Status.UL_Mcs
UTF-8
325
2.734375
3
[]
no_license
#!/bin/bash . /opt/tr069/common.sh if [ "$ACTION"x = "get"x ];then cpin=`uci -c /opt/config get status.module.sim_stat 2>/dev/null` if [ "$cpin"x != "true"x ];then echo '--' exit 0 fi ul_mcs=`uci -c /opt/config get tr069.radio.ulMcs 2>/dev/null` echo $ul_mcs fi ex...
true
d43a0aa6189cb0adee8efd1e3d83b109e3c6913d
Shell
GChalony/DocsBackup
/on_plugged.sh
UTF-8
1,338
4.1875
4
[]
no_license
#!/bin/bash LOG_FILE=/home/gregnix/Documents/Informatique/bash/DocsBackup/backups.log DAYS_THRESHOLD=1 BACKUP_FOLDER=/media/gregnix/GregWD/Backups NOTIFICATION_PIPE=/home/gregnix/Documents/Informatique/bash/DocsBackup/pipe log() { echo $(date +'%Y-%m-%d %H:%M:%S') $1 >> $LOG_FILE } sendNotif(){ echo $1 > $NOTIFIC...
true
4d5c2f5d7201ddbf08433abe392dcb02ed98b9b7
Shell
HU-TI-V1EOS/v1eos-Alex-D-G
/maakLogin
UTF-8
575
3.859375
4
[]
no_license
#!/bin/bash echo Geef username: read name; if [ -z "$name" ] then name=$(whoami) fi echo Welkom $name! index=0 while [ "$index" -eq 0 ] do echo Geef wachtwoord "(min 8 characters):" read password if [ "${#password}" -gt 7 ] then echo Confirm password: read newPassword if [ "$newPassword" = "$password" ] ...
true
bd228cb43f9631f8f34b65210d4c46331565d3b6
Shell
kyldvs/jsphysics
/scripts/build
UTF-8
347
3.03125
3
[]
no_license
#! /bin/bash -e # directory this script is located in SCRIPTS=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) # some convenient aliases COMMONER="$SCRIPTS/commoner" ROOT="$SCRIPTS/.." BUILD="$ROOT/build" # for now build everything into the build directory /usr/bin/env node "$COMMONER" --relativize --use-provides-m...
true
85430e098f5141deeb9ab1800ed2dd40cae7bc63
Shell
KBNLresearch/spatio-temporal-topics
/st/preprocess/set_years.sh
UTF-8
91
2.859375
3
[]
no_license
#!/bin/bash start=1914 end=1940 for (( i=$start; i<=$end; i++ )) do echo $i done
true
9fe00349bd1f85f1ee5375c746df265b747ac283
Shell
toddgator/tiberius
/library/rhel7/S22-nessus-agent.sh
UTF-8
2,162
2.984375
3
[]
no_license
#!/bin/bash # # Installs/Configures Nessus agent. . /etc/sdi/thig-settings rpm -Uvh http://thirdparty.thig.com/tenable/agents/${OSANDVERSION}/NessusAgent-${OSANDVERSION}-latest.rpm # Remove any old associations # CMH: fairly certain this doesn't work though /opt/nessus_agent/sbin/nessuscli agent unlink --force sleep...
true
ab653ecfcad56f8f13962efbeebda8758494e167
Shell
uomsystemsbiology/hbgm
/mtt/bin/trans/ibg2abg_m
UTF-8
2,878
3.875
4
[]
no_license
#! /bin/sh ###################################### ##### Model Transformation Tools ##### ###################################### # Bourne shell script: ibg2abg_m # Based on rbg2abg_m while [ -n "`echo $1 | grep '^-'`" ]; do case $1 in -I ) info=info ;; -nounits ) units=no ;; *) e...
true
7aa2c53b9a50781b191c539a72da84febe02daff
Shell
iiwoai/php
/7.0/php_nginx/start.sh.bak
UTF-8
1,942
3.3125
3
[ "MIT" ]
permissive
#!/bin/bash # Disable Strict Host checking for non interactive git clones # Enable custom nginx config files if they exist if [ -f /var/www/html/conf/nginx/nginx.conf ]; then cp /var/www/html/conf/nginx/nginx.conf /etc/nginx/nginx.conf fi if [ -f /var/www/html/conf/nginx/default.conf ]; then cp /var/www/html/co...
true
5d959f01683cf101819573ad155526bf94d92ff1
Shell
hao810/shell
/cut_nginx_logs.sh
UTF-8
795
3.3125
3
[]
no_license
#!/bin/bash #初始化 LOGS_PATH=/usr/local/nginx/logs YESTERDAY=$(date -d "yesterday" +%Y%m%d) #按天切割日志 mv ${LOGS_PATH}/access.log ${LOGS_PATH}/access_${YESTERDAY}.log #进行打包 cd ${LOGS_PATH} tar -zcvf access_${YESTERDAY}.log.tar.gz access_${YESTERDAY}.log --remove-files #向nginx主进程发送USR1信号,重新打开日志文件,否则会继续往mv后的文件写数据的。原因...
true
36e7bcfa2b07210d796e7793113c0379a4894f50
Shell
co0p/drone-heroku-container-plugin
/plugin.sh
UTF-8
1,128
3.328125
3
[]
no_license
#!/bin/bash # needed variables taken from environment TOKEN=${PLUGIN_TOKEN} CONTAINER=${PLUGIN_CONTAINER} APP=${PLUGIN_APP} # will be used to release app to heroku PAYLOAD='{ "updates": [ { "type": "web", "docker_image": "IMAGE_ID_TO_REPLACE" } ] }' echo "using Container=${CONTAINER}" echo "u...
true
fba3e40159fa979c57fcc4b25f34dd17ebd5f37c
Shell
jadia/gvisor_analysis
/configs/import_config.sh
UTF-8
3,333
3.15625
3
[]
no_license
#!/bin/bash #### Constants #### # TEST_IMPORT_LIST=() TEST_FILE="test.sh" #### import #### # import django DJANGO_FOLDER_PATH="experiments/import/django/" DJANGO_APP_NAME="django" DJANGO_NUM_TRAILS=5 # import flask FLASK_FOLDER_PATH="experiments/import/flask/" FLASK_APP_NAME="flask" FLASK_NUM_TRAILS=5 # import ...
true
96609e89f40e6068ff3786bc1be3b9b9609b8849
Shell
JoeAndrew/raspap-tools
/install_wlan_drivers_8812au_88x2bu.sh
UTF-8
1,443
3.40625
3
[]
no_license
#!/bin/bash # Install Realtek wlan drivers # - only drivers for rtl8812au and rtl88x2bu devices are installed # - on older single core Raspis the compilation can take a long time (hours)! # - the drivers are installed using DKMS and will automatically be recompiled after a kernel update # which again might take a lon...
true
740acf0ce48cf316a5b2d8c891a24b3ea20b357b
Shell
ilia92/small_scripts
/tok_energo.sh
UTF-8
567
2.984375
3
[]
no_license
#!/bin/bash printf "\ntok.sh [old_day] [old_night] [new_day] [new_night]\n\n" day_tarif=0.14184 night_tarif=0.05442 other_plus=0.05398 day_kwh=$(($3-$1)) night_kwh=$(($4-$2)) printf "Day kWh:\t$day_kwh\nNight kWh:\t$night_kwh\n " day_pr=`echo "$day_kwh * ($day_tarif + $other_plus) * 1.2" | bc -l` night_pr=`echo...
true
db593ec949c1c00afdba754b80c31a6e7ffad24f
Shell
BCD-Metalproducts/packer
/packer.sh
UTF-8
273
2.84375
3
[]
no_license
#! /bin/bash cd $(dirname "$0") image="$(echo $1 | cut -d '.' -f1)" checksum="$(md5sum iso/$image.iso | cut -d ' ' -f1)" packer build -var "iso_checksum=$checksum" "$image.json" mkdir -p "images/$image" mv output-qemu/packer-qemu "images/$image.qcow2" rm -rf output-qemu
true
8c949714b6aaafc710a4e16a9b629873304eaf89
Shell
marXtevens/CMS-370-GCCLIB
/cp2vm370.sh
UTF-8
979
3
3
[ "LicenseRef-scancode-public-domain", "Unlicense" ]
permissive
#!/bin/sh # Copy and build source files to VM370 # STOP MSYS2 rewriting directory paths in the docker container export MSYS2_ARG_CONV_EXCL="vm370:;/opt" docker kill vm370 docker pull adriansutherland/vm370:builder docker run --rm -d -p 3270:3270 -p 8038:8038 -p 3505:3505 --name vm370 adriansutherland/vm370:builder # ...
true
a8d75dab0e93bed18688e8f0da40a18b2119cee3
Shell
shineit/iFlyQA
/zookeeper_kafka/script/kafka_check_online.sh
UTF-8
392
3.03125
3
[]
no_license
#!/bin/bash source ~/.bashrc DATE=$(date) LogName=$(date +"%Y%m%d") WORK_DIR=/opt/research/third_party/kafka cd $WORK_DIR #redis check MM=$(ps -C kafka-server-start.sh --no-headers|wc -l) if [ $MM = "0" ]; then echo "$DATE kafka is not ok" >> $WORK_DIR/kafka_check.$LogName.logs ./bin/kafka-server-start.sh co...
true
cff71571acf2d4e093f99ad82d3fe03ac91fa91d
Shell
tobinsouth/covid19-forecasting-aus
/scenario_modelling/scenario_pipeline.sh
UTF-8
1,215
3.015625
3
[ "MIT" ]
permissive
#!/bin/bash DATADATE=$1 # Date of NNDSS data file NSIMS=$2 # Total number of simulations to run SCENARIO='no_reversion' SCENARIODATE='2021-07-05' # This doesn't matter for a no-reversion scenario # Assumes you've already run an EpyReff for the date. If not, uncomment the following line. # jid_estimator=$(sbatch --par...
true
84299fad7d206e4c4e51e5ab989a71dd95d7a66c
Shell
brianhlin/docker-frontier-squid
/start-frontier-squid.sh
UTF-8
425
3.296875
3
[]
no_license
#!/bin/bash # Wrapper script for starting & stopping frontier squid from supervisord # stop squid if supervisord sends a TERM signal trap "/etc/init.d/frontier-squid stop" TERM # we tell squid to run in the foreground, but by telling the # shell to start it in the background and waiting for it we # prevent the sh...
true
f3389b2b0164aead50fc4c04a0811455f6198d73
Shell
julie777/user_environment
/dot_files/bash/history.sh
UTF-8
1,527
3.90625
4
[]
no_license
#!/bin/bash ## history.sh ## # get history out of home dir HISTDIR=${HOME}/.history [ -d $HISTDIR ] || mkdir --mode=0700 $HISTDIR [ -d $HISTDIR ] && chmod 0700 $HISTDIR # each shell has its own history file HISTFILE=$HISTDIR/history.$$ # don't put duplicate lines or lines starting with space in the history. # See b...
true
f96a31f3f0396e08f1672a7f5eb952fef6d440af
Shell
otto-de/queuemock
/examples/transform/receive_response.sh
UTF-8
519
3.078125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash export AWS_DEFAULT_REGION=eu-central-1 response=$(aws --no-sign-request --endpoint-url http://localhost:9324 sqs receive-message --queue-url http://localhost:9324/queue/Response) echo "Response from SQS" echo $response if [ -z "$response" ] then exit fi aws --no-sign-request --endpoint-url http://loc...
true
690f41d22dd51b83da2744bf99db244db3425eac
Shell
argsm/miscode
/Shell/rename.sh
UTF-8
228
3.296875
3
[ "MIT" ]
permissive
#!/bin/bash # rename your files # If your file contain a space, please remove it before you this script for file in `ls | grep .txt` do newfile=`echo $file | sed 's/pattern/replace/g'` mv "$file" "${newfile}" done
true
383ee80285ba4b854d8cb1a8686e6980a4155ec2
Shell
altlinux/girar
/bin/girar-task-run
UTF-8
7,935
4.03125
4
[]
no_license
#!/bin/sh -efu . girar-sh-functions . shell-args PROG0="$PROG" PROG='task run' show_help() { cat <<EOF $PROG - queue a task for build Usage: $PROG [options] [<task id>] If no task id is specified, the latest task created by the current user will be choosen. Options: -m <word> use the given <word> as the re...
true
3bcf18ef9333725d83ba5b34fd47f83f917f457e
Shell
falconray0704/bak_sysCfg
/ubt/docker/docker.sh
UTF-8
3,037
3.6875
4
[]
no_license
#!/bin/bash set -o nounset set -o errexit #set -x install_DockerCompose_func() { # refer to https://docs.docker.com/compose/install/#install-compose sudo curl -L https://github.com/docker/compose/releases/download/1.23.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose sudo chmod +x ...
true
a50bea52ccbf0d4fdaa1af5b4394c113ff7d88a9
Shell
cloudfoundry/bosh-system-metrics-server-release
/jobs/system-metrics-server/templates/ctl.erb
UTF-8
682
3.390625
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash RUN_DIR=/var/vcap/sys/run/system-metrics-server LOG_DIR=/var/vcap/sys/log/system-metrics-server PIDFILE=${RUN_DIR}/system-metrics-server.pid JOB_DIR=/var/vcap/jobs/system-metrics-server CONFIG_DIR=${JOB_DIR}/config CERT_DIR=${JOB_DIR}/config/certs PACKAGE_DIR=/var/vcap/packages/system-metrics-server case...
true
68842d7b017285447e05a1c272cd5255b8e6d517
Shell
makenew/serverless-python
/makenew.sh
UTF-8
2,780
4.09375
4
[ "MIT" ]
permissive
#!/usr/bin/env sh set -e set -u find_replace () { git grep --cached -Il '' | xargs sed -i.sedbak -e "$1" find . -name "*.sedbak" -exec rm {} \; } sed_insert () { sed -i.sedbak -e "$2\\"$'\n'"$3"$'\n' $1 rm $1.sedbak } sed_delete () { sed -i.sedbak -e "$2" $1 rm $1.sedbak } check_env () { test -d .git...
true
4298358674e424fdff14e39c952b9c42dd5607cc
Shell
webfrogs/ToolKit
/configs/xcode/xcode-configer.sh
UTF-8
431
3.5625
4
[]
no_license
#!/bin/sh set -e ShellFolderPath=$(cd $(dirname $0) && pwd) cd "${ShellFolderPath}" case "$(uname -s)" in Darwin) SnippetsFolderPath="$HOME/Library/Developer/Xcode/UserData/CodeSnippets" if [[ -d "${SnippetsFolderPath}" ]]; then rm -rf "${SnippetsFolderPath}" fi if [[ -L "${SnippetsFolderPath}" ]]; then ...
true
7f65f3eca03568d68bcad5084ff6e6df57107fa6
Shell
activeagenda/aa-patch
/s2a-pomo
UTF-8
303
2.546875
3
[]
no_license
#!/bin/bash # Merge *.po AA files and produce finall *.mo file cd /var/www/s2a/active_agenda/lang/$1/LC_MESSAGES shopt -s extglob msgcat --use-first active_agenda.base.$1.po !(active_agenda|active_agenda.base.*).po | msgattrib --no-fuzzy -o active_agenda.po msgfmt active_agenda.po -o active_agenda.mo
true
7d50260d71f85effbb73ce39566d461444551965
Shell
jnwatts/espnode
/ssl/clients/file_to_hex.sh
UTF-8
329
3.796875
4
[ "BSD-2-Clause" ]
permissive
#!/bin/bash if [ $# -lt 1 ]; then echo "Usage: ${0} <filename> [<varname>]" >&2 exit 1 fi filename="${1}" varname="${2:-$(basename ${filename} | tr '.' '_')}" echo "${varname}" while IFS='' read -r line || [[ -n "${line}" ]]; do printf "%s\r\n" "${line}" | od -A n -t x1 | tr -d " \t\n\r" done < "${filena...
true
d11477b95fa93ca36b987f074dfb8f77f1d40034
Shell
caliburn1994/ubuntu-minikube
/deploy/sub/localstack/test/s3.sh
UTF-8
1,306
3.53125
4
[]
no_license
#!/usr/bin/env bash PROJECT_ROOT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")"/../../../.. >/dev/null 2>&1 && pwd)" && . "${PROJECT_ROOT_PATH}/deploy/common.sh" . "${PROJECT_ROOT_PATH}/deploy/sub/localstack/aws/bashrc_aws.sh" || echo_warn "Failed to import bashrc_aws.sh" bucket_name=test-bucket function create_bucket(...
true
c6ae4ab6a387db28bbd2ca3a23104746b1fb7c2c
Shell
ODEX-TOS/packages
/cln/repos/extra-x86_64/PKGBUILD
UTF-8
568
2.78125
3
[ "GPL-1.0-or-later", "MIT" ]
permissive
# Maintainer: Eric Bélanger <eric@archlinux.org> pkgname=cln pkgver=1.3.6 pkgrel=2 pkgdesc="Class library for numbers" arch=('x86_64') url="https://www.ginac.de/CLN/" license=('GPL') depends=('gmp') makedepends=('texlive-core') source=(https://www.ginac.de/CLN/${pkgname}-${pkgver}.tar.bz2) sha1sums=('144f15a57f4b25ada...
true
7c9c0567babe4916c78ce9fecab0c147661f2cc0
Shell
byun-sungwoo/configs
/shell/.my_commands.sh
UTF-8
2,980
2.765625
3
[]
no_license
# ███╗ ███╗██╗ ██╗ ██████╗ ██████╗ ███╗ ███╗███╗ ███╗ █████╗ ███╗ ██╗██████╗ ███████╗ ███████╗██╗ ██╗ # ████╗ ████║╚██╗ ██╔╝ ██╔════╝██╔═══██╗████╗ ████║████╗ ████║██╔══██╗████╗ ██║██╔══██╗██╔════╝ ██╔════╝██║ ██║ # ██╔████╔██║ ╚████╔╝ ██║ ██║ ██║██╔████╔██║██╔████╔██║█████...
true
a7ed5d9ffa8d2e361385e10d287c27aeeb482a5e
Shell
joiceedattel/Scripts
/Scripts_Mumbai/nondc_script/script/test1_ext.sh
UTF-8
634
3.203125
3
[]
no_license
#!/bin/bash # variable Declaration & Initialization... extension = `date +%Y%b%d` backuppath="/home/Abhinav/backup/$extension/cobol/" echo "$extension" echo " " echo " " echo " moving gnt's to efeap bin " echo " ================================================ " echo ...
true
2906e71919f16e05a62c58faf0cf1725a8df9f53
Shell
DianaChj/dockerized-webpage-test
/d_script.sh
UTF-8
554
3.484375
3
[]
no_license
#!/bin/bash API_KEY=$1 URL=$2 USERNAME=$3 PASSWORD=$4 node index.js $API_KEY $URL $USERNAME $PASSWORD counter=0 DIR=/home/node/app/artifacts/ FILES_IN_DIR=("report-0.trace.json" "report-0.devtoolslog.json" "report.html" "screenshot.jpg" "waterfall.png" "video.mp4") ls -la $DIR if [ -d "$DIR" ]; then echo "$DIR is ...
true
adad254b59ce6eab30ad9980d406747979bc1b2d
Shell
kaki-xxx/compete_temp
/update_snippet.sh
UTF-8
341
2.828125
3
[]
no_license
#!/usr/bin/env bash # update snippet for VSCode # required: jq snippet_path="/mnt/c/Users/sukam/AppData/Roaming/Code/User/snippets" snippet_file="${snippet_path}/rust.json" tmpfile=$(mktemp) cp ${snippet_file} "${snippet_file}.old" cargo snippet -t vscode >${tmpfile} jq -s add ${tmpfile} template_with_placeholder.j...
true
315af5ce51255eba4647741644b69ba6fffd96d2
Shell
jbeilstenedmands/dials
/.travis/clean-cctbx-dxtbx
UTF-8
275
3.0625
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash for repository in cctbx_project dxtbx; do if [ -e $HOME/build_dials/modules/${repository}/.git ]; then echo Cleaning ${repository} repository cd $HOME/build_dials/modules/${repository} || exit 1 git reset --hard HEAD git clean -dffxq fi done
true
384549ff6b1a31d78afd8a592788c26f78925b40
Shell
wenh81/simulations-fiber
/single-polarization/simulationForChayan/interleave4OOK/cluster_powerOOK_0dBm_channelSpacing_100GHz/simulateScenario160.sh
UTF-8
1,197
2.546875
3
[]
no_license
#!/usr/bin/env bash #SBATCH -p glenn #SBATCH -A C3SE2018-1-15 #SBATCH -J simulateScenario160 #SBATCH -N 1 #SBATCH -t 0-10:00:00 #SBATCH -o simulateScenario160.stdout #SBATCH -e simulateScenario160.stderr module load matlab cp -r $SLURM_SUBMIT_DIR/* $TMPDIR cd $TMPDIR array=( "-18;0;83000000000;100000000000" "-17;...
true
a3102ff76b07be86e377b36a33b850d7d62bfc06
Shell
maghoff/plaintalk-documentation
/package.sh
UTF-8
125
2.53125
3
[]
no_license
#!/bin/bash set -e FILES="*.js *.html *.css *.ico font/*" tar -zc --transform 's,^,plaintalk/,' -fplaintalk.tar.xz $FILES
true
bfe42635924c69cf0106f3680acc294e8f9eab22
Shell
xiatian0918/auto_scripts
/工作脚本Shell/add_data_ansible.sh
UTF-8
489
3.046875
3
[]
no_license
#!/bin/sh md51=$(md5sum /mnt/monitor_data/vm_ip/vm_vm_ip.txt|awk '{print $1}') sleep 1m md52=$(md5sum /mnt/monitor_data/vm_ip/vm_vm_ip.txt|awk '{print $1}') if [ "$md52" != "$md51" ];then sed -i '26,$d' /etc/ansible/hosts for i in `cat /mnt/monitor_data/vm_ip/vm_vm_ip.txt ` do echo -e "$i ansible_user=\"a...
true
b4138796d00c739d5c88e2c199d45ecbb8fbbdbe
Shell
feevars/fatec4SEM
/ISO200-Sistemas Operacionais II/Fernanda/1110481823022/prova/prova_exec01/exec01.sh
UTF-8
393
3.5625
4
[]
no_license
#!/bin/bash LIGHTCYAN='\033[1;36m' NOCOLOR='\033[0m' echo -e "${LIGHTCYAN}Fazer um script que leia do terminal o nome de um usuário e escreva na tela quais são os grupos que este pertence." echo "usuarios disponiveis: " awk -F':' '{ print $1}' /etc/passwd echo "Diz aí o usuário que você deseja verificar os grupos...
true
a3d74f384b63bfb01ae2d53bd885617f70f7ef2f
Shell
aizuddin85/advdev-blue-green
/Infrastructure/bin/cleanup.sh
UTF-8
346
3.015625
3
[]
no_license
#!/bin/bash # Delete all Homework Projects if [ "$#" -ne 1 ]; then echo "Usage:" echo " $0 GUID" exit 1 fi GUID=$1 echo "Removing all Homework Projects for GUID=$GUID" oc delete project $GUID-nexus oc delete project $GUID-sonarqube oc delete project $GUID-jenkins oc delete project $GUID-parks-dev oc delet...
true
1469693797545ea7b2c0c73098a3d25e352f492c
Shell
chocolat0w0/github-pull-requests
/review.sh
UTF-8
312
2.84375
3
[]
no_license
#!/bin/bash git fetch --prune > /dev/null 2>&1 git checkout dev > /dev/null 2>&1 git branch -D reviewing > /dev/null 2>&1 script=$(dirname ${0})/prfetch.py number=`${script} | percol | sed 's/,/_/g' | sed -E 's/[\t ]+/,/g' | cut -d, -f2` git fetch origin pull/${number}/head:reviewing git checkout reviewing
true
87542d622187ab030aadcf99f0253f0bd2fc3bde
Shell
Vad1mo/exoscale-cloud-controller-manager
/integtest/test-nlb-ingress.bash
UTF-8
5,716
3.734375
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -e source "$INTEGTEST_DIR/test-helpers.bash" echo ">>> TESTING CCM-MANAGED NLB INSTANCE" echo "- Deploying cluster ingress controller" sed -r \ -e "s/%%EXOSCALE_ZONE%%/$EXOSCALE_ZONE/" \ "${INTEGTEST_DIR}/manifests/ingress-nginx.yml.tpl" \ | kubectl $KUBECTL_OPTS apply -f - # It is not...
true
5f4e820b5f250259293b58e8391139e71f868039
Shell
clauw87/it_academy_git_repo
/Bash/bash_scripts/guess.sh
UTF-8
438
4.15625
4
[]
no_license
#!/bin/bash rand=$RANDOM secret=${rand:0:1} function game { read -p "Guess the number I am thinking of [n] " guess while [[ $guess != $secret ]]; do read -p "Nope. try again! " guess done echo "Good job, $secret is it! You are great at guessing!" } function generate { echo "A random number is: $rand" echo -e "Hi...
true
e8c5c680cf8fcd6ad30f457cc90cbd8905eb9eae
Shell
sreynen/advent-2016
/7b.sh
UTF-8
447
2.671875
3
[]
no_license
cat 7-input.txt | sed 's/\(\[[a-z]*\]\)\(.\{1,\}\)/-\2-\1/g' | sed 's/\(\[[a-z]*\]\)\(.\{1,\}\)/-\2-\1/g' | sed 's/\(\[[a-z]*\]\)\(.\{1,\}\)/-\2-\1/g' | sed 's/\(\[[a-z]*\]\)\(.\{1,\}\)/-\2-\1/g' | sed 's/\([a-z]\)\1\1/\1--\1/g' | grep -E "^[^\[]*([a-z])([a-z])\1.*\[.*\2\1\2" | wc -l # Move all [] to the end (repeat 4...
true
65385d2538cd1af1241ea0795f9c753afdeef553
Shell
FauxFaux/debian-control
/s/sbws/sbws_1.0.2-1_all/postrm
UTF-8
883
3.28125
3
[]
no_license
#!/bin/sh set -e case $1 in purge) if which deluser >/dev/null 2>&1 ; then deluser --quiet --system sbws > /dev/null || true else echo >&2 "Not removing sbws system account because deluser command was not found" fi ;; esac # Automatically added by dh_installsystemd/11.5.3 if [ ...
true
56f727b3aa31b440906fb8b460445f29b9c55b7a
Shell
KsanterX/scripts
/bash/touchf_install.sh
UTF-8
440
3.984375
4
[]
no_license
#!/bin/bash EX_FOLDER="/usr/local/bin" SCRIPT_NAME="touchf" function script_install() { if [ ! -d $EX_FOLDER ] then mkdir $EX_FOLDER log "o1" fi cp $SCRIPT_NAME $EX_FOLDER/$SCRIPT_NAME chmod +x $EX_FOLDER/$SCRIPT_NAME log "o2" } function log() { case $1 in o1) msg="Directory $EX_FO...
true
90298cb18b27fb773ed40b0374c6e8ede4d495b3
Shell
GoC-Spending/fuzzy-tribble
/script/build_container.sh
UTF-8
1,069
2.609375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash set -ex apt-get update apt-get install -y software-properties-common python-software-properties python3-pip add-apt-repository -y ppa:deadsnakes/ppa apt-get update && apt-get install -y python3.6 python3.6-dev export DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server-5.7 libmysqlclient...
true
ff2d4f3ae62e430f3a269467ea2f96f69b0b70b7
Shell
benjamin-thomas/scrot-service
/manage/install
UTF-8
690
3.0625
3
[]
no_license
#!/bin/bash set -e set -x function missing_dep { echo "Missing dependency: $1, exting now!" exit 1 } command -v feh || missing_dep "feh" command -v scrot || missing_dep "scrot" command -v mogrify || missing_dep "mogrify (from imagemagick)" cp -s $(pwd)/bin/scrot-service-read ~/.local/bin/ mkdir -p ~/.local/sys...
true
c690a52087d763cde8a5d12bbccfba99062ced1d
Shell
Jensjee/Linux-eindopdracht
/installminion.sh
UTF-8
529
3.3125
3
[]
no_license
#! /usr/bin/bash read -p "minion naam: " MINION_NAAM #naam van de minion read -p "IP master: " IP_MASTER #ip van de master # installeer salt curl -L https://bootstrap.saltstack.com -o install_salt.sh sudo sh install_salt.sh -A $IP_MASTER sudo service salt-minion stop #minion naam veranderen sudo rm -rf /etc/salt/m...
true
dfafd41e735e7f9e6bf8e2970f8c8e2f963ed486
Shell
qedadmin/docker-base-debian
/root/etc/cont-init.d/01_nis.sh
UTF-8
1,173
3.546875
4
[]
no_license
#!/usr/bin/with-contenv bash set -e DEFAULTDOMAIN=${DEFAULTDOMAIN:=""} NISSERVERS=${NISSERVERS:=""} if [ ! -z "$DEFAULTDOMAIN" ] && [ ! -z "$NISSERVERS" ]; then echo "Setting up NIS/YP" echo "defaultdomain: '${DEFAULTDOMAIN}'" echo "NIS server: '${NISSERVERS}'" echo ${DEFAULTDOMAIN} > /etc/defaultdo...
true
e76ceb6f4731053562ba6ebc94b4880f6e4142a2
Shell
rtiangha/kobo-start-menu-09
/KSM09/adds/kbmenu/helpers/activate_dictionary_helper.sh
UTF-8
1,806
3.515625
4
[]
no_license
#!/bin/sh ksmroot=${ksmroot:-"/adds/kbmenu"} ksmuser=${ksmuser:-"/mnt/onboard/.adds/kbmenu_user"} sqliteprog=$ksmroot/tools/sqlite3 database=/mnt/onboard/.kobo/KoboReader.sqlite dictionary="$1" languageCodeFile="${ksmuser}/txt/languageCodes.txt" if [ ! -f "$languageCodeFile" ]; then echo "Error:_Cannot_find_langu...
true
685c4ea2df1ac56d805519033df5abc0c35ccf97
Shell
mjwilber/mwilber-dotfiles
/bin/ingester
UTF-8
2,458
4.25
4
[]
no_license
#!/usr/bin/env bash # # Renames specifiex file(s) by using exif data (via exiv2). # to $year/$month/$year-$month-$day/Wilber_$year$month$day_$imageNumber.$ext # # The only thing configurable at this point is the prefix using the -p option # # Requires exiv2 for meta data extraction and setting the file's timestamp # de...
true
e14af180fc38a74afff881e30e83342c9eeee952
Shell
jokeyrhyme/dotfiles
/config/bashrc
UTF-8
522
3.21875
3
[]
no_license
#! /usr/bin/env bash if [ -f ~/.dotfiles/config/environment.sh ]; then # shellcheck source=./config/environment.sh . ~/.dotfiles/config/environment.sh fi # If not running interactively, don't do anything else [[ $- != *i* ]] && return if [ -f ~/.dotfiles/config/interactive.sh ]; then # shellcheck source=./conf...
true
ce670395653c5d6b235d04183ae4589a62b83063
Shell
jjm3x3/git-shell-setup
/.git-hooks/prepare-commit-msg
UTF-8
628
2.703125
3
[ "MIT" ]
permissive
#!/bin/sh # prepare-commit-msg hook does: # - Add placeholder # - Insert placeholder at default text in commit body # - Append placeholder for conflict merge commits only # - Massage commit message # - Delete default text in commit body # - Add line after branch # - Add semver instructions to commit message # - Re...
true
2c805dc290b3f565ed5482563f3fb645a7546cfe
Shell
544759698/code_util
/bin/shell_20230116.sh
UTF-8
981
3.109375
3
[]
no_license
# 1 vim vim file1 # 1.1 命令模式 dd # 删除一行 # 1.2 底行模式 :set nu/nonu #显示/不显示行号 :/world (n N) nohl # 查找world (前一个 后一个)取消高亮 :shift+g / gg # 到文件尾/头 # 2 awk 逗号分隔找出第二列所有值并去重 cat all_part| awk -F, '{print $2}'| sort -u > all_part_uni # 3 sort sort a.txt b.txt | uniq -d # 将a.txt b.txt文件进行排序,uniq使得两个文件中的内容为唯一的,使用-d输出两个文件中次数大于1的内...
true
d6ed25f1b42df60e9df471aed458977a0ed7668b
Shell
xuyueshu/YZQREPO
/yhsjzgtx31/Checkpoint/mission_overdue_rate.sh
UTF-8
3,579
2.859375
3
[ "Unlicense" ]
permissive
#!/bin/sh cd `dirname $0` source ./config.sh exec_dir mission_overdue_rate TARGET_TABLE=ef_assess_point_data_value_info #DATA_NAME=任务逾期率 DATA_NO=RWYQL function import_table() { find_mysql_data " set names utf8; INSERT INTO ${TARGET_TABLE} (data_no,data_name,first_index_type,...
true
26c71664f72fb2024e614c975f37a2c065107cea
Shell
splunk/splunk-connect-for-ethereum
/examples/k8s/generate-from-helm
UTF-8
899
3.84375
4
[ "Apache-2.0" ]
permissive
#!/bin/bash set -euo pipefail SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" ETHLOGGER_CHART_DIR="$SCRIPT_DIR/../helm/ethlogger" tmpdir=$(mktemp -d) trap "rm -rf $tmpdir" EXIT render() { local outdir=$1 helm template \ ethlogger \ --namespace ethlogger \ --set networkName=de...
true
2bf979d8f116182c6780f82fe73353840b1c3344
Shell
iot-chalmers/iot-testbed
/raspi/scripts/cc2538dk/serialdump.sh
UTF-8
257
2.640625
3
[]
no_license
#!/bin/bash log_path=$1 tty_path=`ls /dev/serial/by-id/usb-FTDI_FT231X_USB_UART_*` nohup ~/scripts/cc2538dk/contiki-serialdump -b115200 $tty_path | ~/scripts/cc2538dk/contiki-timestamp > $log_path & > /dev/null 2> /dev/null sleep 1 ps | grep "$! " exit $?
true
766afa06ff9980dc9df46ad22c8c4ae7712d9b0f
Shell
davisking/dlib
/docs/makedocs
UTF-8
9,275
3.890625
4
[ "BSL-1.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash . bash_helper_functions report_failure () { echo " **** failed to complete **** " exit 1 } htmlify_python_file () { pygmentize -f html -O full,style=vs $1 > $1.html } add_links_between_example_programs() { EXT=$3 # Get the list of example program filenames pushd $1 > /dev/null ...
true
b9bc90bfc6fde74f06779690ef0ef5cac7054699
Shell
stjordanis/rapids-compose
/scripts/06-setup-python-intellisense.sh
UTF-8
2,669
3.328125
3
[]
no_license
#!/usr/bin/env bash set -Eeo pipefail COMPOSE_HOME=$(dirname $(realpath "$0")) COMPOSE_HOME=$(realpath "$COMPOSE_HOME/../") RAPIDS_HOME=$(realpath "$COMPOSE_HOME/../") cd "$RAPIDS_HOME" PYTHON_DIRS="${PYTHON_DIRS:-rmm/python raft/python \ cuml/python ...
true
55e997d8b92dd026a63f6e3376840f9047e4164b
Shell
petronny/aur3-mirror
/facebookplugin/PKGBUILD
UTF-8
718
2.53125
3
[]
no_license
# Maintainer: renart <lerenart at gmail dot com> pkgname=facebookplugin pkgver=1.0.1 pkgrel=1 pkgdesc='Facebook photo upload plugin.' url='http://www.facebook.com' arch=('i686') depends=('libjpeg6' 'libpng12' 'libtiff4') license=('custom') source=(http://www.facebook.com/fbplugin/linux-x86/install/FacebookPlugIn-${pkg...
true
97b55a6dc4e9e64e795223c34678073409310ad0
Shell
spacelephant/www.spacelephant.org
/publish_ghpages.sh
UTF-8
969
3.703125
4
[]
no_license
#!/bin/bash PUBLISH_BRANCH="gh-pages" if [[ $(git status -s) ]] then echo "The working directory is dirty. Please commit any pending changes." exit 1; fi echo "Deleting old publication" rm -rf public mkdir public git worktree prune rm -rf .git/worktrees/public/ echo "Checking out ${PUBLISH_BRANCH} branch in...
true
7395a514ebb4a1b90df86feadec8cea306d3f2cd
Shell
wido/cloudstack-package-docker-deb
/dists/ubuntu1404/build.sh
UTF-8
342
3.09375
3
[]
no_license
#!/bin/bash set -e if [ ! -d "cloudstack" ]; then echo "Could not find directory 'cloudstack'" exit 1 fi cd cloudstack VERSION=$(grep '^ <version>' pom.xml| cut -d'>' -f2 |cut -d'<' -f1) DISTCODE=$(lsb_release -sc) dch -b -v ${VERSION}~${DISTCODE} -u low -m "Apache CloudStack Release $VERSION" dpkg-buildp...
true