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
490547672f6ae6cf40c06bc4009c598720eb978e
Shell
adutta/romshare
/scripts/validate_zip.sh
UTF-8
580
3.203125
3
[]
no_license
#!/bin/bash if [ -z "$1" ] then echo please provide a filename exit 1 fi UPDATE_BINARY=$(unzip -l $1 | grep META-INF/com/google/android/update-binary) UPDATE_SCRIPT=$(unzip -l $1 | grep META-INF/com/google/android/update-script) if [ -z "$UPDATE_BINARY" -a -z "$UPDATE_SCRIPT" ] then echo no update-binary or update-...
true
9d63b5d370be5daffd88570bd3d92f91906ad4d4
Shell
hdnes/MavicPro
/MavicPro_Scripts/start_dji_system.sh
UTF-8
9,141
3.09375
3
[]
no_license
#!/system/bin/sh # Check partitions, try format it and reboot when failed /system/bin/part_check.sh #set emmc irq cpu affinity, dw_mci echo 02 > /proc/irq/66/smp_affinity echo 02 > /proc/irq/67/smp_affinity #set ap_dma irq cpu affinity, ap_dma echo 08 > /proc/irq/34/smp_affinity /system/bin/wl_link_judge.sh wl_link_...
true
65b556b26201498bae34ced4de9fc9628dd18342
Shell
rgburnett/informixutils
/ipc
UTF-8
2,685
3.4375
3
[]
no_license
#!/bin/sh : '{{ TOOLDOC 1 /* * Name : ipc - Informix print columns - print the columns of a table * * Usage : ipc database [ -c | -i | -s ] table * * Arguements : database - the name of the database containing the table * * -c - create table statement * -s - a select statement * -i - an inser...
true
fa57a6cb2509685fa694cdc29d849aa153b41ac0
Shell
ptomblin/navaid_offsite
/load_scripts/check_diffs
UTF-8
697
3.015625
3
[]
no_license
#!/bin/sh for i in areaids waypoint comm_freqs runways fix ; do mv after.$i before.$i done dbName=$1 if [ x$1 = x ] ; then dbName=navaid fi psql -U navaid $dbName << EOF > after.areaids select * from areaids order by areaid; EOF psql -U navaid $dbName <<EOF > after.waypoint select * from waypoint order by id...
true
f70e7f118fdeb7ffc0596e05a5786e2cb1b67105
Shell
cvolo4yzhka/ALPS_q0_zte_a476
/device/zte/zte_blade_a476/make_rel_key.sh
UTF-8
564
2.6875
3
[]
no_license
#!/bin/bash # make directory for release key mkdir security # jump to root of source cd ../../.. # add cert info subject='/C=RU/ST=Tatarstan/L=Almetevsk/O=cvolo4yzhka,Inc./OU=cvolo4yzhka Mobility/CN=cvolo4yzhka/emailAddress=cvolo4yzhka@gmail.com' # generate all cert and keys, # on password promt, press enter (empty/no...
true
e27a61988d09b28d559a6c5e1c4f16d4a6f6cc0e
Shell
willheslam/pdsl
/scripts/release
UTF-8
406
3.171875
3
[ "MIT" ]
permissive
#!/bin/bash set -e source ./scripts/version-bump.sh source ./scripts/git-check.sh source ./scripts/publishing.sh semver_type=$1 dist_tag=${2:-next} exit_unless_valid_semver "$semver_type" exit_unless_valid_branch "master" exit_unless_clean_git_folder yarn test yarn docs && git add -A && git commit -m 'Update docs' v...
true
100504a792667b96159ee9a3b20b582ff1965b4d
Shell
ketan/dot_rc
/zsh/zsh.d/lib/aliases.zsh
UTF-8
618
3.234375
3
[]
no_license
#!/bin/zsh if [ -z "$PS1" ]; then return fi # some aliases alias ls='ls -hG' alias vi='vim' alias less='less -R' alias -g ..='..' alias -g ...='../..' alias -g ....='../../..' alias -g .....='../../../..' alias mysqlstart='sudo mysqld_safe &' alias mysqlstop='mysqladmin -u root -p shutdown' alias reload="source ~/...
true
540fe0a0d1154e139bcf82e4e1c332ac6737ed6f
Shell
openstack/magnum
/magnum/drivers/common/templates/swarm/fragments/network-config-service.sh
UTF-8
1,967
3.59375
4
[ "Apache-2.0" ]
permissive
#!/bin/sh . /etc/sysconfig/heat-params echo "Configuring ${NETWORK_DRIVER} network ..." if [ "$NETWORK_DRIVER" != "flannel" ]; then exit 0 fi FLANNELD_CONFIG=/etc/sysconfig/flanneld FLANNEL_CONFIG_BIN=/usr/local/bin/flannel-config FLANNEL_CONFIG_SERVICE=/etc/systemd/system/flannel-config.service FLANNEL_JSON=/e...
true
3f944c6cfce7c242366d5b69738f98138e5417a0
Shell
goncalomb/acestream-rpi
/setup-lirc.sh
UTF-8
947
3.265625
3
[]
no_license
#!/bin/bash set -e if command -v lircd >/dev/null; then echo "lirc already installed, run 'sudo apt-get purge -y lirc' to remove" exit 1 fi # install lirc sudo apt-get update sudo apt-get install -y lirc # enable lirc-rpi module sudo sed -i 's/^#dtoverlay=/dtoverlay=/g' /boot/config.txt # configure lirc su...
true
e9981d55596bf2d5930ce2896771f54237ccaeeb
Shell
delfas/bash-home
/.profile
UTF-8
1,515
3.25
3
[]
no_license
#!/bin/bash # This file runs once at login. # Add all local binary paths to the system path. export PATH="$PATH:$HOME/.local/bin:/usr/local/go/bin" # set PATH so it includes user's private bin if it exists if [ -d "$HOME/bin" ] ; then PATH="$HOME/bin:$PATH" fi # ~/.profile: executed by the command interpreter fo...
true
631d0141b1bdf55451f68fb18294fd4a1ffc1881
Shell
redmatter/docker-bamboo-backup
/s3sync.sh
UTF-8
655
3.125
3
[ "MIT" ]
permissive
#!/bin/bash : ${AWS_ACCESS_KEY:?"AWS Access key not specified (AWS_ACCESS_KEY)"} : ${AWS_SECRET_KEY:?"AWS Secret key not specified (AWS_SECRET_KEY)"} : ${AWS_S3_BUCKET:?"AWS Bucket name not specified (AWS_S3_BUCKET)"} : ${AWS_S3_BUCKET_PATH:=} : ${DEBUG:=0} [ "$DEBUG" = 1 ] && set -x; sed -i "s~{{AWS_ACCESS_KEY}}~${...
true
bce870c4c85e675e6f735a11a00f2fa5479d1ebe
Shell
seppinho/scripts
/imputation/bin/vcf2bgen.sh
UTF-8
139
2.609375
3
[]
no_license
#!/bin/bash for f in *vcf.gz do echo "Processing $f" base="$(basename $f .vcf.gz)" plink2 --vcf $f --export bgen-1.3 --out $base & done
true
ca769e68af03d8c11217112d91b87a92611babcc
Shell
mencaribug/oroshi
/scripts/install/web/ruby
UTF-8
741
2.640625
3
[]
no_license
#!/usr/bin/env bash # shellcheck disable=SC1091 set -ex sudo apt-get install curl \ libcurl4 \ libcurl4-openssl-dev # Install rvm # This should automatically install all needed Ubuntu dependencies gpg --import "/home/$USER/.oroshi/private/config/pgp/mpapis.asc" curl -L https:...
true
5720175b516c284c81c1fac1e65eda4b059751b4
Shell
haiwen/seafile-rpi
/build-batch.sh
UTF-8
3,548
3.96875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # Set the version which needs to be build VERSION=${1:-'9.0.9'} echo "Get the current build script" wget -O build.sh https://raw.githubusercontent.com/haiwen/seafile-rpi/master/build.sh chmod u+x build.sh # Set the arch name for the armhf distros sysArch=$(arch) [ "$sysArch" == "aarch64" ] && archhfName=...
true
e228a449626a8d29e8bc44227f7f0d9ce7940e74
Shell
prathapreddy123/GoogleCloud
/helpers/pr-validations.sh
UTF-8
1,257
3.09375
3
[]
no_license
set -ex : ' When raised PR 17 from mkv/feature branch to merge on to master of prathapreddy123/GoogleCloud repo below are values: PROJECT_ID=prathap-poc COMMIT_SHA=73434e300319db035d61783f6a2367a015992fee SHORT_SHA=73434e3 REPO_NAME=GoogleCloud BRANCH_NAME=feature HEAD_BRANCH=feature BASE_BRANCH=master HEAD_REPO_URL=...
true
407054497ab4d9446147c3bfe55db35d6a213b2c
Shell
stanojevic/BadParser
/src/scripts/embeddings_preprocessing/run_train_w2v.sh
UTF-8
538
2.515625
3
[ "Apache-2.0" ]
permissive
#!/bin/sh vsizes=(32 64 128 256 512) wsizes=(8 16) useCBOWs=(0 1) for vsize in "${vsizes[@]}"; do for wsize in "${wsizes[@]}"; do for useCBOW in "${useCBOWs[@]}"; do X=vsize_${vsize}_wsize_${wsize}_cbow_${useCBOW} echo "Running: $X"; sbatch -c 16 -J w2v$X -e log.${X}.err -o log.${X}.out --wrap="./word2...
true
3d61a9d3da98fc3f7b49502f60cb21802099560a
Shell
stoneneedle/compcfg
/jimbocfg.sh
UTF-8
1,108
3.21875
3
[]
no_license
#/bin/bash # jimbocfg.sh :: config for a new OS # Includes commonly used apps, and assumes Ubuntu 18.04 system. # Will configure a few date/time features and style features for Xubuntu # Package string for basic installations pkg_str="cmatrix tmux vim tree htop unzip monit git curl wget ansible python" # TBA: sshd, m...
true
88971fde3ecbd8dd6d71dd7843f0ba6a706876b4
Shell
TheBITLINK/dotfiles
/.bashrc
UTF-8
3,386
3.46875
3
[]
no_license
# # ~/.bashrc # # If not running interactively, don't do anything [[ $- != *i* ]] && return alias ls='ls --color=auto' # ye olde prompt export PS1=" \[\033[38;5;250m\]$(if [[ -z $i ]] ; then i=$(tput cols) ; while (( i-- > 8 )) ; do echo -n '—' ; done ; echo -n " " ; unset i ; fi)\[\033[38;5;15m\]\A\n[\[$(tput sgr0)...
true
34d84cbd806cae4210807a3c4d48821591a9ebf2
Shell
KokoTa/ts-axios
/release.sh
UTF-8
571
3.46875
3
[ "MIT" ]
permissive
set -e echo "Enter release version: " read VERSION # -p 输出 "..." 中的文字 # -n 1 表示只有第一个字符有效 # -r 禁止反斜线 read -p "Release $VERSION - are you sure(y/n)" -n 1 -r echo # 跳到新行 if [[ $REPLY =~ ^[Yy]$ ]] then echo "Releasing $VERSION ..." # commit # git add . # git commit -m "[build] $VERSION" # npm version $VERSION --...
true
623cd946c5f415a3515bf8a34a8351c81270e98d
Shell
RuthPetrie/uor
/TRACK-1.4.3/converters/conv_pp_nc_annual.sh
UTF-8
1,273
2.609375
3
[]
no_license
#!/bin/ksh infileloc='/export/quince/data-05/wx019276/um_expts/iceonly/output/' outfileloc='/export/quince/data-05/wx019276/um_expts/iceonly/trackdata/' cd /export/quince/data-05/wx019276/um_expts/iceonly/output/ #infile=$infileloc'xhuiea.pck[0-1]*.pp '$infileloc'xhuiea.pck[2-3]*.pp '$infileloc'xhuiea.pck[4-5]*.pp ...
true
4c6aae356cdb4b38235a3fe729a3bc15a9717f38
Shell
IbrahimMohammed47/todoist-replica
/createJars.sh
UTF-8
209
2.578125
3
[]
no_license
#!/bin/bash dirs=(server controller todoist-tasks todoist-user todoist-chat todoist-reports) for d in "${dirs[@]}" do cd $d mvn install -DskipTests cd .. # echo "$d is a registered user" done
true
42b4108d8314a879ba88e5f320da48a8dec1f04a
Shell
drexljo/folio-projects
/folio-buildhelpers/systemd_dep_active.sh
UTF-8
1,071
3.3125
3
[]
no_license
#!/bin/bash # Execute in the parent directory where all module directories reside # This script is quick, dirty and just useful to rapidly create a bunch of files while read -u 6 LINE do SYSTEMD="folio-buildhelpers/$(echo "$LINE" | cut -d "/" -f 1 -s)" echo -e "After=postgres\nWants=postgres\nAfter=network-...
true
40f9a6220d1512d3bc241a896283610560921996
Shell
digraj/Python
/364/Prelab01/.svn/text-base/sum.bash.svn-base
UTF-8
202
3.015625
3
[]
no_license
#! /bin/bash #$Author$ #$Date$ #$Revision$ #$HeadURL$ #$id$ Num_Of_Param=$# addition=0 for (( I = $Num_Of_Param; I > 0; I-- )) do addition=$(($addition+$1)) shift done echo "$addition" exit 0
true
dc35458b7874cd98685618807949dbd43204670a
Shell
MengZhang/dev_instance
/mnt/galaxyTools/apsim_ria/7.5/apsim_plus_batch.sh
UTF-8
3,005
3.828125
4
[]
no_license
#!/bin/bash JsonInput=$1 CultivarInput=$2 AcmoOutput=$3 apsimInput=$4 apsimOutput=$5 echo JsonInput: $JsonInput echo CultivarInput: $CultivarInput echo AcmoOutput: $AcmoOutput echo apsimInput: $apsimInput echo apsimOutput: $apsimOutput echo Running in $PWD # Setup QuadUI #INSTALL_DIR="$( cd "$( dirname "${BASH_SOURC...
true
8d650a676906cb6623f824dbf7655ccb93f1b70f
Shell
DSouzaM/mesh-testsuite
/time-analysis/timelarson.sh
UTF-8
268
3.015625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash malloclib=$1 tmpfile=$2 echo $malloclib if [ $malloclib == "malloc" ] then echo "reached malloc" { time -p ./larson 10 7 8 10000 10000 1 16 ; } 2> $tmpfile else echo "reached $malloclib" { time -p ./larson-ldpreload.sh $malloclib ; } 2> $tmpfile fi
true
bc25d0b794584c996fbb520f251a05ad19fca9f2
Shell
Jfprado11/holberton-system_engineering-devops
/0x04-loops_conditions_and_parsing/10-fizzbuzz
UTF-8
297
3.3125
3
[]
no_license
#!/usr/bin/env bash # fizz buzz in bash a=1 while [ $a -le 100 ] do if [ $((a % 5)) -eq 0 ] && [ $((a % 3)) -eq 0 ] then echo "FizzBuzz" elif [ $((a % 5)) -eq 0 ] then echo "Buzz" elif [ $((a % 3)) -eq 0 ] then echo "Fizz" else echo $a fi a=$((a + 1)) done
true
a44a2361e75c64167e33a8b253a863d98701b0ac
Shell
ParrotSec/parrot-core
/localbin/apt
UTF-8
740
3.296875
3
[]
no_license
#!/bin/bash case $1 in upgrade) echo -e " APT on Parrot behaves differently than Debian. apt upgrade is equivalent to apt full-upgrade in Debian, and performs a complete system update. Use apt safe-upgrade to perform a partial upgrade. " /usr/bin/apt full-upgrade ;; safe-upgrade) /usr/bin/apt upgrade ;;...
true
560ef822f5ba1a25c19337fd9bd18b03f15ba2fc
Shell
guessi/docker-compose-grafana-influxdb
/provision.sh
UTF-8
555
2.75
3
[ "MIT", "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -o errexit set -o nounset source influx2.env echo "==> Prepare Configurations" sed -e 's/%%INFLUXDB_INIT_ORG%%/'${DOCKER_INFLUXDB_INIT_ORG}'/g' \ -e 's/%%INFLUXDB_INIT_BUCKET%%/'${DOCKER_INFLUXDB_INIT_BUCKET}'/g' \ -e 's/%%INFLUXDB_INIT_ADMIN_TOKEN%%/'${DOCKER_INFLUXDB_INIT_ADMIN_TOKE...
true
f9a08835ce349ca7fefee1426470dadf268515d1
Shell
Gor4i4ka/linux-dev-2020
/13_PatchInstall/install.sh
UTF-8
559
3.578125
4
[]
no_license
echo "Выберите установить в произвольный каталог(0) или по умолчанию(1)?" read -r num echo $num if [[ "$num" == "1" ]] then cd build cmake -S ../ -B ./ -DLOCALE_PATH='/usr/share/locale' make sudo make install sudo make allclean elif [[ "$num" == "0" ]] then echo "Выберите каталог Для установки" read -r path_to_...
true
7dab0cfc845f81266d68442ec9f1f794ec09f645
Shell
rudijs/netdata
/plugins.d/charts.d.plugin
UTF-8
8,701
4.0625
4
[]
no_license
#!/bin/bash # ----------------------------------------------------------------------------- # insternal defaults pause_method="sleep" # use either "suspend" or "sleep" # DO NOT USE SUSPEND - LINUX WILL SUSPEND NETDATA TOO # THE WHOLE PROCESS GROUP - NOT JUST THE SHELL plugin...
true
398c4ada3651a2aab9bb3c8a38f9db6b66f5a3ca
Shell
hying-caritas/caritas_scripts
/bin/kbuild_config
UTF-8
1,136
3.34375
3
[]
no_license
#!/usr/bin/env bash #TAGS: kernel set -e source caritas_functions.sh MAKE="make -j$nr_cpu" [ $# -ne 1 ] && die "Please specify target!" target=$1 xcd() { echo ---- "$1" ----- if [ ! -d "$1" ] ; then mkdir "$1" cd "$1" "$2" "$MAKE" -C ../"$target" O="$(pwd)" defconfig else cd "$1" fi } oldconfig() { y...
true
5b2324cccb816bdc96dc6e1ec16c6992373f1c8f
Shell
openlibraryenvironment/mod-rs
/okapi-scripts/applyAllPermissions.sh
UTF-8
2,278
3.328125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash -e ADMIN_ID=${ADMIN_ID:-'diku_admin'} TENANT=${TENANT:-'diku'} # setOkapiUrl sets the variable OKAPI_URL . ./setOkapiUrl echo OKAPI Url: $OKAPI_URL # Get hold of an auth token AUTH_TOKEN=`./okapi-login` echo Auth Token: $AUTH_TOKEN # Check vars not blank [[ ! -z "$OKAPI_URL" ]] || ( echo "OKAPI_URL is a...
true
9df5005754ed92a5983438f9a3f57b9278283118
Shell
onikongo/kubscripts
/dcknow
UTF-8
3,217
3.859375
4
[ "Apache-2.0" ]
permissive
#!/bin/bash if [ -z "$3" ] then echo "${0} [SITEDIR] [BOXDIR] [web:job,live,yellow] [folder1,folder2,folder3,...] (#,..,... define to skip dckbuild for sub images)" echo "Example: " echo " dcknow playsite playbox job modules/typ,themes/contrib,sites 0,3" exit fi PATHSET=$(echo $PWD | tr "/" "\n") for X in ...
true
b40f4a9084922fe5d2c4ec4ae80d4d18c68545d2
Shell
mozilla/aws-lambda-telemetry
/ansible/files/deploy.sh
UTF-8
1,444
3.3125
3
[]
no_license
#!/bin/sh # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. if [ $# -eq 0 ] then echo "No arguments supplied" exit 1 fi cd .. FILES="telemetry_index_ping.js te...
true
2a0f6669fd60979502adfc03059540e9cc2b1a9d
Shell
liodopolus/scriptcol-current
/archiv/archiv-alpha/sed-cut-end.sc
UTF-8
192
3.109375
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
#!/bin/sh # written by Jeffrey Scherling Sun Sep 18 18:04:07 CEST 2011 # cut the end with sed CWD=$(pwd) # String STR="$1" # Filename FILE=$2 cat $FILE | sed s/$STR*.*/$STR/ > $FILE.without-end # -
true
3115b89f161ca144303782cb4f017087ead2b455
Shell
shiva0808/ShellScripts
/StdinStdout/basicProgram.sh
UTF-8
1,656
3.46875
3
[]
no_license
FILE="/tmp/data" head -n1 /etc/passwd > ${FILE} read line < ${FILE} echo "Line Contains ${line}" head -n3 /etc/passwd > ${FILE} echo "Contents of file ${FILE}" cat "${FILE}" echo "${random}${random}" >> ${FILE} echo "${random}${random}" >> ${FILE} echo echo "Contents of file ${FILE} :" cat "${FILE}" ################...
true
ea819f17f95b203ff600bff36fce1b2ba3005888
Shell
RedPandaDev/HPCCoursework
/normal.sh
UTF-8
871
3.734375
4
[]
no_license
#!/usr/bin/env bash # Remove all compiled programs before starting rm blurOMP.out # How many threads do you want to test from and too? tmin=2 tmax=10 # How many chunks do you want to test from and too? cmin=2 cmax=10 # How many results do you want? runs=10 # Static, dynamic, guided, auto? # The number is the code ...
true
11edcfeef5fb4a718c6e167573fe407508de5524
Shell
mocha-parallel/mocha-parallel-tests
/test/reporter-custom-jenkins/index.sh
UTF-8
658
3.515625
4
[ "MIT" ]
permissive
#!/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" RESULT="$DIR/result.xml" OUTPUT=$(JUNIT_REPORT_PATH=$RESULT dist/bin/cli.js -R mocha-jenkins-reporter test/reporter-custom-jenkins/suite.js 2>&1) STATUS=$? if [ $STATUS -eq 0 ]; then RESULT_XML=$(cat $RESULT) if [[ $RESULT_XML == *"<testsuit...
true
3e8c9807dc6bd79d31ca9089dc93046cee161b42
Shell
JavierGelatti/TrustingTrust
/0/dame_feedback.sh
UTF-8
444
3.140625
3
[]
no_license
#!/bin/bash set -e clear ./compiler programa.c -o programa ./programa > salida printf "\n---- DIFF ----\n" colordiff -u programa.c salida | diff-highlight printf "\n--- SALIDA ---\n" cat salida printf "\n" if diff -q programa.c salida > /dev/null then printf "\u001b[32mEl programa y la salida son iguales\u001...
true
9387bdc56c95eb5a47d05fdfba8935f480a36aaf
Shell
teja624/home
/.zsh/modules/aws/lib/sh/api/codepipeline/stage_transition_disable.sh
UTF-8
345
2.953125
3
[ "Apache-2.0" ]
permissive
aws_codepipeline_stage_transition_disable() { local pipeline_name="$1" local stage_name="$2" local transition_type="$3" local reason="$4" shift 4 cond_log_and_run aws codepipeline disable-stage-transition --pipeline-name $pipeline_name --stage-name $stage_name --transition-type $transition_type...
true
897034b1d7d834c1d733caa3efcabe3a44543c1e
Shell
cnagel85/vagrant-configs
/dev/setup/install-misc.sh
UTF-8
718
3.1875
3
[]
no_license
#!/bin/bash # Just a basic setup for my own dev environment, to quickly get my machine up and running echo "Updating vim plugins..." # Create vim directories mkdir -p .vim/plugged mkdir -p .vim/autoload # Download VimPlug curl --silent -fLo .vim/autoload/plug.vim https://raw.githubusercontent.com/junegunn/vim-plug/mas...
true
eb1baf37d479e3bf8c321076e0289e229e21bc73
Shell
jrtest5/php-buildpack
/support/ext/ds
UTF-8
343
2.921875
3
[ "MIT" ]
permissive
#!/usr/bin/env bash set -e php_version=${1:=7.4} ds_version=1.2.9 curl -L "https://pecl.php.net/get/ds-${ds_version}.tgz" \ | tar xzv cd ds-${ds_version} /app/vendor/php/bin/phpize ./configure --with-php-config=/app/vendor/php/bin/php-config make cp modules/ds.so "$EXT_DIR/ds.so" echo "extension=ds.so" > "$PRE...
true
20ba9ae7baeba1f570cf160f00f8259623dfedd9
Shell
jasoyode/CTRNN_NM
/scripts/single_seed_analysis/create_config.sh
UTF-8
1,043
2.90625
3
[]
no_license
#!/bin/bash #60, 68, 99 XXX_SEED_XXX="99" if [ "$1" != "" ]; then XXX_SEED_XXX="$1" fi echo "XXX_SEED_XXX: $XXX_SEED_XXX" mod_std="mod1-ON" #mod_std="standard" MOD_STD="MOD" #MOD_STD="STD" TYPE="RPG" SIZE="3" ############## XXX_NAME_XXX="${TYPE}${SIZE}_${MOD_STD}_$XXX_SEED_XXX" XXX_CTRNN_PATH_XXX="/scratch/ja...
true
01a8b13b1c3041c909eee2a48c78333f24044ce6
Shell
MaxPoon/nus-datathon-2018
/preprocessing/pdf2jpg.sh
UTF-8
122
2.671875
3
[]
no_license
for i in {311..351}; do mkdir -p JPEG/"$i"; for j in `ls $i/*.pdf`; do convert -density 500 "$j" JPEG/"$j".jpg; done; done
true
e621bfdb4307bf4c0cd690a60173a983f777a250
Shell
zeraimundo/lista_2
/1.sh
UTF-8
2,710
3.546875
4
[]
no_license
#!/bin/bash echo echo "Redirecionadores" echo echo "Redicionadores de entrada e saída são meios de definir a entrada e saída padrão para um comando. Eles possibilitam a habilidade de tratar as entradas e saídas de dados com grande facilidade." echo echo echo "Tipos de Redirecionadores" echo echo echo "> ou 1> - redire...
true
0559e92b612cbcd5e64aab152263a34c2a531482
Shell
rickaas/webdsl.debug
/example-projects/performance01-di/timing-results/url-fetch-script.sh
UTF-8
1,758
3.671875
4
[]
no_license
#!/bin/bash # the script location #echo $0 # http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in prefix="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" #echo $prefix GROUP=$1 # logs are categorized in group LOGNAME=$2 #LOGNAME=run_1313 REPEAT=$3 #REPEAT=5 # each unit w...
true
b781c21e843cc63b6794127829bc0e70dbf7d1ec
Shell
github/VFSForGit
/Scripts/Mac/BuildGVFSForMac.sh
UTF-8
5,217
3.703125
4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash . "$(dirname ${BASH_SOURCE[0]})/InitializeEnvironment.sh" CONFIGURATION=$1 if [ -z $CONFIGURATION ]; then CONFIGURATION=Debug fi runVersionUpdater="yes" VERSION=$2 if [ -z $VERSION ]; then VERSION="0.2.173.2" # don't update version number for developer builds runVersionUpdater="no" fi if [ ! ...
true
d99867ce296e8647df6090c924d267eda2b2ba43
Shell
opsh-cookbooks/psql
/recipes/default.sh
UTF-8
403
2.96875
3
[]
no_license
case "${node[os]} ${node[version]}" in ubuntu*14.04*) apt-install postgresql-9.3 ;; ubuntu*) code="$(lsb_release -c | awk '{print $2}')" echo "deb http://apt.postgresql.org/pub/repos/apt/ ${code}-pgdg main" > /etc/apt/sources.list.d/psql.list wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.a...
true
ebc10b7239357ec0536e258f8a460b3a7eff61a3
Shell
lynnlangit/sample-data
/2_DB_scripts/Redshift_DW/0_redshift.sh
UTF-8
1,087
2.671875
3
[ "Apache-2.0" ]
permissive
# 1. Manually create a Redshift instance # Setup Redshift with all defaults and with public access, create a database called 'demodb' # Add inbound rule for public access to port 5439 with your pubic IP address to VPC security group (default) # Download 14-day trial Navicat as client # Donnect to instance endpoint, rat...
true
1ea5bbadf3c5c4b48e118ef8d30bd699232756c8
Shell
HiroNakamura/aprendiendo-cobol
/temario/chapter1/compila.sh
UTF-8
371
3.515625
4
[]
no_license
#!/bin/bash # valida que se envie un parametro if [ -z $1 ] ; then echo "[-] debes enviar el nombre del archivo"; echo "./compile [nombre]"; exit 1; fi # compilamos el archivo cobc -x -free $1.cbl -o $1.exe # valida que exista el archivo if [ ! -f $1 ] ; then echo "[-]"; exit 1; fi # damos permi...
true
a59aba9732b8eb22e4271be05764b1dae1df6d42
Shell
ultreme/m1ch3l
/irc/public/vadim.cmd
UTF-8
156
2.640625
3
[]
no_license
#!/usr/bin/env bash po=$1 se=$2 ch=$3 us=$4 IFS=" " for line in $(banner "BON ANNIV") do echo "$se 1 PRIVMSG $ch :$line" | nc -q 1 localhost $po done
true
6b25c945ffbcf3a566c534e427e4eafda24efe9e
Shell
drewwalters96/airshipctl
/tools/airship-in-a-pod/artifact-setup/assets/entrypoint.sh
UTF-8
1,532
3.390625
3
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
#!/bin/bash # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distrib...
true
38e70d66d6e30c73606964206c06aeb896f27eaa
Shell
aaronzirbes/burrow-cli
/burrow
UTF-8
312
3.0625
3
[]
no_license
#!/bin/bash if [ ! -f ~/.burrow-cli.config ]; then echo "Creating default config file ~/.burrow-cli.config" echo "# Burrow host aliases # default alias to use default: local # alias definitions local: http://localhost:8000" > ~/.burrow-cli.config fi java -jar ~/.burrow-cli/burrow-cli-all.jar $1
true
d215aaabcc9c53e96d59976469418ab8aca9936b
Shell
aming-note/note
/ShellScript/log_to_sql.sh
UTF-8
1,394
3.4375
3
[]
no_license
#!/bin/bash log_file="/usr/local/nginx/logs/bet.log" err_line=0 function get_new_log(){ kg=0 file=`cat $log_file` cut=`cat /home/linshi 2>/dev/null` for i in $file;do if [ -f /home/linshi ];then if [ "$cut" = "`tail -n 1 $log_file`" ];then break fi if [ $kg = "1" ];then send_mysql $i echo $...
true
1c12144340eab444abc0502b9c9b436e8ab334c4
Shell
gdelanoy/shells
/scripts/add-blacklist-to-hosts.sh
UTF-8
1,882
2.90625
3
[]
no_license
#!/bin/bash grep -q Noirlistez /etc/hosts if [ $? -eq 0 ] then sudo -u guillaume DISPLAY=:0 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus notify-send -t 90000 -i netsurf "Filtrage Web déjà activé 🤪" "\nIl semble que le filtrage par adresses soit déjà en cours sur ton système ..." exit 1 else e...
true
b10350c96d24d052c1098414408f96659095d6c6
Shell
GunterMueller/ST_STX_Fork
/build/stx/rules/hg-clone.sh
UTF-8
1,565
3.9375
4
[ "MIT" ]
permissive
#!/bin/bash # # $Header: /cvs/stx/stx/rules/hg-clone.sh,v 1.2 2014-02-28 14:14:05 vrany Exp $ # # Simple script to clone Mercurial repository. Used from stub entries in CVS # to automatically fetch code from there. # # Usage: hg-clone.sh <repository> <packagedir> # # function usage() { echo <<USAGE Usage: hg-clon...
true
a9e7a944c545146dd8d52e1751f83f132851cbe7
Shell
najjaray/Java-Twitter-light
/setup.sh
UTF-8
1,437
2.796875
3
[]
no_license
# /bin/bash clear echo "initalizing CS682 project 1.5" echo "Enter remove server login id:" RemoteLogin='ayalnajjar' #read RemoteLogin # getting data server 1 informaions echo "Enter Address for data server" read DatSrvAddr1 echo "Enter Port for data server" read DatSrvAddrPort2 # getting data server 2 informaions ec...
true
600b1d04a412fac420995e60067ac9cddc5027be
Shell
marcopeg/humble-cli
/bin/inc/is-absolute-path.sh
UTF-8
109
3.40625
3
[]
no_license
isAbsolutePath() { if [ "${1:0:1}" = "/" ]; then echo true else echo false fi }
true
3f2bd06581a5365d5a9d48ef71158f5c067b6c85
Shell
marhatha/openshift4x-poc-sriov
/sriov.sh
UTF-8
7,774
2.890625
3
[]
no_license
echo "clone this github link https://github.com/openshift/sriov-network-operator" sleep 2 echo "After cloning is done go to sriov-network-operator directory and run this sriov.sh script" sleep 5 echo "make sure you copy your pull secret file in sriov-network-operator directory" sleep 5 #############################...
true
b98f39328994e52acb214ef39a5afdbded3aa23b
Shell
google/timesketch
/end_to_end_tests/tools/run_end_to_end_tests.sh
UTF-8
758
3.515625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # # Script to run end-to-end tests. # Fail on any error set -e # Defaults DEFAULT_OPENSEARCH_VERSION=1.2.2 # Set OpenSearch version to run [ -z "$OPENSEARCH_VERSION" ] && export OPENSEARCH_VERSION=$DEFAULT_OPENSEARCH_VERSION # Container ID for the web server export CONTAINER_ID="$(sudo -E docker contain...
true
3176c8c750bf8f03e03e33a5db6d466ea1f03968
Shell
Tencent/bk-base
/scripts/install/install_py_venv_pkgs.sh
UTF-8
4,747
3.890625
4
[ "MIT" ]
permissive
#!/usr/bin/env bash set -eo pipefail # 通用脚本框架变量 PROGRAM=$(basename "$0") VERSION=1.0 EXITCODE=0 # 全局默认变量 #PYTHON_PATH=/opt/py36/bin/python PIP_OPTIONS=(--no-cache-dir) ENCRYPT= # error exit handler err_trap_handler () { MYSELF="$0" LASTLINE="$1" LASTERR="$2" echo "${MYSELF}: line ${LASTLINE} with ex...
true
253483c93e2f3f377f548768da04a8b76525f6d6
Shell
MDSLab/s4t-iotronic-standalone
/utils/net-scripts/add-network
UTF-8
193
3.21875
3
[ "Apache-2.0" ]
permissive
#! /bin/sh if [ "$#" -ne 2 ]; then echo "add-network VLAN COUNT" exit 1 fi VLAN=$1 COUNT=$(($2*2)) PORT=`expr $COUNT + 10000` IFACE="gre-lr$PORT" bridge vlan add dev $IFACE vid $VLAN
true
d043958a2d0759af8f5dc01c1453058f6b4b59cc
Shell
kenmoini/workshop-terminal
/terminal/etc/profile
UTF-8
646
3.578125
4
[ "Apache-2.0" ]
permissive
unset BASH_ENV PROMPT_COMMAND ENV # Read in additional application profile files. for i in /opt/workshop/etc/profile.d/*.sh /opt/workshop/etc/profile.d/sh.local; do if [ -r "$i" ]; then . "$i" >/dev/null fi done for i in /opt/app-root/etc/profile.d/*.sh /opt/app-root/etc/profile.d/sh.local; do if...
true
f3dd20a4b0fc2a208bd726222915312d58344234
Shell
nelson-portilla/pdfspliter
/script/splitPDF4serie.sh
UTF-8
1,045
3.546875
4
[]
no_license
#!/bin/bash # -*- ENCODING: UTF-8 -*- #Author: Nelson Portilla if [ "$#" = "0" ]; then echo $'\nsplitPDF [param1] [param2]\n' echo "param1: Archivo pdf de entrada" echo "param2: Archivo plano con la secuencia"$'\n' exit fi filepdf=$1 listaserie=$2 numeropaginas=$(pdftk $filepdf dump_data | grep NumberOfPages | cu...
true
ac31ae7497b628dc50d6a2e13454df97d9651a3a
Shell
29prashanto/OpenShift_Multinode_Cluster
/workstation.sh
UTF-8
4,989
2.859375
3
[]
no_license
#!/bin/bash set -o nounset set -o errexit hostnamectl set-hostname workstation.lw.com cat <<EOF > /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warni...
true
c4605d3e9f0c01396d92b78ff1d13e713169dd93
Shell
csebesta/dotfiles
/scripts/.bin/bginfo
UTF-8
1,480
3.40625
3
[ "MIT" ]
permissive
#!/bin/bash # Script for imitating bginfo functionality in Ubuntu # Script for imitating the behavior of bginfo # Start this script on system boot or login # Color pallete: https://design.ubuntu.com/brand/colour-palette # Candidate colors: 2C001E 333333 2D2D2D # Text colors: FFFFFF F9F9F9 (with 2D2D2D) DEDEDE DCDCDC # ...
true
5467485293a7d2d67230ccea3e58e8692a5a344c
Shell
TryItOnline/tiosetup
/run-scripts
UTF-8
1,123
4.1875
4
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
#!/bin/bash LOGS=/var/log/tioupd mkdir -p "$LOGS" formattime() { if [ $1 -lt 60 ]; then echo "$1s" else echo "$((${1}/60))m $((${1}%60))s" fi } if [ $# -lt 1 ]; then echo "Usage: run-scripts <dir>" exit 1 fi if [ ! -d $1 ]; then echo "Not a directory: $1" exit 1 fi for i in $(LC_ALL=C; echo ${1%/}...
true
12ed79763c025b02214a91982298e47c1560c517
Shell
ejangelico/cepc_caltiming
/Time/steer/bak/Overlay.sh
UTF-8
4,844
2.734375
3
[]
no_license
path="$PWD" cd $path num=10 n=10 cal=26.71 while [ "$n" -le "$num" ] do o=3 d=$[n-o] CellSize=5 inum=2 i=2 while [ "$i" -le "$inum" ] do case $i in 1) energy=1 ;; 2) energy=5 ;; 3) energy=10 ;; 4) energy=25 ;; 5) energy=50 ;; 6) energy=75 ;; 7) energy=100 ;; 8) energy=125 ;; 9) energy=150 ;; 10) energy=175 ;; *) ech...
true
6c047ea9dca2a2e03404659fe4cb793851c8049a
Shell
NixOS/nixpkgs-channels
/pkgs/servers/hylafaxplus/post-patch.sh
UTF-8
907
2.859375
3
[ "MIT" ]
permissive
# `configure` (maybe others) set `POSIXLY_CORRECT`, which # breaks the gcc wrapper script of nixpkgs (maybe others). # We simply un-export `POSIXLY_CORRECT` after each export so # its effects don't apply within nixpkgs wrapper scripts. grep -rlF POSIXLY_CORRECT | xargs \ sed '/export *POSIXLY_CORRECT/a export -n POSI...
true
fdab9b00311af6162d586b4c346dbbb91caf754b
Shell
Lachele/gems-gmml-workspace
/bin/clean.sh
UTF-8
274
3.140625
3
[]
no_license
#!/usr/bin/env bash source ./settings.sh source ./etc/functions.sh # Call each Docker Services' clean.sh script. echo "Removing the GRPC Docker Service setup files." if ! ( cd ${GW_GRPC_DIR} && bash ./bin/clean.sh ); then print_error_and_exit fi # EXIT_SUCCESS exit 0
true
5202c813d54e76e3c443408ba3984bcb95683464
Shell
stefnadev/imagemin
/imagemin.sh
UTF-8
4,289
4.0625
4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash defaultUrl="http://localhost:8082" CHECK_NOOP=.noop concurrency=2 threshold=1 optCheckFileBase=.imagemin.list OPT_CHECK_DIR="${OPT_CHECK_DIR:-/var/www/vhosts}" optCheckFile="$OPT_CHECK_DIR/$optCheckFileBase" BASE_DIR=$(dirname $0) . ${BASE_DIR}/funcs.sh usage() { echo -e "Usage: $0: PATH [MTIME] [URL] ...
true
7463149849f19e45e7bfbeed457cdaa19a402c30
Shell
willrain/docker-test
/magento2/application/core/sbin/webapp-deploy.sh
UTF-8
2,515
3.203125
3
[]
no_license
#!/bin/bash # # 1. 소스 파일 다운로드 # 2. 소스 파일 압축 (불 필요한 파일 제거) # 3. magento2-core-webapp docker images 생성 DOCKER_PRJ_HOME=/data01/docker/ssg-global-docker/magento2/application/magento2-core PRJECT_NM=magento2-2.1.8 WEBAPP_ROOT=${DOCKER_PRJ_HOME}/webapp SRC_DIR=${WEBAPP_ROOT}/src TMP_DIR=${WEBAPP_ROOT}/tmp ...
true
e96157b9d9891ba20cb0144c876ebaa07be0c104
Shell
yasassri/yasassri.github.io
/tools/release.sh
UTF-8
5,322
4.21875
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # # Release a new version to the GitLab flow production branch. # # For a new major/minor version, bump version on the main branch, and then merge into the production branch. # # For a patch version, bump the version number on the patch branch, then merge that branch into the main branch # and produ...
true
14fd8af8cfad6408770102a9e2e8fe10e889d130
Shell
bufubaoni/algorithms
/ldap.sh
UTF-8
357
3.5
4
[]
no_license
#!/usr/bin/env bash LDAPBK=ldap-$( date +%Y%m%d-%H ).ldif BACKUPDIR=/ldap_backups BACKUP_EXEC=`which slapcat` PACKAGE=`which gzip` checkdir(){ if [ ! -d "$BACKUPDIR" ]; then mkdir -p ${BACKUPDIR} fi } backuping(){ echo "Backup Ldap Start...." ${BACKUP_EXEC} -v -l ${BACKUPDIR}/${LDAPBK} ${PACKAGE} -9 $BA...
true
c413cac3542799429a763ce5227a2a7b5575e010
Shell
xiaolei16fan/redis-deploy
/bind_hosts.sh
UTF-8
698
3.234375
3
[]
no_license
#!/bin/bash #author xiaolei <xiaolei@16fan.com> #date 2016.09.05 #在发生主从切换时,将管理主机(SERVER_A)的HOSTS修改为最新 redis master 的IP MASTER_IP=${6} DEFAULT_MASTER=192.168.33.11 if [ ! `grep 'redisserver16fan' /etc/hosts` ]; then echo "${DEFAULT_MASTER} redisserver16fan" >> /etc/hosts else sed -i '/redisserver16fan...
true
1e5ab1f0959f98d24d20914d2b719a8a08dd1efd
Shell
hectorsalvador/WNV_model
/build_model.sh
UTF-8
253
3.125
3
[]
no_license
#!/bin/bash PERIODS=$1 # Run model if [ -z $PERIODS ] then echo "Training model using defaults." python3 -W ignore scripts/build_model.py else echo "Training model every $PERIODS periods." python3 -W ignore scripts/build_model.py --p $PERIODS fi
true
e101787cfd2bee52622309e54e591684c5702d4c
Shell
acshetty/sncRNA-seq-analysis
/scripts/merge_alignment_statistics.sh
UTF-8
1,741
3.484375
3
[ "MIT" ]
permissive
#!/bin/sh function Usage { echo "Usage: $1 <alignment_directory> <rnatype> <output_file> <log>" } if (( $# < 4 )) || (( $# > 4 )); then Usage $0 exit 1 fi ALN=$1 TYP=$2 OUT=$3 LOG=$4 nIDX=0 for F in `find ${ALN}/*/*${TYP}*alignment_statistics.txt`; do if [[ "$nIDX" -eq 0 ]]; then head -1 ${F} > ${OU...
true
b852dc8878ffee3ea2180b98dd115f6da766e0db
Shell
jwilk/deb-toolbox
/buildd.d.o
UTF-8
823
3.59375
4
[ "MIT" ]
permissive
#!/bin/sh # Copyright © 2017-2023 Jakub Wilk <jwilk@jwilk.net> # SPDX-License-Identifier: MIT set -e -u urlescape() { perl -E '$_ = $ARGV[0]; s/[^\w.-]/sprintf "%%%02X", ord $&/ge; say $_' "$@" } if [ $# -ne 1 ] then printf 'Usage: %s PACKAGE\n' "${0##*/}" >&2 exit 1 fi pkg="$1" pkgs=$(apt-cache showsr...
true
07836ea707e641ca97dc85486d1a8715944ecb62
Shell
nosebrain/stuff
/scripts/macos/brew-cask-update.sh
UTF-8
280
3.375
3
[]
no_license
#!/bin/bash APPS="$@" echo $APPS for APP in `echo $APPS`; do echo "updating $APP; please wait" RESULT=$( brew cask install --force "$APP" | tee /dev/tty) APP_PATH=`echo "$RESULT" | grep "Moving App" | cut -d "'" -f 4` xattr -r -d com.apple.quarantine "$APP_PATH" done
true
08432ea3dcb7da69cbe73452c095251ee4b41a6f
Shell
kaiyuanshe/open-hackathon
/deploy/setup.sh
UTF-8
10,644
3.359375
3
[ "MIT" ]
permissive
#!/bin/bash # This file is covered by the LICENSING file in the root of this project. # This script should be run as "sudo bash setup.sh" # Better to deploy open-hackathon on ubuntu 14 function pre_setup_docker() { #for ubuntu 14 if $(lsb_release -d | grep -q "14"); then echo "deb https://apt.dockerp...
true
bf368394eed7928bbb27d1cee20d29e72f4590b4
Shell
farrokhi/freebsd-munin-plugins
/if_packets_
UTF-8
1,670
3.984375
4
[ "BSD-2-Clause" ]
permissive
#!/bin/sh # -*- sh -*- # # Wildcard-plugin to monitor network interfaces. To monitor an # interface, link if_packets_<interface> to this file. E.g. # # ln -s /usr/local/share/munin/plugins/if_packets_ /usr/local/etc/munin/plugins/if_packets_em0 # # ...will monitor eth0 interface. # # Magic markers (optional - used...
true
680198fcdb79bc78416db546a943fbadcdf76e76
Shell
miiya369/analysisHAL_miya
/scripts/for_SC/fx100/Find.ErrJobs.sh
UTF-8
1,321
3.5
4
[]
no_license
#!/bin/sh if [ $# -eq 0 ]; then echo "usage: sh `basename $0` [src t] ..." exit 1 fi Base=/gwfefs/data/G16030/miyamoto/work.K/work.run-i.traj_mod10_5/run.t_mod24_??/run.t_???.rot_tot/logs.t_??? run_out_lst=/gwfefs/home/tkymiya/scripts/run.out.lst for srcT in $@; do SRCT=`printf %03d $srcT` if [ $? -n...
true
c24d2e435bc75560ec0c9552532bb6b392f26600
Shell
itsmarky10/ECS122B
/sanity_check.sh
UTF-8
1,343
3.578125
4
[]
no_license
#!/bin/bash numOfSamp=100 numOfEle=1000 # Compile the java files javac QuickSelect.java javac DeterministicSelect.java javac SelectK.java # Test #for((i=0; i<20; i++)); do # randomNum=$(od -N4 -tu4 -An /dev/urandom | tr -d " ") # randomNum=$((($randomNum % (10**6)) + 1)) # echo $randomNum #done #exit n...
true
d30cf0f8eb285fb09ae2153abf4313c7ddf5691b
Shell
megclaypool/pantheon-clone-to-local
/clone-from-pantheon.sh
UTF-8
12,688
3.96875
4
[]
no_license
#!/bin/bash # You can set your local mysql username and password in clone_script.settings.local.yml # Otherwise, you'll be setting them interactively with the other variables when you run the script :) SITE_MACHINE_NAME='' SITE_ENV='' # COPY_FILES can be yes or no COPY_FILES='' # SITE_TYPE can be WP, D7, or D8 -- l...
true
0d75dc9798cdd9544f80a63ed21a066c3d5bc36a
Shell
22antonio/laptop
/os/linux
UTF-8
4,654
3.296875
3
[ "MIT" ]
permissive
#!/bin/bash OS= RELEASE=$(cat /etc/*release | grep ^NAME) ID_LIKE=$(cat /etc/*release | grep "^ID_LIKE=") ID=$(cat /etc/*release | grep "^ID=") if grep -q Fedora <<< $RELEASE; then OS=Fedora elif grep -q -i ubuntu <<< $ID || grep -q -i ubuntu <<< $ID_LIKE; then OS=Debian DOCKER_APT_REPO="deb [arch=amd64] ...
true
c670d1b3820217434b226fe496fd7d239b22997a
Shell
izabera/codeeval
/moderate/justify.bash
UTF-8
820
3.5625
4
[]
no_license
#!/bin/bash LANG=C eighty=" " set -f while read -r || [[ $REPLY ]]; do while (( ${#REPLY} > 80 )); do words=($REPLY) line=${words[0]} i=1 while (( ${#line} + ${#words[i]} < 80 )); do line+=" ${words[i++]}" done REPLY...
true
e54bd955da481ae5908d3d6350634f03c2c2e210
Shell
mikecarr/docker-apps
/docker-rabbitmq-cluster/add_user.sh
UTF-8
1,520
3
3
[]
no_license
#!/bin/sh while getopts "u:p:v:c:m:P:e:h" ARG do case $ARG in u) USERNAME=$OPTARG echo $USERNAME ;; p) PASSWORD=$OPTARG echo $PASSWORD ;; v) VHOST="/$OPTARG" echo $VHOST ;; m) CLUSTER_MASTER=$OPTARG echo $CLUSTER_MASTER ;; P...
true
4a946c37b2fb4805ee919614a3a092cc2cba1eb4
Shell
nexus-prime/PullTaskResults
/PullTasks.sh
UTF-8
5,021
3.578125
4
[ "MIT" ]
permissive
#! /bin/bash # bash PullTasks.sh ProjectName HostID NumPages # $1=project URL # $2=host ID # $3=Pages of BOINC tasks to return (20 tasks per page) # $4=Output File Name SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" #echo $SCRIPT_DIR # Load input data URL="$(cat $SCRIPT_DIR/resources/WhiteList_URL_Look...
true
443e185743d89f971407e219603c74fc30a23965
Shell
dazzbourgh/alexa-jumoresques-serverless
/scripts/remove-production-dependencies.sh
UTF-8
122
2.671875
3
[]
no_license
#!/bin/bash for dir in "../src/handlers"/*; do if test -d "$dir"; then rm -r "$dir"/dependencies fi done
true
13ea1d6c3d85d90c786cc3ec8a2f11c5e5fed3d8
Shell
marcusandre/dotfiles
/zsh/.zshrc
UTF-8
2,006
2.75
3
[]
no_license
export ZSH=~/.zsh eval "$(~/Developer/homebrew/bin/brew shellenv)" # == ENVIRONMENT if [[ -f /Users/mzui5of/.zsh_private ]]; then source /Users/mzui5of/.zsh_private fi # == PATH export GOPATH=$HOME/golang export GOROOT=$(brew --prefix go)/libexec CHUNKS=( $HOME/bin $GOPATH/bin $GOROOT/bin /usr/local/bin ...
true
33ed85a222bc0bb664f0c9967f6f63c2260273cf
Shell
hassoon1986/curl-for-win
/_build.sh
UTF-8
8,136
3.4375
3
[ "MIT", "CC-BY-SA-4.0", "CC-BY-SA-3.0" ]
permissive
#!/bin/sh -ex # Copyright 2015-present Viktor Szakats. See LICENSE.md # TODO: # - Enable Control Flow Guard (once FLOSS toolchains support it) # LLVM/CLANG: -ehcontguard (requires LLVM 13.0.0) # - ARM64 builds (once FLOSS toolchains support it) # - Switch to libssh from libssh2? # - LLVM -mretpoline # ...
true
774053aa33b8e6808cbc34c0dd1cd4d5abd03885
Shell
russelltsherman/libsh
/lib/validate.sh
UTF-8
652
3.609375
4
[]
no_license
#!/usr/bin/env bash function is_empty() { local var="$1" [ -z "$var" ] } function is_not_empty() { local var="$1" [ -n "$var" ] } function is_file() { local file="$1" [ -f "$file" ] } function is_not_file() { local file="$1" [ ! -f "$file" ] } function is_dir() { local dir="$1" [ -d "$dir" ] } ...
true
594356343568e76a43ace48bf4a499480c2fa820
Shell
Theosakamg/deploy-user
/start.sh
UTF-8
2,347
3.625
4
[]
no_license
#!/usr/bin/env bash # -*- coding: utf-8 -*- # micky:x:1000:1000:Mickael Gaillard,,,:/home/micky:/bin/bash PKGS_INSTALL=false PKGS_LIST="exa ccze htop nano git command-not-found" USER_NAME="micky" USER_SHELL="bash" USER_HOME="/home/$USER_NAME" # Check if script is run with root. if [ "$EUID" -ne 0 ]; then echo "Pl...
true
b14ac675b8a0fec6e516c18ae0a3b45a55a5021e
Shell
CarlosUziel/OSAdministration
/Kdic.ksh
UTF-8
252
3.296875
3
[]
no_license
#!/bin/ksh if (( $# < 1 || $# > 2 )) then print -u2 "Wrong Invocation" exit 1 fi DIC=${2:-"/usr/dict/dictionary"} exec 0<$DIC while read WORD do if [[ $1 = WORD ]] then print "$1 encontrada" exit 0 fi done print "$1 no encontrada" exit 0
true
44eedca465a27f9e1938d111bae16a3128a6d49f
Shell
mahendra-shinde/docker-demos
/svn_server/docker-entry.sh
UTF-8
281
3.0625
3
[]
no_license
#!/bin/bash set -e if [ ! -d "/opt/svn/conf" ]; then echo " Could not find configuration directory /opt/svn/conf" echo " creating svn directory..." svnadmin create /opt/svn echo " Successfully created!" fi echo " Starting SVN service ..." exec "$@"
true
ed63467991e4629ef51119a5b043bb222ff65626
Shell
Youngfellows/ShellStudy
/Sample_Shell5/基本脚本/使用方括号执行数学运算.sh
UTF-8
109
2.625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash var1=10 var2=50 var3=45 var4=$[$var1 * ($var2 - $var3)] echo 'The final result is '$var4
true
07ac5c2ae31e821bb76ac8340c31ff8ecb8f0ecb
Shell
KaOSx/main
/xwayland/PKGBUILD
UTF-8
1,278
2.71875
3
[]
no_license
pkgname=xwayland pkgver=23.2.0 pkgrel=1 pkgdesc="X.Org X servers for Wayland" arch=('x86_64') url="https://xorg.freedesktop.org" license=('GPL2') depends=('xorg-server' 'wayland-protocols') makedepends=('libx11' 'xtrans' 'libxkbfile' 'libxmu' 'libxtst' 'libxres' 'valgrind' 'meson' 'ninja') options=('!libtool') groups=...
true
37f2b76348fab06de0e828372b2dc30a17c033f2
Shell
vinhjaxt/docker-web-deploy
/php-node/run.sh
UTF-8
1,568
3.65625
4
[]
no_license
#!/usr/bin/env bash SOURCE="${BASH_SOURCE[0]}" while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )" SOURCE="$(readlink "$SOURCE")" [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we ne...
true
7692c47a369f0a21326b06c7ff7680bf9f674506
Shell
kjcjohnson/nasT
/render.sh
UTF-8
463
3.75
4
[ "MIT" ]
permissive
#!/bin/bash INFILE=$1 OUTFILE=$2 data_v=() data_k=() i=1; for arg in "$@" do if [ $i -le 2 ] then i=$((i+1)) continue; fi if [ $(($i % 2)) -eq 0 ] then data_v+=("$arg"); else data_k+=("$arg"); fi i=$((i+1)) done `cp $INFILE $OUTFILE` for i in `seq 0 $((${#data_k[*]} - 1))`; do...
true
4b2e6bb3e3001eff6ef731535da2e17113170efa
Shell
rumeau/rendiciones
/bootstrap.sh
UTF-8
1,872
3.140625
3
[]
no_license
#!/usr/bin/env bash echo "--- Let's get to work. Installing now. ---" echo "--- Updating packages list ---" sudo apt-get update echo "--- MySQL time ---" sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root' sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password...
true