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
a72ceb9da650c7b14a6029b4c68f2c44d334155b
Shell
ghuntley/monorepo
/third_party/git/t/t2104-update-index-skip-worktree.sh
UTF-8
1,181
3
3
[ "GPL-1.0-or-later", "LGPL-2.0-or-later", "LGPL-2.1-only", "GPL-3.0-only", "GPL-2.0-only", "MIT" ]
permissive
#!/bin/sh # # Copyright (c) 2008 Nguyễn Thái Ngọc Duy # test_description='skip-worktree bit test' . ./test-lib.sh sane_unset GIT_TEST_SPLIT_INDEX test_set_index_version 3 cat >expect.full <<EOF H 1 H 2 H sub/1 H sub/2 EOF cat >expect.skip <<EOF S 1 H 2 S sub/1 H sub/2 EOF test_expect_success 'setup' ' mkdir sub...
true
843b3b70ced6b8c5ee039cbb530b7e6eebc87165
Shell
fadushin/esp8266
/micropython/bin/upload.sh
UTF-8
491
3.78125
4
[ "BSD-2-Clause" ]
permissive
#!/bin/sh NARGS=$# if [ ${NARGS} -lt 1 ] ; then echo "Syntax: $0 <ip-address> [<file>]*" exit 1 fi IP_ADDRESS=$1 shift if [ ${NARGS} -gt 1 ] ; then FILES=$@ else FILES=$(ls *.py) fi if [ ! $(which webrepl_cli.py) ] ; then if [ -e "/work/src/github/micropython/webrepl/webrepl_cli.py" ]; then PATH...
true
604b584474c7f30638a65f53c7887a8f5dc49c9a
Shell
JokerFap/xPanel
/scripts/menu.bak/vpssim-phuc-hoi-database-sql
UTF-8
4,725
3.375
3
[]
no_license
#!/bin/sh clear echo "=========================================================================" echo " VPSSIM - Manage VPS/Server by VPSSIM.COM " echo "=========================================================================" echo " Restore Database ...
true
ff2adb2534ad94ab1a026502f12c778ee98ca6b0
Shell
bluebird1999/nec-script
/update_nec-common
UTF-8
266
2.6875
3
[]
no_license
#!/bin/bash set -x user=`whoami` SOURCE_NEC_COMMON="/home/${user}/working/java/nec-common" echo "----------------------------------" echo "Deploying nec-common to the common!" echo "recompile the code..." cd $SOURCE_NEC_COMMON mvn clean mvn package mvn install
true
f7da531c75617b0318aba50b80833e16e9010d7b
Shell
dhawal1939/Assignments-And-Lab-Codes
/Free_Open_Source_Software_LAB/13-4.sh
UTF-8
174
3.484375
3
[]
no_license
#!/bin/bash echo Enter Directory path read x ls $x >/dev/null if [ $? -eq 0 ];then echo Number of files `ls $x|wc -l` else echo File path is invalid or file doesnot exist fi
true
9d80e4609376bc98e43badb752ab2c8c1fc25786
Shell
derickson82/brimud
/brimud/src/main/scripts/brimud
UTF-8
510
3.8125
4
[]
no_license
#! /bin/sh # /etc/init.d/brimud # export BRIMUD_HOME=./ # Some things that run always touch /var/lock/brimud # Carry out specific functions when asked to by the system case "$1" in start) echo "Starting script brimud " java -jar $BRIMUD_HOME/brimud.jar & echo $! > $BRIMUD_HOME/brimud.pid ;; stop)...
true
2b855d7a8a726838fac63a578cc82b5c329c4f92
Shell
twetto/iq-neuron
/PKGBUILD
UTF-8
847
2.90625
3
[ "MIT" ]
permissive
# Maintainer: twetto <franky85912@gmail.com> pkgname=iq-neuron pkgver=0.2.2 pkgrel=1 pkgdesc="A library for IQIF" arch=('any') url="https://github.com/twetto/iq-neuron" license=('MIT') depends=('openmp') makedepends=('git' 'gcc' 'cmake') # 'bzr', 'git', 'mercurial' or 'subversion' source=('git+https://github.com/twetto...
true
4ba4d2b7d8ab86877657516fd1433639ce0e5b8c
Shell
avr-aics-riken/PMlib
/doc/scripts/Kcomputer/x.user-cpp-K-mpi.sh
UTF-8
1,315
2.90625
3
[ "BSD-2-Clause" ]
permissive
#!/bin/bash # source /home/system/Env_base set -x PACKAGE_DIR=${HOME}/pmlib/package PMLIB_DIR=${HOME}/pmlib/usr_local_pmlib/K PMLIB_LDFLAGS="-L${PMLIB_DIR}/lib -lPMmpi " PAPI_DIR="yes" # PAPI_DIR=/opt/FJSVXosDevkit/sparc64fx/target/usr/lib64 # PAPI_LDFLAGS="-lpapi -lpfm " PAPI_LDFLAGS="-lpapi_ext -Wl,-Bstatic,-lpapi,...
true
8c1f09541d3b64870f87da84961c5cbe22627e1a
Shell
tuyen81/self_learning
/shell/running_package/testcases/ifenslave/ifenslave.sh
UTF-8
671
3.484375
3
[]
no_license
#!/bin/bash #============================================================================== # DESCRIPTION: Modprobe bonding module then attach slave to bonding device #============================================================================== check=0 . $CONFIG_DIR/network.sh echo "Testing ifenslave" > ${log_fil...
true
e4cec706d27beb2c3d4d1384b465ed20f29f7dfa
Shell
kyxap1/sonatype-nexus-api
/nexus-api.sh
UTF-8
2,884
3.4375
3
[ "Unlicense" ]
permissive
#!/usr/bin/env bash #=============================================================================== # # FILE: nexus-api.sh # # USAGE: ./nexus-api.sh # # DESCRIPTION: Shell CLI for Nexus Sonatype 2.xx API # # OPTIONS: --- # REQUIREMENTS: apt-get install -y httpie jq # BUGS: --- # ...
true
ceddfead6e8f32788ddc1e296a758d088791724a
Shell
LongIU/Grafana_Influxdb_build
/build.sh
UTF-8
936
3.3125
3
[]
no_license
#!/bin/bash #確認SELINUX有沒有disabled check_SELinux=$(cat /etc/selinux/config | grep "^SELINUX=" |awk -F\= '{print $2}') [[ ${check_SELinux} != "disabled" ]] && echo ${1} |sudo -S sed -i '/^SELINUX=/c\SELINUX=disabled' /etc/selinux/config #安裝套件 echo ${1} |sudo -S yum install -y git vim telnet #更新套件 echo ${1} |sudo -S y...
true
adc42454c135cce1e0a1341beaa326b903320a82
Shell
oleks/onlineta
/src/jail/sh-iofs
UTF-8
427
3.046875
3
[]
no_license
#!/usr/bin/env sh TMPFS_TARGET="tmpfs-target" ROOTFS_TMPFS_TARGET="rootfs-target/home/student" INPUT="input" OUTPUT="output" SIZE=1M mount -t tmpfs -o size=$SIZE tmpfs "$TMPFS_TARGET" || exit 1 cp -r "$INPUT/"* "$TMPFS_TARGET/" || exit 1 mount --bind "$TMPFS_TARGET" "$ROOTFS_TMPFS_TARGET" || exit 1 $@ umount "$ROO...
true
fe562909f403c0e9bb563f1a9781209ae4fe94af
Shell
sailfishos/cross-template-sysroot
/precheckin.sh
UTF-8
433
3.046875
3
[]
no_license
#!/bin/sh ARCHS="aarch64 armv6l armv7l armv7hl armv7thl armv7tnhl mipsel i486 i586" for x in $ARCHS; do cp cross-template-sysroot.spec cross-$x-sysroot.spec sed -i "s/@TARGET_CPU@/$x/g" cross-$x-sysroot.spec sed -i "s/ExclusiveArch: none/ExclusiveArch: %ix86 x86_64/g" cross-$x-sysroot.spec case $x in arm*) sed...
true
8f53ab207723ba8bc817a4ff6afb929b08e2efa6
Shell
thevogel/Elk_Project
/Scripts/for_loops.sh
UTF-8
300
3.484375
3
[]
no_license
#!/bin/bash #Create Variables nums=$(echo {0..9}) states=('California' 'Hawaii' 'Colorado' 'Washington' 'Oregon') #Create a loop that looks for 'Hawaii' for state in ${states[1]} do if [ $state == 'Hawaii' ]; then echo "Hawaii is the best!" else echo "I'm not a fan of Hawaii." fi
true
b54a59a85a67cc0345b07fdefa0ccdf947c29834
Shell
Griffin-Ashton/CoralPaper2015
/bin/runsourcetracker.sh
UTF-8
551
2.640625
3
[ "MIT" ]
permissive
#!/bin/bash #runall.sh A script to recreate all paper analyses #Usage: runsourcetracker.sh <outputdir> #Adam R. Rivers 2015-09-15 # Define output dir $OUTPUTDIR="$1" #convert biom file to txt biom convert -i "$OUTPUTDIR"/otus/filtered_otu_table.biom -o "$OUTPUTDIR"/otus/filtered_otu_table.txt -b #Run source tracker...
true
4ca452ea221d1b343354f21bf832660675f33489
Shell
mingtao13595/NaturalLanguageProcessing
/NaturalLanguageProcessing/etc/ex10.sh
UTF-8
352
3.671875
4
[]
no_license
#!/bin/bash # 読み込むファイル定義 FILENAME="./file/hightemp.txt" # 配列定義 declare -a array=() # ファイルの行数のcount row_count=0; # 一行づつ読み込む while read LINE; do # 整数演算を行う row_count=`expr $row_count + 1` array+=($LINE) done < $FILENAME # 結果をコマンドラインに表示 echo $row_count
true
5a4bd91606c47e29b644c0e960f4e0cb9f7c4291
Shell
decc/national-household-model-core-components
/system-tests/make-smaller-stock.sh
UTF-8
391
3.40625
3
[]
no_license
#!/bin/bash # Stop on first error. set -e; ### A script to make a smaller stock by passing in aacodes test -n $1 || exit 1; AA_CODES="$@"; AA_CODES="\"${AA_CODES// /\", \"}\""; QUERY="select(.basicAttributes.aacode == (${AA_CODES}))" echo "Making stock reduced.stock.gz using query ${QUERY}"; zcat EHS2012.json.gz | ...
true
762ff13c14e0dad95fa281eaf5fa2e0a7be9e647
Shell
FlorianMold/fh-microservice
/bundle.sh
UTF-8
1,441
4.28125
4
[]
no_license
#!/bin/bash DIST_FOLDER=dist dockerfile_flag='false' use_registry_flag='false' print_usage() { cat <<EOF init [OPTIONS] Options: -h Print the usage. -d Use the dockerfile for building the docker image. -r Do not store the image in the dist-folder. Used for deploying the image to...
true
4aec61957b0a40e22dda3938988ebddf4e86caef
Shell
mmclane/maelstrom
/scripts/provision.sh
UTF-8
3,799
4.0625
4
[]
no_license
#!/bin/bash set -xeou pipefail readonly TERRAFORM_VERSION="0.11.3" readonly DOWNLOAD_FILE="${WORKSPACE}/tmp/terraform_${TERRAFORM_VERSION}.zip" readonly DOWNLOAD_URL="https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip" readonly INSTALL_DIR="${WORKSPACE}/bin" re...
true
736962b592943c9fd8d6610dc2272b36d58a8560
Shell
blueprint-cpp/blueprint
/test/functional/blueprint/run-blueprint.sh
UTF-8
408
2.921875
3
[]
no_license
#!/bin/bash pushd $(dirname $0) > /dev/null root=../../.. # build blueprint $root/build/build.sh if [[ $? -ne 0 ]]; then exit $? fi # run blueprint-premake ../common/run-blueprint-premake.sh # run blueprint blueprint=$root/output/bin/Debug/Blueprint workspace=$root/build/blueprint/Blueprint.wks.json output...
true
cad5d9ec479f2b6cb0c5966c2065a009a48de993
Shell
CipaX/env
/common/gen_unix/bin/xx_go.sh
UTF-8
2,009
3.96875
4
[]
no_license
#!/bin/bash if [ "$#" -eq 1 ] && [ "$1" == "-h" ]; then _CMD="$(basename "${BASH_SOURCE[0]}")" echo "usage: ${_CMD} <pattern>" echo "" echo "${_CMD} - matches the given file/directory path pattern within the base directory subtree and changes the directory to the first best path match." echo "" echo ...
true
ce10dd037dfa786d1a7e8d48ff755708a5de1b1b
Shell
vlele/aks-class
/m14/snippet.sh
UTF-8
2,667
3.171875
3
[]
no_license
#*************************************************************************************** ## Objective: This module demonstrates the use of ServiceAccount, ClusterRole and ClusterRoleBinding to allow/disallow access to API Server from within a Pod in AKS #**************************************************************...
true
ab1976ea32c627a10503f09b29a2a7a58382ef8b
Shell
mdclyburn/scripts
/desktop/reencode.sh
UTF-8
752
4.28125
4
[ "MIT" ]
permissive
#!/bin/bash # Encode all FLAC files in the current directory to MP3 # # Arguments ===== # 1: bitrate in Kbps # if [ -z $1 ] then printf "reencode <bit rate (Kbps)> [-a]\n" exit 1 else if [ -z $2 ] then printf "Will encode %i FLAC files to %iKbps MP3. OK? [y/N] " "$(ls *.flac | wc -l)" "$1" read response if ...
true
a371251435f4e7a11650bda8beb2b71f2abd26cc
Shell
InformaticsMatters/docking-validation
/remote-exec-scripts/tej-submit.sh
UTF-8
1,081
3.953125
4
[]
no_license
#!/bin/bash set -e if [ "$#" -ne 1 ]; then echo "ERROR: Must specify directory with content to submit as the only argument" exit 1 fi SERVER=${SERVER} SSH_KEY=$SSH_KEY KNOWN_HOSTS=$KNOWN_HOSTS POLL_INTERVAL=${POLL_INTERVAL:-10} USERNAME=${USERNAME:-$USER} DESTINATION=${USERNAME}@${SERVER} DIR=$1 echo "Submitin...
true
21ce55038dd5c4f110d239a718ccc8f18aef8133
Shell
kelvinheng92/ml-docker-kubernetes
/build_push_image.sh
UTF-8
339
2.59375
3
[ "MIT" ]
permissive
#!/bin/bash ADDRESS=gcr.io PROJECT_ID=ml-docker-kubernetes REPOSITORY=auto VERSION=1.0.0 docker build -t ${PROJECT_ID}:${VERSION} . ID="$(sudo docker images | grep ${PROJECT_ID} | head -n 1 | awk '{print $3}')" docker tag ${ID} $ADDRESS/${PROJECT_ID}/${REPOSITORY}:${VERSION} docker push $ADDRESS/${PROJECT_ID}/${REPO...
true
e5269fe77982904a803184d29bb507833b6bd7d8
Shell
nyimbi/Flask-DB-Docker
/cleanupImages.sh
UTF-8
357
3.28125
3
[]
no_license
#!/bin/bash # Exit on first error, print all commands. set -ev #Detect architecture ARCH=`uname -m` # Grab the current directory. DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # Clean up the Docker images for the system. docker rmi $(docker images starter/* -q) docker network prune -f docker volume prune ...
true
8f4c12316d5079b28ec87b412ec5dbd809194c17
Shell
rexblack/docker-shopware
/rootfs/usr/local/bin/entrypoint.sh
UTF-8
990
3.046875
3
[]
no_license
#!/bin/sh wait-mysql.sh if ! [ -r /var/www/html/config.php ] then echo "Installing Shopware..." tar --strip 1 -zxf ${PATH_SW} ln -sf /usr/bin/composer composer.phar ant -f build/build.xml \ -Ddb.user=${MYSQL_USER} \ -Ddb.password=${MYSQL_PASSWORD} \ -Ddb.name=${MYSQL_DATABASE...
true
5785802670bc6423d9726b01d0f9f61e43c5ed67
Shell
Chrysostomus/manjaro-zsh-config
/.zshrc
UTF-8
382
2.65625
3
[ "MIT" ]
permissive
# Use powerline USE_POWERLINE="true" # Has weird character width # Example: #  is not a diamond HAS_WIDECHARS="false" # Source manjaro-zsh-configuration if [[ -e /usr/share/zsh/manjaro-zsh-config ]]; then source /usr/share/zsh/manjaro-zsh-config fi # Use manjaro zsh prompt if [[ -e /usr/share/zsh/manjaro-zsh-prom...
true
8c42fdc43536bf6ef795acb46f39229af6443943
Shell
jarrpa/ocs-operator
/hack/source-manifests.sh
UTF-8
4,009
3.59375
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # example: ROOK_IMAGE=build-e858f56d/ceph-amd64:latest NOOBAA_IMAGE=noobaa/noobaa-operator:1.1.0 OCS_IMAGE=placeholder CSV_VERSION=1.1.1 hack/generate-manifests.sh set -e source hack/common.sh source hack/operator-sdk-common.sh function help_txt() { echo "Environment Variables" echo " NOOBA...
true
e4b71e6eb0c7ddc7cb0739efbed844e867cce27a
Shell
clacroi/ift6262_project
/Utility/aws_gpu_launch
UTF-8
1,327
2.765625
3
[]
no_license
#!/bin/bash # Download cuda toolkit, update packages and install cuda-toolkit wget https://developer.nvidia.com/compute/cuda/8.0/prod/local_installers/cuda-repo-ubuntu1604-8-0-local_8.0.44-1_amd64-deb sudo dpkg -i cuda-repo-ubuntu1604-8-0-local_8.0.44-1_amd64-deb sudo apt-get update sudo apt-get install -y cuda nvidia-...
true
b6c995744750367442644edd5279588e6709ab0d
Shell
TChan92/320SatTranslator
/testing.sh
UTF-8
432
2.8125
3
[]
no_license
#!/bin/bash #!/usr/bin/env python for filename in SudokuPuzzles/*.txt; do name=${filename##*/} base=${name%.txt} python2.7 sud2sat.py "$filename" "CNF_Files/$base.in" done for cnf in CNF_Files/*.in; do name=${cnf##*/} base=${name%.in} minisat "$cnf" "CNF_Files/$base.out" done for out in CNF_Fi...
true
87606c80d4cede7a9834b11c6bca0218d9dc430f
Shell
ainpoenya/openwrt-huawei
/gpio.cgi
UTF-8
2,823
3
3
[]
no_license
#!/bin/sh echo "Access-Control-Allow-Origin: *" echo "Content-type: application/json" echo "" PASSWORD="openwrt" SCRIPT="gpio/script/gpio.sh" #KEY=`echo "$QUERY_STRING" | sed -n 's/^.*key=\([^&]*\).*$/\1/p' | sed "s/%20/ /g"` #echo "KEY IS= $KEY" #exit 0 KEY=`echo "$QUERY_STRING" | sed -n 's/^.*key=\([^&]*\).*$/\1/p...
true
40d3d9aeb2caf58d3b1835ecd2f50dec2aaca138
Shell
ivan-ristovic/dotfiles
/bin/myip
UTF-8
425
3.59375
4
[]
no_license
#!/bin/bash host="@resolver1.opendns.com" version="" if [ $# -ge 0 ]; then version=$1 fi if [ ! -z $version ]; then if [ $version == "4" ]; then host="@resolver4.opendns.com" elif [ $version == "6" ]; then host="@resolver1.ipv6-sandbox.opendns.com AAAA" else echo "usage: $0 [4...
true
a1bc6083febb0eb9a2fc7ee85029a9d01466a48b
Shell
salieff/jjrpulser
/html/mysql_settings.sh
UTF-8
2,444
3.53125
4
[]
no_license
CURRENT_DIR="$( dirname "${0}" )" CURRENT_DIR="$( cd "${CURRENT_DIR}"; pwd )" MYSQL_DB_NAME='jjrpulser' MYSQL_USER='www-data' MYSQL_PASSWORD='' function ExecSQL() { /usr/bin/mysql -u "${MYSQL_USER}" -sN "${MYSQL_DB_NAME}" -e "$1" 2>>"/tmp/${MYSQL_DB_NAME}_debug.log" MYSQL_RET_ERR_CODE="$?" if [ "${MYSQL_R...
true
ccd9b846bcdc72c8ec25dcd24c552a668123dda5
Shell
darfink/dotfiles
/dotbin/.bin/htmlencode
UTF-8
127
2.8125
3
[]
no_license
#!/usr/bin/env bash # Encode HTML entities if [ $# -ne 0 ] echo "$@" | recode utf8..html else cat | recode utf8..html fi
true
85a5c3f864f471fbfae846a5a1754a7ce26dae24
Shell
eliark/Arch-install-script
/bashrc
UTF-8
1,859
2.625
3
[]
no_license
# # ~/.bashrc # # If not running interactively, don't do anything [[ $- != *i* ]] && return alias ls='ls --color=auto' alias grep='grep --color=auto' export PS1="\[\033[38;5;12m\][\[$(tput sgr0)\]\[\033[38;5;10m\]\u\[$(tput sgr0)\]\[\033[38;5;12m\]@\[$(tput sgr0)\]\[\033[38;5;7m\]\h\[$(tput sgr0)\]\[\033[38;5;12m\]]...
true
7001571cb9f680431a1c7862a51baeb95ff3ea0c
Shell
koudaiii/jjug-ccc2016fall-devops-demo
/script/switch
UTF-8
424
3.609375
4
[ "MIT" ]
permissive
#!/usr/bin/env bash set -eu set -o pipefail echo "==> Getting current color" CURRENT_COLOR=$(kubectl get svc demo-bg --namespace=demo --template='{{.spec.selector.color}}') if [ "$CURRENT_COLOR" == "blue" ]; then NEXT_COLOR=green else NEXT_COLOR=blue fi echo "Switch from $CURRENT_COLOR to $NEXT_COLOR" cat kube...
true
ec8061e340815258fe5ade461dc9786953773c3a
Shell
Yannick-W/antidote
/deployment/kubernetes/Nativ/deployDC.sh
UTF-8
2,795
3.96875
4
[]
no_license
#!/bin/bash ### --- ### This deploys an antidote datacenter with: ### - name: $1 ### - number of nodes: $2 ### Including: ### - statefulset ### - headless service for the statefulset ### - job to create the antidote dc ### - services that expose each node to the outside net ### Configuration: ### Can be done th...
true
0ca201e065db3081e19f0aeff0d7795e27019305
Shell
jht0664/Utility_python_gromacs
/python/n-prof-del-line.sh
UTF-8
368
3.421875
3
[ "MIT" ]
permissive
#!/bin/bash # delete every second line in a file # $1 : initial number for folder # $2 : final number for folder # $3 : n-th line you want to take rm b.nums rm peo.nums str1="npt" init=$1 final=$2 until [ $init -gt $final ] do folder=$init$str1 awk 'NR%'$3'==0' ../$folder/b.nums >> b.nums awk 'NR%'$3'==0' ../$fold...
true
8c5f25ececaac1cd095f03bbc60cc4ab6060b663
Shell
Huan111/UNSW
/COMP9044/ASS/ass01/test_sh/test07.sh
UTF-8
1,231
3.546875
4
[]
no_license
#!/bin/sh #ZANNNING WANG z5224151 #This test mainly for test subset 0 #this test only test shrug-show #Attention others who may try this autotest need to change #the path according to their own design of repo #some of error messages may vary from different designs index_path="./.shrug/index" repo_path="./.shrug/ver...
true
3243adfc20b16c4be3a26daafa65921070f0fdba
Shell
shizhuo/bondapp
/complete.sh
UTF-8
319
2.75
3
[]
no_license
#!/bin/bash date=$(redis-cli -h proliant lpop queue) echo $date while [[ $date != '' ]] do #echo $date d=$(echo $date | cut -d':' -f 1) option=$(echo $date | cut -d':' -f 2) echo $d $option casperjs history.js $d $option true casperjs history.js $d $option false date=$(redis-cli -h proliant lpop queue) done
true
5d27082ae10e1b45d7b82fed8e499aa92e82424f
Shell
renpy/renpy-deps
/scripts/build_linux_common.sh
UTF-8
652
2.890625
3
[]
no_license
#!/bin/sh try () { "$@" || exit 1 } DIR=$1 CPU=$2 mkdir /home/tom/ab/$DIR try cd /home/tom/ab/$DIR try /home/tom/ab/renpy-deps/build_python.sh try /home/tom/ab/renpy-deps/build.sh . /home/tom/ab/$DIR/env.sh mkdir -p /home/tom/ab/patentfree/lib/linux-$CPU/lib cp /home/tom/ab/$DIR/install/alt/lib/libavcodec.so.??...
true
4da7646546b8b81a6048d664429ef469a6418c6d
Shell
foodora/consumer-tech-radar
/download.sh
UTF-8
284
3.15625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash MONTH=`date +%m` YEAR=`date +%Y` FILE="data/${YEAR}_${MONTH}.tsv" curl "https://docs.google.com/spreadsheets/d/1HvsbibsBTBvZXDaJZWYyHwTxuA7a4eEbgcIKaPhuoxs/export?gid=0&format=tsv" -o "$FILE" #remove first row tail -n +2 "$FILE" > "$FILE.tmp" && mv "$FILE.tmp" "$FILE"
true
0fa48a176a9b7329b694876a3ed2db17e05c84d7
Shell
AntonyBaasan/vagrants
/test-ubuntu/provision.sh
UTF-8
1,250
2.734375
3
[]
no_license
apt-get update apt-get install -y nginx service nginx start apt-get install -y git echo " server { listen 80; location / { proxy_pass http://localhost:5000; proxy_http_version 1.1; proxy_set_header Upgrade \$http_upgrade; proxy_set_header Connection keep-alive; proxy_set...
true
40c24b9ebcd3de3ff7c9beb1299155af07efeaeb
Shell
jwhaley58/.config
/.zshrc
UTF-8
1,542
2.734375
3
[]
no_license
echo "Pulling most recent sc_config" cd ~/.config git pull cd ~ # Path to your oh-my-zsh installation. export ZSH=~/.oh-my-zsh export ZSHRC_PYTHON_PATH=$(which python3) # Auto update zsh DISABLE_UPDATE_PROMPT=true ZSH_THEME="dstcustom" plugins=( git last-working-dir colored-man-pages zsh-autosuggestions aut...
true
8488f26cfc31d4faee9de5d7f0ad3a6420d47b28
Shell
nsailor/rocm-arch
/hip-hcc/PKGBUILD
UTF-8
1,420
2.8125
3
[]
no_license
# Maintainer: acxz <akashpatel2008 at yahoo dot com> pkgname=hip-hcc pkgver=3.3.0 pkgrel=6 pkgdesc="Heterogeneous Interface for Portability ROCm" arch=('x86_64') url='https://rocmdocs.amd.com/en/latest/Installation_Guide/HIP.html' license=('MIT') depends=('hsa-rocr' 'comgr') makedepends=('libelf' 'cmake' 'python' 'hcc'...
true
e938917ee4c9b847cf7fc08c1fdabd28ca3a98e3
Shell
Thief007/docker-oracle-apex-ords
/scripts/download_files.sh
UTF-8
574
3.34375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash mkdir /files && cd files downloadFiles () { local url="https://github.com/Thief007/docker-oracle-apex-ords" local files=( oracle-xe_11.2.0-1.0_amd64.debaa oracle-xe_11.2.0-1.0_amd64.debab oracle-xe_11.2.0-1.0_amd64.debac apex_5.1.2_en.zip ords.3.0.11.180.12.34.zip apache-tomcat-8....
true
64fb1d39b8834e9310712197934704ad3563a9d0
Shell
saiSunkari19/akash
/script/setup-kind.sh
UTF-8
1,038
4.03125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # # Set up a kubernetes environment with kind. # # * Install Akash CRD # * Optionally install metrics-server rootdir="$(dirname "$0")/.." install_crd() { kubectl apply -f "$rootdir/pkg/apis/akash.network/v1/crd.yaml" } install_metrics() { # https://github.com/kubernetes-sigs/kind/issues/398#issuecom...
true
dc37a27e8a4b5226a2ca137215b55b08e0bf60c7
Shell
raihaan/depr_hcp-micro-func
/preprocessed/preproc.sh
UTF-8
8,390
3.234375
3
[]
no_license
#!/bin/bash # ====================================================================== # # 2021_03_12 Raihaan Patel # Creates individual command list file that is submitted by qbatch # run per subject: for subj in ../raw_data/structural/??????; do ./preproc.sh $subj; done # can then do the following to submit joblists f...
true
4eb008d7c22da252408efbf8902663e5917f998e
Shell
gchq/gaffer-docker
/docker/accumulo/entrypoint.sh
UTF-8
4,934
3.40625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # Copyright 2020-2022 Crown Copyright # # 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 ...
true
c7754237be22e069a651ad20f38794ef7c765b3f
Shell
admd/jdk9-jigsaw
/session-1-jigsaw-intro/04_Packaging/packing.sh
UTF-8
1,912
3.75
4
[ "CC0-1.0" ]
permissive
#!/bin/bash set -eu # Escape code esc=$(echo -en "\033") info="${esc}[0;33m" normal=$(echo -en "${esc}[m\017") runTree() { if [[ "$OSTYPE" == "cygwin" ]] || [[ "$OSTYPE" == "msys" ]] ; then cmd //c "tree /f /a $1" else tree -fl $1 fi } echo "" echo "${info} *** Creating folder 'mlib' for the package...
true
3e3087b5c9074de0845ef03889a981c08dc8fa2e
Shell
ryanmjacobs/camera-stats
/collect_data.sh
UTF-8
1,629
4.5625
5
[]
no_license
#!/bin/bash ################################################################################ # collect_data.sh # # Scapes an input directory for geolocation exif data. # # January 15, 2015 ################################################################################ output=exif_data.json # Echo to stderr stderr() ...
true
ef14673968249c96008dcdf3e82e6b77070397bd
Shell
michaelcolletti/tt-complete
/deployments/helm/create_monitoring.sh
UTF-8
1,073
3.515625
4
[]
no_license
#!/bin/bash # # # PROMINFO=Prometheus_Instructions.txt GRAFINFO=Grafana_Instructions.txt kill jobs %1 %2 >/dev/null 2>&1 printf "Checking for existing sockets \n" netstat -na|egrep '3000|9090' printf "Install Prometheus \n" helm install prometheus stable/prometheus |tee -a $PROMINFO printf "Sleeping at `date` \n\n...
true
337419cd9a1ca9152337d5b5139a38c6091b363d
Shell
Cheppers/php-code-analysis
/files/pathreplace.sh
UTF-8
72
2.640625
3
[]
no_license
#!/bin/bash FILE=$1 FROM=$2 TO=$3 sed -i -e "s=${FROM}=${TO}=g" $FILE
true
94dab22781ad685ffc85ae17128b17ae4f144153
Shell
hugme/nac
/nac-ui/cgi-bin/bin/commands_edit
UTF-8
4,934
3.671875
4
[ "MIT" ]
permissive
#!/bin/bash # set some variables . $(cat varset) use_admin_functions use_base_functions use_bust_functions use_date_functions use_check_functions use_form_functions #echo $QUERY_STRING nno=0 for X in ${QUERY_STRING//&/ }; do case $X in SCR=*) SCR=${X#*=};; DO=*) DO=${X#*=};; COMMAND_ID=*) COMMAND_ID=$...
true
01c89df119b803ea6b1332a9e6a438a40c302e72
Shell
Copser/torch
/bin/test
UTF-8
2,906
3.171875
3
[ "MIT" ]
permissive
#!/usr/bin/env bash TEST_ROOT="$(pwd)/test" ASSETS_ROOT="$(pwd)/assets" MIX_ENV=test mix compile --warnings-as-errors --force || { echo 'Please fix all compiler warnings.' exit 1 } MIX_ENV=test mix credo --strict --ignore design,consistency || { echo 'Elixir code failed Credo linting. See warnings above.'...
true
286a3aca2c52875569717179b2d6a99a39007ded
Shell
nynhex/Perinoid_Linux_Project
/functions/unincorporated/whonix/virtual_box/virtual_box.sh
UTF-8
1,039
3.25
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
#!/bin/bash Add_apt_virtualbox(){ _flave="$1" if [ $(grep -oE "vivid|utopic|trusty|raring|quantal|precise|lucid|jessie|wheezy|squeeze" <<<${_flave}) ]; then echo "deb http://download.virtualbox.org/virtualbox/debian ${_flave} contrib" | tee -a /etc/apt/sources.d/virtualbox.list else echo "deb http://download.vir...
true
fb16a2211211e55e2cf9aa8211b1dd5d8eb2c79d
Shell
Shijithinnate/TAMPM-StyleExpert
/bin/set_env.sh
UTF-8
319
3.59375
4
[]
no_license
#creates .env file specific to environment in root folder #and sets the environment variables in ElasticBeanstalk server through eb-cli VARS="$(< $1.env)" concat="" rm -f ../.env touch ../.env for VAR in $VARS; do concat+="$VAR " printf "$VAR\n" >> ../.env done if [ $1 != "local" ] then eb setenv $concat -e $1 fi
true
af5431ea6a413564edb7c18a28c41f8aa82f407e
Shell
kamilotrulit/ea-corp-0828
/Downloads/app/HitLeap-Viewer
UTF-8
1,723
3.796875
4
[]
no_license
#!/usr/bin/env bash exists() { command -v "$1" >/dev/null 2>&1 } exit_with_message() { MESSAGE=$1 TITLE='A problem has ocurred' CALL_ZENITY='zenity --error --text "$MESSAGE" --title "$TITLE"' CALL_KDIALOG='kdialog --error "$MESSAGE" --title "$TITLE"' CALL_XMESSAGE='xmessage "$MESSAGE" -nearmouse' #...
true
19e5de63a4104a9d452c9daa409700e3553a46ff
Shell
davidoram/ubuntu_with_tools
/curl_cors.sh
UTF-8
865
3.9375
4
[]
no_license
#!/bin/bash # # Retrieve CORS headers until we get a sucesfull response (empty) # # Usage is curl_cors.sh origin url retrycount wait # # eg: # # curl_cors.sh http://svc_authentication:8080 http://edge_splitter:8080/1/Log 10 2 # # Will retrieve the OPTIONS 10 times, with a pausesec of 2 sec in between each request unt...
true
f042ce8027ce0d3033d38c4d12d4f5d989fccddf
Shell
MayMeakes/hello-world
/python/monitor_db_connection.sh
UTF-8
1,604
2.875
3
[]
no_license
#script_name:monitor_slce.sh #date:20191120 #writer:Daniel echo "\n" echo "\n" echo "\n" echo "\n" echo "=============`date`=================" LOG=/tmp/slce_tmp.log sqlplusconnect(){ #sqlplus -s sys/changed@slce029_monitor as sysdba >$LOG 2>&1<<EOF sqlplus -s sys/changed@${SLCE_DB}_monitor as sysdba<<EOF set h...
true
477dfc7aaa173c37af06e8b202df9f548842e98c
Shell
osjacky430/imu_driver
/.travis-install-arm-gcc
UTF-8
743
3.71875
4
[]
no_license
#!/usr/bin/env bash set -e # exit immediately if a command exits with a non-zero status set -x # print commands and their arguments as they are executed pushd $HOME # bash -x: True if file exists and is executable. if [ ! -x gcc-arm-none-eabi-8-2019-q3-update/bin/arm-none-eabi-gcc ]; then wget https://develope...
true
5ffca318489d2e83f6973be98cbd2f5c987896d0
Shell
Escapist70/chromiumos
/src/platform/cryptohome/lib/cryptohome
UTF-8
12,764
3.6875
4
[ "BSD-3-Clause" ]
permissive
#!/bin/bash # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # A collection of functions which implement the bare # minimum of functionality for creating, mounting, and # unmounting sparse image fil...
true
efea44289be08b655a84d08b4ba92bc1546d7ea1
Shell
supernova106/chef
/learn-chef/cookbooks/jenkins_slave/test/integration/default/bats/chrome_installed.bats
UTF-8
112
2.515625
3
[]
no_license
#!/usr/bin/env bats @test "chrome binary is found in PATH" { run which google-chrome [ "$status" -eq 0 ] }
true
80a05a0bef5100f3908b0e50a5767a2bb2c73c3c
Shell
BlancoSebastianEzequiel/LabUnix
/compile.sh
UTF-8
387
3.734375
4
[]
no_license
#!/bin/bash ROOT=./ DIR=functions/ string1='functions' string2='functions' ARCHC=$DIR/functions.c ARCHH=$DIR/functions.h for case in $(ls $DIR); do filename=$(basename ${case%%.*}) if [[ $string1 = $filename ]]; then continue fi printf "Executing $filename..."; gcc -std=c99 -Wall -Werror $...
true
5f2ce9862b017662c0076daa4f0e809bc17acb65
Shell
thortineoc/sms-backend
/homework-service/scripts/run.sh
UTF-8
671
3.8125
4
[]
no_license
#!/bin/bash PID="" running() { PID=$(ps aux | grep "java.*homework-service" | grep -v "grep" | awk '{print $2}') [[ $PID == "" ]] } running case $1 in start) echo "Starting homework-service at port 24026" setsid java -jar ./homework-service.jar \ -Xmx 256m \ > /dev/null 2>&1 < /dev/null & ;; stop) ...
true
3c7a8056de202f924cdb6f9519352cde957ffa68
Shell
PEDASI/PEDASI
/scripts/goaccess.sh
UTF-8
512
3.234375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash if [[ "$#" -ne 1 ]]; then echo "Requires output file name" exit 1 fi if [[ -f /var/log/nginx/access.log.2.gz ]]; then zcat /var/log/nginx/access.log.*.gz | goaccess -q --log-format=COMBINED -o $1 /var/log/nginx/access.log /var/log/nginx/access.log.1 - elif [[ -f /var/log/nginx/access.l...
true
02b7cca6b4cf418e4a1068df1e96015730c0d215
Shell
rashack/skel
/bin/firefox-latest-setup.sh
UTF-8
476
3.75
4
[]
no_license
#!/bin/bash CURRENT=$(readlink /usr/local/firefox) LATEST=$(ls -1tr ~/Downloads/firefox-*.tar* | tail -1) LATEST_VER=$(basename $LATEST | sed 's/.*\(firefox-[0-9\.]\+\)\.tar\..*/\1/') echo "CURRENT=$CURRENT" echo "LATEST=$LATEST" echo "LATEST_VER=$LATEST_VER" cd /usr/local if [ -d $LATEST_VER ] ; then echo "The ...
true
c603ea9a8b9575a2ee90a5ed123fbb4357c4f9cb
Shell
aur-archive/remakepkg
/PKGBUILD
UTF-8
388
2.65625
3
[]
no_license
# Maintainer: Deci Aria <deciare@isisview.org> pkgname=remakepkg pkgver=1.0.1 pkgrel=1 pkgdesc="Converts an alterady-installed package back into an installable archive" arch=('any') license=('GPL') url="https://github.com/deciare/remakepkg" depends=('bash') source=('remakepkg') md5sums=('e6bad77ccb9939eb6590455ee6c307...
true
6305741cd7ef6a2edd0010839ee7830e5f5418eb
Shell
DerSalvador/xebialabs-docker-files
/xldeploy/ext/scripts/unzipWindowsASPWeb-rollback.bat.ftl
UTF-8
560
2.71875
3
[]
no_license
#!/bin/bash <#list deployedApplication.environment.dictionaries as dict> <#if dict.entries['IIS_HOME']??> <#else> </#if> </#list> <#list deployedApplication.deployeds as deployed> IIS_TARGET="${deployed.targetPath}" echo "deployed targetpath=" ${deployed.targetPath} ${deployed.targetPa...
true
8b53580f93ecdecc7c3926b3bc06cc2d0c28250b
Shell
gbsf/archlinux-packages
/libdrm/trunk/PKGBUILD
UTF-8
496
2.578125
3
[]
no_license
# $Id$ # Maintainer: Jan de Groot <jgc@archlinux.org> pkgname=libdrm pkgver=2.3.0 pkgrel=1 pkgdesc="Userspace interface to kernel DRM services" arch=(i686 x86_64) depends=('glibc') options=('nolibtool') url="http://dri.freedesktop.org/" source=(http://dri.freedesktop.org/${pkgname}/${pkgname}-${pkgver}.tar.bz2) md5sum...
true
087aa952392cb4651587c6ee2af3f4c163807f8f
Shell
mypaceshun/practice
/bin/smart-install.sh
UTF-8
829
3.984375
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # -*- coding: utf-8 -*- # vi: set expandtab shiftwidth=4 : # auther: shun kawai #=============================== # smart-install.sh #=============================== # err masage function usage_exit() { echo 'Usage: smart-install packa-gename' exit 1 } function already_installed() { ec...
true
945707be8ead611a93dfa2d68f38b3ee1096ce91
Shell
wangjie07070910/sH_hybridization
/scripts/gene_duplication_tree.sh
UTF-8
1,394
2.828125
3
[]
no_license
#!/bin/bash # # SNP calling in S. haemotobium hybridzone(s). # NPlatt # Neal.platt@gmail.com # gene_duplication_tree.sh - build a tree of m8 peptidases to identify # gene duplication nodes # Uses a conda to manage the enviroment #Set up the environment source /master/nplatt/schisto_hybridization/scripts/set_env.sh...
true
f734debc9f195982cb90a67a1cc53a5aa8f5d30e
Shell
AmitKumarDas/oep-e2e
/scripts/director-health-checks/od-elasticsearch-check.sh
UTF-8
2,499
3.359375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash ## Run common health check # Specify test name test_name=od-elasticsearch-health-check echo $test_name sed -e 's/generateName: app-check/generateName: od-elasticsearch-health-check/g' \ -e 's/app: app-litmus/app: od-elasticsearch-health-check-litmus/g' \ -e 's/value: test-name/value: od-elasticsearch-hea...
true
357ca7f7bc8b853b0fe30d619f5bb23ef66798ff
Shell
smartarch/afcens
/simulator/run-predictor-test.sh
UTF-8
254
2.71875
3
[]
no_license
#/bin/bash predId=$1 sbt "runMain afcens.TraceRecordWithPredictor $predId 0 1000" pushd traces/v2/$predId rm -f eat-ticks.csv for d in [0-9]*; do for f in $d/*.jsonl.gz; do zcat $f | tail -n 1 | jq .eatTicks >> eat-ticks.csv done done popd
true
c32a80f1e7d90dcf919c4716787aeac36ad96d26
Shell
somesh-ballia/mcms
/MCMS/Main/Scripts/CreateProcess.sh
UTF-8
475
2.953125
3
[]
no_license
#!/bin/sh targetdir=Processes/$1 cp -R Processes/Demo $targetdir mv $targetdir/DemoLib $targetdir/$1Lib rm -f $targetdir/*/*.o rm -f $targetdir/*/*.depend rm -f $targetdir/*/*.*keep* rm -f $targetdir/*/*.*contrib* rm -f $targetdir/*/*.a find $targetdir -name '*Demo*' -exec \Scripts/RenameDemo.sh {} $1 \; find $target...
true
d52de2dfa268cb2afdfb07a205da9507cdb0db23
Shell
moom0o/TCPTunnel
/create_client.sh
UTF-8
1,148
3.0625
3
[]
no_license
new_client () { # Generates the custom client.ovpn { cat /etc/openvpn/server/client-common.txt #echo "<ca>" cat /etc/openvpn/server/easy-rsa/pki/ca.crt #echo "</ca>" #echo "<cert>" sed -ne '/BEGIN CERTIFICATE/,$ p' /etc/openvpn/server/easy-rsa/pki/issued/"$client".crt #echo "</cert>" #echo "<key>" cat /etc/o...
true
7a9e151e1a659639f6986310e7d437c3424bb4b7
Shell
dataseries/Lintel
/src/lintel-latex-rebuild.in
UTF-8
10,766
3.9375
4
[ "BSD-3-Clause", "BSL-1.0", "BSD-2-Clause" ]
permissive
#!/bin/sh # # (c) Copyright 2008, Hewlett-Packard Development Company, LP # # See the file named COPYING for license details # # script for rebuilding latex files usage() { # Full manpage is at the bottom [ "$1" != "" ] && echo "$@" echo "Usage: $0" echo " [--tex <path>] [--bib <path>] [--bst <path>] [--...
true
58e702ad20e3698c3663c880b033a532e78204c8
Shell
dlhuang/variationanalysis
/bin/rebuild-segment-datasets.sh
UTF-8
2,484
3.140625
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -x # (cd ~/goby3; git stash; git pull; mvn install) # (cd ~/variationanalysis; git stash; git pull; ./build-all.sh -DskipTests=true) DATE=`date +%Y-%m-%d` if [ -e configure.sh ]; then echo "Loading configure.sh" source configure.sh fi if [ -z "${PREFIX+set}" ]; then PREFIX="NA12878-GIAB"...
true
548769effa263aa0cda24cef44436e58f2f55ac5
Shell
mongodb/mongo-java-driver-reactivestreams
/.evergreen/run-tests.sh
UTF-8
843
3.546875
4
[ "Apache-2.0", "LicenseRef-scancode-public-domain" ]
permissive
#!/bin/bash set -o xtrace # Write all commands first to stderr set -o errexit # Exit the script with error if any of the commands fail # Supported/used environment variables: # MONGODB_URI Set the suggested connection MONGODB_URI (including credentials and topology info) # JDK ...
true
a49f123376d677a1b5b6376d0504eacd01e8f229
Shell
Samsung/TAU
/tests/tau2device.sh
UTF-8
2,236
4
4
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-flora-1.1" ]
permissive
#!/bin/bash # This script builds framework rpm using gbs and installs them on target device. # How to use: # run ./tau2device.sh # or # run ./tau2device.sh <device_serial_number> # # IMPORTANT: before use please provide path to rpm's in RPM_SRC variable # # If there are some problems with RPM installation, please...
true
baf4a0dab5403b20bd372dbe71db350de6d1f9d2
Shell
SaraMWillis/HPC_Examples
/FunBashrcFunctions/check_libraries.sh
UTF-8
416
4.0625
4
[]
no_license
#### Checks for available system libraries. Input: full or partial library names function library { message="Searching for system libraries matching keyword: $1" echo; echo $message num=${#message} v=$(printf "%-${num}s" "$message") echo "${v// /$str}" ; echo if [[ $(ldconfig -p | grep $1) ]]; ...
true
a2980409d9cf97fcf00d236b722fcf69ea33d4ab
Shell
myklhenn/rsync-backup
/common/backup-client-script.sh
UTF-8
762
3.546875
4
[ "MIT" ]
permissive
#!/bin/sh # TODO: find a way to "respond" if backups is paused or cancelled by user refresh_menu() { # TODO: temporary fix to allow running on Windows 10 (WSL) if [ "$(uname)" = "Darwin" ]; then open -g "bitbar://refreshPlugin?name=backup-menu.*?.sh" fi } cleanup() { if [ "$(uname)" = "Darwin"...
true
e8d0465377a923ff42eab52b3594564dac2ace0f
Shell
mencaribug/oroshi
/config/zsh/last.zsh
UTF-8
1,903
3.40625
3
[]
no_license
# Commands in this file will be executed very last in the zsh init process. # NVM {{{ local nvmScript=~/.nvm/nvm.sh if [[ -r $nvmScript ]]; then source $nvmScript fi # }}} # Direnv {{{ # Loads environment variables from .envrc files if [ $commands[direnv] ]; then eval "$(direnv hook zsh)" # Prevent direnv from d...
true
b4157655302324943ade2f5b77e8773dec13cd8d
Shell
pytorch/text
/examples/libtorchtext/build.sh
UTF-8
434
2.625
3
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash set -eux this_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" build_dir="${this_dir}/build" mkdir -p "${build_dir}" cd "${build_dir}" git submodule update cmake \ -DCMAKE_PREFIX_PATH="$(python -c 'import torch;print(torch.utils.cmake_prefix_path)')" \ -DRE2_BU...
true
0999fcaeb8da946b691e958b896706d027e0fff0
Shell
ethanweed/Studium_Generale
/build-info.sh
UTF-8
359
2.703125
3
[]
no_license
#!/bin/bash # build html documents # convert course information docs to html cd /Users/ethan/Documents/GitHub/Studium_Generale/StudiumGenerale2022/CourseInfo find ./ -iname "*.md" -type f -exec sh -c 'pandoc "${0}" -o "./html/$(basename ${0%.md}.html)"' {} \; # Push to github git add -A git commit -m "auto-update...
true
44b31967e041da2277cd175dcccf4a7b838303ad
Shell
ajitsing/vim-setup
/setup_vim.sh
UTF-8
631
3.078125
3
[ "MIT" ]
permissive
vim_config=".vimrc" if [ -e ~/${vim_config} ]; then echo "moving your old vim settings to ~/.vimrc_old" mv ~/.vimrc ~/.vimrc_old fi vim_folder=".vim" if [ -d ~/"${vim_folder}" ]; then echo "moving old vim setup to ~/.vim_old" mv ~/.vim ~/.vim_old fi echo "creating ~/.vim folder..." mkdir ~/.vim cp -R * ~/.vim/. ...
true
e3907ed8f1f3121339a46a092b72058fc509f4a6
Shell
codyhartsook/golang-kv-store
/deploy.sh
UTF-8
483
2.71875
3
[]
no_license
name=$1 ip=$2 port=$3 view=$4 addr="${ip}:13800" docker stop "${name}" docker rm "${name}" docker build -t kv-store:5.0 . docker run --network=kv_subnet \ --name="${name}" \ --ip="${ip}" -p "${port}":13800/udp \ -e ADDRESS=...
true
ac520898f498ff99b23481b0644811d69e339746
Shell
dmh/generator-pxa-frontend
/app/templates/_win-start
UTF-8
351
2.90625
3
[ "MIT" ]
permissive
#!/bin/bash DIRECTORY="<%= (dirr) %>" FDIRECTORY="<%= (dirr) %>/typo3conf/ext" GIT="<%= (gitt) %>" if [ ! -d "$DIRECTORY" ]; then git clone $GIT fi trap "echo ." SIGINT SIGTERM if [ ! -d "$FDIRECTORY" ]; then grunt shared_start grunt shared_end grunt commit else grunt mkdir:fonDir grunt start ...
true
86bbcb74ed30b83e988c36bf3889b385cc59aab2
Shell
rtucek/dotfiles
/dot_config/i3/executable_sound.sh
UTF-8
1,164
3.421875
3
[ "MIT" ]
permissive
#!/bin/bash # Active sink SINK=$(pacmd list-sinks | perl -n -e'/^\s*\*\s+index:\s+([0-9]+)$/ && print $1' | head -n 1) pactl "$1" $SINK "$2" > /dev/null VOLUME=$(pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(($SINK + 1)) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,') MUTE=$(pactl list sinks | grep '...
true
494b78ea6b9ea2c459ff4f4f4fde9da2dfb024b3
Shell
Mr-Rhino/Example-for-the-masses
/scripts/bash/countdown.ksh
UTF-8
615
4.1875
4
[]
no_license
#!/bin/ksh # TEST COUNTING DOWN typeset -i start=$1 typeset -i stop=$2 # if [[ $# -ne 2 ]] then printf "\nYou didn't give me two arguments. This script takes two numbers and counts down from one to the other.\n\n" exit elif [[ ${start} -lt ${stop} ]] then printf "\n${start} is less than ${stop}. This ...
true
5c0c2c42b94159c6ffd737a6879b3f4e8077bafc
Shell
openEXO/cloud-kepler
/hadoop-mrjob/run_example_mrjob.sh
UTF-8
832
3.328125
3
[]
no_license
echo "Load the Hadoop environment" source setenv.sourceme input_filename=README.md echo "Making a directory for our input data" hadoop dfs -mkdir mrjob-input echo "Copying input text to HDFS" hadoop dfs -put $input_filename mrjob-input/$input_filename echo "Deleting old output directories" hadoop dfs -rmr mrjob-word...
true
3b8d0306f0de75ab8e5af58130d71d816703cefd
Shell
SoarinFerret/dokuwiki-docker
/gitbacked_setup.sh
UTF-8
1,268
3.71875
4
[ "MIT" ]
permissive
#!/bin/bash # Load bitnami libraries . /opt/bitnami/scripts/libbitnami.sh . /opt/bitnami/scripts/liblog.sh . /opt/bitnami/scripts/libwebserver.sh if [ -z "$SSH_RSA_KEY" -o -z "$GIT_REPO" -o -z "$GIT_FINGERPRINT" ]; then info "DOKU_GITBACKED: Variables SSH_RSA_KEY, GIT_REPO, GIT_FINGERPRINT must be set for gitbacked...
true
7cbe59ea04e3553c398d5393941bc27995b59f03
Shell
summonersRift/primogeni
/netscript/bin/monitor_scripts/monitor.sh
UTF-8
176
2.59375
3
[]
no_license
#!/bin/bash RUN=0 while true do perl /primex/scripts/shutdown.pl java -cp /primex/jprime.jar monitor.core.Monitor > /primex/run_${RUN}.out RUN=`expr 1 + $RUN` sleep 1 done
true
220bcc3a2518bbe3cabd140ed0cc3192d9630e16
Shell
abehiroshi/ras-commu
/ak-020/config-network.sh
UTF-8
199
2.5625
3
[]
no_license
#!/bin/sh if ! sudo grep soracom_ak-020 /etc/network/interfaces; then cat << 'EOS' | sudo tee -a /etc/network/interfaces allow-hotplug wwan0 iface wwan0 inet ppp provider soracom_ak-020 EOS fi
true
fb66d1bff94012bb857d21be10cd196c43e61c32
Shell
tomtjes/DAW-converters
/hindenburg_to_samplitude-edl.sh
UTF-8
8,818
3.453125
3
[]
no_license
#!/bin/bash # # hindenburg_to_samplitude-edl.sh # converts a Hindenburg Session file to a Samplitude EDL file # # Tools able to import Samplitude EDL include Reaper, Samplitude # # This script only places items on tracks. No volume adjustments, plugin settings, markers, et cetera will be converted. # Both tracks and cl...
true
9058cf2872f79c27fb17d095ea542ccaa1e0c06d
Shell
alexandergraening/EE180D_CapstoneProject
/start_gesture_recognition_files/motion_data.sh
UTF-8
548
3.390625
3
[]
no_license
#/bin/sh # # Usage sensor_sample.sh -t <TIME IN SECONDS> -f <OUTPUT_FILE_NAME> # # Enter Device MAC Address below # # while getopts t:f: option do case "${option}" in t) TIME=${OPTARG};; f) FILE=${OPTARG};; esac done if [ "$TIME" -lt "1" ] then echo "Error time less than 1 seconds" exit...
true
7a444d63a727ec11fc83d95760047701e085c3cb
Shell
webskate101/django-polymer-addressbook
/scripts/common.sh
UTF-8
298
3.21875
3
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
VIRTUALENV_DIR='venv' # Force shell to fail on any errors. set -e function require() { type $1 >/dev/null 2>&1 || { echo "$1 required but not found."; exit 1; } } require 'pip' require 'virtualenv' require 'npm' if [ ! -d "$VIRTUALENV_DIR" ]; then virtualenv venv fi . ./venv/bin/activate
true
f0191b4fe10e3ecc9a0f2234de2dda3bf97018b6
Shell
kzhangair/steamapi
/MultiNodeProcessTh02.sh
UTF-8
276
2.671875
3
[]
no_license
#!/bin/bash for((i=5;i<8;i++)) do { awk -F '\v' 'BEGIN{min = 200000;max = -1;RS = "\a"} {if($1<min){min = $1}if($1>max){max = $1}} END{printf("%d %d\n", min, max)}' cleanedData0${i}.csv > result_0${i} }& done wait cat result_05 result_06 result_07 > MultiNodeResult_Thumm02
true
3bb1ffcb1be7f23a9e63f4f1e1c36fe555ca7549
Shell
dmurph/bash_profile
/bash_profile
UTF-8
1,037
2.640625
3
[]
no_license
export PATH=~/bin:/usr/local/bin:$PATH export PATH=/usr/local/sbin:$PATH source ~/bash_profile/functions if [ -f /usr/local/etc/bash_completion.d/git-prompt.sh ]; then source /usr/local/etc/bash_completion.d/git-prompt.sh fi #DIFF_HIGHLIGHT_LOCATION='' #type brew >/dev/null 2>&1 && DIFF_HIGHLIGHT_LOCATION="$(brew -...
true