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
5a0451715a633cc0043d84084b03d4d9f34821a4
Shell
liam1977/lbbft
/scripts/linux/hsvcCPU.sh
UTF-8
293
2.9375
3
[]
no_license
#!/bin/bash sleep 5 # 让hotstuff server们冷静一下 hsOutput=./log/hotstuff/1.out cpuresult=`ps aux | grep hotstuffserver | grep -v 'grep' | awk '{print $10}' | tr "\n" ","|sed -e 's/,$/\n/'|tr "," " "` echo "cpus(hh:mm:ss):" $cpuresult >> $hsOutput ./getCPU.sh $cpuresult >> $hsOutput
true
5f8ac2ee370e4c2c6df175fe16481cfa04ae04c2
Shell
justintien/blog
/ops/linux/shell/raspberry.sh
UTF-8
415
3.1875
3
[]
no_license
#!/bin/bash DATE_END_ShangHai=$(TZ=":UTC" date +%Y-%m-%d_%H:%M:%S%z) LOG_FILE=/data/log/temperature_$DATE_END_ShangHai.log printf "%-15s%5s\n" "TIMESTAMP" "TEMP(degC)" > $LOG_FILE printf "%20s\n" "......................" >> $LOG_FILE while true do temp=$(vcgencmd measure_temp | egrep -o '[0-9]*\.[0-9]*') tim...
true
1283dd24bf26bd861aeb1e37a084cc78591d3297
Shell
greymd/dotfiles
/installer/Linux/setup-tmux.sh
UTF-8
355
3.453125
3
[]
no_license
#!/bin/bash if ! has "tmux" ; then if ! install_package "tmux"; then msg_fail "Failed to install tmux" exit 1 fi else msg_info "tmux is already installed" fi TPM_DIR="${HOME}/.tmux/plugins/tpm" if [[ ! -d "${TPM_DIR}" ]]; then download_github_repo "tmux-plugins/tpm" "${HOME}/.tmux/plugins/tpm" else m...
true
c1e035092504901c6fd2502584aab9ff83bd2bc1
Shell
zxclovezby/miRNAseq-pipeline
/08-resultFiles.sh
UTF-8
5,734
3.296875
3
[]
no_license
#!/bin/bash ##Link or copy result files into result folder js() { jq ".$1" $config | sed 's/"//g' } fastq_plot() { #Rscript $main_dir/ngs-qc-plots.R . $1 unzip -c ${1}_fastqc.zip ${1}_fastqc/fastqc_data.txt > fastqc_data.txt python $main_dir/fastqc-split.py fastqc_data.txt if [ $(cat length-dist...
true
e0d862eebd70f26d0290ab4b3630dcfd333a062d
Shell
bridgefog/desktop
/bin/install-test-fixtures
UTF-8
542
2.515625
3
[]
no_license
#!/bin/bash set -e -x getFixture() { output="test/fixtures/$2" [ -e "$output" ] && rm -rf "$output" ipfs get --output="$output" $1 } # This is a longer (~9meg) mp3 getFixture QmSYhvNcdzQ4Qqdmx38BMu9J759hVnMajefMUyKzjs2Ua1 MLKDream.mp3 getFixture QmVUaz5ActFDKkPSxvKw1gUZCS2ZjVe8L6M7fTXtXxHB6j MLK.jpg # Bunch of...
true
da4189a73040ba73d6a657e8bd3222ade38bda71
Shell
arlencox/SETr
/tests/test_vars.sh
UTF-8
309
3.03125
3
[ "MIT" ]
permissive
#!/bin/bash tf=/tmp/test.sdsl for i in {0..40} do unlink $tf # generate test for((j=0; $j < $i * 2; j = $j + 2)) do echo "x$j = x$(($j + 1));" >> $tf done cat tests/for-in-update.sdsl >> $tf echo "$i pairs" time ./Main.native -bdd-full $tf time ./Main.native -bdd-full -pack $tf done
true
1bcb9be28272b904ded75776d955749bd2800df8
Shell
tonisvaino/skriptimine
/praks7/yl2
UTF-8
1,068
3.34375
3
[]
no_license
#!/bin/bash #Kasutaja sisestab kuu numbri #skript väljundab mis aastajaga on tegemist read -p "Sisesta kuu number: " kasutajakuu #Võtan kasutajalt info mis kuud ta tahab if [ $kasutajakuu -gt 0 ] && [ $kasutajakuu -lt 3 ]; #kontrollin kas kuu on 1 või 2. then echo "On talv" #prindin välja kasutajale mis aas...
true
5edce8d7631839523425ba6881d20baacbc10124
Shell
xd5520026/hi3798mv100
/HiSTBLinuxV100R005C00SPC041B020/source/rootfs/lxc/scripts/lxc_create.sh
UTF-8
5,705
2.90625
3
[]
no_license
#!/bin/sh # create fs directory tree install_fs_dir() { tree="\ $PREFIX/$lxc_rootfs_dir/dev \ $PREFIX/$lxc_rootfs_dir/home \ $PREFIX/$lxc_rootfs_dir/home/stb \ $PREFIX/$lxc_rootfs_dir/root \ $PREFIX/$lxc_rootfs_dir/etc \ $PREFIX/$lxc_rootfs_dir/etc/init.d \ $PREFIX/$lxc_rootfs_dir/bin \ $PREFIX/$lxc_rootfs_dir/sbin...
true
1abcd60bf094e73f35b04c0ea006bc1b70c9a6ad
Shell
subhsamal/CloudComputing_Course_Project
/Automation/Automate.sh
UTF-8
2,330
2.921875
3
[]
no_license
#!/bin/bash ####AUTHOR : Ashwin ##Network name and subnet name networkName="privateNetwork" subnetName="privateNetwork_sub" ##router name routerName="router" ##range of IP range="10.0.0.0/24" ## Import Key for SSH KEY="Key" ##Specify the boot Image BOOTIMG="cirros-0.3.4-x86_64-uec" ##Specify the flavor FLAVOR="m1....
true
224e21ecd1babd08c65151f2cbd63d502e918ecb
Shell
petronny/aur3-mirror
/promethean-activboard-git/PKGBUILD
UTF-8
2,231
3.21875
3
[]
no_license
# Contributor: thorsten w. <p@thorsten-wissmann.de> # heavily inspired by the tp_smapi PKGBUILD # make the AUR parser think the following lines are comments # to bypass the buggy parser check [[ "#" ]] && _kernext=${_kernext:-} [[ "#" ]] && _kernver=${_kernver:-$(uname -r)} [[ "#" ]] && _extramodules=$(readlink -f "/l...
true
4e5534364a84ed69400730613748d21c57d064b0
Shell
elvispt/zeteticelench
/docker/dev.sh
UTF-8
526
3.234375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash info() { echo -e "\e[92m\e[104m$1\e[49m\e[39m"; } separator() { info "##################################################"; } separator info "Setting container to development mode" info " - Install Xdebug" info " - Disable Opcache" pecl install xdebug-2.8.0 docker-php-ext-enable xdebug mv /usr...
true
4ddcc09ba339c07261070d5e8e12c4d05b90e176
Shell
omatron/bruteforcer
/brute.sh
UTF-8
1,432
3.21875
3
[]
no_license
inicial=10 final=100 file="list.txt" bak=".bak" #starts Tor systemctl start tor count=$(($final-$inicial+1)) i=$inicial #checks if backup exists if [ -f "$bak" ] then itemp=`cat $bak` read -p "Backup file found: $itemp. Continue from backup (Y/n)?" choice case "$choice" in y|Y ) ...
true
1ef5557b6edea8ec7ca9f605cec0dd1d05de375e
Shell
fanglingsu/dotfiles
/bin/time-extract
UTF-8
1,464
4.40625
4
[]
no_license
#!/usr/bin/env bash # extracts time data from stdin. 0.5d 2h 10m DAYHOURS=8 TAG="" PATTERN='([[:digit:]]*\.)?[[:digit:]]+[dhm]' source functions.sh # show the usage and help message show_help() { cat >&2 << EOM USAGE: $(basename $0) [OPTIONS] OPTIONS: -d HOURS Set the hours per day (for example 8 to cover a...
true
1bbf65ae87383709ecb6fe370ef847937662a253
Shell
snicoper/snicoper.com
/cron/media_backup.sh
UTF-8
590
3.3125
3
[ "MIT" ]
permissive
#!/bin/bash # Crea un backup del directorio media. # Crea los backups en $backup_dir. # Elimina los backups con mas de $number_of_days días source $HOME/.bashrc workon "snicopercom" source _variables.sh if [ ! -d "$MEDIA_BACKUP_DIR/$MEDIA_BACKUP_DATE" ] then mkdir -p $MEDIA_BACKUP_DIR/$MEDIA_BACKUP_DATE cp -r ...
true
5af94629cc23a2052f16b576faa7e1e43b3c5083
Shell
bwasti/nnc_benchmark_server
/run_benchmarks.sh
UTF-8
2,700
3.4375
3
[]
no_license
set -e BRANCH="${BRANCH:-master}" CPU="${CPU:-95}" GPU="${GPU:-7}" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" REPO=https://github.com/pytorch/pytorch.git VISION_REPO=https://github.com/pytorch/vision.git CLONE_DIR="${CLONE_DIR:-${SCRIPT_DIR}/nnc_bench_code}" CLONE_DIR=$(realpath ...
true
3272852ec74fb9ac4a1ccf64a7d10a39b55810c2
Shell
WangHL0927/grafana
/packaging/rpm/control/posttrans
UTF-8
977
3.515625
4
[ "Apache-2.0" ]
permissive
#!/bin/sh set -e echo "POSTTRANS: Running script" [ -f /etc/sysconfig/grafana-server ] && . /etc/sysconfig/grafana-server # copy config files if missing if [ ! -f /etc/grafana/grafana.ini ]; then echo "POSTTRANS: Config file not found" if [ -f /etc/grafana/grafana.ini.rpmsave ]; then echo "POSTTRANS: /etc/...
true
a7a9ec2b689b14a298e659bac3db6eab989071c2
Shell
chipster/chipster-tools
/setup/bundles/bundle_binaries/installation_files/functions.bash
UTF-8
2,405
4.25
4
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
#!/usr/bin/env bash # Installation functions # Function to install one module # It uses flagfiles to check if module is already installed install_module() { flagfile="../installation_files/flags/$1" # Make checksum for module file checksum=$( sha256sum $1 ) # If flagfile exists, take checksum from the file ...
true
f69ff8870c3a5f945419156f98ae6d6c777075ee
Shell
CatLuvrHass/Social_media_texting
/P.sh
UTF-8
145
2.96875
3
[]
no_license
#! /bin/bash #P.sh if [ -z "$1" ]; then echo "Usage $0 mutex-name" exit 1 else while ! ln "$0" "$1-lock" 2>/dev/null; do sleep 1 done exit 0 fi
true
c618a5e4c7813dbf6d648306e8543e38fd2d88d4
Shell
lwllvyb/Freeflow
/libraries/libibverbs-1.2.1mlnx1/debian/libibverbs1.postinst
UTF-8
172
2.609375
3
[ "Linux-OpenIB", "GPL-2.0-only", "BSD-3-Clause", "MIT", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
#!/bin/sh # postinst script for libibverbs1 set -e if [ "$1" = configure ]; then getent group rdma > /dev/null 2>&1 || addgroup --system --quiet rdma fi #DEBHELPER#
true
947676a03509cfb8c30d41b9406645dc6c414ab7
Shell
msantos/alcove
/bin/alcove_nr.sh
UTF-8
228
3.296875
3
[ "ISC" ]
permissive
#!/bin/sh cat <<EOF /* GENERATED: DO NOT EDIT */ /* clang-format off */ EOF nr=0 while read -r _; do nr=$((nr + 1)) done <"$1" cat <<EOF #define ALCOVE_MAX_NR ${nr} #define ALCOVE_NR_SIZE ((${nr} / 8) + (${nr} % 8)) EOF
true
e145c68c02ff77b29fefcbaf343659a4b64271b6
Shell
rog-works/cakephp-ws
/docker/app/entrypoint.sh
UTF-8
349
2.703125
3
[]
no_license
#!/bin/sh if [ ! -e /etc/postfix/sasl_passwd.db ]; then sed -i -e "s/some_address/${GMAIL_ADDRESS}/g" /etc/postfix/sasl_passwd sed -i -e "s/some_password/${GMAIL_PASSWORD}/g" /etc/postfix/sasl_passwd chmod 600 /etc/postfix/sasl_passwd postmap /etc/postfix/sasl_passwd fi service postfix start service httpd start ...
true
de46b78b9013b45a156bc41d2a9373785d38b323
Shell
xf22001/file-proxy
/script/today_tailf
UTF-8
3,884
3.578125
4
[]
no_license
#!/usr/bin/env bash TAILF_FILE=/var/log/nginx/request_json.log CHECK_HOST=https://pd.zwc365.com CHECK_HOST2=http://pd.zwc365.com # 一些必须的环境遍历 export LOG_FILENAME=checkhost TMP_COUNT_KEY="file_proxy_count_today_$(echo $CHECK_HOST |md5sum |awk '{print $1}')" COUNT_SAVE_KEY="file_proxy_count_save_$(echo $CHECK_HOST |md5...
true
6100898891682640cd92de55cbdd08304814e824
Shell
nedbass/homecfg
/bin/parip.sh
UTF-8
696
3.28125
3
[]
no_license
#!/bin/bash -e t2s() { echo $1 | tr : ' ' | xargs -n1 | tac | xargs | ( read s m h d echo $(( 10#$s + 10#${m:-0}*60 + 10#${h:-0}*3600 + 10#${d:-0}*86400)) ) } echo -n "Will record in... " for i in 5 4 3 2 1; do echo -n "$i " sleep 1 done echo echo "Recording now!" amixer sset Master 90% src="$(pactl list...
true
fd5da084f7c231ea1ac0b0dfd58b9a16c45dcb21
Shell
nkartashov/startup-scripts
/kubernetes.sh
UTF-8
622
3.171875
3
[ "MIT" ]
permissive
kc() { local -r ctx="$1" if [[ $ctx ]]; then kubectl config use-context "$ctx" export TILLER_NAMESPACE="$(kubectl config get-contexts | grep "*" |awk '{print $5}')" else kubectl config get-contexts | sort -d fi } _kc() { local cur if declare -F _init_completions >/dev/null 2>&1; then _init...
true
52a3da1468242a1364bf8f096970f6557dcd0ddf
Shell
cog1to/dotfiles
/.local/bin/twitch
UTF-8
566
3.484375
3
[]
no_license
#!/bin/bash # Opens a Twitch stream with given player # Parameter: # 1) Stream name (streamer's name) # 2) Quality (default: 480p) # 3) Player to feed the stream into (default: mpv --cache-secs=10) PLAYER="mpv --cache-secs=10" STREAM_NAME=$1 QUALITY="480p" TOKEN="" if [ -n "$2" ]; then QUALITY=$2 fi if [ -n...
true
e3a4c5b11b0be24cc951bcab1ed694dc09a61b8a
Shell
dmateusp/EAA
/week5b/Q1_check_eaauser.sh
UTF-8
162
2.96875
3
[]
no_license
#!/bin/bash if [ $USER == 'eaauser' ]; then echo "ok" else echo "You are not eaauser!" echo "You are not eaauser!" - $(date +%D-%Hh:%M) >> $HOME/log.txt fi
true
bcdd798f338137291814cf48a94694b0d9facfd4
Shell
conda-forge/ctng-compilers-feedstock
/recipe/install-g++.sh
UTF-8
1,876
3.625
4
[ "BSD-3-Clause", "BSD-2-Clause", "GCC-exception-3.1", "GPL-3.0-only" ]
permissive
set -e -x export CHOST="${gcc_machine}-${gcc_vendor}-linux-gnu" _libdir=libexec/gcc/${CHOST}/${PKG_VERSION} # libtool wants to use ranlib that is here, macOS install doesn't grok -t etc # .. do we need this scoped over the whole file though? #export PATH=${SRC_DIR}/gcc_built/bin:${SRC_DIR}/.build/${CHOST}/buildtools/...
true
fa41039d6ea1bb2e2fc8ca89bff85d2b6edacd85
Shell
m4thayus/macdots
/.local/bin/import_backgrounds
UTF-8
237
2.875
3
[]
no_license
#!/usr/bin/env bash for file in *.jpg; do outfile=`basename $file .jpg`.png echo convert -verbose "'$file'" "'$outfile'" done | gm batch -echo on -feedback on - for file in *.png; do mv -vn $file $HOME/Pictures/Backgrounds/ done
true
0775edb5f2699c5b78d7c3bd5cf90310eaf23c7a
Shell
quickmic/CCU-X86
/root/etc/init.d/S49hs485d
UTF-8
606
3.453125
3
[]
no_license
#!/bin/bash start() { /bin/hs485dLoader -l 0 -ds -dd /etc/config/hs485d.conf -ilp /etc/config/InterfacesList.xml #Updates Wired Interfaces } stop() { killall hs485dLoader for i in $(seq 1 60) do sleep 1 PID=`pidof hs485dLoader` if [[ ${P...
true
4fd218ee8af3c2d92c0ce85ffc87cc72f9135daf
Shell
kvz/scrolex
/scripts/demo1.sh
UTF-8
922
3.453125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # Transloadit. Copyright (c) 2017, Transloadit Ltd. # # Authors: # # - Kevin van Zonneveld <kevin@transloadit.com> set -o pipefail set -o errexit set -o nounset # set -o xtrace # Set magic variables for current FILE & DIR __dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" __file="${__dir}/$(ba...
true
66682194b497858667d7076a8c9e54542485ac61
Shell
marciaga/kffp-archive
/deploy.sh
UTF-8
653
3.046875
3
[]
no_license
#!/bin/bash ssh $REMOTE_IP << EOF echo "Change to working directory" cd $APP_DIR echo "Fetch current repository" git pull origin master echo "Install dependencies" yarn echo "Create temporary password-file" touch ~/.vault_pass.txt echo "Populate temp password file with values" echo $ENCRYPT_KEY >> ~/.vault_pass.txt ec...
true
b69d5bd506a2a4fa121434b17d9dc02a24cdf2db
Shell
dmlb2000/nwchem-cml
/nwchem-6.1/QA/domknwchemrc
UTF-8
1,671
3.453125
3
[ "ECL-2.0" ]
permissive
#!/bin/bash # # $Id: domknwchemrc 21002 2011-08-18 06:11:22Z d3y133 $ # #--- backup the nwchemrc file # if [ -f ~/.nwchemrc ]; then if [ -f ~/nwchemrc-backup ]; then echo "ERROR: Cannot backup ~/.nwchemrc: ~/nwchemrc-backup already exists" exit 100; else mv ~/.nwchemrc ~/nwchemrc-backup; chmod 400 ~/n...
true
70c00970c3412d3358426f362ae4458789296b45
Shell
cvidalmsu/PFMDiag
/PFMDiagTest.sh
UTF-8
336
3.171875
3
[]
no_license
#!/bin/bash dir=$1 #echo $1 for filePath in $(find $dir -name '*.prod' -type f ); do path=$filePath #filename=$(basename "$filePath" | sed 's!.*/!!') #filename="${filename%.*}" dire=$(dirname $(dirname "${path}")) filename=$(basename " $(dirname "${path}")") echo $dire""/"$filename".x...
true
b9d285314de25307ef1aac0163e43cb8ac6b6511
Shell
Carlos278/shell-script
/Lista-1/ex6.sh
UTF-8
345
3.109375
3
[]
no_license
#!/bin/bash data=$(date '+%y.%m.%d') mkdir /bin/${data} echo "Copiando para o diretório ${data}..." cp -v /home/aluno/shell-script/Lista-1/* /bin/${data} echo "Compactando diretório ${data}..." tar -cvzf ${data}.tar.gz /bin/${data} echo "Removendo o diretório ${data}..." rm -r /bin/${data}/* rmdir --ignore-fail-on-n...
true
2a794f552b56732cde943f9a0032bfc6cf947b50
Shell
beeva-ricardoguerrero/semantic_segmentation
/setup.sh
UTF-8
705
2.734375
3
[]
no_license
#!/bin/bash WORKING_DIR=~/semantic_segmentation DATASET_DIR=$WORKING_DIR/Dataset/Pascal_voc_2012 DATASET=VOCtrainval_11-May-2012.tar BUCKET_URL=s3://beeva-research-lab-nvirginia/poc_ricardo_semantic_segmentation CAFFEMODEL=fcn8s-heavy-pascal.caffemodel CAFFEMODEL_DIR=$WORKING_DIR/External_repo/fcn.berkeleyvision.org/v...
true
6c8b65b3ace1df536fa0179fca1220ae58c3c8ed
Shell
ben-kaufman/dx-cli
/base-cli.sh
UTF-8
2,615
3.890625
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # Basic usage # # cli help # NETWORK=mainnet cli help # Config NETWORK=${NETWORK:-rinkeby} ETHEREUM_RPC_URL="https://${NETWORK}.infura.io" DX_SERVICE_VERSION=staging # Check: https://hub.docker.com/r/gnosispm/dx-services/tags/ SHOW_COLORS=true DEBUG_MESSAGES=DEBUG=ERROR-*,WARN-*,INFO-* ENVIRON...
true
0cc42cbb74720a6ec1f9df662b35ad9293b10d7a
Shell
AshishJohn1/Practice
/shell_substituion.sh
UTF-8
256
2.984375
3
[]
no_license
name="Tom" mark=75 # without escape sequence'-e' echo "Student" $name "maks is \n" $mark # with escape sequence '-e' echo -e "Student" $name "maks is \n" $mark todays_date=`date` #use with back quotes echo $todays_date "seems to be a lovely day!"
true
1c7f599202036d8d20fc3d5b31d85dbbb3201c1f
Shell
victorduta/shadowkernel
/strip_all_calls.sh
UTF-8
510
2.984375
3
[]
no_license
. global_exports.sh #echo "Begining/End of function ${1}" FIRST_LINE=$(awk '$3 ~ /^'"${1}"'$/{print $1}' $QEMU_DIR/$KERNEL_MAP) SECOND_LINE=$(awk '$3 ~ /^'"${1}"'$/{getline; print $1}' $QEMU_DIR/$KERNEL_MAP) #echo $FIRST_LINE #echo $SECOND_LINE awk '/'"$FIRST_LINE"':/{flag=1}/'"$SECOND_LINE"':/{flag=0}flag {print $...
true
5464b00b5ad7d934c36899f8a74291b4f6645376
Shell
devopsdiy/devopsdiy-tools
/add-user-jenkagent.sh
UTF-8
3,064
4.09375
4
[ "MIT" ]
permissive
#!/bin/bash # Created: # 2020.01.09 # What does it do? # Create user jenkagent and copy in SSH public key from user 'jenkins' from Jenkins server. This script will configure a CentOS server so that user jenkins on a Jenkins server can ssh/scp and gain sudo privilege. ################################################...
true
bbb4fe9b20309f7d03070f777e899ceef4b9a5ef
Shell
neam/docker-diff-based-layers
/generate-sample-project.sh
UTF-8
650
2.96875
3
[]
no_license
#!/usr/bin/env bash mkdir sample-project cd sample-project rm * dd if=/dev/zero of=an-important-file-1 bs=1 count=0 seek=3M dd if=/dev/zero of=an-important-file-2 bs=1 count=0 seek=1M dd if=/dev/zero of=an-important-file-3 bs=1 count=0 seek=4M dd if=/dev/zero of=an-important-file-4 bs=1 count=0 seek=2M dd if=/dev/zer...
true
34fa5244a71ebe78e845ac301d3dccae116a54c1
Shell
vigetlabs/react-focus-trap
/bin/format
UTF-8
314
3.296875
3
[ "MIT" ]
permissive
#!/bin/bash # Format our code according to our standards # # Run this command with: # ./bin/format PATH=$(yarn bin):$PATH # Run prettier on these files: SRC=$(git ls-files | grep -v "^\." | grep ".js\$") # Prettier is an automated code formatter. # https://github.com/prettier/prettier prettier --write $SRC
true
8fd07a2456a825d18c4345b919308d83e80eec03
Shell
nickli1664/bash20180403
/bash/bashnew/testrename/studyrename.sh
UTF-8
1,056
3.515625
4
[]
no_license
#!/bin/bash #rename *.JPG *.jpg #有错? rename 's/ /_/g' * #将文件名中的空格替换成字符“ _ ” rename 'y/a-z/A-Z/' * #切换大小写 rename 'y/A-Z/a-z/' * #find path -type f -name "*.mp3" -exec mv {} target_dir \; #将所有的 .mp3文件移入给定的目录 #find path -type f -exec rename 's/ /_/g' {} \; #将所有文件...
true
cd770c8f01aed57a1caece836baa81ceeb8ee7a8
Shell
Orcha02/holberton-system_engineering-devops
/0x04-loops_conditions_and_parsing/1-for_holberton_school
UTF-8
148
3.078125
3
[]
no_license
#!/usr/bin/env bash # Bash script that displays Holberton School 10 times (for loop) for ((i = 0; i < 10; i++)) do echo "Holberton School" done
true
5574d6d2bb287bcfb886446c2e975c4cca46b74b
Shell
kare/dotfiles
/bin/setup-dotfiles
UTF-8
1,496
3.765625
4
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "BSD-3-Clause", "BSD-2-Clause" ]
permissive
#!/bin/bash set -u home=$HOME dotfiles=$home/.dotfiles.git gitrepo=git@github.com:kare/dotfiles.git if [ -e $dotfiles ]; then echo "dotfiles: bare git repo exists at \"$dotfiles\"" 1>&2 exit 1 fi git clone $gitrepo $home/dotfiles.git if [ $? -gt 0 ]; then echo "dotfiles: \"git clone --depth 1 $gitrepo $home/dotf...
true
e8df31c2e8524d0d531af7e87f6d38fb776dcd78
Shell
Fay48/Localroot_Compile
/2018/CVE-2018-16323/exploit.sh
UTF-8
797
3.59375
4
[]
no_license
#!/bin/bash help() { echo "Usage poc generator: `basename $0` gen WIDTHxHEIGHT NAME.xbm [minimal]" echo " Example gen: `basename $0` gen 512x512 poc.xbm" echo "Usage result recovery: `basename $0` recover SAVED_PREVIEW.png|jpeg|gif|etc" echo " Example recovery: `basename $0` recover avatar.png" } if [ "$1" =...
true
e4bf29175976a676b6339e7576c0aba9217d116d
Shell
lanzhiheng/shell-practice
/inpath
UTF-8
736
4
4
[]
no_license
#!/usr/bin/env bash echo $BASH_SOURCE in_path() { cmd=$1 ourpath=$2 ldIFS=$IFS IFS=":" result=1 for directory in $ourpath do if [ -x $directory/$cmd ]; then result=0 fi done IFS=$oldIFS return $result } checkForCmdInPath() { var=$1 if [ "$var" != "" ]; then if [ ...
true
fac36d83d8bdc4c9d05c99a6ac9bebc52e1e43d0
Shell
kerryconvery/game-stream-search
/devops/deploy-application-infrastructure.sh
UTF-8
1,074
2.703125
3
[]
no_license
#!/bin/bash -l set -e readonly APPLICATION_NAME=stream-machine readonly APPLICATION_STACK_NAME=$APPLICATION_NAME-infrastructure readonly DATABASE_STACK_NAME=$APPLICATION_NAME-database readonly FRONTEND_DEPLOY_BUCKET_NAME=app-$APPLICATION_NAME readonly EB_SERVICE_ROLE_NAME=eb-role-stream-machine readonly EB_DEPLOY_BUC...
true
c49b20630283c68399f59eb09ad5da10db60e4d8
Shell
dspeth/bioinfo_scripts
/binning/anvio_wrappers/anvio_map_reads_to_bin.sh
UTF-8
3,237
3.96875
4
[]
no_license
#!/bin/bash # a script to map data on an anvio bin and display for further analysis # set our defaults for the options INTERLEAVED=0 THREADS=1 while getopts 'it:' opt ; do case $opt in i) INTERLEAVED=1 ;; t) THREADS=$OPTARG ;; esac done # skip over the processed options shift $((OPTIND-1)) if [ $# -lt 5 ] t...
true
eed83ec4ff376ffac3d97009cc822e77becf110b
Shell
wcj6376/EXBOOT
/user/jiemi
UTF-8
2,782
3.828125
4
[]
no_license
#!/system/xbin/bash ################################################### # Used to unzip script files generated by shc # # Modified by cuterhei at 2014-02-26: 目录遍历 # # Created by cuterhei at 2014-02-25 : 创建 # ################################################# cd /s...
true
ace70fe6ec565ab9d5b9ba2262ae4f4cc9d0309e
Shell
tompollard/physionet-build
/.env.example
UTF-8
2,509
2.640625
3
[ "BSD-3-Clause" ]
permissive
# Example .env file for testing SECRET_KEY=secret ALLOWED_HOSTS=[] # System maintenance mode #SYSTEM_MAINTENANCE_NO_CHANGES=1 #SYSTEM_MAINTENANCE_NO_UPLOAD=1 #SYSTEM_MAINTENANCE_MESSAGE=PhysioNet is undergoing maintenance, and projects cannot be edited. The site will be back online at 16:00 GMT. # Credentialing PAUS...
true
8180b7ded0da0c5d2bc11060cde439037875e5e7
Shell
dbellavista/MMSD1213_knapsackKbest
/knapsackgenerator/generator.sh
UTF-8
705
4
4
[]
no_license
#!/bin/bash if [[ $# -ne 5 ]] ; then echo "Supplied $# arguments! 5 needed:" echo "Usage: $0 <num_items> <coeff_range> <max_weight> <num_instances> <dest_folder>" exit 1 fi DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" EXEC="$DIR/bin/generator" if [[ ! -e "$EXEC" ]] ; then make || { echo 'Make fai...
true
e7c831cb2b720a50ab90274245f8eaccc82f57eb
Shell
VeekeeFr/manuel-numerique-scanner
/scan_calameo.sh
UTF-8
3,049
4.03125
4
[]
no_license
#!/bin/bash SCRIPTFULLNAME=`realpath $0` SCRIPTPATH=`dirname ${SCRIPTFULLNAME}` SCRIPTNAME=`basename ${SCRIPTFULLNAME}` function usage { echo "Usage:" echo "${0} -book <book-id> [-force]" exit ${1} } JQ_RELEASE=1.6 BOOKID= FORCE_DOWNLOAD=false while [ $# -gt 0 ] do case "$1" in -b | --b | -book | --book ) ...
true
292a3b12906d9e6c484be5a02c6a6edb2a9a3e0c
Shell
nabiuddin6/scripts-1
/main/perms
UTF-8
5,166
4.375
4
[]
no_license
#!/bin/bash read -r -d '' doc << EOM This script can be used to produce a report that describes the permissions of the specified files/directories. EOM # ---------- Modules ---------- source gutils.sh # ---------- Command-line Arguments ---------- eval set -- "$(getopt -o "d,h,H,R,v" -l "debug,help,hidden,recursive,...
true
65e729d0d29112f52e1d0df0604123bd2d6cbbe2
Shell
AndresFMoya/ror-booking_cinema_frontend
/deploy.sh
UTF-8
763
3.03125
3
[ "MIT" ]
permissive
#!/bin/sh set -e # Stop script from running if there are any errors IMAGE="andmedev/ror-booking_cinema-client" # Docker image GIT_VERSION=$(git describe --always --abbrev --tags --long) # Git hash and tags # Build and tag image docker build -t ${IMAGE}:${GIT_VERSION} . docker tag ${IMAGE}:${GIT_VERSION} ${IMAGE}:late...
true
a260a2f1b98fd8076fde96562abedf27c801ebd3
Shell
Thomashighbaugh/electric-tantra-pkgbuilds
/pkg_scripts/PKGBUILD
UTF-8
1,113
2.59375
3
[]
no_license
#Maintainer: Xyne <ac xunilhcra enyx, backwards> pkgname=pkg_scripts pkgver=2020 pkgrel=1 pkgdesc='A collection of pacman and package-related utilities.' arch=(any) license=(GPL) url="https://xyne.archlinux.ca/projects/pkg_scripts" depends=(pyalpm python3 python3-xcpf) optdepends=('python3-colorsysplus: colorized outpu...
true
a39a67e28ff2b7ec2819e36e0ca76d3d1ad32444
Shell
PapirusDevelopmentTeam/papirus_icons
/scripts/find_duplicates_activities.sh
UTF-8
536
3.828125
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -e SCRIPT_DIR="$(dirname "${BASH_SOURCE[0]}")" : "${DB_FILE:="$SCRIPT_DIR"/../data.json}" if ! command -v jq >/dev/null; then cat <<- EOF >&2 $(basename "${BASH_SOURCE[0]}") requires jq command. Please install it to continue: $ sudo apt install jq EOF exit 1 fi # Get duplicates and t...
true
16b5f7e83a4e2ebb2495fbdeb491330ce0ba2b84
Shell
drbartz/puppet
/modules/skyline/files/install_skyline.sh
UTF-8
1,164
3.078125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash TMP_DIR=/tmp/skyline OUTPUT_FILE=${TMP_DIR}/.install.done PACK_FILE="/vagrant/skyline_python_pack.1.0.1.tgz" SKYLINE_GIT_SOURCE="https://github.com/drbartz/skyline -b devel" # clean and prepare temp dir [ -d ${TMP_DIR} ] && rm -rf ${TMP_DIR} install -d ${TMP_DIR} cd ${TMP_DIR} date > ${OUTPUT_FILE} # t...
true
ec8d0651a3286cb328d905bb73ecb67b6dd20a80
Shell
em0ney/elastic-ci-stack-for-aws
/packer/conf/buildkite-agent/scripts/fix-buildkite-agent-builds-permissions
UTF-8
633
3.4375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash # Files that are created by Docker containers end up with strange user and # group ids, usually 0 (root). Docker namespacing will one day save us, but it # can only map a single docker user id to a given user id (not any docker user # id to a single system user id). # # Until we can map any old user id bac...
true
06241934f9a0180326c2bdcfa35930c2dbd88c7a
Shell
swapnilh/os_mm_studies
/script_file.sh
UTF-8
550
2.609375
3
[]
no_license
num_operations=$1 sizes=( "400K" "4M" "400M" "4G" "40G" ) for i in "${sizes[@]}" do echo 1 | sudo tee /proc/sys/vm/drop_caches #Understand the number of TLB misses/page fault in the baseline (with no accesses to the mmapped region) perf stat -e dTLB-load-misses,iTLB-load-misses ./mmap_file /nobackup/swapnil...
true
9bdc1b9776cefe7948d603a581e444a09355145c
Shell
CampbellCrowley/TraX-Website-Public
/.hooks/pre-commit
UTF-8
731
3.546875
4
[]
no_license
#!/bin/bash STAGED_SCRIPTS=$(git diff --cached --name-only --diff-filter=ACM | grep ".js$" | tr '\n' ' ') STAGED_DATA=$(git diff --cached --name-only --diff-filter=ACM | grep ".json$" | tr '\n' ' ') if [[ "$STAGED_SCRIPTS" != "" || "$STAGED_DATA" != "" ]]; then echo "Linting" npm run lint if [[ "$?" != 0 ]]; th...
true
e7fb80c11c68770fb1bbf09a960aca3e6d856f5f
Shell
prenaux/ham
/toolsets/repos/git-new-branch
UTF-8
446
3.828125
4
[ "Jam", "MIT", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash help() { echo "usage: git-new-branch branch_name" echo "" echo " Creates a new branch, makes it active, make sure there's a remote" echo " tracking branch on origin for it and push the initial version." exit 1 } if [ -z "$1" ]; then help fi BRANCH_NAME="$1" REMOTE_NAME="$2" if [ -z...
true
06ca569b070fc6d9320615915b633d7bc0bb03f1
Shell
juan260/ia
/4/gestion-pasan-regular/muero2/strat2_pondconmas+param+siganas<+restafichas/testfinal.sh
UTF-8
846
2.5625
3
[]
no_license
#!/bin/sh ################################################################### ## ## Como ejecutar esta movaida: ## ./testfinal '(defvar *ponderations* ...' '(defvar *params... ' ## Este segundo argjumento solo en casp de que la heuristica lo requiera # #################################################################...
true
1174a37811f942378bb4d9218fcce8205783826f
Shell
CyanZee/shell
/shell.sh
UTF-8
996
3.78125
4
[]
no_license
#!/bin/bash ReleaseTime="YYYY/MM/DD-hh:mm:ss UTC" getReleaseTime_func() { ReleaseTime=`date '+%Y-%m-%d %H:%M:%S %Z'` echo ${ReleaseTime} sed -i "s/ReleaseTime =.*/ReleaseTime = \"${ReleaseTime}\"/" ./version/version.go } getReleaseTime_func showProc_etime_func() { ps -p $1 -o etime } stop_func() { procs...
true
d104d40de5d837543f3d4c445e0d18d848bc35a4
Shell
andriish/EErad3
/grid/EERAD3-arc-get.sh
UTF-8
558
2.78125
3
[]
no_license
#!/bin/bash #for SL7 source /cvmfs/grid.cern.ch/centos7-ui-4.0.3-1_umd4v4/etc/profile.d/setup-c7-ui-example.sh mkdir -p output cd output uberftp grid-gftp2.rzg.mpg.de "cd /pnfs/rzg.mpg.de/data/zeus/group/andriish/EERAD3000; ls" | tr -s ' ' | tr -d '\r'| cut -f 9 -d' ' | grep input | sort > computed.txt ls -1 | sor...
true
5a67592ad4e916bd561fe96b76d4eb6bdf213cea
Shell
eboskma/dotfiles
/zshrc
UTF-8
2,985
2.625
3
[ "MIT" ]
permissive
# Path to your oh-my-zsh configuration. ZSH=$HOME/.oh-my-zsh # Set name of the theme to load. # Look in ~/.oh-my-zsh/themes/ # Optionally, if you set this to "random", it'll load a random theme each # time that oh-my-zsh is loaded. ZSH_THEME="kolo" # Load extra completion path fpath=(/usr/local/share/zsh-completions ...
true
00877f4021137290d76f7d2235fb7e6138da52e9
Shell
chromium/chromium
/components/feed/core/v2/tools/generate_test_response_binarypb.sh
UTF-8
600
2.71875
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash # Copyright 2020 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. CHROMIUM_SRC=$(realpath $(dirname $(readlink -f $0))/../../../../..) OUT_DIR=$CHROMIUM_SRC/components/test/data/feed if [ ! -d $OUT_DIR ]; then echo "Output directo...
true
2f7495db6fb1ced01e168aa8880fa713ba38d898
Shell
su-et/aws-tools
/bin/aws-tools
UTF-8
256
2.921875
3
[ "MIT" ]
permissive
#! /bin/sh for brew in awscli git git-crypt jq packer s3cmd terraform vault; do if brew info -p ${brew} >/dev/null 2>&1; then echo ${brew} is installed else echo ${brew} is NOT installed\; please install with 'brew install ${brew}' fi done
true
225cc27f870717595112c3dbc500c96e4b1d1930
Shell
tiagoportaluppi/finance-web-class
/infra/scripts/build.sh
UTF-8
561
2.84375
3
[]
no_license
echo '===> Building docker image...' GIT_BRANCH=$(git name-rev --name-only HEAD | sed "s/~.*//") GIT_COMMIT=$(git rev-parse HEAD) GIT_COMMIT_SHORT=$(echo $GIT_COMMIT | head -c 8) BUILD_CREATOR=$(git config user.email) docker build \ -t "$PROJECT"_"$STAGE" \ --build-arg GIT_BRANCH="$GIT_BRANCH" \ --build-arg GIT...
true
ca6d487049981f1af60b6b200c9df6c9de06b7bd
Shell
kumarharsh7/ros2-support
/scripts/checkout-rviz.sh
UTF-8
421
2.8125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # This script checks out and compiles all the packages necessary # to run rviz in ROS 2. RVIZ_OVERLAY_WS=~/sandbox/ros2_rviz_overlay_ws # Set up the rviz overlay workspace mkdir -p $RVIZ_OVERLAY_WS/src cd $RVIZ_OVERLAY_WS # Check out the source packages wget https://raw.githubusercontent.com/bponsler/ros2...
true
d33d43005d38ffa4d2c8c0df4be4020734bf7a6b
Shell
DevInsideYou/install-vs-code
/install-vs-code.sh
UTF-8
173
2.703125
3
[ "MIT" ]
permissive
#!/bin/bash # install vs-code sudo snap install --classic code echo echo '"code" is now on the path' echo # update code sudo snap refresh code # remove yourself rm $0
true
d46e2c9ae70f2d346c7c05e9c24b29005ce6bb45
Shell
Rhdrarja/safe-server
/bin/createuser-shadowsocks-r.sh
UTF-8
2,766
3.6875
4
[ "MIT" ]
permissive
#!/bin/bash source /opt/.global-utils.sh if [ "x$1" = "x-h" -o "x$1" = "x--help" ] then echo "$0 PORT PASSWORD [ENCRYPT_METHOD] [OBFUSCATE_METHOD] [PROTOCOL_METHOD] [OBFUSCATE_PARAM] [PROTOCOL_PARAM]" exit 0 fi port=$1 password=$2 protocol=$3 protocolParam=$4 # https://github.com/breakwa11/shadowsocks-rss/blob...
true
d1382e1758ff30aca78512f485073424fd834ec0
Shell
unitymind/dockerfiles
/ubuntu/my_init.d/check_etcd.sh
UTF-8
168
2.625
3
[ "MIT" ]
permissive
#!/bin/bash # Fail hard and fast set -eo pipefail # Check and wait etcd cluster until etcdctl ls /; do echo "[info] Waiting connect to etcd cluster..." sleep 1 done
true
2024981f4d5b939d2f1fb1bafb629968f27f5ff3
Shell
pruiz/openbsd-src
/etc/rc.d/mountd
UTF-8
271
2.78125
3
[]
no_license
#!/bin/sh # # $OpenBSD: mountd,v 1.4 2013/01/26 08:00:11 ajacoutot Exp $ daemon="/sbin/mountd" . /etc/rc.d/rc.subr rc_stop=NO rc_pre() { [ -s /etc/exports ] && grep -qv '^#' /etc/exports && \ rm -f /var/db/mountdtab && \ echo -n > /var/db/mountdtab } rc_cmd $1
true
f23a67696a90d19c020d5155f8dea94f8d295140
Shell
mwitzenm/openshift-examples
/istio/setup.sh
UTF-8
1,398
2.625
3
[]
no_license
#!/bin/bash . $(dirname ${BASH_SOURCE})/util.sh backtotop #run "oc patch deployment istio-ingress -n istio-system --type=json -p='[{\"op\": \"replace\", \"path\": \"/spec/template/spec/containers/0/ports\", \"value\":[{\"containerPort\":\"80\",\"hostPort\":\"80\",\"protocol\":\"TCP\"},{\"containerPort\":\"443\",\"hos...
true
095b3adf3f0f4b2a7ecc1192e31ea84f024bbfb4
Shell
FredrikFornstad/app-serviio
/deploy/install
UTF-8
413
2.84375
3
[]
no_license
#!/bin/sh # Create empty password file #-------------------------------- if [ ! -f /etc/serviio/webconfig.user ]; then mkdir /etc/serviio /bin/touch /etc/serviio/webconfig.users /bin/chown webconfig /etc/serviio/webconfig.users fi # Patch ownership for webconfig access #------------------------------- /bin/chown ...
true
7bf65f189d24af7da21b196aac95fee0b949cbb9
Shell
nari-ex/cookpad-online-spring-internship-2020
/scripts/hako-deploy.sh
UTF-8
494
3.125
3
[]
no_license
#!/bin/bash -xe cd "$(dirname $0)" if ! test -f ../hako/hako.env; then echo "hako/hako.env not found" exit 1 fi source ../hako/hako.env echo "Your GitHub ID: ${github_id}" github_lower_case=$(echo ${github_id} | tr '[:upper:]' '[:lower:]') cd ../hako if ! test -f ${github_lower_case}.jsonnet ; then ec...
true
1a5d11f3be64386e9dea97701ecc4c075cedfb8f
Shell
xperroni/InterestPointCorrelationSupportMaterials
/Sources/build.sh
UTF-8
122
2.890625
3
[]
no_license
#!/bin/bash MODE=Release if [ "$#" -eq 1 ] then MODE=$1 fi echo $MODE catkin_make_isolated -DCMAKE_BUILD_TYPE=$MODE
true
0fe118dbb5f6c1bc03ecf5285dab83196d2c01a8
Shell
lubaihua33/lis-test
/WS2012R2/lisa/remote-scripts/ica/Performance_FIO.sh
UTF-8
4,909
3.390625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash ############################################################################ # # Linux on Hyper-V and Azure Test Code, ver. 1.0.0 # Copyright (c) Microsoft Corporation # # All rights reserved. # Licensed under the Apache License, Version 2.0 (the ""License""); # you may not use this file except in complian...
true
f66ccf5267eac6db6f13a9e19f9af5b51caeebec
Shell
Tomaqa/draw-figure-objects
/do.sh
UTF-8
406
2.828125
3
[]
no_license
#!/bin/bash FUNCTION_NAME=python-fu-Mysteria-gen VERSION=1.10 RESOLUTION=864 gimp-console -b "(${FUNCTION_NAME} RUN-NONINTERACTIVE ${RESOLUTION})" -b '(gimp-quit 0)' || exit exit 0 cd /media/Data/Obrázky/Hry/Mysteria/v$VERZE/export for i in `eval echo {0001..$POCET_KARET}` do `echo "pdfunite" $i{\_lic,\_r...
true
b88d0b1c22fcf08b7cae4ccc8bff5c8171e2c5b5
Shell
dwalkes/wakemeski-server
/check-server.sh
UTF-8
729
4.03125
4
[]
no_license
#!/bin/sh # runs the wakemeski test script and emails a list of people # if an error is encountered RECIPIENTS="doanac@beadoan.com" dir=$(dirname $(readlink -f $0)) # allow a "-v" option which means email the report contents out while getopts "v" optn; do case $optn in v ) VERBOSE="-v";; ...
true
05ca3a078ae1b093076b1e216653e603650a5bbe
Shell
FutureTrust/gtsl
/scripts/deployment/build.sh
UTF-8
1,041
3.34375
3
[]
no_license
#!/bin/bash # Root directory ROOT_DIR=../.. # Root directory ROOT_DIR=../.. # Solidity workspace SOLIDITY_PATH="$ROOT_DIR"/solidity # Contracts module CONTRACTS_PATH="$ROOT_DIR"/gtsl-contracts # Java sources path JAVA_PATH="$CONTRACTS_PATH"/src/main/java # Java package for the contracts CONTRACTS_PACKAGE=eu.fut...
true
33c6c206d39e1fb4028133e78bc7b9a01ebc0673
Shell
mauricioph/myscripts
/silence-detect.sh
UTF-8
524
3.671875
4
[]
no_license
#!/bin/bash IN=$1 THRESH=$2 DURATION=$3 function usando(){ echo -e "Usage: $0 IN THRESHOLD DURATION \nIN - the file path to the video I want to analyze. THRESH - the volume threshold the filter uses to determine what counts as silence. DURATION - the length of time in seconds the audio needs to stay below the thresho...
true
6cd71b41a28eb383e03fa591097ada17653ee80a
Shell
siddharth101/bash_scripts
/Beginner/while.sh
UTF-8
482
3.921875
4
[]
no_license
#!/bin/bash read -p "Enter a positive integer below 20 to print the squares of each integer upto the number": value echo "" if [[ $value -gt 20 ]] || [[ $value -lt 0 ]] then echo "Value is either bigger than 20 or negative, please enter a positive integer smaller than 20" exit 2 fi echo "The number entered is $val...
true
ff470748d51d2e4b0cafd7e877164af6cd8f02c7
Shell
ailispaw/mssql-server-barge
/entrypoint.sh
UTF-8
234
2.515625
3
[]
no_license
#!/usr/bin/env bash if [ -z "$SA_PASSWORD" ]; then echo "You must set SA_PASSWORD with '-e SA_PASSWORD=Your@Strong@Password' to run." >&2 exit 1 fi /opt/mssql/bin/sqlservr-setup --accept-eula --set-sa-password exec sudo -E -u mssql "$@"
true
147c22d1ca0181fff158241118918ffd9788cc11
Shell
OlegBravo/tf-devstack
/rhosp/run.sh
UTF-8
5,084
3.484375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -o errexit my_file="$(readlink -e "$0")" my_dir="$(dirname $my_file)" source "$my_dir/../common/common.sh" source "$my_dir/../common/functions.sh" source "$my_dir/../common/stages.sh" source "$my_dir/../common/collect_logs.sh" init_output_logging # stages declaration declare -A STAGES=( \ ["all...
true
e84f89995ce55b0703146ecfde9eeb8abddcdace
Shell
UoMResearchIT/EMEP_Operational_Scripts
/operational_scripts/input_preparation/WRF_met_data_for_EMEP/link_met_data_script.sh
UTF-8
529
4.03125
4
[ "MIT" ]
permissive
#!/bin/bash if [ "$1" = "" ]; then echo "This script creates EMEP-friendly links to WRF output files." echo "usage (in directory where you want the links to appear): " echo " link_met_data_script.sh [path_to_WRF_data_directory]" exit fi file_list=$(ls -1 $1/wrfout*) for FILE in ${file_li...
true
74b1a9de6523d09349e6ccf87cdc6d2b8c80ef50
Shell
asen/smg
/smgscripts/notif-dummy.sh
UTF-8
350
2.890625
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash RCPTS=$1 SEVERITY=$SMG_ALERT_SEVERITY #-$2 # one of RECOVERY, ACKNOWLEDGEMENT, ANOMALY, WARNING, UNKNOWN, CRITICAL, SMGERR, THROTTLED, UNTHROTTLED ALERT_KEY=$SMG_ALERT_KEY #$3 SUBJ=$SMG_ALERT_SUBJECT #$4 BODY=$SMG_ALERT_BODY #$5 echo "Would be sending e-mail to $RCPTS" echo "Subject: $SEVERITY $...
true
5b38dafd54e8b745e165a034178fb846de1c9dfb
Shell
ganchenkor/pine
/auto-pine/bin/reload-nfs.sh
UTF-8
906
3.734375
4
[]
no_license
#!/usr/bin/env bash # sanity check if [[ $UID -ne 0 ]]; then echo "$0 must be run as root" exit 1 fi #config WD="./distro" SRC_IMG="${WD}/pine.img" PINE_IMGDIR="/mnt/pine-distro-loop" # pine filesystem mount point NFS_PINEDIR="/opt/pine-distro-nfs" # nfs server's image IMG_BS=512 IMG_START=12288...
true
b61a58e421997e4e2c08fa1809bf226eb0c83cec
Shell
lucio-lpf/managingIP
/vpn.sh
UTF-8
376
2.609375
3
[]
no_license
#!/bin/bash while true do sleep 30 runningPID=$(ps -ef | grep openconnect | grep -v grep | awk '{print $2}'); if [ "$runningPID" == "" ]; then echo 'pnq1o17q' | sudo openconnect -u -c -b --background --servercert pin-sha256:BmrY --passwd-on-stdin --user=pereirlo https://vpn.informatik.uni-stuttgart.de ...
true
e20a661a7a36c919afa31b9847400ba001a23e96
Shell
TSO-team/PosteDeCommande
/Samuel/BeagleBone Blue/CAN_relay.sh
UTF-8
3,674
3.984375
4
[]
no_license
#!/bin/bash # Program: CAN_relay.sh # Creator: Samuel Duclos # Comments: This file is directly invoked using source. # This prevents file descriptors from getting # closed prematurely with an exiting subshell. # Documentation: https://github.com/linux-can/can-utils/blob/m...
true
127540487824db679f10bdf958991465d7af81e0
Shell
petronny/aur3-mirror
/python2-pylibftdi/PKGBUILD
UTF-8
591
2.5625
3
[]
no_license
#Maintainer: Randy Heydon <randy.heydon at clockworklab dot net> pkgname=python2-pylibftdi pkgver=0.11 pkgrel=1 pkgdesc="Pythonic interface to FTDI devices using libftdi" arch=(any) url="http://bitbucket.org/codedstructure/pylibftdi" license=('MIT') depends=('python2' 'libftdi') source=(http://pypi.python.org/packages/...
true
e345b79cedc72155965045157fe90cf0e70fbe72
Shell
tshr20180821/build-env
/build_scripts/cvs.sh
UTF-8
806
3.03125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -x date find / -name sigaction.h -print 2>/dev/null gcc -v --help 2>/dev/null | grep -E "^\s+\-std=.*$" CVS_VERSION=1.11.23 # export CFLAGS="-O2 -march=native -mtune=native -fomit-frame-pointer -std=c99" export CFLAGS="-std=c99" # export CXXFLAGS="$CFLAGS" # export LDFLAGS="-fuse-ld=gold" pushd /...
true
7da839ff7d78506fe197cced115b593550a7cdda
Shell
akashsharma02/dotfiles
/scripts/sync_folders.sh
UTF-8
1,777
4
4
[]
no_license
#! /usr/bin/env bash ################## # OPTIONS SECTION ################## bold=$(tput bold) normal=$(tput sgr0) origin="" destination="" if [ $# -eq 0 ] then printf "\n%s\t\t%s\n\n" "Use ${bold}-h${normal} for help." exit 1 else while getopts ":h" option do case ${option} in h ...
true
077771ec07ee8ce55f24db1da6f2327977c0ec4b
Shell
kbessonov1984/SISTR-website-repo
/static/bash_templates/launch_template.sh
UTF-8
439
3.0625
3
[]
no_license
#!/bin/bash #source activate sistr inputfilepaths=( {{input_filepaths}} ) for input_filename in ${inputfilepaths[@]};do output_file_name=$(basename -- ${input_filename}) sistr -i ${input_filename} ${output_file_name} -f csv -o tmp/{{token}}/${output_file_name} &>> tmp/{{token}}/run_log.txt done mkdir -p ...
true
aa3333e75279003583e4f034f053e01eff0a520a
Shell
denisacostaq/terraform-aws-netflix-mimic
/setup_worker_node.tpl
UTF-8
346
2.84375
3
[]
no_license
#!/bin/bash sudo apt-get update sudo apt-get install -y apache2 sudo systemctl start apache2 sudo systemctl enable apache2 sudo mkdir -p /var/www/html/${worker_name} echo "<h1>${worker_name} running in ${az}</h1></br>%{ for service in services }<a href="/${service}">${service}</a> %{ endfor }" | sudo tee /var/www/html/...
true
74fda2f195736efb0829d9ba777bfdb203a039d3
Shell
zeppelin-no/ci-scripts
/localenv.sample.sh
UTF-8
545
2.5625
3
[]
no_license
# make copy as "localenv.sh" to test locally using `circleci build --job test` # Once this file is copied to "localenv.sh", replace the values below with correct values. # The remove all comments in "localenv.sh" but leave the comment below: # THIS FILE CONTAINS SECRETS: DO NOT ADD THIS FILE TO GIT! # echo 'DEBUG: Get...
true
a7ef1612645a5511bf178db81594bff2e630af54
Shell
juniorny/shell
/sys_info.sh
UTF-8
454
3.125
3
[]
no_license
#!/bin/bash while true do total1=`awk 'NR==1 {for(i=2;i<=NF;i++) sum+=$i} END{print (sum+0)}' /proc/stat` idle1=`awk 'NR==1 {print ($5+0)}' /proc/stat` sleep 1s total2=`awk 'NR==1 {for(i=2;i<=NF;i++) sum+=$i} END{print (sum+0)}' /proc/stat` idle2=`awk 'NR==1 {print ($5+0)}' /proc/stat` total=$[$total2-$total1] ...
true
28a38c3fde641edb20a23c9d258018390041a1b6
Shell
joshrp/stats-stack
/install_grafana.sh
UTF-8
452
3.203125
3
[ "MIT" ]
permissive
#!/bin/bash set -e echo "deb https://packagecloud.io/grafana/stable/debian/ wheezy main" >> /etc/apt/sources.list.d/grafana.list curl https://packagecloud.io/gpg.key | sudo apt-key add - apt-get update apt-get install -y grafana grep '{' ./grafana/custom.ini > /dev/null if [[ $? != 1 ]]; then echo "Looks like theres...
true
4b0bf26f7479a7fcb751e9f14e5e1b760978f871
Shell
icorso/wn_api
/model/create_models.sh
UTF-8
918
2.671875
3
[]
no_license
#!/bin/bash generateDS='/home/mf/envs/wnapi2/bin/generateDS' base_host='http://wn:8080' gateway=$base_host'/merchant/gateway.xsd' rest=$base_host'/merchant/terminal/application.wadl/xsd0.xsd' boarding=$base_host'/merchant/boarding/application.wadl/xsd0.xsd' gds_args='--use-getter-setter=new --no-dates --no-versions -f ...
true
790f6f7847ec3ae10ae36f83d80bdf79cbc23761
Shell
Safari77/lumimaja
/install/slackware/pwsafe.SlackBuild
UTF-8
5,124
3.8125
4
[ "Artistic-2.0", "MIT" ]
permissive
#! /bin/bash # Password Safe build script #-- # Last edited: 15.09.2013 #-- if [ $UID = 0 ]; then echo "There is no need to run this build script as root. You'll be" echo "asked for your root password at package creation time (if you" echo "haven't installed fakeroot)." echo -n "Type \"take risk\" to con...
true