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
74d626f08bcb47a9d1ad02d67e29b0c1e5c5f05b
Shell
PennSIVE/hyperfine
/code/bsub_mimosa.sh
UTF-8
192
2.625
3
[]
no_license
#!/bin/bash cd $(dirname $0)/.. export DSLOCKFILE=$PWD/.git/datalad_lock touch $DSLOCKFILE for sub in $(ls nifti | grep -Eo "P[0-9]+"); do bsub -o logs -e logs ./code/mimosa.sh $sub done
true
6cc965b6e12540a877fbff8922d32097b4835416
Shell
bopopescu/BIDMach
/scripts/get_mnt2014.sh
UTF-8
2,041
3.765625
4
[ "BSD-3-Clause" ]
permissive
#!/bin/bash set +e BIDMACH_SCRIPTS="${BASH_SOURCE[0]}" if [ ! `uname` = "Darwin" ]; then BIDMACH_SCRIPTS=`readlink -f "${BIDMACH_SCRIPTS}"` export WGET='wget -c --no-check-certificate' else while [ -L "${BIDMACH_SCRIPTS}" ]; do BIDMACH_SCRIPTS=`readlink "${BIDMACH_SCRIPTS}"` done export WGET='curl -C - -...
true
188198918a80a893d5163c0bca65c07b7403373e
Shell
ghuntley/monorepo
/third_party/cgit/tests/t0110-rawdiff.sh
UTF-8
1,154
3.0625
3
[ "MIT", "GPL-2.0-only" ]
permissive
#!/bin/sh test_description='Check content on rawdiff page' . ./setup.sh test_expect_success 'generate foo/rawdiff' ' cgit_query "url=foo/rawdiff" >tmp ' test_expect_success 'compare with output of git-diff(1)' ' git --git-dir="$PWD/repos/foo/.git" diff HEAD^.. >tmp2 && sed "1,4d" tmp >tmp_ && cmp tmp_ tmp2 ' te...
true
65d0ec1bcb3e326d0bfa69793d9f18b5303c574e
Shell
xxionhong/network_slice
/experiment_4/script/step7.sh
UTF-8
544
2.75
3
[]
no_license
#!bin/bash echo "==========replace config.yaml==========" cp script/config.yaml /etc/tacker/ chmod 744 /etc/tacker/config.yaml ip="$(hostname -i)" echo "$ip" sleep 5 echo "==========vim admin-openrc.sh==========" vim script/admin-openrc.sh source script/admin-openrc.sh echo "==========vim config.yaml==========" v...
true
6c64fdee543ba4927ecfac0a26eb2e5f8a57014a
Shell
tfogal/tfbuild
/freeimage.bld
UTF-8
869
2.953125
3
[]
no_license
#!/bin/sh source ~/build/bf.sh URL="http://downloads.sourceforge.net/freeimage/FreeImage3110.zip" TARBALL="FreeImage3110.zip" DIR="FreeImage" LOCAL_DIR=`pwd` setup src_download src_extract src_cd setup_env cp "${LOCAL_DIR}/patches/freeimage-make.patch" ./ || exit 1 patch -p0 < freeimage-make...
true
3226098d9cb3fdd422ba143eb842ba867fb780e8
Shell
ekohl/instance-debootstrap-hooks
/grub
UTF-8
2,495
3.796875
4
[]
no_license
#!/bin/bash # # This is an example script that install and configure grub after installation. # To use it put it in your CUSTOMIZE_DIR, make it executable, and edit EXTRAPKGS # of your $sysconfdir/default/ganeti-instance-debootstrap. # # Xen, for etch/lenny i386: # EXTRA_PKGS="linux-image-xen-686,libc6-xen" # Xen, fo...
true
cdea9afa3e977ba7d4ca941eec8091905e6bb705
Shell
antonpolishko/Img2folder
/img2folder.sh
UTF-8
1,255
3.703125
4
[]
no_license
#!/bin/sh file=$1 path=$2 Year=$(exiftool -"DateTimeOriginal" $file | cut -d":" -f2 | tr -d ' ') Month=$(exiftool -"DateTimeOriginal" $file | cut -d":" -f3) Day=$(exiftool -"DateTimeOriginal" $file | cut -d":" -f4 | cut -d" " -f1) if [ ! -d "${path}" ]; then echo "Create ${path}" mkdir ${path} fi if [ ! -d ...
true
5e08f4c14f1de5d55bfa0dd3f81524fd685cfaf4
Shell
YuheiTakagawa/CR_for_FreeBSD
/tmp/get.sh
UTF-8
526
2.890625
3
[]
no_license
#!/bin/sh # get process identify of $1 program running export pid=`ps ax |\ grep $1 |\ grep -v -e grep -e $0 -e restore -e migrate |\ sed -e 's/ */ /g'|\ sed 's/^ //'|\ cut -d' ' -f1` echo target is $pid data=`cat /proc/$pid/maps |\ sed -n 2P |\ cut -d' ' -f1|\ cut -d'-' -f1` echo data ...
true
a5081b80fbf609505c80b9f396d5d6c607531a80
Shell
kysucix/dotfiles
/cdlast.sh
UTF-8
81
2.96875
3
[]
no_license
#! function cdlast() { d=`ls -rc --format=single-column -d */|tail -n 1` cd $d }
true
ab883801e3413510c0f04e86b275544b1ed598de
Shell
eBay/ebashlib
/bashlib/dryrun/dryrun.sh
UTF-8
3,096
4.25
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # Copyright 2018 eBay Inc. # Developer: Daniel Stein # # Use of this source code is governed by an MIT-style license # that can be found in the LICENSE file or at https://opensource.org/licenses/MIT. # functionality to either execute or echo command in dryrun # header guardian [[ -z ${BASH_DRYRU...
true
b9d9c9709624c7846d419d11aa8fcdc6555d4474
Shell
chpublichp/masspred
/predictors/source/install/disopred-2.43.sh
UTF-8
379
2.625
3
[ "MIT" ]
permissive
#!/bin/bash BASE=$(dirname $(dirname $(dirname $(readlink -f ${0})))) cd ${BASE} rm -rf disopred-2.43 tar xzvvf ${BASE}/source/data/disopred-2.43/disopred2.43.tar.gz mv disopred disopred-2.43 cat ${BASE}/source/patch/disopred-2.43.patch | patch -p0 cd disopred-2.43 tar xzvvf ${BASE}/source/data/disopred-2.43/blast-2....
true
e4abad2d03e411006f97c686f842d36800c90358
Shell
shawfdong/openhpc_on_clouds
/aws/slurm/slurm-compute-userdata.sh
UTF-8
648
2.71875
3
[ "MIT" ]
permissive
#!/bin/bash -xe exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1 sed -i "s|SELINUX=enforcing|SELINUX=permissive|g" /etc/selinux/config setenforce 0 sleep 180 echo "192.168.0.100:/home /home nfs nfsvers=3,nodev,nosuid 0 0" >> /etc/fstab echo "192.168.0.100:/opt/ohpc/pub /opt/ohpc/pub nfs n...
true
b9f651e44db98b1cfb97b7c07eccb38e2d863bc1
Shell
Nehasingh1300/Advanced-Linux
/ArgumentThroughCommandLine.sh
UTF-8
195
2.71875
3
[]
no_license
#!/bin/bash echo "My first name is $1" //prints first argument echo "My second name is $2" // prints 2nd argument echo "total number of argument $#" // print number of arguments
true
c04b1ea6f550c8a510c62294559f3d47b07836c1
Shell
lescamelo/Atividade8
/quest3.sh
UTF-8
404
3.6875
4
[]
no_license
#!/bin/bash arquivo=$1 contador=3 if [ -f ${arquivo} ]; then x=$(wc -l ${arquivo} | cut -c 1-2) cat ${arquivo} | head -${contador} while true; do read -p "Pressione o ENTER: " testando if [ -z ${testando} ]; then contador=$((${contador} + 3)) cat ${arquivo} | head -${contador} if [ ${contador} -ge $...
true
b2cda384517e8600b70064f614b5928c9fa8bde0
Shell
CesarionPshebytski/linux-setup
/install.sh
UTF-8
6,241
2.84375
3
[ "MIT", "GPL-1.0-or-later" ]
permissive
#!/bin/bash # get the path to this script MY_PATH=`dirname "$0"` MY_PATH=`( cd "$MY_PATH" && pwd )` # define paths APPCONFIG_PATH=$MY_PATH/appconfig cd $MY_PATH git pull git submodule update --init --recursive # install packages sudo apt-get -y update subinstall_params="" unattended=0 for param in "$@" do echo $...
true
6c2ea5bea194b537ecd0201c125e66f48b51ea75
Shell
juddy/geer
/make_sql_stub.sh
UTF-8
2,838
2.71875
3
[]
no_license
#!/bin/bash #set -x ENDIP=254 BEGIP=1 IP=$BEGIP SLOT=$IP randtag(){ od /dev/urandom -w6 -tx1 -An|sed -e 's/ //' -e 's/ //g'|head -n 1 } randmac(){ od /dev/urandom -w6 -tx1 -An|sed -e 's/ //' -e 's/ /:/g'|head -n 1 #openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//' } #('Datacenter', 'DC_Hostname', 'Clql_Hostname', ...
true
3894b80dd845313b8be59e7f28b905ebcd9b1da5
Shell
apexevangelists/db-csv-dump
/run-examples.sh
UTF-8
2,147
3.296875
3
[]
no_license
#!/bin/bash # Example 1 - Basic Usage clear echo -n "(1 / 8) - Showing usage with ./db-csv-dump -h" echo echo echo "Running: ./db-csv-dump -h" echo ./db-csv-dump -h echo echo read -p "Press [Enter] key to continue..." # Example 2 - Use defaults from config.yml clear echo -n "(2 / 8) - Using defaults from config...
true
824cf8bcf94c82dc04f47144f0fc0df565141fc8
Shell
jbkopecky/dotfiles
/linux/.scripts/sys
UTF-8
2,813
3.3125
3
[]
no_license
#!/bin/sh #█▓▒░ vars #FULL=▓ FULL=━ #FULL=┅ #EMPTY=░ #EMPTY=━ #EMPTY=─ EMPTY=┄ BLOCK=██ name=$USER host=`hostname` battery=/sys/class/power_supply/BAT1 distro="arch linux" kernel=`uname -r` #█▓▒░ ANSI initializeANSI() { esc="" blackf="${esc}[30m"; blackb="${esc}[1;30m"; redf="${esc}[31m"; redb="${esc}[1...
true
76e2f03f06984165df0c2c825457f732806bf445
Shell
rmros/openstack-multinode
/registry.sh
UTF-8
3,366
3.390625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # SPDX-license-identifier: Apache-2.0 ############################################################################## # Copyright (c) 2018 # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distri...
true
b11e1c0a21c2c4a2a0c7fa338df7077ec5a975dd
Shell
SaravanaStorageNetwork/docker-gluster-swift-demo
/kubernetes/gluster_s3_demo.sh
UTF-8
1,725
3.015625
3
[]
no_license
#!/bin/bash . ./util.sh #Verify GET/PUT desc "Get IP address of corresponding pod" run "ssh centos-master kubectl describe pod gluster-object | grep "IP:" | sed -E 's/IP:[[:space:]]+//'" ip_address=$(ssh centos-master kubectl describe pod gluster-object | grep "IP:" | sed -E 's/IP:[[:space:]]+//') # add s3curl.p...
true
160fd7ae2700680fdf93b0ecc83ad3a16f46f75b
Shell
Adaptavist/avst-app
/share/avst-app/lib/product/sonarqube/modify.d/52modify_config
UTF-8
1,961
3.078125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # Copyright 2015 Adaptavist.com Ltd. # # 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 agr...
true
d9c04af72f3746f3a4d6f6848e3d4c5d5943f575
Shell
Dwosky/gentoo-packer
/scripts/03_stage3.sh
UTF-8
277
2.953125
3
[]
no_license
#!/bin/bash echo "==> Downloading the Stage3 tarball to ${BASE_DIR}" cd ${BASE_DIR} wget -q ${MIRROR_URL}/${TARBALL} echo "==> Unpacking the tarball ${TARBALL}" tar xpf ${TARBALL} --xattrs-include='*.*' --numeric-owner echo "==> Removing the tarball ${TARBALL}" rm ${TARBALL}
true
3295fd77dada95b5da6d762653429f888686bd5a
Shell
arnlig/scc
/tests/ar/execute/0022-list.sh
UTF-8
944
3.234375
3
[ "ISC" ]
permissive
#!/bin/sh set -e tmp1=`mktemp` tmp2=`mktemp` trap "rm -f file.a $tmp1 $tmp2; exit" 0 2 3 ############################################################################ #list 1st member cp master.a file.a ar -t file.a file1 > $tmp1 cat <<! > $tmp2 file1 ! cmp $tmp1 $tmp2 ##########################################...
true
13ac7dc7e3e10b9c8d0267e06b0a65717958d5f1
Shell
XieGuochao/csapp
/labs/proxylab/driver.sh
UTF-8
10,648
3.78125
4
[ "MIT" ]
permissive
#!/bin/bash # # driver.sh - This is a simple autograder for the Proxy Lab. It does # basic sanity checks that determine whether or not the code # behaves like a concurrent caching proxy. # # David O'Hallaron, Carnegie Mellon University # updated: 2/8/2016 # # usage: ./driver.sh # # Point values ...
true
0209f44f5318b969e4ea3b4b6e38d8faf5c1007c
Shell
earthbound19/gibGen-gibberish
/gibberSound/recsayLocalSRC.sh
UTF-8
2,383
3.796875
4
[ "LicenseRef-scancode-public-domain", "Unlicense" ]
permissive
# DESCRIPTION # Reminds you every 50 minutes to get up and stretch, by way of three random words pronounced by randomly chosen voices (Mac only). Records the statements to ~.m4a files and opens them in default sound player. If you pass the script a string parameter (see USAGE), it terminates immediately (without loopin...
true
32cc34de23f41069f0d71db39477f6bf881f6d4d
Shell
youjiahe/note
/5.SHELL/sh4.sh
UTF-8
6,136
3.109375
3
[]
no_license
############################################## 中断 continue --跳过本次循环,继续下一次循环 break --直接结束循环 return 执行完后返回一个值 ############################################# 字符串截取 统计字符串长度 ${#变量} #统计变量字符长度 [root@pc207 shell_100]# phone=13676240551 [root@pc207 shell_100]# echo ${#phone} 11 ...
true
e5b0049ac4b9c7d8dfd500195a6cdcbd070448d6
Shell
lutak-srce/cuda
/files/nvidia
UTF-8
1,946
4.21875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # # Startup/shutdown script for nVidia CUDA # # chkconfig: 345 80 20 # description: Startup/shutdown script for nVidia CUDA # Source function library. . /etc/init.d/functions DRIVER=nvidia RETVAL=0 # Create /dev nodes for nvidia devices function createnodes() { # Count the number of NVIDIA controllers...
true
972e0e81b6df061137f9013f1f776e4410356c65
Shell
google/data-transfer-project
/distributions/demo-google-deployment/bin/build_and_deploy_static_content.sh
UTF-8
3,805
3.515625
4
[ "Apache-2.0" ]
permissive
# # Copyright 2018 Google Inc. # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
true
1515d6ca7f72722a18348a8038184e31d998097c
Shell
annereinarz/ExaHyPE-Workshop-Engine
/Submodules/updateSubmodules.sh
UTF-8
9,798
3.203125
3
[ "BSD-3-Clause", "LicenseRef-scancode-free-unknown" ]
permissive
#!/bin/bash # # Peano is nowadays managed as a git submodule. That makes it easy # to keep in sync. However, you also need access to the Peano # repository (you find the URL in the file ../.gitmodules). # # If you don't have (read) access to the repository, you can use # the script ./fetchSnapshot.sh to download a pub...
true
e143713a84d3f7435a5824f798e21340e8862f39
Shell
jfredrickson/git-shell-commands
/create
UTF-8
326
4.21875
4
[]
no_license
#!/bin/sh if [ -z "$1" ] ; then echo "Repository name is required." exit 1 fi if (echo $1 | egrep -q '\.git$') ; then NAME=$1 else NAME=$1.git fi if [ -e "$NAME" ] ; then echo "A repository named '$NAME' already exists." exit 1 fi mkdir $NAME git init --bare $NAME echo "Repository URL: git@$(hostname):$...
true
8d88526db4a67b5964dcfc75ec7929b36bda6e20
Shell
integration-project-group-a/Server-Tools
/templatesetup.sh
UTF-8
1,046
3.171875
3
[]
no_license
# wget -q https://raw.githubusercontent.com/integration-project-group-a/Server-Tools/master/templatesetup.sh -O templatesetup.sh && chmod +x templatesetup.sh && sudo ./templatesetup.sh && rm templatesetup.sh #Config file echo "Installing neofetch" apt install neofetch echo "Team name?" read team hostname "$team.teams....
true
49f1a8729a4f4e65ea77f5536325fa1f842d812d
Shell
arlongoria93/dotfiles
/scripts/webview
UTF-8
827
3.09375
3
[]
no_license
#!/bin/bash ext="${1##*.}" mpvFiles="mkv mp4 avi mov wmv flv gif" fehFiles="png jpg jpeg jpe" wgetFiles="mp3 flac opus mp3?source=feed pdf" if echo $fehFiles | grep -w $ext > /dev/null; then curl -sL "$1" > "/tmp/$(echo "$1" | sed "s/.*\///")" && sxiv -a "/tmp/$(echo "$1" | sed "s/.*\///")" >/dev/null 2>&1 & elif...
true
156c5402d01566e21386f31f7137f8e278e723b9
Shell
lindenis-org/lindenis-v833-scripts
/pack_img.sh
UTF-8
66,658
3.359375
3
[]
no_license
#!/bin/bash # # pack/pack # (c) Copyright 2013 - 2016 Allwinner # Allwinner Technology Co., Ltd. <www.allwinnertech.com> # James Deng <csjamesdeng@allwinnertech.com> # Trace Wong <wangyaliang@allwinnertech.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Gene...
true
a35c21be74d29bb650cc2acd3e615e3b71c19e38
Shell
Zaier9/Curso-de-Bash
/13_expresionesCondicionales.sh
UTF-8
952
3.6875
4
[ "MIT" ]
permissive
# ! /bin/bash # Programa para ejemplificar el uso de expresiones condicionales # Autor: Zaier | veraalber989@gmail.com edad=0 pais="" pathArchivo="" read -p "Ingrese su edad:" edad read -p "Ingrese su pais:" pais read -p "Ingrese el path de su archivo:" pathArchivo echo -e "\nExpresiones Condicionales con numeros" ...
true
b0feee4311833f84da109728aeb0126aaada4355
Shell
hqjenny/centrifuge
/env.sh
UTF-8
127
2.890625
3
[ "LicenseRef-scancode-bsd-3-clause-jtag" ]
permissive
export RDIR="$(realpath $( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )/../../)" echo "Set \$RDIR to $RDIR"
true
7fcbd30709ca83d4dd5d7e8d2cd6605b5876ac09
Shell
rtrembecky/symbiotic
/tests/run-tests.sh
UTF-8
740
3.890625
4
[]
no_license
#!/bin/bash fail() { while [ $# -gt 0 ]; do echo "$1" > /dev/stderr shift done exit 1 } DIR=`dirname $0` SYMBIOTIC=`readlink -f $DIR/../install/symbiotic` if [ ! -f $SYMBIOTIC ]; then fail "Couldn't find compiled symbiotic" fi if [ $# -ne 1 ]; then fail "Usage: $0 tests.txt" fi TESTS=`readlink -f $1` cat...
true
20cb86318c072c82bf02ae345f2686c2f10875f2
Shell
Wendy216/YTDataNode
/build/build2.sh
UTF-8
262
2.640625
3
[]
no_license
OS=$1 ARCH=$2 VERSION=0.0.1 FILENAME=ytfs-signer OUTDIR=out2 MAINFILE=cmd/signer/signer.go DIRNAME=${OUTDIR}/${OS}-${ARCH}-${VERSION} FULLNAME=${DIRNAME}/${FILENAME} mkdir ${DIRNAME} GOOS=$OS GOARCH=$ARCH go build -ldflags "-s -w" -o ${FULLNAME} ${MAINFILE}
true
62b40b1ab1ea9f89d18f02bc5db04319b60779ac
Shell
baza-winner/bw
/docker/helper/entrypoint.bash
UTF-8
2,960
3.671875
4
[]
no_license
#!/usr/local/bin/dumb-init /bin/bash # ============================================================================= # ============================================================================= _init() { if [[ ! -f /tmp/owned ]]; then sudo chown dev "$HOME/bw.bash" sudo chown -R dev "$HOME/.bw" fi i...
true
bd2ae57edccbb1986bdd0cabe85a89d515c0f0d8
Shell
Ismail774403783/-ALGNFTH
/network/sshbrutal.sh
UTF-8
2,937
3.5625
4
[ "BSD-2-Clause" ]
permissive
#!/bin/bash # sshBrutal # Release on 23/12/2018 # Github: github.com/aryanrtm/sshBrutal # © Copyright ~ 4WSec # color PP='\033[95m' # purple CY='\033[96m' # cyan BL='\033[94m' # blue GR='\033[92m' # green YW='\033[93m' # yellow RD='\033[91m' # red NT='\033[97m' # netral function header(){ printf " \t${RD} ...
true
dc4872b9917782aaa9382db1b210b8e9b97b515d
Shell
md500/kiss-emu
/kiss-emu/dolphin-emu-ishiiruka/build
UTF-8
428
2.609375
3
[ "MIT" ]
permissive
#!/bin/sh -e tar xf edf489332a36c4e55e768aa58c23372c2b051dc5 cp disable-wxPaintEvent.patch Ishiiruka-edf489332a36c4e55e768aa58c23372c2b051dc5/. cp fix-fd_set-error.patch Ishiiruka-edf489332a36c4e55e768aa58c23372c2b051dc5/. cd Ishiiruka-edf489332a36c4e55e768aa58c23372c2b051dc5 for patch in *.patch; do patch -p1 < ...
true
136275a3222bfbf0828c7f47dae8663ffba7f4d6
Shell
Danielwbolson/PBRT-BVH-Subdivisions
/bunny.sh
UTF-8
155
2.515625
3
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
for i in {0..24..2} do ./build/Release/pbrt.exe "Program_2_5608/HW2 Scenes/bunny.pbrt" --outfile 'Results/bunny_'"$i"'.png' --exponent "$i" sleep 1 done
true
16ba83cd69c689b70a32cc4d8d48419b1cdb5895
Shell
zjma/okcn_experiment
/scripts/install-openssl-raw.sh
UTF-8
248
2.828125
3
[]
no_license
#!bin/bash # Assume: we are in the openssl root dir. # Assume: $OKCNTEST_SSL_PREFIX is set. make clean set -e ./config --prefix=$OKCNTEST_SSL_PREFIX make depend make make install_sw # Assert: openssl has been installed at $OKCNTEST_SSL_PREFIX.
true
5c34440f4c3a551137dc43f769b74a3579eba7a9
Shell
specialoneit/odoo_docker
/hooks/post_push
UTF-8
225
3.09375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -ex # Get Odoo version version="$DOCKER_TAG" if [ "$version" == latest ]; then version=14.0 fi if [ -z "$IMAGE_NAME" ]; then IMAGE_NAME="$DOCKER_REPO:$DOCKER_TAG" fi docker image push "$IMAGE_NAME"
true
082641249444add44dd564df583cb885cd592020
Shell
cmsd2/wagon-api
/scripts/package.sh
UTF-8
221
2.734375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -euxo pipefail LAMBDA_NAME="latest-lambda" BIN_DIR="target" DIST_DIR="dist/api" LAMBDA_BIN="$BIN_DIR/$LAMBDA_NAME" LAMBDA_ZIP="lambda.zip" mkdir -p "$DIST_DIR" cp "$LAMBDA_BIN" "$DIST_DIR/$LAMBDA_ZIP"
true
63d0ab1e3228a9339973c9401411eaba015d2df6
Shell
smmoosavi/pnpm-single-repo
/scripts/merge-coverage.sh
UTF-8
695
3.546875
4
[]
no_license
#!/usr/bin/env bash function copy_coverage_to_root() { PACKAGE_PATH=$1 PACKAGE_NAME=$(basename "$PACKAGE_PATH") if [[ "$PACKAGE_NAME" != "$ROOT_NAME" ]]; then cp "$PACKAGE_PATH/coverage/coverage-final.json" "$ROOT_PATH/.cache/.nyc_output/$PACKAGE_NAME.json" fi } ROOT_PATH=$(pwd) ROOT_NAME=$(basename "$RO...
true
be46c6f24f3d4d0fc63264e1b06df17b42409fe9
Shell
b-ryan/farmhand-jenkins
/run
UTF-8
484
3.109375
3
[]
no_license
#!/bin/bash set -eu this_dir=$(readlink -e "${0%%/*}") gitconf="$this_dir/jenkins-gitconfig" if [[ ! -r $gitconf ]]; then echo >&2 "set up a gitconfig at $gitconf for Jenkins to use" exit 1 fi jenkins_home="$this_dir/home" mkdir -p "$jenkins_home" 2>/dev/null || true sudo docker run -p 8080:8080 -p 50000:50000 ...
true
d1ebc6dce99d98f828ece9137a56be37e5bd843f
Shell
Blackjacx/PublicCodeLibrary
/Scripts/branch_project_and_libs.sh
UTF-8
6,042
3.5
4
[ "MIT" ]
permissive
#!/bin/bash # Enable debugging #set -x # # Global parameters # PROJECT_ID=$1 DLS_LIBRARY_ID=IPLIB_DLS DT_LIBRARY_ID=IPDTL SVN_BASE_PATH="https://supi.telekom.de/svn" CHECKOUT_DIR="/tmp/release-branch-checkout-dir" DTLIBRARY_PARENT_DIR_IN_DLSLIBRARY="$CHECKOUT_DIR/$DLS_LIBRARY_ID/DLSLibrary/lib" DLSLIBRARY_PARENT_DI...
true
78edcfdccb86f719f0e217de978def08d0755560
Shell
wawryk/zabbix_ssl_check
/zabbix.sh
UTF-8
586
3.765625
4
[ "MIT" ]
permissive
#!/bin/bash cd $(dirname $0) if [[ -z $1 || -z $2 ]]; then JSON="{ \"data\":[" SEP="" while read domain; do JSON=${JSON}"$SEP{\"{#DOMAIN}\":\"${domain}\"}" SEP=", " done < domains.txt JSON=${JSON}"]}" echo ${JSON} exit 0 fi URL=$1 PARAM=$2 ROW=$(cat result.cache | grep -E "...
true
02d16a3a51253cf215ac833aba7e186244f25160
Shell
xtcM4nimal/useful-scripts
/DNS response logger/start_capture.sh
UTF-8
589
3.234375
3
[]
no_license
#!/bin/bash #Get this servers IP IP=`/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'` DATE=`date +%Y-%m-%d-%H:%M:%S` #Get the PID of the old running tcpdump PID=`ps aux | grep tcpdump | grep $IP | grep -v grep | tail -n1 | awk '{print $2}'` #When we kill it (-SIGINT) is the same as ctrl-C #It ...
true
04e3681fa3c1df16a71741fada897cf4676f6277
Shell
y226xie/ECE454-Projects
/Assignment_3/a3_starter/auto_run_case_0.sh
UTF-8
1,328
2.890625
3
[]
no_license
#!/bin/bash # --- Running client # Done starting 8 threads... # Aggregate throughput: 28924 RPCs/s # Average latency: 0.27 ms # --- Analyzing linearizability # Number of get operations returning junk: 0 # Number of other linearizability violations: 0 # Aggregate throughput: 31592 RPCs/s # Average latency: 0.25 ms ...
true
3380c7d9c0f15ffeefb257390fcaedbc37ae9cff
Shell
ifosch/elasticsearch-beanstalk
/bin/modify
UTF-8
354
3.25
3
[]
no_license
#!/bin/bash source bin/lib if [ -z "${1}" ]; then echo "You must specify a cluster name." exit -1 fi if [ -z "${2}" ]; then echo -n "You must specify a list of options and value pairs." echo -n "For example: MaxSize=10 or " echo "MeasureName=CPUUtilization,LowerThreshold=30" exit -1 fi clust...
true
65a705de16e6f7770b9a811a7dd44016d8cc00a3
Shell
jwc401/jwc401.github.io
/assignment4/code4/run
UTF-8
212
2.578125
3
[]
no_license
#!/bin/sh # This is a convenience script, so that you can launch you # work from the commmand line, just by typing: ./run arg="$1"; [[ "$arg" == "" ]] && arg="index" open -a /Applications/*Chrome.app $arg.html
true
d558f9bf0513fbe07d87b69de51891e41db82785
Shell
NovatecConsulting/azure-image-builder
/buildContainer.sh
UTF-8
710
3.953125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash organisation="caaqe" image_name="azure-image-builder" image_tag="latest" docker build -t ${image_name}:${image_tag} --file Dockerfile . exitCode=$? if [[ ${exitCode} -eq 0 ]]; then echo "Docker image ${image_name}:${image_tag} build done." else echo "Build failed." exit 2 fi read -r -p "Do you like ...
true
8b56e3b416671e58910b42b2daf9d3485f031b28
Shell
similove/akka-cluster-study
/bootstrap.sh
UTF-8
4,963
3.53125
4
[]
no_license
#!/bin/bash APP_NAME=akka-cluster APP_VERSION=1.0-SNAPSHOT if [ -z "${AKKA_CLUSTER_HOME}" ]; then export AKKA_CLUSTER_HOME="$(cd "`dirname "$0"`"/.; pwd)" fi JAVA_OPTS="-Dfile.encoding=UTF-8 -Dlog4j.configurationFile=file://${AKKA_CLUSTER_HOME}/conf/log4j2.xml " JARS=$(echo ${AKKA_CLUSTER_HOME}/libs/*.jar | tr ' ...
true
95e512c4bb4d62e89db5a28291fb360d35b7e41d
Shell
Lab-RoCoCo-Sapienza/S-Ave
/semantic_maps/results/rosmeery_plot.sh
UTF-8
1,065
3.515625
4
[]
no_license
#!/bin/bash white='\033[1;37m' yellow='\033[1;33m' orange='\033[0;33m' nc='\033[0m' if [ $# -ne 1 ]; then echo -ne "Wrong number of parameters. Only the root results (.json) path must be provided.\n" exit fi RESULTS_LOAD_PATH=$1 # /home/rfr4n/ws/qut/results PLOTS_SAVE_PATH=/tmp/rosmeery/plots/ mkdir -p ${PLO...
true
7264e372cbe10c48e45af59298454c6a95079ee6
Shell
srmq/lemur
/lemur-4.12/data/test_key_index.sh
UTF-8
7,543
3.15625
3
[ "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
#!/bin/sh ## Edit this to point to your version of trec_eval ## if not found, it will be set to echo IREVAL=../ireval/obj/ireval.jar TREC_EVAL="java -jar $IREVAL" ####################################################################### # THIS IS THE TEST SCRIPT FOR THE POSITION INDEXER # # (For the...
true
3fbae2834920a5677116ba2bbaafb266ae87d574
Shell
blusjune/.bd
/sys/sys.gpgizeme/.bdx.0100.y.set_host_specific_root.sh
UTF-8
207
2.734375
3
[]
no_license
#!/bin/sh ##tstamp: 20121006_105740 _vroot="vroot"; _host_specific_root="conf/$(uname -n)"; if [ -L $_vroot ]; then echo ">>> update existing $_vroot"; rm $_vroot; fi ln -s $_host_specific_root $_vroot;
true
5520e322211921214912ee6dbbc566ef08831c7b
Shell
Rickymare/lampstamp
/web/web.sh
UTF-8
1,694
3.46875
3
[]
no_license
#!/usr/bin/env bash # This script will run alongside the data.sh script to install a LAMP stack set -e set -u # Update the APT cache apt update -y # Upgrade the apt repos to ensure we install the LTS apt upgrade -y # Install Apache2 apt install apache2 -y # Install PHP and the dependencies apt install php7.0 libap...
true
b2e76912bb6d31f8cb62902d4bbac9bde4b4b0cb
Shell
snori74/e-discovery
/BX-another-email.sh
UTF-8
1,067
2.90625
3
[]
no_license
#/bin/bash # # Xperimental!! # # # for each of the PST files create a folder and burst into it # - BUT using the "-o" to get tthunderbird compatible files # # IFS business, because we have filenames # with spaces in them... OLDIFS=$IFS IFS=$'\n' # # ifile="ClientA/USB-1/PersonA.pst" ofile="ClientA-X/PersonA-ema...
true
e0fdddf193ca5b5e3fb365e32357c0f367b505ed
Shell
jimpick/nixos-upstream-svn-nixpkgs
/pkgs/tools/text/xml/jing/script-builder.sh
UTF-8
201
2.53125
3
[ "MIT" ]
permissive
source $stdenv/setup ensureDir $out/bin cat >> $out/bin/jing <<EOF #! $SHELL export JAVA_HOME=$jre export LANG="en_US" exec $jre/bin/java -jar $jing/bin/jing.jar "\$@" EOF chmod a+x $out/bin/jing
true
4ce8e58510fc8640981d2426085aee50200d5224
Shell
CoolVoltage/SnowFlake
/instance/scripts/pauseVM.sh
UTF-8
326
2.921875
3
[]
no_license
set -e imageId=`docker commit $1` imageId=${imageId:7:12} extension=".tar" directory="/tmp/" docker save -o $directory$imageId$extension $imageId out1=$(sh ./scripts/putftp.sh $imageId$extension $2) out2=$(sh ./scripts/stopVM.sh $1) out3=$(docker rmi $imageId) rm $directory$imageId$extension echo $imageId echo "...
true
47d7a056e635f8c2e83f0b74305a9edc8d8dbee9
Shell
skmgoldin/dropship
/osxbootstrap.sh
UTF-8
297
2.859375
3
[]
no_license
# Install Homebrew deps xcode-select --install >> .droplog 2>&1 # If Homebrew is already installed and in the PATH, exit. if command -v brew >> .droplog 2>&1; then exit; fi # Install Homebrew (Default) ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
true
0ee7cb0663252ad5e1c2fa9508f157e694e41a7c
Shell
rybacklin/https-git.oschina.net-darcyg-wrtoy
/common/options.zsh
UTF-8
9,799
3.6875
4
[ "MIT" ]
permissive
# Options library for zsh, v1.6 # Adapted from the bash version, probably some things could be done more # efficiently in zsh directly. # Main differences: # - Arrays start at 1 (zsh) # - dests variables have the $ included # Copyright 2009 David Vilar # # This program is free software: you can redistribute it and/or...
true
8e459181418eb1bfd5106ad64d0134cb92a2228d
Shell
shuhaowu/ppa
/release-to-ppa.sh
UTF-8
482
3.40625
3
[]
no_license
#!/bin/bash set -e DEFAULT_PPA_ID=shuhao/fixed project=$1 ppa_id=$2 if [ -z $project ]; then >&2 echo "usage: ./release-to-ppa.sh project [ppa_id]" exit 1 fi if [ -z $ppa_id ]; then ppa_id=$DEFAULT_PPA_ID fi source setup-build.sh $project pushd $project_build_dir >/dev/null tar czf ${project_version}.ori...
true
54e5579e97710d178629acb3a33d3054a8865136
Shell
vlandham/biobot
/align/bwaAlignLane_dmel.sh
UTF-8
2,546
3.796875
4
[]
no_license
#!/usr/bin/env bash # Input Parameters # $1 - Lane number # $2 - Sample Name (no spaces, punctuation, etc) # $3 - ID (I just used lane number again) # $4 - Directory containing sequence files to align # Output # Sorted, indexed BAM file. # File has had rmdup run on it to remove duplicates # WARNING: refFa needs to ...
true
44ab5c6e653c4274dee56ee5a0e4f75ab458d150
Shell
MagnusS/mirage-bench
/run_test.sh
UTF-8
6,862
3.71875
4
[ "ISC" ]
permissive
#!/bin/bash # # Copyright (c) 2014, Magnus Skjegstad <magnus@skjegstad.com> # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PRO...
true
0f40ad42048e7315fb8487c0a3f54b8e7510cc13
Shell
Confucius-Mencius/third_party2
/build/build_astyle.sh
UTF-8
624
3.09375
3
[]
no_license
#!/bin/bash ############################################################################### # author: BrentHuang (guang11cheng@qq.com) ############################################################################### SCRIPT_PATH=$(cd `dirname $0`; pwd) . ${SCRIPT_PATH}/common.sh echo "build astyle..." cd ${ASTYLE_SR...
true
b7ada26e13d032dce1d18d275e73ce0db40027ce
Shell
izri/Xborne
/Exemples/workflow1/Source/workflow1.sh
UTF-8
1,080
3.03125
3
[]
no_license
#!/bin/bash SIM_DIR=$PWD #created 18/03/2017 by Nora IZRI #modif 21/03/2017 echo $1 #récupération du premier argument d'entrée lors du lancement du shell model=$1 res="res.txt" #ls $1.* > $res # à utiliser uniquement si la création du dossier associé au nom du model est supprimer (voir les lignes 54 et 55 de ce...
true
0c3c86926a09ec4279fc3fc8ed4dfe2406515c58
Shell
ndunks/modem-indihome-f609
/firmware-V5/mtd0-mount.sh
UTF-8
1,815
2.859375
3
[]
no_license
#!/bin/bash # sudo apt install mtd-utils if [[ $EUID -ne 0 ]]; then exec sudo /bin/bash "$0" "$@" fi set -e # Failed to mount MTD block, I think the nand modules is not support brcmnand, may need to recompile # kernel modules to support id_bytes=0x2c,0xf1 (as seen on boot.log) #modprobe nandsim id_bytes=0x2c,0xf...
true
a3971ed5cf686e9d42800fdc63468f94c31dab82
Shell
m41k/robroc
/px2.sh
UTF-8
506
2.78125
3
[]
no_license
#!/bin/bash cat list.txt | while read LINHA; do # HOST=`echo "$LINHA" | cut -d":" -f1` # midori -e http-proxy=$HOST -e http-proxy-port=$PORT # -e Go $SITE export http_proxy=http://$LINHA HOST=`wget --timeout=1 --waitretry=0 --tries=1 -qO - 54.233.169.1/cgi-bin/vip.sh` PORT=`echo "$LINHA" | cut -d":" -f2` #wget --timeo...
true
94568b45a0ceb2550e197bb1044566de9dc64bb2
Shell
blockchainvn/hyperledger-fabric-k8s
/fn.sh
UTF-8
36,861
3.328125
3
[]
no_license
#!/bin/bash # # Copyright agiletech.vn All Rights Reserved # # SPDX-License-Identifier: Apache-2.0 # # export so other script can access # colors BROWN='\033[0;33m' BLUE='\033[0;34m' NC='\033[0m' BOLD=$(tput bold) NORMAL=$(tput sgr0) # environment BASE_DIR=$PWD DOCKER_COMPOSE_FILE=docker-compose.yml SCRIPT_NAME=`bas...
true
33a7a2485100118265b93e70d6310ccf0330a108
Shell
Anaswae/MsfHelper
/help.sh
UTF-8
4,420
2.921875
3
[]
no_license
a='' n='' h='' m='' c='' pi='' pu='' k='' clear echo "$pi" echo "[¤¤¤]$h METASPLOIT HELPER $pi [¤¤¤]" echo "._________________________________. " echo "[] [] " echo "[]$pu Author : MhankBarBar$pi [] " echo "[]$pu Contact : ...
true
0604e64c376ec28d6119f7f4132a21903dbf866c
Shell
TheStrix/dotfiles
/bin/gdriveutil
UTF-8
3,726
4.09375
4
[]
no_license
#!/usr/bin/env bash # Copyright (C) 2019 Parth Bhatia (TheStrix) <parthbhatia98@gmail.com> # source functions source ~/.dotfiles/functions usage() { cat <<USAGE Usage: bash $0 <FILE_OR_DIR_PATH_TO_UPLOAD>/<LINK_TO_DOWNLOAD> [OPTIONS] OPTIONS: -h, --help Display this help message -d, --dir Specify download...
true
d7a5cf595e0b952c5f5ccb7c003f8eb531fb7208
Shell
timwillhack/dm-haikuBah2
/test.sh
UTF-8
1,907
3.234375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # Copyright 2019 DeepMind Technologies Limited. All Rights Reserved. # # 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 ...
true
94d2c458952a22da9d3c65de305067d50c05b2aa
Shell
dakarnug/elasticsearch_river
/installdfordebian.sh
UTF-8
2,708
2.609375
3
[]
no_license
#! /bin/sh # This script install elasticsearch by using the dkpg installer # so if for any reason you need to delete this elasticsearch # so run just # sudo dpkg -r elasticsearch # if your keyboard is qwerty, you can change it by typing # setxkbmap fr , Note that this is not related to what we # are doing n...
true
47c9e7b016871fc27f3b0ca9e887927085be37cc
Shell
cmb87/stretch_aws_robotics_video_streaming
/user_scripts/setup_as_user.bash
UTF-8
1,720
2.75
3
[ "MIT-0" ]
permissive
#!/bin/bash # pull directory of current folder. APP_DIRECTORY=/home/hello-robot/catkin_ws/src/stretch_aws_robotics_video_streaming touch ~/.bash_aliases echo "source $APP_DIRECTORY/user_scripts/utility_bash_functions" >> ~/.bash_aliases echo "source ~/.bash_aliases" >> ~/.bashrc # Setup sample ros application if [ -d ...
true
aed27df7b0caaf01d83e8e75a04b8d9bc112e293
Shell
i6448038/phalcon_dockerImages
/phpnginx/build/php/cphalcon-3.0.4/tests/_ci/setup_dbs.sh
UTF-8
1,076
2.640625
3
[ "BSD-3-Clause", "MIT" ]
permissive
#!/usr/bin/env bash # # Phalcon Framework # # Copyright (c) 2011-2017 Phalcon Team (https://www.phalconphp.com) # # This source file is subject to the New BSD License that is bundled # with this package in the file docs/LICENSE.txt. # # If you did not receive a copy of the license and are unable to # obtain it th...
true
69065e949c82c9da782206d43fae340352902c80
Shell
JamesMcGuigan/puppet-config
/modules/website_jamesmcguigan/files/deploy-website.sh
UTF-8
895
3.25
3
[]
no_license
#!/bin/bash -x export HOME=/root # node-gyp requires that the user's home directory is specified in either of the environmental variables HOME or USERPROFILE mkdir -p /var/www-deploy/ && rm -rvf /var/www-deploy/jamesmcguigan.com tar -xzf /root/build/jamesmcguigan.com.tgz -C /var/www-deploy/ && cd /var/www-deploy/ja...
true
4b6d0b37840d8223728ad00470b62f2ac9230ba0
Shell
mminks/docker-trap
/trap.sh
UTF-8
466
3.265625
3
[]
no_license
#!/usr/bin/env bash die() { echo "Running the trap..." RESULT=$(bash /run_trap_code.sh) if [ -n "${SLACK_CHANNEL}" ] && [ -n "${SLACK_URL}" ] && [ -n "${SLACK_USERNAME}" ]; then curl -X POST --data-urlencode "payload={\"channel\": \"#${SLACK_CHANNEL}\", \"username\": \"${SLACK_USERNAME}\", \"text\"...
true
eea78fb6929845a4a19374d05bf0c29082533dae
Shell
ljdursi/validation-pipeline
/run-bam-to-bam
UTF-8
782
3.09375
3
[]
no_license
#!/bin/bash readonly input_bams=$( find ingest-bams -name "*.bam" ) readonly FASTQDIR=fastqs readonly REMAPPEDDIR=remappedbams readonly INDELREALIGNEDDIR=germ-indel-realigned for input_bam in ${input_bams} do bamname=$( basename $input_bam ) base=${bamname//.bam/} if [ ! -d ${FASTQDIR}/${base} ] the...
true
e7b5f7cdd71f22a90e7564d3f374edf9ececc7c0
Shell
bitslab/CompilerInterrupts
/benchmarks/shenango/parsec/toolkit/hpt/hpt.sh
UTF-8
31,498
3.5
4
[ "MIT", "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
#!/bin/bash ######################################################################################### ##Software Implementation, Non-parametric Hierarchical Performance Testing (HPT) ##Authors: Yue Wu (Email: wuyue@ict.ac.cn) and Tianshi Chen ##Institute of Computing Technology, Chinese Academy of SCiences ##Beijing 1...
true
b69c522412d9a0b1f72a78ac2e6e60d0d95d7855
Shell
jrunningen/dotfiles
/home/.bash_prompt
UTF-8
588
3.5625
4
[ "MIT" ]
permissive
#!/bin/bash _git_prompt() { type -t __git_ps1 >/dev/null || return local x=$(__git_ps1) if [ -n "${x}" ]; then echo -ne "[\033[1;31m${x# }\033[0m]" true fi } gitprompt() { PS1="${debian_chroot:+($debian_chroot)}\[\033[1;34m\]\u@\h\[\033[0m\]:\[\033[1;32m\]\w\[\033[0m\]\$(_git_prompt)$ " } longpromp...
true
2f5115feaf0388736cf20fa91fd10200a668e5da
Shell
mflechl/FeynHiggsRun
/gettb.sh
UTF-8
274
2.578125
3
[]
no_license
#!/bin/bash for i in res/*root; do echo $i; FILEBASE=`echo $i | sed s#.root##` root -b <<<"TFile *_file0 = TFile::Open(\"$i\"); hp->SetScanField(0); hp->Scan(\"tb:deltab\",\"mhp==90\");" >/tmp/tmp.out tail -75 /tmp/tmp.out | head -74 >${FILEBASE}-deltab.txt done
true
b62e8c241ecb64367ad78c7372ea42667a88251a
Shell
GeHongpeng/EIPA
/データ検証/EIPA/xBRL/xBRL-GL2plt.sh
UTF-8
6,071
2.984375
3
[ "MIT" ]
permissive
#!/bin/sh # === Initialize shell environment =================================== set -euvx # -e Exit immediately if a command exits with a non-zero status. # -u Treat unset variables as an error when substituting. # -v Print shell input lines as they are read. # -x Print commands and their arguments as they are exe...
true
1893e81da1fee9382b9a83f572a88e4893cdcdee
Shell
Leo4Truth/assignment-management-system-shell
/teacher.sh
UTF-8
1,683
3.3125
3
[]
no_license
#!/bin/bash chmod +x teacher/*.sh . teacher/teacher_new_student.sh . teacher/teacher_delete_student.sh . teacher/teacher_edit_student.sh . teacher/teacher_list_student.sh . teacher/teacher_add_student_course.sh . teacher/teacher_search_student.sh . teacher/teacher_view_course_student.sh . teacher/teacher_assign_ass...
true
7698d9afabb81901005797d5c7113a269fdad6ac
Shell
PatrikH0lop/vut_fit
/first_year/IOS/dirgraph.sh
UTF-8
5,041
3.59375
4
[]
no_license
#!/bin/sh #Author: Patrik Holop POSIXLY_CORRECT=yes #test terminal if test -t 1; then NUMBEROFCOL=`expr $(tput cols) - 1` else NUMBEROFCOL=79 fi #constants maxh=$((NUMBEROFCOL-12)) IGNOREARG="-9151davs25da$fae51wa!" maxsizes=0 NORMALIZED=0 NORMALIZEDFLAG=0 IGNORE=0 #print hash printhash() { if [ ! -z "$maxsize...
true
7bf1dc06b84f901651d3171df7bb71f592a3f7ae
Shell
Gnail89/project01
/swift_download_profile_analysis.sh
UTF-8
7,015
3.359375
3
[]
no_license
#!/bin/bash basepath=$(cd `dirname $0`;pwd) swift_user_info_file="${basepath}/swift_user_info.conf" swift_bk_blacklist_file="${basepath}/swift_black_list.conf" swift_bk_config_file="${basepath}/swift_backup_list_final.conf" single_tenant_info_newest="${basepath}/swift_tenant_info.newest" swift_tenant_info_lastest="${b...
true
8a551da998b75d66793530e37be830a07a54d41c
Shell
mendhak/pash
/evaluation/benchmarks/unix50/6.sh
UTF-8
229
2.890625
3
[ "MIT" ]
permissive
#!/bin/bash export IN_PRE=${IN_PRE:-$PASH_TOP/evaluation/benchmarks/unix50/input} IN3=$IN_PRE/3.txt # 3.1: get lowercase first letter of last names (awk) cat $IN3 | cut -d ' ' -f 2 | cut -c 1-1 | tr -d '\n' | tr '[A-Z]' '[a-z]'
true
dd69749e5b3f6f7aef7d50fa508c4936eb3d9184
Shell
sjmckinney/fuzzy-telegram
/check_composer_download.sh
UTF-8
340
3.0625
3
[ "MIT" ]
permissive
#!/bin/sh EXPECTED_SIGNATURE=$(curl --silent --show-error https://composer.github.io/installer.sig) ACTUAL_SIGNATURE=$(php -r "echo hash_file('SHA384', '/var/www/html/composer-setup.php');") if [ "$EXPECTED_SIGNATURE" != "$ACTUAL_SIGNATURE" ] then >&2 echo 'ERROR: Invalid installer signature' rm composer-setu...
true
f5585f1facb22a95a458b70489004d3bb3b1c128
Shell
2XL/grafanajs
/installGrafana.sh
UTF-8
784
2.890625
3
[]
no_license
#!/usr/bin/env bash if [ ! -f grafana_2.1.3_amd64.deb ] then wget https://grafanarel.s3.amazonaws.com/builds/grafana_2.1.3_amd64.deb fi sudo apt-get install -y adduser libfontconfig sudo dpkg -i grafana_2.1.3_amd64.deb line='deb https://packagecloud.io/grafana/stable/debian/ wheezy main' more /etc/apt/sources.list ...
true
e85fa63273f8d277f7dfd6c2417ff4b43f1d6ab8
Shell
freebsd/freebsd-ports
/audio/owntone/files/owntone.in
UTF-8
729
3.21875
3
[ "BSD-2-Clause" ]
permissive
#!/bin/sh # PROVIDE: owntone # REQUIRE: avahi_daemon dbus # KEYWORD: shutdown # # Add these lines to /etc/rc.conf.local or /etc/rc.conf # to enable this service: # # owntone_enable (bool): Set to NO by default. # Set it to YES to enable owntone. # owntone_config (path): Set to %%PREFIX%%/etc/owntone.conf # by de...
true
2bad7795ea97a4fdd865a46954456d57fca7d93b
Shell
hrtejada/afl
/docker_scripts/run.sh
UTF-8
475
2.859375
3
[]
no_license
#!/bin/zsh exitfunc(){ trap INT cp -r /home/test/afl-test/output $1 exit } trap "exitfunc" INT /home/test/afl-test/afl/afl-fuzz $2 -m $3 -i /Docker_Shared/input -o /home/test/afl-test/output /Docker_Shared/bin/binary || exit sleep 2 clear #if [ $1 -eq 0 ]; then # echo 'running forever' # sleep infinit...
true
3cfdc9ea11f249cbe0f691f07c69e16f8fe020ee
Shell
galuszkak/heroku-buildpack-django
/bin/compilenodejs
UTF-8
5,316
3.890625
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # bin/compile <build-dir> <cache-dir> # fail fast set -e # debug # set -x # clean up leaking environment unset GIT_DIR # config SCONS_VERSION="1.2.0" S3_BUCKET="heroku-buildpack-nodejs" # parse and derive params BUILD_DIR=$1 CACHE_DIR=$2 LP_DIR=`cd $(dirname $0); cd ..; pwd` function error() {...
true
1c20cd6429b0f73fe350a4069fdbb042cfdbff19
Shell
radiotrackingeu/raspiv2
/html/picam/stop_i2c.sh
UTF-8
1,086
2.828125
3
[ "MIT" ]
permissive
#!/bin/bash #Deactivate I2C #Change /boot/config.txt #Change dtparam=i2c1=on and dtparam=i2c_arm=on OLDSTRING="dtparam=i2c1=on" NEWSTRING="#dtparam=i2c1=on" FILE="/tmp1/config.txt" grep -q $OLDSTRING $FILE && sed -i "s/^$OLDSTRING/$NEWSTRING/g" $FILE || echo "$NEWSTRING" >> $FILE OLDSTRING="dtparam=i2c_arm=on...
true
9d0f93d7684f307d1ebd5e3e5b1901f969fd024f
Shell
quirinpa/xstack
/bashalt/xpush
UTF-8
415
3.46875
3
[]
no_license
#!/bin/sh # PUSH(window_id = current, tag) # push a window into an invisible stack set -e cache_dir=/tmp/xdostack [ ! -d $cache_dir ] && mkdir $cache_dir wid=`[ -z $1 ] && bspc query -N -n || echo $1` tag=${2:-misc} stack_file=$cache_dir/$tag/stack newpath=$([ -d $cache_dir/$tag ] && head -c -1 -q $stack_file ||...
true
02f06fd173132c5555c44e198b0849a3cc32fb63
Shell
asdf-vm/asdf
/bin/asdf
UTF-8
2,885
3.828125
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # shellcheck source=lib/utils.bash . "$(dirname "$(dirname "$0")")/lib/utils.bash" find_cmd() { local cmd_dir="$1" shift local cmd_name local args_offset="$#" cmd_name="command-$(tr ' ' '-' <<<"${@:1:${args_offset}}").bash" while [ ! -f "$cmd_dir/$cmd_name" ] && [ "$args_offset" -gt 0...
true
db061250748c5d257b32f0caac3888de081dfc56
Shell
sahinM/cloud-agnostic-devops-for-serverless
/scripts/installation/bootstrapping-infra.sh
UTF-8
755
2.84375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # Create new workspace for bootstrapping terraform workspace new state # Initialize provider for bootstrapping (Amazon S3) terraform init remote-state # Bootstrap state infrastructure terraform apply -auto-approve remote-state # Fill in backend info (requires envsubst from package gettext) source <(terrafo...
true
f38af1ed6a4b93b3f9ba14a02c3fe539d8907d1b
Shell
opatomic/opacli-c
/build/verinc
UTF-8
1,002
3.828125
4
[ "ISC" ]
permissive
#!/bin/bash handleErr() { echo "$(basename "$BASH_SOURCE"): Error on line $1" >&2; exit 1 } trap 'handleErr $LINENO' ERR git --version > /dev/null 2>&1 || (echo "git must be installed" >&2 && exit 1) [ "$(git rev-parse --is-inside-work-tree)" = "true" ] || (echo "not in git repo?" >&2 && exit 1) MODCNT=$(git statu...
true
fa2b227136332c0e69ee2d7e6c1d5c86923f5a18
Shell
awcoleman/DropWizardTestAvroOne
/DropWizardTestAvroOne/src/main/scripts/feebleAvroSchemaToMySQLDDL.sh
UTF-8
3,737
4
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # This is a very hackish script that tries to convert an Avro schema to a mySQL DDL # (and with small modifications works fine for PostgreSQL and MS SQL Server) # Sometimes works well, and sometimes fails miserably... # # My long-term plan is to look at Hibernate's DDL creation methods and see if I can g...
true
dc98b59d7e0c9fc271f80ffb59854605ef5cda77
Shell
hokaze/zenity-scripts
/burg-theme-edit.sh
UTF-8
3,669
4.09375
4
[ "MIT" ]
permissive
#!/bin/bash #BURG Theme (background) editor version 0.2 by HoKaze #runs this script as root if not already chk_root () { if [ ! $( id -u ) -eq 0 ]; then echo "Please enter root's password." exec su -c "${0}" # call this script as root exit ${?} # since we're 'execing' above, we wont reach this exit ...
true