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
812143cef579b4b1dfc7e06411193776b340c705
Shell
NilsLoewe/archive
/vedaserve/archive/infrastructure/docker-playground/api-test/decisions/assignments/index
UTF-8
222
2.984375
3
[]
no_license
#!/bin/bash . "$(dirname "${0}")/../../config" decision_id=$1 if [[ -z "${decision_id}" ]]; then echo "${0} decision_id" exit 1 fi curl $CURL_OPTS "${HOST}/decisions/${decison_id}/assignments" | ${POST_PROCESSING}
true
f00ccf8ccba1b2bc8e31e0ecf40bbaa0c9bf3b27
Shell
61c-teach/su22-proj3-starter
/test.sh
UTF-8
6,340
3.640625
4
[]
no_license
#!/usr/bin/env bash set -eu ########################################################### # Change the next line as needed if auto-detection fails. # # When in doubt, ask on Piazza. # # e.g. python_exec="py" # ###################################################...
true
e535df7e967be3eb456a18bc01096e7d0d521c22
Shell
SUSE/scf
/container-host-files/etc/scf/config/scripts/patches/fix_mysql_advertise_ip.sh
UTF-8
1,639
2.59375
3
[ "Apache-2.0" ]
permissive
set -e PATCH_DIR="/var/vcap/jobs-src/mysql/templates" SENTINEL="${PATCH_DIR}/${0##*/}.sentinel" if [ -f "${SENTINEL}" ]; then exit 0 fi cd "$PATCH_DIR" patch --force -p4 <<'PATCH' diff --git a/jobs/mysql/templates/my.cnf.erb b/jobs/mysql/templates/my.cnf.erb index 514acdd5..80bb6b0e 100644 --- a/jobs/mysql/templa...
true
ae16c25da92fedf5c014c90c105f7b046c8eee71
Shell
zippiehq/aosp_zipper
/checkout.sh
UTF-8
664
3.03125
3
[]
no_license
#!/bin/bash ORIG=$PWD if [ x$AOSP_MIRROR = x ]; then AOSP_MIRROR=https://android.googlesource.com/platform/manifest fi mkdir -p emulator pushd emulator repo init -u $AOSP_MIRROR -b android-7.1.1_r22 --reference=$AOSP_MIRROR --depth=1 mkdir -p .repo/local_manifests cp $ORIG/local_manifest.xml .repo/local_manifests...
true
c3e73fdbb36cafa3138c7c1f599c2a30b94af46f
Shell
Israelfre/tarcoisraelscripts20202
/Exercicios/exercicio04/agenda.sh
UTF-8
235
3
3
[]
no_license
#!/bin/bash # Correção: 1,0 adc=$1 nome=$2 email=$3 if test ${adc} = 'adicionar' then echo "${nome}:${email}" >> usuarios.db echo "Contato ${nome} adicionado com sucesso" fi if test ${adc} = 'listar' then cat usuarios.db fi
true
942e3086b1ad98277dc712faedbb5070a446fbd4
Shell
samrose/wormhole-nixpkgs
/pkgs/development/node-packages/generate.sh
UTF-8
492
3.078125
3
[ "MIT" ]
permissive
#!/usr/bin/env nix-shell #! nix-shell shell-generate.nix -i bash set -eu -o pipefail cd "$NODE_NIXPKGS_PATH/pkgs/development/node-packages" rm -f ./node-env.nix for version in 10 12 13; do tmpdir=$(mktemp -d) node2nix --nodejs-$version -i node-packages-v$version.json -o $tmpdir/node-packages-v$version.nix -c $...
true
f2a70f4efff56bb4516c0eab35e6922718cf7487
Shell
bfincher/select_audio
/select_audio.sh
UTF-8
632
3.734375
4
[]
no_license
#!/bin/bash #first run ffmpeg -i $1 to determine the audio streams. The command below will select the 0:3 audio stream INPUT_FILE=$1 echo $INPUT_FILE command=$(ffmpeg -i "$INPUT_FILE" 2>&1 | /home/bfincher/select_audio/select_audio.py) if [ $? -eq 0 ]; then echo "command = $command" extension="${INPUT_FILE#...
true
5adeba2e2ed958d78e3d96555431d12370f3bae1
Shell
bastiango97/fedora_ros_setup
/setup_scripts/change_bash.sh
UTF-8
452
2.984375
3
[ "MIT" ]
permissive
#!/bin/bash set -e if [ "$EUID" -ne 0 ] then echo "Please run as root" exit fi cat >> /etc/bashrc <<EOL PATH=$PATH:$HOME/.local/bin:$HOME/bin export PATH # colors! green="\[\033[0;91m\]" blue="\[\033[38;5;166;1m\]" purple="\[\033[0;1;36m\]" reset="\[\033[0m\]" #Change command prompt source /usr/share/git-core/con...
true
c70f0be3399c786535c5f082e19c5ae897114070
Shell
Washington-University/HCPpipelinesXnatPbsJobs
/HandReclassificationPackaging/UpdateFixPackage.Batch.sh
UTF-8
2,022
2.53125
3
[]
no_license
#!/bin/bash set -e # -------------------- project=HCP_500 # -------------------- subject_list="" subject_list+=" 101107 " subject_list+=" 111716 " subject_list+=" 162733 " subject_list+=" 211720 " subject_list+=" 786569 " for subject in ${subject_list} ; do current_seconds_since_epoch=`date +%s` ./UpdateFixPack...
true
ffaf749622b6c7f43865f11f63992a91fb3b4d04
Shell
cpf624/shell-tools
/test/save_access
UTF-8
490
3.421875
3
[]
no_license
#!/bin/bash #author:jhat #email:cpf624@126.com #date:2011-11-23 #describe:读取一个目录下的所有文件的权限 #输出形式 #-rwxrwxrwx文件名(绝对路径) declare -i count=0 declare -i cel=0 access="" folder="$1" if [ "$1" == "" ];then folder=$PWD fi find "$folder" | xargs ls -ld > access while read line do t=${line:0:1} if [ $t == 'd' ] || [ $t == '-'...
true
24363f2982f3c515c8ac88143fd640ad643ab59a
Shell
ytani01/Robot01
/robot-http-server.sh
UTF-8
261
3.21875
3
[]
no_license
#!/bin/sh WORKDIR=${HOME}/Robot01 if [ ! -d ${WORKDIR} ]; then echo "${WORKDIR}: not found." exit 1 fi cd ${WORKDIR} . ./activate CMD="./robot-http-server.py" if [ ! -x ${CMD} ]; then echo "${CMD}: not executable." ecit 2 fi exec ${CMD} $*
true
025a28e5b1c6fb132539478852aee02419f10423
Shell
JKrag/teamcity-merge
/getGithubLastAuthor.sh
UTF-8
923
3.03125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # Usage # author=$(./getGithubLastAuthor.sh) # or # author=$(curl –silent -L 'https://raw.githubusercontent.com/debitoor/teamcity-merge/master/getGithubLastAuthor.sh' | bash) #Map of emails -> slack usernames declare -A developers developers["eagleeyes91@gmail.com"]="eagleeye" developers["a.bube...
true
4b8175c5055e9332892aa2a42290e98549c23f6a
Shell
shatabdichakraborty/Linux-System-A-Shell-Scripting-
/count_of_negativeno.sh
UTF-8
220
3.65625
4
[]
no_license
read -p "Enter the no of elements: " n echo "Enter $n numbers" read -a arr count=0 for var in ${arr[*]} do if [ $var -lt 0 ] then count=`expr $count + 1` fi done echo "Number of ngative elements are: $count "
true
5e0dd3e437a0aa762e89710b57286114532fcf88
Shell
artebin/farber
/slideshow.sh
UTF-8
842
3.6875
4
[]
no_license
#!/usr/bin/env bash print_section_heading(){ printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = printf "# ${1}\n" printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' = } print_section_ending(){ echo echo echo } exit_script(){ exit 1 } trap exit_script SIGINT SIGTERM CURRENT_IMAGE_FILE="feh_current_im...
true
c498f7e408dea2a867b45f9ad065bcc001eddd53
Shell
avilleret/OSSIA
/Build.sh
UTF-8
19,465
3.875
4
[]
no_license
#!/bin/bash -x ######################################## ###### Intro & Parameter handling ###### ######################################## ISCORE_CMAKE_DEBUG="" ISCORE_QMAKE_DEBUG="" ISCORE_CMAKE_TOOLCHAIN="" ISCORE_QMAKE_TOOLCHAIN="" ISCORE_DEPTH_GIT="--depth=1" ISCORE_FOLDER="i-score" ISCORE_JAMOMA_BRANCH="feature/cm...
true
51d42a1aa6a5b683948b1d6636d46490d8d644af
Shell
quarkusio/quarkus
/integration-tests/hibernate-orm-compatibility-5.6/postgresql/update-dump.sh
UTF-8
1,242
3.5
4
[ "Apache-2.0" ]
permissive
#!/bin/bash -e MVN=../../../mvnw DB_CONTAINER_NAME=postgresql-database-gen # These should be the same as the username/password used by docker-maven-plugin in ./pom.xml DB_NAME=hibernate_orm_test DB_PORT=5431 DB_USER=hibernate_orm_test DB_PASSWORD=hibernate_orm_test DUMP_LOCATION=src/test/resources/db/migration/V1.0.0_...
true
c536a18757938bd4129e61e20cac225f9cdce8c2
Shell
w4csn/wl2kpi
/pibpq/files/statusmonitor.sh
UTF-8
5,814
3.640625
4
[]
no_license
#!/bin/bash ## statusmoniotor.sh ######## STATUSMONITOR script -- See VERSION # below. ## This script is called from statusmonitor.service, which is a service control file. ## statusmonitor.service controls the registry of this script and specifies that ## this script should be restarted if it ever quits. ## This ...
true
94ffe0485936ceddea631e64c1b1f5ed41883491
Shell
matsu-at-nttr/dotfiles
/dotfilesLink.sh
UTF-8
756
2.6875
3
[]
no_license
#! /bin/bash # make dein: package tool of vim mkdir -p ~/.vim/dein/repos/github.com/Shougo/dein.vim git clone https://github.com/Shougo/dein.vim.git \ ~/.vim/dein/repos/github.com/Shougo/dein.vim # for vim ln -sf ~/.dotfiles/_vim/config ~/.vim/config ln -sf ~/.dotfiles/_vimrc ~/.vimrc cp -r ~/.dotfiles/_vi...
true
4f9cfbc68622376a8930a355d0f392216f0fdde4
Shell
DaoyuanYang/dotfiles
/.config/i3/random_wall_paper.sh
UTF-8
266
3.203125
3
[]
no_license
#!/bin/bash DIR=~/Pictures/wallpapers/ FILES=(${DIR}*.*) SIZE=${#FILES[@]} # seed random with year and weekly signal RANDOM=$(date +%Y)$(date +%W) IMAGE_INDEX=$[$RANDOM % SIZE] echo Setting wallpaper to ${FILES[$IMAGE_INDEX]} feh --bg-scale ${FILES[$IMAGE_INDEX]}
true
ff87fbe041ffb56b4b552f619ef837ef5d7cf6a0
Shell
atefhares/simple-database-engine
/creatdb.sh
UTF-8
334
3.390625
3
[ "MIT" ]
permissive
#!/usr/bin/bash echo "Enter The Name of Database: " read databaseName if [ -d "databases/$databaseName" ]; then echo "database $databaseName Already Exists!" source main.sh else mkdir -p "databases/${databaseName}" echo "database $databaseName created successfully!" fi printf "\n\n" source editdatabase.sh "$...
true
cbf03390a5925b57d36b455fcf972629683e8b2f
Shell
vivlim/arch-beets
/launch.sh
UTF-8
395
3
3
[]
no_license
#!/usr/sbin/bash if [ "$(ls -A /etc/ssh/keys)" ]; then echo "keys exist in /etc/ssh/keys, using those." else echo "generating ssh keys" /usr/bin/ssh-keygen -A mv /etc/ssh/ssh_host*key* /etc/ssh/keys ssh-keygen -t rsa -b 4096 -f /etc/ssh/keys/ssh_host_key fi echo "executing user launch script" su v...
true
4c4a9a78e765567678654eae058df4a9013e4520
Shell
brockboland/Xcode-Template
/Vokal-Cocoa Touch Application Base.xctemplate/travis/cvr.sh
UTF-8
1,023
3.625
4
[ "MIT" ]
permissive
#!/bin/bash # Get the output folder for where the output is going to live COBERTURA_FILE="${TRAVIS_BUILD_DIR}/${FASTLANE_FOLDER}/${TEST_OUTPUT_FOLDER}/${TEST_COVERAGE_FILE}" echo "COBERTURA_FILE = ${COBERTURA_FILE}" if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then # On a merge build, $TRAVIS_COMMIT is the merge ...
true
e8bf089b9da1e231e239b99dcdf5f6244a70ac25
Shell
knz/restcrumbs
/compiler/tools/makeref.sh
UTF-8
1,236
3.46875
3
[ "BSD-2-Clause" ]
permissive
#! /bin/sh # $Id: makeref.sh 4114 2010-11-09 16:25:15Z kena $ set -e get_status() { inp=$1 st1=`grep -i '^:status:' <"$inp" |head -n 1|cut -d: -f3-` st1=`echo $st1` st2=`echo $st1|tr 'A-Z' 'a-z'` if test "$st2" = "obsolete"; then rpl=`grep -i '^:replacedby:' <"$inp"|head -n 1|cut -d: -f3-` rpl=`echo...
true
acf535576107f9a7c9d4b479e2d3b038df53ec14
Shell
wildan2711/go-git-hooks
/hooks/pre-commit
UTF-8
2,209
3.9375
4
[]
no_license
#!/bin/bash # git hook to run checks on changed go code, using: goimports, golint, gosec # will also check for credentials using gitleaks # modified from: https://gist.github.com/radlinskii/0ba6ec694b1e590d8457c98a358f335f if [[ $SKIP_HOOKS = 1 ]]; then exit 0 fi STAGED_GO_FILES=$(git diff --cached --name-only | g...
true
61e84f8e1841cbb1c751b68ccff6ed2f81bbb6ad
Shell
captam3rica/mdm-scripts
/helper-scripts/location-services-enable/location_services_enable.sh
UTF-8
651
3.078125
3
[]
no_license
#!/usr/bin/env sh # # Enable location services for the currentHost # enable_location_services() { # Enable location services echo "locationd: Enableing Location services ..." # uuid=$(/usr/sbin/system_profiler SPHardwareDataType | \ # /usr/bin/grep "Hardware UUID" | /usr/bin/cut -c22-57) #...
true
a0c0573ce869df5bf0b03a120e6d699f9b6857cc
Shell
jampaniuday/oid
/oid_add_alias
UTF-8
424
2.984375
3
[ "MIT" ]
permissive
#!/bin/sh ALIAS=$(echo "${1%.ldif}" | tr '[:upper:]' '[:lower:]') REALM=$(echo "$2" | tr '[:upper:]' '[:lower:]') REALM=${REALM:-'.'} PATH=$ORACLE_HOME/bin:$PATH pushd ~/dba/oid >/dev/null for p in oid.params.[0-9]; do source ./"$p" echo "Connecting to $OID_HOST:$OID_PORT" ldapadd -h "${OID_HOST}" -p "${OID_P...
true
26d6403e173c688a09ce209dcbc798bbbd1b572d
Shell
liqun1981/NERSC-HYCOM-CICE
/hycom/MSCPROGS/scripts/plotrelax.sh
UTF-8
4,984
3.734375
4
[]
no_license
#!/bin/bash # Parse a relaxation file and create postsript plots for a given month # Stand-alone version, template included in script usage=" Routine plots forcing fields from the relaxation files relax.XXX.[ab] files Usage: $(basename $0) [-i incr] [-c center] [-p plottype] month var Where: month is the month to...
true
cbcb38dd4440cc508f8870ced8b2fa230f087a6a
Shell
patrickjahns/nginx
/rootfs/etc/s6/nginx/setup
UTF-8
658
2.96875
3
[ "MIT" ]
permissive
#!/bin/bash source /usr/bin/entrypoint echo "> writing nginx config" /usr/bin/templater -d -p nginx -o /etc/nginx/nginx.conf /etc/templates/nginx.conf.tmpl if [[ $? -ne 0 ]] then /bin/s6-svscanctl -t /etc/s6 exit 1 fi echo "> writing host config" /usr/bin/templater -d -p nginx -o /etc/nginx/host.conf /etc/templa...
true
1765aab4eecbed357f142edba580ece825d95607
Shell
flatiron-labs/environmentalizer_app
/script/mac/gpg/check.sh
UTF-8
161
3.015625
3
[]
no_license
#!/bin/bash -l if [ -n "$(brew ls --versions gnupg 2> /dev/null)" ] && \ [[ $(which gpg) =~ ^/usr/local/bin/gpg$ ]] then echo -n '1' else echo -n '0' fi
true
1994d029d2718a6d00d0775cfb59dffa7dafbbe1
Shell
bnclabs/gson-tools
/validate/check.sh
UTF-8
5,525
2.90625
3
[ "MIT" ]
permissive
#! /usr/bin/env bash go build runinput() { echo $1 $2 $1 "$2" rc=$? if [[ $rc != 0 ]]; then echo "failed $1 $2" exit $rc; fi echo "" } runinput './validate -count 1000 -input' 'null' runinput './validate -count 1000 -input' 'true' runinput './validate -count 1000 -input' 'false...
true
8a742afd6b6faffe120b5133821dfed64934ccf5
Shell
antonisa/embeddings
/experiments/run_MUSE_single_exp.sh
UTF-8
1,053
2.6875
3
[]
no_license
MUSE_ROOT="MUSE" DICT_ROOT="../../filtered_dictionaries" FASTTEXT_ROOT="../fasttext-vectors" cd ${MUSE_ROOT} src=$1 tgt=$2 id=s2t dico=S2T python3 supervised.py --src_lang ${src} --tgt_lang ${tgt} --src_emb ${FASTTEXT_ROOT}/wiki.${src}.vec --tgt_emb ${FASTTEXT_ROOT}/wiki.${tgt}.vec --n_refinement 5 --dico_train ide...
true
b8b59273ed3f7d8ea46d5685f4c5764f056b7c1c
Shell
MoronixProduct3/dotfiles
/scripts/dotlink
UTF-8
1,854
4.46875
4
[]
no_license
#!/bin/sh # Tools to track new config files # Put a new config file amongst the linked directory # utility function beginswith() { case $1 in "$2"*) true;; *) false;; esac; } matchyes() { case $1 in "y") true;; "Y") true;; *) false;; esac; } # Checking for arguments; There sould only be one argument: the path of th...
true
c6d0e4b6ef356ab368505b10f3b03acb2df07ba8
Shell
zhenyisong/wanglab.code
/nextflow.sh
UTF-8
4,027
3.5
4
[]
no_license
#!/bin/bash #set -e #set -o pipefail # https://github.com/ewels/NGI-RNAseq #cd /temp # Define the constant in the whole QC pipeline setting # we could add or upgrade the content here later # outside data and annotation file, path # test command: # nextflow.sh -p 'test123' -g mm10 -r "data/*.fastq" #---- # How to ge...
true
27f257896cea1a16773dbfe4a08c1c1674d14a77
Shell
ratulb/k8s-cluster-from-source
/scripts/kubelet/distribute-kubelet-configs.sh
UTF-8
704
3.921875
4
[]
no_license
#!/usr/bin/env bash #Distribute the worker/kubelet config files to respective worker node #Create required directories if needed GEN_CONFIG_PATH=../../kubeconfigs . ../run-as-root.sh WORKERS= if [ $# -eq 0 ]; then WORKERS="worker-1 worker-2 worker-3" echo "No arguments supplied - setting up for $WORKERS" ...
true
bc4db01d9c0ccdbef5136d603e6c739923fc6c28
Shell
VentByte/dotfiles
/script/bootstrap
UTF-8
1,025
2.921875
3
[]
no_license
#!/bin/bash if [ "$1" == "copyback" ]; then sudo apt update sudo apt upgrade -y sudo apt install -y git zsh curl wget gnupg2 lsb-release software-properties-common hcloud-cli # oh-my-zsh mkdir $HOME/.local export ZSH=$HOME/.local/oh-my-zsh sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master...
true
52226aa5dc6e21d1e68ba7e0036b225a9d69be22
Shell
pmichel31415/anime-prettify
/anime_prettify.sh
UTF-8
383
3.578125
4
[ "MIT" ]
permissive
#!/bin/bash files="*" regex="\[.*\]\s(.+)\s-\s([0-9]+)\s\[.*\]\.(\w+)" for f in $files do if [[ $f =~ $regex ]]; then anime_name="${BASH_REMATCH[1]}" anime_num="${BASH_REMATCH[2]}" anime_ext="${BASH_REMATCH[3]}" new_filename="${anime_num} - ${anime_name}.${anime_ext}" echo "Renaming ${f} to ${n...
true
53bf74b4456c086580d2b3f2c1d24c214c328a4f
Shell
devtula/bluetooth_fm_pi
/bluetooth
UTF-8
2,474
3.4375
3
[]
no_license
#!/bin/bash AUDIOSINK="alsa_output.platform-bcm2835_AUD0.0.analog-stereo" ACTION=$(expr "$ACTION" : "\([a-zA-Z]\+\).*") echo "Executing bluetooth script...|$ACTION|" >> /var/log/bluetooth_dev if [ "$ACTION" = "add" ] then # Turn off BT discover mode before connecting existing BT device to audio hciconfig hci0 nosca...
true
97eaba3a5677f4436331bdca4e2a9649b0f5abf0
Shell
vlnk/isima
/zz1/sys/tp2/whoswho.sh
UTF-8
338
3.765625
4
[]
no_license
#!/bin/sh LISTE=`ls ../*/online.cat | cut -d"/" -f2` RET="" for LOG in $LISTE; do if [ -f "../$LOG/pseudo.cat" ]; then PSEUDO=`more ../$LOG/pseudo.cat` if [ "$PSEUDO" = "$1" ]; then RET="$LOG" fi fi done if ! [ -z "$RET" ]; then echo "$RET" else echo "Aucun pseudo...
true
33d70d03ec3157beef116686c651834e275cce8f
Shell
afcarl/MSTmodel
/EndToEndClassification/Experiments/make_esc50_data.sh
UTF-8
357
2.6875
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash export CUDA_VISIBLE_DEVICES="" # specify # 1. the esc_50_path to the downloaded dataset folder # 2. destination_folder where you want to store the parsed esc50 dataset (subfolder 1) and the features (subfolder 2) esc_50_source_path="" destination_folder_path="" python make_esc50_data.py $esc_50_...
true
c0639ee24807958446e26492bd6ce73a77917a3a
Shell
aishmam1999/pjain24
/ITMO-544/Mid_Term/create-env.sh
UTF-8
5,188
3.28125
3
[]
no_license
#!/bin/bash if [ $# -ne 7 ] then echo "Provide only six positional parameters" exit 1 fi if [ -z $1 ] then echo "Provide valid Image-id" exit 1 fi if [ -z $2 ] then echo "Provide Instance count" exit 1 fi if [ -z $3 ] then echo "Provide Instance Type" exit 1 fi if [ -z $4 ] then echo "Provide KeyPa...
true
b8d3a54bee64542e5eb759ec391d37dc28eaa329
Shell
woggioni/x-toolchain
/packages/libxcomposite/PKGBUILD
UTF-8
1,136
2.53125
3
[]
no_license
# $Id$ # Maintainer: Jan de Groot <jgc@archlinux.org> pkgname="${_target}-libxcomposite" _basename="${pkgname#${_target}-}" pkgver=0.4.4 pkgrel=2 pkgdesc="X11 Composite extension library" arch=('x86_64') url="https://xorg.freedesktop.org/" license=('custom') options=('staticlibs' '!buildflags') depends=("${_target}-li...
true
ff076724ace4858260bd442f39baf6f2cb929385
Shell
Lynn5160/DevLogs
/shell_scripts/getopts.sh
UTF-8
711
3.96875
4
[ "MIT" ]
permissive
#! /bin/bash # 使用 shell 内置命令 getopts 来处理命令行的位置参数 echo "Parameters for the script $0 are: "$* echo "Shell Variable OPTIND was initialized to $OPTIND." while getopts ":a:bc:" opt do case $opt in a ) echo "Option a: $OPTARG, next argument idx: $OPTIND";; b ) echo "Option b does not need argument, ne...
true
175fc447806146214b5d431e4fd93e6193ba1669
Shell
linshichun/onekeyscript
/install_gitlab/uninstall.sh
UTF-8
577
2.625
3
[]
no_license
#!/bin/bash echo "=========uninstall " crontab -l > /tmp/crontab.bak sed -i -e "/\/opt\/gitlab\/bin\/gitlab-rake/d" /tmp/crontab.bak crontab /tmp/crontab.bak systemctl restart crond gitlab-ctl stop kill -9 $(ps -ef| grep "opt/gitlab*"|grep -v grep |grep runsvdir|awk '{print $2}') kill -9 $(ps -ef |grep "/opt/gitlab" |...
true
a80bd53aae3b4f47cc0df908816afb2888d3fa2e
Shell
venice-juanillas/Galaxy-for-Crops
/galaxy/tools/data_source/streamVCF.sh
UTF-8
807
3.34375
3
[]
no_license
#!/bin/bash # # make_gz.sh # # Call this script with a list of s3 locations with VCF files to parse # aws --profile NDAR s3 ls s3:/S3_URL/ | awk '{print $4}' | xargs -n1 -P4 sh make_gz.sh # xargs -n1 -P4 accepts one argument and runs 4 parallel processes # #Create named pipe mkfifo $1_pipe #Set up stream for pipe aw...
true
fce04c2cc53acc2c6aa38e1713f804c392fc6cb7
Shell
cwhelan/project_scripts
/gene_rearrange/hydra_merged.sh
UTF-8
3,679
2.765625
3
[]
no_license
#!/bin/bash set -e set -u BAM_FILE=$1 INSERT_SIZE_STAT_FILE=$2 WORKING_DIR=`dirname $BAM_FILE` FILE_NAME=`basename $BAM_FILE` FILE_PREFIX=`echo $FILE_NAME | awk -F. '{ print $1 }'` MEDIAN_ISIZE=`cat $INSERT_SIZE_STAT_FILE | grep LI | awk '{print $3}'` MAD_ISIZE=`cat $INSERT_SIZE_STAT_FILE | grep LI | awk '{print $6...
true
e01e7018bfbe62f8fe4a5a11ca8a36b3a6fcfce1
Shell
jam31118/rigged-qprop
/src/util/job/submit/sge/ppp-mpi.sh
UTF-8
656
2.96875
3
[]
no_license
#!/bin/bash # request 'bash' as shell for job #$ -S /bin/bash # Import environment variable from where this job is submitted #$ -V # Use current directory as the working directory #$ -cwd # The Job name #$ -N ppp-mpi # Configure log files for stdout and stderr #$ -o $JOB_NAME.$JOB_ID.log #$ -e $JOB_NAME.$JOB_ID.e...
true
17e11215906a97f29dec726ac37467362f54edc3
Shell
Diaradougou/kbash
/api/functions/add/command.sh
UTF-8
1,165
3.875
4
[]
no_license
#!/bin/bash function oneline_help_ENTRYPOINT_add_command() { echo "Add a function." } export -f oneline_help_ENTRYPOINT_add_command function cmdline_help_ENTRYPOINT_add_command() { echo "COMMAND_NAME" } export -f cmdline_help_ENTRYPOINT_add_command function help_ENTRYPOINT_add_command() { printf "`cat << EOF <...
true
e4e875ac49a354d96081963b3370ceadeb7b7f68
Shell
sgursalkar-womply/build-scripts
/wcj-cli/bin/install.sh
UTF-8
490
3.15625
3
[]
no_license
#!/usr/bin/env bash TARBALL_URL="s3://womply-builds/wcj-cli/wcj-cli.tgz" TARBALL_EXPLODE_DIR="/usr/local" WCJ_DIR="${TARBALL_EXPLODE_DIR}/wcj-cli" WCJ_EXEC="${WCJ_DIR}/bin/wcj" IN_PATH_SYMLINK="${TARBALL_EXPLODE_DIR}/bin/wcj" set -e # Delete the old code [ -L "$IN_PATH_SYMLINK" ] && rm "$IN_PATH_SYMLINK" [ -d "$WCJ...
true
1a420ed490da6de82eb67fd5c08e74e7c3af23e7
Shell
asmtal/terraform-aws-quorum-cluster
/packer/provisioning-scripts/golang.sh
UTF-8
482
2.71875
3
[ "MIT" ]
permissive
#!/bin/bash set -eu -o pipefail GOREL=go1.10.3.linux-amd64.tar.gz BASH_PROFILE=/etc/profile.d/quorum-custom.sh wget -q https://storage.googleapis.com/golang/$GOREL tar xfz $GOREL sudo mv go /usr/local/go rm -f $GOREL export GOBIN=/usr/local/go/bin PATH=$PATH:$GOBIN printf "\nexport PATH=$GOBIN:$PATH\nexport GOPATH=/...
true
ba9ffdaf531657856a4afeccea625d38d929f87a
Shell
petronny/aur3-mirror
/goldencheetah-git/PKGBUILD
UTF-8
1,276
2.78125
3
[]
no_license
# Maintainer: Andy Bryson <agbryson@gmail.com> pkgname=goldencheetah-git pkgver=20130317 pkgrel=1 pkgdesc="Cycling Performance Software" url="http://goldencheetah.org/" arch=('x86_64' 'i686') license=('GPL2') depends=('libftd2xx' 'qt4' 'git' 'qtwebkit' 'clucene' 'flex' 'bison' 'libical' 'liboauth' 'vlc') install="" sou...
true
bf0e6160f9055ca05958f50599e825f45ceb7ab7
Shell
troytjh/Bash_Utils
/archlive/releng-v0.6.3/airootfs/root/arch_menu.sh
UTF-8
2,429
3.578125
4
[]
no_license
#!/usr/bin/env bash RED='\033[0;31m' NC='\033[0m' menu() { echo 'Install menu:' options=("Setup" "Base" "Packages" "AUR Packages" "Post Setup" "Quit") select opt in "${options[@]}" do case $opt in "Setup") bash /root/0-setup.sh menu ;...
true
64a63c8e7dc306d3297a9b370762b39e1a7791b9
Shell
pli01/docker-samples
/elk-input/get.sh
UTF-8
1,503
2.53125
3
[]
no_license
apt-get -qq update && apt-get install -qqy curl git cd /opt curl -o $(basename https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-5/5.2.2-11/search-guard-5-5.2.2-11.zip) https://oss.sonatype.org/content/repositories/releases/com/floragunn/search-guard-5/5.2.2-11/search-guard-5-5.2.2-11.z...
true
07124aeb06717dd493c2b3e4ce428417c8ba8229
Shell
Saksham033/twrp_tissot
/recovery/recovery_inject.sh
UTF-8
1,039
3.234375
3
[]
no_license
#!/bin/bash # # DEVICE_RECOVERY_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" TARGET_RECOVERY_ROOT_OUT=$1 echo "" echo "----------------------------------------------------------------" echo "[#] Performing TWRP touch-ups and Tissot Manager build..." echo " [#] Injecting recovery bootstrap service..." ...
true
bad4b0875cc4ef101ef48602dcd1e2699a65d2b1
Shell
dajudge/quarkus-kubernetes-operator
/.scripts/registry-address
UTF-8
371
2.96875
3
[]
no_license
#! /bin/bash set -e DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" WB="$DIR/../workbench" PORT=$($WB kubectl get --namespace docker-registry -o jsonpath="{.spec.ports[0].nodePort}" services docker-registry) ADDRESS=$($WB kubectl get nodes --namespace docker-registry -o jsonpath="{.items[0]....
true
f95d4538dd2edfcd3e5841d740bd52dc8d4775bf
Shell
djw8605/Gratia
/reporting/summary/gratiaSum.cron.sh
UTF-8
474
3.203125
3
[]
no_license
#!/usr/bin/env bash gsum="/usr/share/gratia-reporting/gratiaSum.py" while test "x$1" != "x"; do if [ "$1" == "--help" ]; then echo "usage: $0 [--debug] [quoted_string_representing_starting_date (as accepted by date -d)]" exit 1 elif [ "$1" == "--debug" ]; then debug=x shift else date_arg=$1 sh...
true
4faa694cf6804bd9571e74e7a9388aacdb24a63d
Shell
borgbackup/borg
/scripts/make-testdata/test_transfer_upgrade.sh
UTF-8
1,608
3.34375
3
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
# this scripts uses borg 1.2 to generate test data for "borg transfer --upgrader=From12To20" BORG=./borg-1.2.2 # on macOS, gnu tar is available as gtar TAR=gtar SRC=/tmp/borgtest ARCHIVE=`pwd`/src/borg/testsuite/archiver/repo12.tar.gz export BORG_REPO=/tmp/repo12 META=$BORG_REPO/test_meta export BORG_PASSPHRASE="wayto...
true
0e0ef948e55d7ec495618622ba59d09ad83fd540
Shell
eclufsc/ophidian
/build_dependencies.sh
UTF-8
3,580
3.921875
4
[ "Apache-2.0" ]
permissive
################################################################################ # This shell script is used to compile and install dependencies of the # Ophidian library ################################################################################ # Make shell stop at any command that not return 0 set -e # Fet...
true
1d2922e8f1f9586dfb1b901462381b6f3d27c0e7
Shell
Ladicle/setup-tools
/linux/cmd/patch-magictrackpad2
UTF-8
430
2.671875
3
[]
no_license
#!/bin/bash set -ex sudo apt install -y \ ruby \ ruby-dev \ rubygems \ build-essential \ dkms sudo gem install --no-ri --no-rdoc fpm path=$HOME/Developments/src/github.com/rozza/magictrackpad2-dkms if [ ! -e $path ]; then git clone https://github.com/rozza/magictrackpad2-dkms.git fi cd...
true
a101ce772ed92ca817d295d995c83a6c7edc00d7
Shell
scromityiii/PolyBandit
/level1.sh
UTF-8
3,848
3.40625
3
[]
no_license
#!/bin/bash echo "******************************************************************" >> /home/level1/README.txt; echo "* Welcome to PolyBandit. This is a polymorphic clone of *" >> /home/level1/README.txt; echo "* Overthewire.org's Bandit exercise. The object is to figure out *" >> /home/level1/README.txt; e...
true
2d7b87f8414c759a1fad92325f9415c18a897e67
Shell
obsidiansystems/nixpkgs
/pkgs/applications/misc/ArchiSteamFarm/updater.sh
UTF-8
1,372
3.734375
4
[ "MIT" ]
permissive
#!/usr/bin/env nix-shell #!nix-shell -i bash -p curl gnused jq common-updater-scripts nuget-to-nix set -exo pipefail cd "$(dirname "${BASH_SOURCE[0]}")" deps_file="$(realpath ./deps)" new_version="$(curl ${GITHUB_TOKEN:+" -u \":$GITHUB_TOKEN\""} -s "https://api.github.com/repos/JustArchiNET/ArchiSteamFarm/releases" |...
true
5335e327195aa7bc03896c7950e5489c5b8491aa
Shell
paweluramowski/appiumWorkshop
/launch_node.sh
UTF-8
737
3.015625
3
[]
no_license
#!/usr/bin/env bash echo "adb - script" killall node START_PORT=4000 DEVICE_ID=`adb devices | tail -n +2 | cut -sf 1` echo "Android Device Found : $DEVICE_ID" JSON=jsonConfFiles/$DEVICE_ID.json echo "Json file : $JSON" PATH1=$(pwd) CONFIGFILE=$PATH1/$JSON echo "Config file : $CONFIGFILE" NODE_PORT=$START_PORT BOOTSTR...
true
b134bad5cca57313be536350b3f4fb455b30aa24
Shell
brunodrugowick/distributed-tracing-demo
/scripts/start-all.sh
UTF-8
758
2.640625
3
[]
no_license
#!/bin/bash echo 'Starting zipkin server...' java -jar ../zipkin/zipkin-server-2.21.5-exec.jar >> zipkin.log & echo 'Starting Prometheus...' cd ../prometheus/ && ./prometheus >> prometheus.log & echo 'Starting services...' cd ../service-one/ && ./mvnw spring-boot:run >> service-one.log & cd ../service-two/ && ./mvnw sp...
true
a01dda1bb61887dad3322b5150126f2b10a22863
Shell
FeepingCreature/jerboa
/build-win32-dist.sh
UTF-8
685
2.9375
3
[ "MIT" ]
permissive
#!/bin/sh set -e echo "---- building interpreter ----" make -C build echo "---- building win32 executable ----" ./build-win32.sh echo "---- generating 32-bit bindings ----" export CFLAGS="-m32" ./genlibs.sh >/dev/null echo "---- creating release tree ----" RELEASE=jerboa-win32-$(git describe --always) rm "$RELEASE".zi...
true
62038dd6e95c6b7724b98a8dd7a0999f142cf81c
Shell
oysand/red_handy_rov
/install_dep.sh
UTF-8
858
2.546875
3
[ "MIT" ]
permissive
#!/bin/bash ### Install ros melodic sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 sudo apt update sudo apt install -y ros-mel...
true
863d25f9bade3d2b7abb65112802656e93acd825
Shell
LeonWilzer/unix-scripts
/Bash/launcher
UTF-8
840
3.765625
4
[ "MIT" ]
permissive
#!/bin/bash # A Program Manager. # It kills all instances of the programms in a list and then runs their respective launch script #Stores programm names; best sorted from shortest time for completion to longest time for completion name=(polybar picom dunst betterlockscreen xautolock) #Launch scripts are located in ~...
true
a23606164c00ed127dd2001190297cb10ae7cf19
Shell
Samplasion/homepage
/compile.sh
UTF-8
2,579
4.0625
4
[]
no_license
#!/bin/zsh me="$(basename "$(test -L "$0" && readlink "$0" || echo "$0")")" dir="$1" cwd="$PWD" type="" print "\e[34mWelcome to \e[1;4;7m$me\e[0;34m!\e[0m" printver() { echo "\n\e[33;1;4m$type\e[0;34m Compiler\e[0m" echo "\n\e[34mUsing \e[1m$1\e[0;34m: \e[33;1;4m$2\e[0m\n" } compiler() { name="$1" v...
true
0c926a2d79c7e5bac9c84b0954f481277ab534e6
Shell
nguyencaonhan271201/CS205b
/exe18.sh
UTF-8
212
3.21875
3
[]
no_license
#!/bin/bash function logging() { MESSAGE=$@ SET_MESSAGE="Random Number is:$MESSAGE" echo "$SET_MESSAGE" logger -i -p user.info "$SET_MESSAGE" } logging $RANDOM logging $RANDOM logging $RANDOM
true
dbe3141cbaabea9f0854c625ac543519724e2589
Shell
k0chan/ansible-proof-of-concept
/provision/add_pub_key.sh
UTF-8
379
3.578125
4
[]
no_license
#!/bin/bash pathToAuthorizedKeys="/home/vagrant/.ssh/authorized_keys" for pubKey in "$@"; do commendInKey=$( echo ${pubKey##* } ) if grep -q "${commendInKey}" "${pathToAuthorizedKeys}"; then echo "${commendInKey} key exists" else echo "Added key to ${pathToAuthorizedKeys}" echo "$...
true
b054b843d94e6c07dcd55ff8bd08b8dac40b0ef4
Shell
jujumo/memento
/coding/batch/jumo.zsh-theme
UTF-8
4,784
3.390625
3
[ "MIT" ]
permissive
# vim:ft=zsh ts=2 sw=2 sts=2 # # agnoster's Theme - https://gist.github.com/3712874 # A Powerline-inspired theme for ZSH # # # README # # In order for this theme to render correctly, you will need a # [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). # Make sure you have a recent version: the code ...
true
3364ccc2e76d75a6149e29cfaf0b9acc085b2db4
Shell
genuine-linux/genetic-gensrc
/libayatana-appindicator/libayatana-appindicator/Rules
UTF-8
763
3.296875
3
[]
no_license
#!/bin/bash # Load Info file # source ./Info; # Fake GEN<DESTDIR> = <rootfs> to install package # GENPKGDESTDIR="$(pwd)/rootfs"; # Change to source directory # cd ../$original_name-$version; sh autogen.sh ./configure --prefix=/usr \ --disable-static \ --enable-shared \ --with-gtk=3 # make if test -f "Makefile";...
true
e8d202206486f567c2fcc2c11bc201e2612b4cff
Shell
aritode/quiver_sync
/Mac/quiverSync.sh
UTF-8
938
3.65625
4
[ "MIT" ]
permissive
#!/bin/bash -e # Sync Quiver Notes Library with remote server and convert notes to HTML ############################################################################### set -e # exit on command errors (so you MUST handle exit codes properly!) set -E # pass trap handlers down to subshells set -o pipefai...
true
e3135cb777a976aba5bd1d46c21ecd86687153e2
Shell
playbar/kaleido3d
/make_android.sh
UTF-8
862
2.796875
3
[ "MIT" ]
permissive
CMAKE_VERSION=`ls $android_home/cmake` CMAKE_DIR=$android_home/cmake/$CMAKE_VERSION CMAKE_BIN=$CMAKE_DIR/bin/cmake CMAKE_NINJA=$CMAKE_DIR/bin/ninja CMAKE_TOOLCHAIN=$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake STL=gnustl_shared CMAKE_NDK_DEFINES="-DANDROID_NDK=$ANDROID_NDK_HOME" CMAKE_ANDROID_DEFINES="$CMAKE_ND...
true
d1bdf82de837aa897505608a2fbc6466e54460c3
Shell
SurajChauhan/scripts
/Scripts/percona/scripts/dbstrbk.sh
UTF-8
1,250
3.3125
3
[]
no_license
#!/bin/sh #============================================================================ # Description: backup individual table definition only (.frm file) BKP_DATE=`date '+%m-%d-%Y'` MUSER="dba_backup" MPASS="wer2234M34" BACKUP_DIR="/mysqlbackup/PerconXtrabackup/DBBackup/TableDef/" MYSQLDUMP="/mysql/setup/bin/mysqldu...
true
b1ebfff9b6df8df3745796e57d22c4c90d41bd99
Shell
yaarto/dot
/setup/mac.sh
UTF-8
19,853
3.09375
3
[]
no_license
#!/usr/bin/env bash # shellcheck shell=bash disable=SC1090,SC2016 # Things I like to have on a Mac. set -e . "$(dirname "$0")/../helpers/setup.sh" # Load helper script from dot/helpers. # Link VS Code preferences into the macOS specific folder. if [[ $USER == gib && -d "$HOME/Library/Application Support/Code/" ]]; ...
true
7631eeeaf4b23039ab5fbf4996fbadbe0d60e795
Shell
magic-home/magic-home-cloud
/device-conf/build.sh
UTF-8
192
2.6875
3
[]
no_license
#!/bin/sh export dockerfile="Dockerfile" export arch=$(uname -m) export eTAG="0.0.1" echo Building magichome/device-conf:$eTAG docker build -t magichome/device-conf:$eTAG . -f $dockerfile
true
276f29c3609ae047eb1d2e96307dea44030b349f
Shell
graynoodle/GN_ResignTool
/GN_ResignTool/GN_Code/GN_Shell/GN_Function/gn_executeInTerminal.sh
UTF-8
262
2.5625
3
[]
no_license
date "+%G-%m-%d %H:%M:%S" echo "execute shell:"$1" see more in the Terminal" cd `dirname $0` rm gn_tmpShell.sh echo "`dirname $0`/\"$1\" \"$2\" \"$3\" \"$4\" \"$5\" \"$6\" \"$7\" \"$8\"" > gn_tmpShell.sh chmod 777 gn_tmpShell.sh open -a Terminal gn_tmpShell.sh
true
ee76dbc876a30cd429179b1c06eb53d4e8394d21
Shell
jenkinsserver123/terrafirm
/terrafirm
UTF-8
10,603
4.3125
4
[ "WTFPL" ]
permissive
#!/usr/bin/env bash # Written by: https://github.com/elocnatsirt # Terrafirm is a wrapper script around Terraform that enforces a specific # configuration structure for your team. # Terrafirm also provides some helpful functions that allow you to streamline # writing and validating your Terraform modules and configu...
true
c5d5c379ea498dfede46d65f6131837414e5a227
Shell
jatekpet76/cc-test
/graph_download.sh
UTF-8
320
2.984375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash . ./setenv.sh # wget "https://coinmarketcap.com/currencies/bitcentavo" cat $1 | while read a; do if test -f "$GRAPH_DIR$a.js"; then echo "FOUND >>> $a <<< " fi if ! test -f "$GRAPH_DIR$a.js"; then sleep 1; wget -c "https://graphs.coinmarketcap.com/currencies/$a/" -O "$OUT_DIR/$a.js"; fi done
true
d2d66a9ba68c086d03ae023bda0ab70fd858414c
Shell
mihai-chiroiu/cdci
/labs/lab06/copy_from_node.sh
UTF-8
248
2.703125
3
[]
no_license
#!/bin/bash # (c) Mihai Chiroiu - CDCI (https://ocw.cs.pub.ro/courses/cdci) #usage: copy_from_node.sh IDS /root/filename destination # get the docker ID DID=$(sudo docker ps -a | grep $1 | cut -d " " -f 1 ) # enter the docker sudo docker cp $DID:$2 $3
true
ace9e1f175482d3d83aa7325cb8f32c387a586d9
Shell
DLTcollab/tangle-accelerator
/tests/regression/common.sh
UTF-8
1,068
3.734375
4
[ "MIT" ]
permissive
# Build options setup_build_opts() { # The options are separated by '|', the format is as follows # <bazel build args> | <binary cli arguments> OPTIONS=( "|" "|--node_host ${NODE_HOST}" "|--node_port ${NODE_PORT}" "|--ta_host ${TA_HOST}" "|--quiet" "--define build_type=debug|" "--define build_type=prof...
true
10dd98f52422761cbbfeeb9812b462bc8d23ec1c
Shell
stuenofotso/Cloud-Computing-Project-Ressources
/Realisations_Logicielles/CloudComputing_Docker/Apache/config_files/read_hosts.sh~
UTF-8
530
3.203125
3
[ "CC0-1.0" ]
permissive
#!/bin/bash # détermination de l'ip de la vm_apache cd /tmp/; cat /etc/hosts | grep "vm_apache$" > apache_ip_host; readarray tab_apache_ip_host < apache_ip_host; for line in "${tab_apache_ip_host[@]}" do OIFS="$IFS"; line1=${line//[[:blank:]]/\*}; echo "$str1"; IFS='* '; read -a tab_apache_host_name <<...
true
782d4bb52e783437e1da74f1b8bf2fd054333606
Shell
bingbinyu/myworkspace
/TI2_Docs/ueb2/abgabe02/src/aufgabe1/testarea.sh
UTF-8
1,704
3.25
3
[]
no_license
#!/bin/bash mkdir mp3s cp *.mp3 mp3s/ cp the\ programmer/*.mp3 mp3s/ cp unknown mp3s ./mp3-rename.sh mp3s/* #nice coloring RED='\033[0;31m' GREEN='\033[0;32m' NC='\033[0m' succ="${GREEN}SUCCESS${NC}" fail="${RED}FAILED${NC}" testprint () { if [ "$1" = "$2" ] then echo -e " ...
true
218a36861f6910bbace25c7f86d0dfb17ea2f724
Shell
unshorn-forks/STAC
/Engagement_Challenges/Engagement_4/withmi_3/proofs/withmi/joinchat/malicious_adduser.sh
UTF-8
567
2.65625
3
[]
no_license
#!/bin/sh # step 1, start tcpdump /usr/sbin/tcpdump -i lo -w addusers.pcap tcp port 9002 > /dev/null & TCPDUMP_PID=$! sleep 1 # start the users /usr/bin/expect sally.expect > sally.out & SALLY_PID=$! sleep 1 /usr/bin/expect deven.expect > deven.out & DEVEN_PID=$! sleep 1 /usr/bin/expect megan.expect > megan.out & M...
true
8eb5a1e4e4eb84109e1cae2dfd32c23b42f6cfd9
Shell
RouzanXploitSec47/Gogh4Termux
/install.sh
UTF-8
1,296
4.1875
4
[]
no_license
#!/usr/bin/env bash tmp_IFS=$IFS # Get themes status_code=$(curl -IL https://github.com/AvinashReddy3108/Gogh4Termux 2>/dev/null | head -n 1 | cut -d$' ' -f2) if [ "$status_code" -eq "200" ]; then themes=$(curl -sL https://github.com/AvinashReddy3108/Gogh4Termux | grep -o "title=.*\.properties\" " | awk -F '=' '{p...
true
57664ff0692bfd339dbd312aa7634a68e37f0777
Shell
codenamev/dotfiles
/bin/v
UTF-8
203
3.5625
4
[ "BSD-3-Clause", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/usr/bin/env bash # Usage: v [filename] # # Opens a file in vim defaulting to fzf if [ "$#" -ne 0 ]; then vim $@ else if ! $(type fzf > /dev/null 2>&1); then vim else vim $(fzf) fi fi
true
9a96dea813fe3e9760c758ce9fd20091df9765f9
Shell
lbalak50/dotfiles
/zsh/fpath.zsh
UTF-8
319
3.28125
3
[ "MIT" ]
permissive
#!/usr/bin/env zsh # Add each topic folder to fpath so that they can add functions and completion # scripts. for topic_folder in $DOTFILES/*; do if [ -d "$topic_folder" ]; then fpath=($topic_folder $fpath) fi done # Add .local zsh completions if you have any defined. fpath=(~/.local/zsh_completions $fpath)
true
7a84412c680d7ed2c71c148724817c5fe43166b7
Shell
kishanadd/136devops
/shell-scripts/10-if-statement.sh
UTF-8
631
3.8125
4
[]
no_license
#!/bin/bash ## Check() { if [ $1 -eq 0 ]; then echo "$ACTION :: Success" exit 0 else echo "$ACTION :: Failure" echo "Refer log file :: $LOG for errors" exit 1 fi } #### ACTION=$1 PACKAGE_NAME=$2 LOG=/tmp/if.log if [ -f $LOG ];then rm -f $LOG fi if [ -z "...
true
4866706848cb10f3682f2ae4138d58ec1f602b7c
Shell
clofresh/trellofire
/bash/build.sh
UTF-8
517
3.65625
4
[ "BSD-3-Clause" ]
permissive
function build() { ENV=${1-dev} # Prepare the dir BUILD_DIR=./build/$ENV echo "[build] Creating $ENV build in ${BUILD_DIR}" rm -rf $BUILD_DIR/* # Compile the peg grammars to js compile_peg # Compile and optimize the js and jsx if [ $ENV == "release" ] then OPTIMIZE=ugli...
true
c9b0cc200cb153952074e93ba99a78c254cbd8ed
Shell
vladcc/blocks
/blocks/tests/run_tests.sh
UTF-8
4,869
2.734375
3
[ "MIT" ]
permissive
#!/bin/bash G_BLOCKS_BIN="" G_TESTS_FILE_OK="./tests_file_ok.txt" G_TESTS_FILE_ERRORS="./tests_file_errors.txt" G_TESTS_FILE_COMMENTS="./tests_file_comments.txt" G_TESTS_FILE_REGEX="./tests_file_regex.txt" G_TESTS_FILE_OK_ACC="./tests_ok_accepted.txt" G_TESTS_FILE_ERR_ACC="./tests_error_accepted.txt" G_TESTS_FILE_COM...
true
011ad33bf6a31dfc63f55adb5fe9b05c42fde5e8
Shell
viinay/installations
/mongodb.sh
UTF-8
2,254
3.5
4
[]
no_license
/* MongoDB is already included in ubuntu package repository ubuntu ensures the authenticity of software packages by verifyting that they are signed with GPG keys,so we first have to import that key from the official MongoDB repository */ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 /* ...
true
f90ee0c865f172119a2c9ab47f33f43737f37c33
Shell
Pallavi-Srivastava/Employee-Wage
/uc2.sh
UTF-8
281
3.1875
3
[]
no_license
#!/bin/bash -x isPresent=1 randomCheck=$(( RANDOM%2 )) wagePerHour=20 if [ $isPresent -eq $randomCheck ] then echo "Employee is present $isPresent"; workHrs=8; dailyWage=$((wagePerHour*workHrs)); echo "$dailyWage"; else echo "Employee is absent $randomCheck"; fi
true
09661f381c9c9fa94dd95c3955c6f8f01265572f
Shell
spipu/linky-reader
/architecture/scripts/provision.sh
UTF-8
494
2.65625
3
[ "MIT" ]
permissive
#!/bin/bash cd "$( dirname "${BASH_SOURCE[0]}" )" cd ../../ source ./architecture/conf/env.sh CONFIG_FOLDER="$ENV_FOLDER/architecture/conf/dev" ENV_FOLDER_SED=$(echo "$ENV_FOLDER" | sed -e 's/[\/&]/\\&/g') export DEBIAN_FRONTEND=noninteractive source ./architecture/scripts/provision/0-upgrade.sh source ./architec...
true
a654841fdc50d5720e01a72abdb6b11a6379b009
Shell
adas-eye/test
/tinatest/testcase/spec/storage/seq/spec-seq.sh
UTF-8
2,336
3.625
4
[]
no_license
#!/bin/sh get_total() { df -k ${dir} 2>/dev/null | tail -n 1 | awk '{print $2}' } get_free() { df -k ${dir} 2>/dev/null | tail -n 1 | awk '{print $4}' } get_ddr() { awk '/^MemTotal/{print $2}' /proc/meminfo } get_flash() { df -k ${dir} 2>/dev/null | tail -n 1 | awk '{print $1}' } get_fs() { df ...
true
7b488fba6948b25712a0582de051a16d45f5ff3a
Shell
DVS-Lab/duke-archive
/SocReward.03/submit_X.sh
UTF-8
2,036
2.890625
3
[ "MIT" ]
permissive
#!/bin/sh for go in 1 2; do for SMOOTH in 0; do for SUBJ in "34712 0"; do set -- $SUBJ SUBJ=$1 REST=$2 for RUN in 1 2 3; do qsub -v EXPERIMENT=SocReward.03 prestats_1run_TEST.sh ${SUBJ} ${RUN} ${SMOOTH} ${go} "Passive" done for RUN in 1 2; do qsub -v EXPERIMENT=SocReward.03 prestats_1run...
true
bbed1192a1b43eaebf6d5242da49231fecd1ce4d
Shell
btsherid/scripts
/uninstall-rclone.sh
UTF-8
302
2.875
3
[]
no_license
#/bin/bash ## check if running as root if [[ "$EUID" -ne 0 ]]; then echo "Error: Must be run as root." >&2 exit 1 fi rm -rf /root/.config/rclone/ rm -rf /root/.cache/rclone rm -rf /usr/bin/rclone rm -rf /usr/local/share/man/man1/rclone.1 find /tmp *rclone* 2>/dev/null | grep rclone | xargs rm -rf
true
3447497a96d01e51c680157351c2dce86242461a
Shell
ets-berkeley-edu/bedework
/caldavQueries/getSpecifiedHrefs.sh
UTF-8
564
2.859375
3
[]
no_license
#!/bin/bash SERVER_URL="http://test.media.berkeley.edu:8080/ucaldav/user/vbede/calendar/" USER_PASS="vbede:bedework" XML='<?xml version="1.0" encoding="utf-8" ?> <C:calendar-multiget xmlns:C="urn:ietf:params:xml:ns:caldav" xmlns:D="DAV:"> <D:prop> <D:getetag/> <C:calendar-data/> <C:schedul...
true
3e93a23c8adbf6ba3fb2e3292aaa6999a9c87c59
Shell
JeremyRolleston/active8me
/script.sh
UTF-8
649
2.859375
3
[]
no_license
#!/bin/bash DIR1="/var/www/html/active8me/app/tmp/cache/models/" DIR2="/var/www/html/active8me/app/tmp/cache/persistent/" RELOAD=false PERM1="/var/www/html/active8me/app/webroot/img/users" PERM2="/var/www/html/active8me/app/tmp/cache" PERM3="/var/www/html/active8me/app/tmp/logs" #set permissions as a double check chm...
true
292cedc3ab1bfd2953b6ba47fd42b10855963aa8
Shell
Haris07/impartial_text_cls
/demo/snips2017/do_experiments.sh
UTF-8
7,565
2.96875
3
[ "Apache-2.0", "Python-2.0" ]
permissive
#!/bin/bash set -e err(){ echo "E: $*" >>/dev/stderr } if [ "$(ls -l . | grep demo.py | wc -l)" -eq 0 ]; then if [ "$(ls -l ./demo/snips2017 | grep demo.py | wc -l)" -eq 0 ]; then err "$PWD is not a directory with SNIPS-2017 demo!" exit 1 fi else cd ../.. fi echo "====================" echo "Usual...
true
cb5b280b68947ad859f2dc2de662512e734178fb
Shell
ModelDBRepository/229279
/AST-DCN-ProjectCode/GenesisModel/Cluster Scripts/cluster-samira/param-search-neuro-master/maintenance/qcountcpus
UTF-8
775
3.765625
4
[]
no_license
#! /bin/bash # Script to asses overall load of the cluster. # Cengiz Gunay <cengique@users.sf.net> 2006/06/12 function queue_stats () { qstat_f=$1 queue_name=$2 queue_lines=`echo "$qstat_f" | grep "$queue_name"` num_nodes=$[`echo "$queue_lines" | wc -l`] cpus=`echo "$queue_lines" | awk '{print $3}' | awk -...
true
dbb161a10dc68c2073a15b7ac721264dc646dbbe
Shell
l4r-s/borg
/entrypoint.sh
UTF-8
783
3.25
3
[]
no_license
#!/bin/bash echo "generating authorized_keys file" rm -rf /home/bkp/.ssh/authorized_keys mkdir -p /home/bkp/.ssh/ touch /home/bkp/.ssh/authorized_keys if [ -z "$KEYS" ] then echo "Please define the \$KEYS environment variable" echo "Example:" echo "ecdsa-sha2-nistp256 AAB45[...]DEQ3=" echo "ssh-rsa EOD...
true