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
73daf388418bb25b961ff51ff211e82e1d8f58e3
Shell
silverbullettt/zipper
/doop/utils/checkjararg.sh
UTF-8
2,231
4.03125
4
[ "MIT" ]
permissive
#! /bin/bash # # Helper function to check jar argument function check-injar() { # process the jar file argument if [[ -d $1 ]]; then printf "ERROR: directories are currently not supported\n" >&2 exit 1 fi if [[ ! -e $1 ]]; then printf "ERROR: jar file not found \"$1\"\n" >&2 ...
true
6049c81b35669492d993dbc6c575e85103db436e
Shell
tdharris/bashScripts
/other/sftp-login/lib/spawnSFTPSession.sh
UTF-8
538
3.078125
3
[]
no_license
#!/usr/bin/expect -f set SERVER [lindex $argv 0] set PORT [lindex $argv 1] set USER [lindex $argv 2] set PASSWORD [lindex $argv 3] set timeout 10 set PROMPT "> " spawn sftp -o "StrictHostKeyChecking=no" -P $PORT "$USER@$SERVER" expect { timeout { send_user "\nERROR: Timeout Exceeded - Check Host\n"; exit 1 } eo...
true
5a26d0360968c0fb9f56b629653052eca26a6ab8
Shell
wangguitao/intelligent-protector
/bin/shell/cachesample.sh
UTF-8
1,334
3.125
3
[ "Apache-2.0" ]
permissive
#!/bin/sh ################################################################################# # Copyright @ Huawei Technologies Co., Ltd. 2017-2018. All rights reserved. ################################################################################# set +x #@dest: application agent for cache #@date: 2016-02-19 #@au...
true
b8b34618b84dfc583e8fdf9a9a152d586498aea1
Shell
goozbach-presentation/A-BASHful-Adventurer
/src/var_tricks/f_ignore.script
UTF-8
1,377
3.28125
3
[]
no_license
#!/bin/bash # setup DELAY=4 DISP=':1.0' ## set terminal and browser vars echo "detected these windows: " ratpoison -d ${DISP} -c 'windows %n %a' TERMINAL=$(ratpoison -d ${DISP} -c 'windows %n %a %t' | grep 'gnome-terminal' | cut -d ' ' -f 1) set_screen() { TITLE=$@ echo "switching to window: ${TITLE}" ratpoison -...
true
ffa83b0687a9e3f0855ca4e3e820e8796e5747fb
Shell
nostalgia1367/shell_study01
/sh_dict/020_comsub.sh
UTF-8
222
3.25
3
[]
no_license
#!/bin/sh :<<'END' grep -c를 이용하여 ERROR가 몇번있는지를 확인하여 ${hostname).log 개수를 반환. END err_count=$(grep -c "ERROR" /var/log/myapp/$(hostname).log) #(1) echo "Error counts: $err_count"
true
e933322e16211836829a167d1f8ed363d951af72
Shell
liyq0307/geomesa
/geomesa-fs/geomesa-fs-tools/bin/install-s3.sh
UTF-8
1,792
3.4375
3
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
#! /usr/bin/env bash # # Copyright (c) 2013-%%copyright.year%% Commonwealth Computer Research, Inc. # 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 distribution and is available at # http://www.opensource...
true
950c9b848dac6a581394d8ac62cc26973fa249fb
Shell
romulocollopy/myvimrc
/install.sh
UTF-8
1,084
2.5625
3
[]
no_license
#!/bin/bash if [!hash npm 2> /dev/null]; then sudo pacman -S nodejs npm --noconfirm fi if [!hash cmake> /dev/null]; then sudo pacman -S cmake --noconfirm fi $PWD = `pwd` #Link .vimrc to reps file ln -s `pwd`/vimrc ~/.vimrc ln -s `pwd`/myvimrc/nvim/init.vim `pwd`/.config/nvim/init.vim # Install Vundle git c...
true
936beab27aafc3bf25ae5811e200e576ed61578f
Shell
sohah/Java-Ranger-SVComp
/jr-sv-comp
UTF-8
5,348
3.21875
3
[]
no_license
#!/bin/bash SECONDS=0 DURATION=800 DEPTH_LIMIT[0]=13 DEPTH_LIMIT[1]=21 DEPTH_LIMIT[2]=156 export RESULT="initial" #CURRENT_DIR="$(cd "$(dirname "$0")" && pwd)" itr=0 # derived from the jpf-sv-comp script used by SPF in SV-COMP 2019 # create site.properties SITE_PROPERTIES=site.properties echo "jpf-core = `pwd`/jpf-...
true
366725f9f349e20cc59c541cdf01a84e9de99bd3
Shell
checkered-rabbit/deadpan-sodium-pad-ts
/start.sh
UTF-8
586
2.96875
3
[]
no_license
set -eu S=${START:-$1}; echo >start.txt echo "bash" $S $(uptime) | tee start.log export PATH=$PATH:node_modules/.bin case $S in glitch) tsc -w -p public/tsconfig.es6.json & ts-node -T --project server/tsconfig.json server/server_debug.ts ;; vsdebug) tsc &>>start.log -w -p public/tsconfig.es6.json & node --nolazy --...
true
9785a7c3a73d49cc486eec89398abc266b55af7e
Shell
streamsunshine/ARM-Tiny6410
/linux/cross_compiler/arm-opencv/1_make_libs.sh
UTF-8
3,397
3
3
[ "MIT" ]
permissive
################################################################# # Copyright (C) 2015 Sean Guo. All rights reserved. # # > File Name: < 1_make_libs.sh > # > Author: < Sean Guo > # > Mail: < iseanxp+code@gmail.com > # > Created Time: < 2016/03/23 > # > Last Changed...
true
cb8e6d2d5d8eebab4fca3ae4e9400ba5aaaf72be
Shell
cesarotti/Dark-Photons
/build.sh
UTF-8
937
3.25
3
[]
no_license
#!/bin/bash if [ "$#" -ne 1 ]; then echo "Usage: ./build.sh [project-name]" echo "e.g. ./build.sh eplus" exit fi if [ ! -d "runs" ]; then mkdir runs fi if [ ! -d "runs/$1" ]; then mkdir runs/$1 fi if [ ! -d "project-build/$1" ]; then mkdir project-build/$1 fi cd project-build/$1 cmake -DGEAN...
true
b4d50fb596393e93114b59f98ca8c433500bd435
Shell
SidShetye/guiderails
/guiderails.sh
UTF-8
3,242
4.15625
4
[ "MIT" ]
permissive
#!/bin/sh # Guiderails licensed under the MIT license # Copyright (c) 2020 Sid Shetye - All Rights Reserved VERSION=1.0.0 RELEASED="May 20 2020" SELF=guiderails NAME=Guiderails TITLE="Guiderails - whitelisting for a curated internet" GUIDERAILS_DIR=/opt/share/guiderails CONF_FILE=$GUIDERAILS_DIR/guiderails.conf LOG_...
true
0e3ece9fd96c96b087b686ce504b045a1bc7c882
Shell
chunkaichang/an-encoder
/encode/scripts/ips/faults.sh
UTF-8
310
3.109375
3
[]
no_license
#! /bin/bash FOLDER=$1 TESTNAME=$2 FAULT=$3 GREP_FILTER=$4 NUMBERS=$(grep retcode $FOLDER/$TESTNAME.cover.encoded.log | \ grep -v None | grep -v INVALID | grep $FAULT | sed 's/.*no. //' | sed s'/:.*$//') for N in $NUMBERS do grep "$GREP_FILTER" $FOLDER/$TESTNAME.cover.encoded.fi.$N.stderr done
true
e33d42888cbd1aac4f70d97ea801f4fc4b5ef897
Shell
ECU4DJ21/portfolio
/scripts/portfolio/week 4/GuessingGame.sh
UTF-8
1,066
4.5625
5
[]
no_license
#!/bin/bash # This script uses the getNumber() function in a number guessing game with the following rules: # The user should be asked to enter a number between 1 and 100. # If the number is 42, the game should print 'Correct!'. # If the number is less than 42, the game should print 'Too Low!' # If the number is greate...
true
e29f89c5a025eb6227f677bd8692a20691cd9dc2
Shell
link-u/disk-io-benchmark
/run.sh
UTF-8
235
3.140625
3
[ "MIT" ]
permissive
#! /bin/bash -eux if [ $# -ne 2 ];then echo "Usage: bash run.sh <path-to-tmpfile> <jobname>"; exit 1 fi export FILENAME="$1" fio --eta=always \ --eta-newline=1s \ --max-jobs=$(nproc) \ "$(basename "$2" .fio).fio"
true
1180aec1a98d77c2d081ec74660fb42d1c09c871
Shell
iulianbarbu/firecracker-memory-benchmark
/run.sh
UTF-8
1,186
3.734375
4
[]
no_license
#!/bin/bash NUM_OPS=4 NUM_RUNS=1000000000 # 1 billion declare -a MIN declare -a MAX for ((i=0; i<$NUM_OPS;i++)) do MIN[$i]=1000000 MAX[$i]=0 done declare -a OPS OPS[0]="Copy" OPS[1]="Scale" OPS[2]="Add" OPS[3]="Triad" declare -a RESULTS declare -a MEAN for ((i=0; i<$NUM_OPS;i++)) do MEAN[$i]=0 done for...
true
ef536ffac236cb6626aced022f90d2a02f6fc07d
Shell
gmaz3/mh_p1
/ScriptResultados.sh
UTF-8
104
2.703125
3
[]
no_license
#!/bin/bash directorio="datos" for i in $(ls $directorio) do echo $i ./greedy 'datos/'$i done
true
76fc41c85f7cfdc0d18978d554a7fc0207447240
Shell
wook2014/relate
/docs/download/relate_v1.1.8_x86_64_static/scripts/RelateSlurm/InferBranchLengths.sh
UTF-8
3,668
3.0625
3
[]
no_license
#!/bin/bash echo "***********************************************" echo "Slurm job ID: "$SLURM_JOBID echo "Slurm task ID: "$SLURM_ARRAY_TASK_ID echo "Run on host: "`hostname` echo "Operating system: "`uname -s` echo "Username: "`whoami` echo "Started at: "`date` echo "***********************************************" ...
true
fb60e0f7d1a4ef7562776cef5b47b76c5f002d09
Shell
git-for-windows/MINGW-packages
/mingw-w64-nghttp2/PKGBUILD
UTF-8
1,580
2.828125
3
[ "BSD-3-Clause" ]
permissive
# Maintainer: J. Peter Mugaas <jpmugaas@suddenlink.net> _realname=nghttp2 pkgbase=mingw-w64-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}") pkgver=1.31.1 pkgrel=1 pkgdesc="Framing layer of HTTP/2 is implemented as a reusable C library (mingw-w64)" arch=('any') url='https://nghttp2.org/' depends=("${MINGW...
true
f684fbf26f04af183ffefa1afa056f7c234c0cfd
Shell
mtalexan/modular-scripts
/get_zfs_clone_snaps.sh
UTF-8
630
3.546875
4
[]
no_license
#!/bin/bash # Get the clone datasets, and the dataset holding the clone datasets. Remove the dataset holding the # clone datasets from the list. CLONE_LIST=$(sudo zfs list -r -d 1 ${BASE_CLONE_ZPOOL} 2>/dev/null | awk '{if(NR>1)print $1}' | grep -v "^${BASE_CLONE_ZPOOL}$") SNAP_LIST=() SNAP= # Get the snapshots for ...
true
5135318b92441c917a3706fbda2f7a443d301869
Shell
wkoszek/dockerfiles
/wkoszek/me/entrypoint.sh
UTF-8
517
2.71875
3
[ "BSD-2-Clause" ]
permissive
#!/bin/sh export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 set -e echo "# entrypoint" pwd ls -la #export NO_HEADLESS=yes export DISPLAY=":99.0" #sh -e /etc/init.d/xvfb start echo "# git stuff" git config --global user.email "wojciech@koszek.com" git config --global user.name "Wojciech Adam Koszek" echo "# start ...
true
388a243147632fc178e2ca7c4d2c41790b7df080
Shell
747-diego/holberton-system_engineering-devops
/0x05-processes_and_signals/8-beheaded_process
UTF-8
157
2.5625
3
[]
no_license
#!/usr/bin/env bash # Write a Bash script that kills 7-highlander process. # Cannot use kill or killall TheLoop=$(pgrep -f ./7-highlander) kill -9 "$TheLoop"
true
d1414d0114950aac365e2fb9838012e3a0af912b
Shell
j-c-w/BandwidthPerf
/evaluation/hpt/timestamping/setup_accuracy_machines.sh
UTF-8
1,709
3.71875
4
[ "Apache-2.0" ]
permissive
#!/bin/zsh set -ue if [[ $# -ne 0 ]]; then echo "Usage: $0" exit 1 fi # This is a script that sets up the machines defined in the config # file so that they are ready to do the test. source ../../../general/parse_config.sh source ../../../general/remote_run.sh echo "Libraries loaded. Extracting config values" m...
true
d73e6d4802fae68d367985095076c46c75589898
Shell
rickbutton/rhasspy-voltron
/scripts/install-kaldi.sh
UTF-8
184
3.203125
3
[]
no_license
#!/usr/bin/env bash kaldi="$1" output="$2" if [[ -z "${output}" ]]; then echo "Usage: install-kaldi.sh kaldi.tar.gz output-dir/" exit 1 fi tar -C "${output}" -xvf "${kaldi}"
true
b7c27463e5d037b8dfad4e50a2ee4892e34cb88e
Shell
jantaylor/.dotfiles
/bin/minikube-hosts
UTF-8
339
3.328125
3
[]
no_license
#!/usr/bin/env bash CONTEXT=minikube MINIKUBE_IP=$(minikube ip) HOSTS=$(kubectl --context $CONTEXT --all-namespaces=true get ingress \ -o=jsonpath='{.items[*].spec.rules[*].host}') for h in $HOSTS; do # remove entries sudo sed -i".bak" "/$h/d" /etc/hosts # add entries echo "${MINIKUBE_IP} ${h}" | sudo tee ...
true
357c5f0cb403b43f711abd87d47abe486044e86d
Shell
mmarroyo/FJD-AF
/Desktop/Scripts_github/merge_files_N_GTcount.sh
UTF-8
225
2.890625
3
[]
no_license
#!/bin/bash GTfile=$1 Nfile=$2 mergeFiles=$3 #sleep 100 #echo 'Hola' > $mergeFiles join -j2 $GTfile $Nfile | awk '{printf $2"\t"$1"\t";for (i=3;i<=NF;i++) printf "%s",$i "\t"}{printf "\n"}' | cut -f -97,99- > $mergeFiles
true
3b09adf8b765ea9cc89fdc391e73de9b7969f181
Shell
cosmos64/main
/vulkan-headers/PKGBUILD
UTF-8
536
2.921875
3
[]
no_license
pkgname=vulkan-headers pkgver=1.2.161 pkgrel=1 pkgdesc="Vulkan Header files and API registry" arch=('x86_64') url="https://www.khronos.org/vulkan/" license=('APACHE') makedepends=('cmake') source=("https://github.com/KhronosGroup/Vulkan-Headers/archive/v${pkgver}.tar.gz") md5sums=('a957cbf69d3414a1755d41da62482421') ...
true
5037fb6e9ae6810dec3942a24e3a169544e3e391
Shell
CharliesAngels/rs_tools
/rs_preprocess.sh
UTF-8
1,541
3.171875
3
[]
no_license
# # ------------------------------------------------------------------------------ # Script name: rs_preprocess.sh # # Description: Script to generate a subject-specific design file given the template file ss_ica_cluster_template.fsf . # # # Author: Caroline Nettekoven, 2020 # # ------------------------...
true
4b8d548515b9c13535150b4e515a997da280a9b7
Shell
mars-project/mars
/ci/reload-env.sh
UTF-8
2,729
3.359375
3
[ "BSD-3-Clause", "MIT", "ISC", "Apache-2.0", "CC0-1.0", "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash export UNAME="$(uname | awk '{print tolower($0)}')" export PYTEST_CONFIG_WITHOUT_COV="--log-level=DEBUG --timeout=1500 -W ignore::PendingDeprecationWarning" export PYTEST_CONFIG="$PYTEST_CONFIG_WITHOUT_COV --cov-config=setup.cfg --cov-report= --cov=mars" if [[ "$GITHUB_REF" =~ ^"refs/tags/" ]]; then exp...
true
09742370c072cc0a453481ed6e56e36f827c301a
Shell
bloggse/infrastructure
/cli/cluster_example.cfg
UTF-8
1,012
2.78125
3
[ "MIT" ]
permissive
#!/bin/bash # Hetzner project context which also holds the Hetzner API TOKEN PROJECT_CONTEXT="enter context" # Name of SSH key usd to access the servers SSH_KEY_NAME="enter name" # Zeit API token so you can change DNS-settings ZEIT_TOKEN="$ZEIT_TOKEN" ############################################################ ## A...
true
3c43e3b4b8852ca3db82abb3b0cafb50acb96478
Shell
Tarsnap/libcperciva
/tests/14-crypto-entropy.sh
UTF-8
260
2.984375
3
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
#!/bin/sh ### Constants c_valgrind_min=1 ### Actual command scenario_cmd() { cd "${scriptdir}/crypto_entropy" || exit setup_check_variables "test_crypto_entropy" ${c_valgrind_cmd} \ ./test_crypto_entropy > /dev/null echo "$?" > "${c_exitfile}" }
true
40075a3d811d8c911d28f5d723ef2b4a5edb3a82
Shell
nicelife90/CIMF-PXE-Server
/install.sh
UTF-8
23,429
3.65625
4
[ "MIT" ]
permissive
#!/bin/bash #------------------------------------------------------------------------ # PXE SERVER INSTALLER # Created by : Yanick Lafontaine # Date : 30-09-2018 #------------------------------------------------------------------------ # Ubuntu 18.04 LTS # Clonezilla version : alternative stable releases - 20140...
true
3f9394561b6d8bc73b65991ea506a51185d906ec
Shell
j0hnL/omnia
/cobbler_utils/create_system_profiles.sh
UTF-8
894
3.796875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash if [ $# -lt 1 ] ; then echo -e "\nNeed mapping file\n" echo -e "e.g. $(basename $0) mapping.csv\n" exit 1 fi MAPPING=$1 if [ ! -e $MAPPING ] ; then echo -e "\nMapping file $MAPPING does not exist\n" exit 1 fi if [ ! -d profiles ] ; then mkdir profiles fi echo -e "#!/bin/bash\n" > p...
true
583fc91dbec0f5ea840b6dd3e4bb2d7fe898622e
Shell
rujelus22/Kuban-Initramfs
/sbin/ext/post-init.sh
UTF-8
1,859
2.859375
3
[]
no_license
#!/sbin/busybox sh mkdir /data/.kuban chmod 777 /data/.kuban ccxmlsum=`md5sum /res/customconfig/customconfig.xml | awk '{print $1}'` if [ "a${ccxmlsum}" != "a`cat /data/.kuban/.ccxmlsum`" ]; then # rm -f /data/.kuban/*.profile echo ${ccxmlsum} > /data/.kuban/.ccxmlsum fi [ ! -f /data/.kuban/default.profile ] && cp ...
true
0844752c97671bacde9babf9791e85b187684274
Shell
teamonefist/irz-rootfs
/home/httpd/cgi-bin/config_ovpnservn_set.cgi
UTF-8
637
2.78125
3
[]
no_license
#!/bin/sh /usr/lib/irz-web/setscript ovpn_num=`formq ovpn_num` ovpn_enabled=$(isOn $(formq ovpn_enabled)) F=/mnt/rwfs/settings/settings.ovpns setValue $F OVPN${ovpn_num}_ENABLED $ovpn_enabled setValue $F OVPN${ovpn_num}_DESC `formq ovpn_desc | encode` setValue $F OVPN${ovpn_num}_NAME `formq ovpn_name | encode` setValu...
true
fa43e110043032dde97dcee60bfd385cee05ade1
Shell
sergiusens/snap.ruby
/snap/scripts/launch
UTF-8
453
2.796875
3
[]
no_license
#!/bin/bash if [ "$SNAP_ARCH" == "amd64" ]; then ARCH="x86_64-linux" elif [ "$SNAP_ARCH" == "armhf" ]; then ARCH="armv7l-linux-eabihf" elif [ "$SNAP_ARCH" == "arm64" ]; then ARCH="aarch64-linux" elif [ "$SNAP_ARCH" == "i386" ]; then ARCH="i686-linux" fi export RUBYLIB=$SNAP/lib/ruby/2.5.0:$SNAP/lib/ruby/2.5.0...
true
81f4352ab1f59d8838ead4560b426b405c84456e
Shell
ranjitkumar518/scripting
/modify_alb_timeout.sh
UTF-8
4,003
4.28125
4
[]
no_license
#!/bin/bash ENV=$1 REGION=$2 SERVICE=$3 ALB_IDLE_TIMEOUT_VALUE=$4 usage () { echo "Usage: $0 {ENV} {REGION} {SERVICE} {ALB_IDLE_TIMEOUT_VALUE}" echo "Allowed values -" echo " ENV: prf|e2e|prd" echo " REGION: us-west-2|us-east-2" echo " ALB_IDLE_TIMEOUT: 30|60" exit 1 } ## Verify the number ...
true
3f8f5e014e4b4767bca82d785cd315653dc4ec88
Shell
prophile/ludum-dare-24
/make-game-zip.sh
UTF-8
273
2.828125
3
[]
no_license
#!/bin/bash dir=`mktemp -d lolwatXXXXXX` curdir=`pwd` echo $dir mkdir $dir/octodarwin cp -r octodarwin* $dir/octodarwin/ cp -r *.bat $dir/octodarwin/ cp -r *.command $dir/octodarwin/ cd $dir zip -r octodarwin.zip octodarwin mv octodarwin.zip $curdir cd $curdir rm -rf $dir
true
a442adce987ccba13f6d8248e1700d478edc393b
Shell
bdurrow/design-center
/examples/verticalsysadmin_training_examples/0-010-Preface-0050-Install_Vim_Plugin.sh
UTF-8
3,027
3.34375
3
[ "MIT" ]
permissive
#!/bin/sh # Run this shell script to add the following to your .vimrc: # - Neil Watson's CFEngine 3 syntax highlighter (minus folding and keyword # abbreviations) # - AsciiDoc syntax highlighter (the slides are written in AsciiDoc) # - CFEngine 3 Training Examples "vim slideshow" keybindings cat <<EOF >> $HOME/.vi...
true
0ce21b3f79b507ea20a5251e822c828ae9e7e9c2
Shell
dmitryikh/rust-vs-cpp-bench
/run_bench.sh
UTF-8
673
3.453125
3
[]
no_license
#!/bin/bash tests=( huffman_encoding huffman_decoding binary_search mergesort levenshtein ) out="benchmark.txt" # build measure tool cd common/measure cargo build --release &> /dev/null cd ../.. # build rust commons cd common/rust_common cargo build --release &> /dev/null cd ../.. # clean out file if [ -f $out ]; t...
true
8ed15567e5c5434ecd872fcbec40171f464cb05b
Shell
mscastanho/chaining-box
/test/test-tput.sh
UTF-8
2,094
3.828125
4
[]
no_license
#!/usr/bin/env bash # This script measures throughput for different chain lenghts # and several packet sizes for each length. function measure_throughput { name="$1" echo "Starting pktgen..." sudo $pktgen $pktgen_args -f tput-vs-pktsz.lua cat ${tmpfile} | tail -n+2 | awk -v name=$name '{printf "%s;%s\n", na...
true
063128d21b8cf39b059d0a22a26fdbaaa5897368
Shell
openbmc/openbmc
/meta-hpe/meta-common/recipes-phosphor/initrdscripts/files/gxp-obmc-init.sh
UTF-8
10,370
3.78125
4
[ "MIT", "Apache-2.0" ]
permissive
#!/bin/sh fslist="proc sys dev run" rodir=run/initramfs/ro rwdir=run/initramfs/rw upper=$rwdir/cow work=$rwdir/work cd / for f in $fslist do mkdir -p "$f" done mount dev dev -tdevtmpfs mount sys sys -tsysfs mount proc proc -tproc if ! grep run proc/mounts then mount tmpfs run -t tmpfs -o mode=755,nodev fi mkdir -p...
true
bd78d734fac60855e7d5ad8aa545ef3dce2070fa
Shell
couchbaselabs/sdkqe-dockerfiles
/sdkqe/functional/go-functional/build.sh
UTF-8
1,392
3.4375
3
[]
no_license
#!/bin/bash DOCKER_REPO=sdk-s435.sc.couchbase.com IMAGE_NAME=sdk-go-functional # Variables Option SDKQE_COMMIT=master #-c SDK_COMMIT=master #-m ENCRYPTION_COMMIT=master #-e CORE_COMMIT=master #-r FORCE=false #-f while getopts ":c:m:e:r:f:" OPT; do ...
true
909c63e5fd449fdc181947fa74be2fc89e93ae73
Shell
espressif/esp-afr-sdk
/tools/ci/check-line-endings.sh
UTF-8
337
3.75
4
[ "Apache-2.0" ]
permissive
#!/bin/sh if ! [ -z "$1" ]; then cd "$1" fi echo "Checking for Windows line endings in `pwd`" if git ls-tree --name-only -r HEAD | xargs file -N | grep CRLF; then echo "Some files have CRLF (Windows-style) line endings. Please convert to LF (Unix-style). git can be configured to do this automatically." e...
true
8757d210fbbaf4b93748a54c17c99e9749322e99
Shell
reify-ryan-heimbuch/dotfiles
/zsh/widgets/widget-insert-abbreviation
UTF-8
1,127
3.125
3
[]
no_license
#!/bin/zsh # power completion / abbreviation expansion / buffer expansion # see http://zshwiki.org/home/examples/zleiab for details # less risky than the global aliases but powerful as well # just type the abbreviation key and afterwards 'ctrl-x .' to expand it declare -Ax widget_abbreviations widget_abbreviations=( ...
true
8425e5a7d063d4d1574cf97cc3ec8a5a21bf3fc9
Shell
KangLin/RabbitThirdLibrary
/build_script/build_qt.sh
UTF-8
9,934
3.8125
4
[]
no_license
#!/bin/bash #作者:康林 #参数: # $1:编译目标(android、windows_msvc、windows_mingw、unix) # $2:源码的位置 #运行本脚本前,先运行 build_$1_envsetup.sh 进行环境变量设置,需要先设置下面变量: # BUILD_TARGERT 编译目标(android、windows_msvc、windows_mingw、unix) # RABBIT_BUILD_PREFIX=`pwd`/../${BUILD_TARGERT} #修改这里为安装前缀 # RABBIT_BUILD_SOURCE_CODE #源码目录 # RA...
true
dee7cc1ae6b1e264113507e1aaf35ca3de2f3e7a
Shell
gjvanoldenborgh/climexp
/nperyear2timescale.cgi
UTF-8
555
2.78125
3
[]
no_license
#!/bin/bash if [ "$NPERYEAR" = 366 ]; then timescale="daily " month=day elif [ "$NPERYEAR" = 365 ]; then timescale="daily " month=day elif [ "$NPERYEAR" = 360 ]; then timescale="daily " month=day elif [ "$NPERYEAR" = 73 ]; then timescale="pentad " month=pentad elif [ "$NPERYEAR" = 36 ]; then timescale...
true
8a1dc4308791920af814f9d5c8f34048586c548f
Shell
RudyWeber/graphql-react-psh
/front/enable-local.sh
UTF-8
400
2.75
3
[]
no_license
platform tunnel:list --all > /dev/null 2>&1 if [[ $? == 0 ]]; then echo "You already have platform ssh tunnels open" return fi ENV=`git branch --show-current` platform tunnel:open -e $ENV -A front export REACT_APP_PLATFORM_RELATIONSHIPS="$(platform tunnel:info -e $ENV -A front --encode)" export REACT_APP_PLATFORM...
true
beb9b6bbdf85e76da2a20e0579d1da1485430f9d
Shell
pombredanne/grep.js
/test/BRE2
UTF-8
563
3.28125
3
[]
no_license
#!/bin/sh GREP=${GREP:-grep} # Many of these test expressions would be interpreted differently # if treated as EREs not BREs. # Has no stderr for valid BRE. res=$($GREP -c '\(..t\)\{2\}' test/all) case $res in (3) ;; (*) exit 9 ;; esac # Back-references work. res=$($GREP -c '\([a-z]\).\1' test/rc) case $res in (1...
true
08fab7e66b0aaa594fa37ee1c79687514fce0743
Shell
EmreNOP/Testnet3-Challenges
/Transactions/T4/sendgtu-enc.sh
UTF-8
921
2.921875
3
[ "Apache-2.0", "LicenseRef-scancode-free-unknown" ]
permissive
#!/bin/bash receiver="3ZfCBDZS5MBwmKMuGjkRPSMaHNbdQvgxEFCspwpveJ5iEpGJkR" sender="4fLndv52R1YRLWix2KMh7huMH66vHzDnRV1j5NcLT59XLuH4m2" pass="xxx\n" #if you see "send: spawn id exp4 not open" = # first date variable and delete second one" #Eger "send: spawn id exp4 not open" hatasi goruyorsaniz ilk date in basina # koyu...
true
82a1ee5df4b975ddb8aff16e8a32b2c06d1dc576
Shell
pandrei7/egzamen
/Laboratoare/Lab10/lab-10-tasks/9-overflow-in-binary/maker.sh
UTF-8
146
2.765625
3
[]
no_license
#!/usr/bin/env bash function repeat { for i in `seq $1`; do echo -n -e "$2" done } repeat 32 "\xAA" repeat 1 "\x50\x52\x30\x4e"
true
92782494806cb4bfdd7e017c8a25f4f988c70a8f
Shell
ShareITio/image2ipfs
/registry/start.sh
UTF-8
506
2.625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash IPFS=${IPFS_GATEWAY%%/} # improvised templating engine sed -i "s|#IPFS#|$IPFS|g" /proxy.conf cat /proxy.conf if [ x$HTTPS_CERT != 'x' ];then sed -i "s|#HTTPS#|include /https.conf;|g" /nginx.conf sed -i "s|#HTTPS_KEY#|$HTTPS_KEY|g" /https.conf sed -i "s|#HTTPS_CERT#|$HTTPS_CERT|g" /https.conf ...
true
edc98cb1a797b0e31e77a2699232da7da7b743bd
Shell
karatatar/dotfiles
/scripts/package/aux/add.sh
UTF-8
574
3.5
4
[]
no_license
#!/usr/bin/env bash # vim: filetype=sh RECIPES_FOLDER="${DOTFILES}/scripts/package/recipes" recipe::list() { ls "${RECIPES_FOLDER}" \ | sed 's/\.sh//g' } recipe::install() { local -r dep="$1" bash "${RECIPES_FOLDER}/${dep}.sh" } filter::with_recipe() { local -r deps="$1" local -r regex="$2" ...
true
b4081f7c925401b0d3c45ea4cb60eed83a7ad018
Shell
naftulikay/joop-base
/etc/profile.d/pyenv.sh
UTF-8
251
2.96875
3
[ "MIT", "Apache-2.0" ]
permissive
export PYENV_ROOT="$HOME/.pyenv" export PATH="$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH" test -e "$PYENV_ROOT/completions/pyenv.bash" && \ source "$PYENV_ROOT/completions/pyenv.bash" if which pyenv >/dev/null 2>&1 ; then eval "$(pyenv init -)" fi
true
b420cef42d0d5b63cfa0f8d12b64d5191938552e
Shell
MaxMartin/puppet-acceptance
/spec/resource/host/should_destroy_spec.sh
UTF-8
233
2.875
3
[]
no_license
#!/bin/bash set -e set -u source lib/setup.sh PATTERN='^127.0.0.2[[:space:]]+test1' FILE="/tmp/hosts-$$" echo '127.0.0.2 test1' > $FILE puppet resource host test1 ensure=absent ip=127.0.0.2 target="$FILE" ! egrep $PATTERN $FILE
true
ece98fde39bdbfb93fd9d4ca924ddb9da0b51bd7
Shell
WilliamPiloz/Corewar
/champions/thomy/test_errors.sh
UTF-8
400
3.5
4
[]
no_license
#!/bin/bash SUCCESS=0 FAILS=0 FAIL_NAME="" if [ -z "$1" ] then printf "You must put asm exe in argument\n" exit 84 fi $(rm -rf ./*.cor) for file in "./error"/*.s do $(./$1 "$file") if [ $? -ne 84 ] then ((FAILS+=1)) FAIL_NAME+="{$file}\n" else ((SUCCESS+=1)) fi done $(rm -rf *....
true
21a26d9a285a2b4eae6aec92e0aa8a477e29b509
Shell
arader/scripts
/safemv
UTF-8
3,493
4.375
4
[]
no_license
#!/bin/sh # # safemv takes the place of the 'mv' command, making it # safe to move a file to a destination without the risk # of overwritting an existing file. if safemv encounters # a file in the destination with the same name, it will # compare the two file's hashes. If they are the same, # the src file will be remo...
true
cd2b2506685dfe0f68900cddc619eec4ad2bd003
Shell
protosskai/protosskai.github.io
/deploy.sh
UTF-8
437
2.703125
3
[]
no_license
#!/bin/zsh ### # @Description: hexo博客部署脚本 # @version: # @Auther: protosskai # @Date: 2020-11-12 18:50:19 # @LastEditTime: 2020-11-22 12:27:29 ### hexo clean > /dev/null if [ $? -ne 0 ];then echo "清理项目失败!" exit fi hexo g > /dev/null if [ $? -ne 0 ];then echo "部署项目失败!" exit fi cd ./public && mkdir source && c...
true
060871bf57b6a64590cc77f56541c988578fee34
Shell
josemariatores/evaluable1
/ev4.sh
UTF-8
516
3.296875
3
[]
no_license
#!/bin/bash ultima=0 diamaximo=0 read -p "Introduce tu nombre de usuario: " usuario if [[ $(cat usuarios.txt | grep -w $usuario | wc -l) -eq 0 ]];then echo "el usuario $usuario no se ha logueado" else for n in $(cat usuarios.txt | grep $usuario); do mes=$(echo $n | cut -d $`\t' -f3) #el cut es para seccionar la tabla...
true
041cdedd70e192564f0c395d81aef4b0b389aac5
Shell
ShalokShalom/plan.sh
/pkgfile/plan.sh
UTF-8
688
2.96875
3
[ "Apache-2.0" ]
permissive
pkg_origin=cosmos pkg_name=pkgfile pkg_version=17 pkg_description="An alpm .files metadata explorer" pkg_upstream_url="http://github.com/falconindy/pkgfile" pkg_license=('MIT') pkg_deps=('libarchive' 'curl' 'pcre' 'pacman') install=pkgfile.install pkg_source=("https://pkgbuild.com/~dreisner/sources/pkgfile/${pkg_name}...
true
919a51b3212f33d74c9a9c9f6858b267e2d91a80
Shell
rui314/mold
/test/elf/x86_64_tls-ld-mcmodel-large.sh
UTF-8
716
3.015625
3
[ "MIT", "Zlib", "BSD-3-Clause", "Apache-2.0", "BSD-2-Clause" ]
permissive
#!/bin/bash . $(dirname $0)/common.inc [ $MACHINE = x86_64 ] || skip cat <<EOF | $GCC -ftls-model=local-dynamic -fPIC -c -o $t/a.o -xc - -mcmodel=large #include <stdio.h> extern _Thread_local int foo; static _Thread_local int bar; int *get_foo_addr() { return &foo; } int *get_bar_addr() { return &bar; } int main()...
true
ce654318b936c5f9927bf40a872ada1272b213e6
Shell
andrew-szymanski/devops-prototypes
/poc-services/service-discovery-clients/mysql-server/areg.sh
UTF-8
898
3.59375
4
[]
no_license
#!/bin/bash log() { date "+%m-%d:%H:%M:%S $*" | grep -iv 'passw' } # *************** # *** register service # *************** log "$0 starting..." if [ -z "$URI" ]; then log "ERROR: URI env var not specified - run docker with '--env URI=https://hostname:4032/api/vi1' option" exit 1 fi # env vars required...
true
e448924e4261f7a097d2aa1b2672f98f00344264
Shell
incfly/istio-crl
/openssl-selfsign/2-sign-user.sh
UTF-8
2,320
3.921875
4
[]
no_license
#!/bin/bash set -e cd `dirname $0` function color_text() { echo -e "\\x1b[33;44m$1\\x1b[0m" } cd ./cert source config.sh serial_file=./serial serial_no=`echo $((16#$(cat $serial_file) + 1)) | awk '{printf("%02x", $1)}'` #证书有效天数 days=365 username=$1 if [ -z "$username" ]; then echo "usage: $0 <username>" ...
true
81c40940457169a72c21a67c26b386b81becb41e
Shell
mkdryden/conda-recipes
/dockerfiles/forge-builder/build.sh
UTF-8
209
2.578125
3
[ "BSD-3-Clause", "MIT" ]
permissive
#! /bin/bash # Copyright 2015-2019 Peter Williams # Licensed under the MIT License. set -e exec docker build --network=host --build-arg=EXTUSERID=$(id -u) --build-arg=EXTGRPID=$(id -g) -t forge-builder $(dirname $0)
true
b5c658b3960b787e6ddedc3417b9bb6353dbf621
Shell
Azure-Samples/azure-iot-edge-devops-sample-dotnet
/.pipelines/tasks/get-acr-creds.sh
UTF-8
560
2.90625
3
[ "MIT" ]
permissive
#!/bin/bash set -eo pipefail if [ -z "$ACR_USER" ]; then ACR_USER=$(az acr credential show -n "$1" --query username) ACR_USER=${ACR_USER//\"/} ACR_PASSWORD=$(az acr credential show -n "$1" --query passwords[0].value) ACR_PASSWORD=${ACR_PASSWORD//\"/} ACR_ADDRESS=$(az acr show -n "$1" --query loginS...
true
a313d69da830bb87fb8045a998489e9b7d0e4981
Shell
morettoni/clockspeed-svc
/supervise/taiclockadjust/run
UTF-8
294
3.109375
3
[ "BSD-2-Clause" ]
permissive
#!/bin/sh MAX=7884000 SLEEP=300 NTP=IP_SERVER_TAICLOCKD ROOT=/usr/local/clockspeed BIN=/usr/local/clockspeed/bin while true do sleep ${SLEEP} ${BIN}/taiclock ${NTP} | tee ${ROOT}/adjust | ${BIN}/clockview SLEEP=`expr ${SLEEP} + ${SLEEP}` [ ${SLEEP} -gt ${MAX} ] && SLEEP=${MAX} done
true
85c3639025a30d46e99650bbf42faf09a0a0ea59
Shell
LiberatorUSA/GUCEF
/dependencies/agar/Packages/install-unix.sh
UTF-8
6,886
3.59375
4
[ "Apache-2.0", "Bitstream-Vera", "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-free-unknown" ]
permissive
#!/bin/sh # # Installation script for %PROJNAME% %VERSION% on %OS%/%ARCH%. # Public domain # PROJNAME="%PROJNAME%" VERSION="%VERSION%" RELEASE="%RELEASE%" AR_OS="%OS%" AR_ARCH="%ARCH%" AR_FLAVOR="%FLAVOR%" SUBDIRS="bin:exec lib:exec include: share:" INSTALL_MODE="bsd" INSTSCRIPTNAME="install.sh" SH="/bin/sh" EXECSUFFI...
true
42c62227ef53b541722c5dde8ae81ee49e53b082
Shell
cltl/ceopathfinder
/pathfinder/run.sh
UTF-8
4,736
2.75
3
[ "Apache-2.0" ]
permissive
#How to run the CEO Pathfinder evaluation #We first run the Pathfinder using the MentionReader class. #This class reads the gold file, derives all mention pairs and tries to detect relations between them using the following methods: # 0 = baseline based on the mention sequence # 1 = using the CEO and CEO lexicon # 2 = ...
true
54845e11342bcb3a9c88bbec9ed5af98bb379153
Shell
veltzer/bashy
/tests/array.bash
UTF-8
997
2.984375
3
[ "MIT" ]
permissive
source core/array.bash function testSetLen() { array_new my_array array_set my_array 2 4 len= array_length my_array len assertEquals "${len}" 1 } function testSetPop() { array_new arr2 array_set arr2 0 a array_set arr2 1 b array_set arr2 2 c d=5 array_pop arr2 d assertEquals "${d}" c array_pop arr2 d as...
true
1522a211209b3489b56de2164e058805d5e673da
Shell
dzo/chipmunk
/lib/linklog
UTF-8
287
2.53125
3
[]
no_license
#!/bin/sh # Shell script to put together a new version of LOG # including user-written tools, gates, and simulators. LOGLIB=/usr/cs10/lib/log CC=gcc -I/usr/cs10/include $LOGLIB/munch 'Log_[a-zA-Z0-9_]*' $LOGLIB/log.a $* >logdir.c $CC logdir.c $LOGLIB/log.a $* -lp2c -lX11 -lm -o log
true
a1cf6efebb8bc7c9b64dbed24ed20020fe3ab7ab
Shell
jobscale/jsxjp
/localForward
UTF-8
1,052
3.375
3
[]
no_license
#!/usr/bin/env bash set -eu portForward() { target_ns=credentials target_svc=partner target_port=443 bind_addr=0.0.0.0 bind_port=3443 node_port=$(kubectl get service -n ${target_ns} ${target_svc} -o=jsonpath="{.spec.ports[?(@.port==${target_port})].nodePort}") if [[ "$node_port" == "" ]] then kube...
true
56490a2c5e8347d1eef64947bfce71ae0e84bae0
Shell
parayiv/noStarch
/cmdinpath.sh
UTF-8
225
3.71875
4
[]
no_license
#!/bin/sh myPath="$(echo $PATH | sed -e 's/:/ /g')" count=0 for file in $myPath; do for command in $(ls $file); do if [ -x $file/$command ]; then count=$(( count + 1 )) fi done done echo "We have $count commands"
true
e2776abaa57cab1bbd66a9aec1eae8824583e1d0
Shell
bluewaitor/playground
/shell/gitlog.sh
UTF-8
232
2.640625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash git log --since=am --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "effected files: %s, added lines: %s, removed lines: %s, total lines: %s\n", NR, add, subs, loc }' -
true
0c270f82a01b01ee70aeacbec66f3957fccb78af
Shell
chromium/chromium
/third_party/abseil-cpp/CMake/install_test_project/test.sh
UTF-8
2,975
3.84375
4
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "GPL-1.0-or-later", "MIT", "LGPL-2.0-or-later" ]
permissive
#!/bin/bash # # Copyright 2019 The Abseil Authors. # # 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 ...
true
c3745010a4dc53c169fb2090554d7189b4c96fad
Shell
intel/sound-open-firmware-test-cases
/functionality_test/check_pcm_playback.sh
UTF-8
893
3.21875
3
[]
no_license
# Check playback function FREQ=("17" "31" "67" "131" "257" "521" "997" "1033" "2069" "4139" "8273" "16547") rm -rf playback.log RATE=$1 if [ $RATE == "48k" ]; then RATE=48000 fi FORMAT=$2 if [ $FORMAT == "s16le" ]; then FORMAT=dat elif [ $FORMAT == "s24le" ]; then FORMAT=S24_LE elif [ $FORMAT == "s32le" ]; then F...
true
0080fdf7e01a27a5203d829c74e3ff5b775a9809
Shell
t-wissmann/dotfiles
/checkpackages.sh
UTF-8
963
4
4
[]
no_license
#!/bin/bash file="arch-packages" # Check that all packages specified in `arch-packages` are installed incomplete_group_installs() { # list groups that are not entirely installed comm -23 <(pacman -Sgg|sort) <(pacman -Qg|sort)|cut -d' ' -f1|uniq } full_group_installs() { # list groups that are entirely in...
true
3c7eb0aba6a5d7f04c8c9b635524d938509b2f87
Shell
Chisha14/KafkaCluster
/start.sh
UTF-8
1,008
3.140625
3
[]
no_license
#!/bin/bash # volume for saving Kafka server logs export KAFKA_VOLUME="/tmp/kafka/" # base name for Kafka server data dir and application logs export KAFKA_LOG_BASE_NAME="kafka-log" export KAFKA_APP_LOGS_BASE_NAME="logs" #Generate a random number between 1 and 1000 and assign it to broker.id #printf -v KAFKA_BROKER_I...
true
d0abdc69fe95b836677af93a2f4c25e855f1b2bb
Shell
SWPFlow/los-angeles-building-permits
/mbview/start.sh
UTF-8
264
3.03125
3
[]
no_license
#!/bin/bash set -o errexit set -o pipefail set -o nounset readonly MBTILES=${MBTILES_LOCATION:-'/data/export/tiles.mbtiles'} readonly PORT=${PORT:-3000} function start_mbview() { exec mbview --port $PORT $MBTILES } function main() { start_mbview } main
true
1c8e6d987bef03be0325a9d062d7544da3821fa9
Shell
ivanprofor/QwikLabs-Practices
/Quests/Google_Baseline-Infrastructure/06.Cloud-Functions_Qwik-Start.sh
UTF-8
2,105
3.875
4
[]
no_license
# First, you're going to create a simple function named helloWorld. This function writes a message to the Cloud Functions logs. It is triggered by cloud function events and accepts a callback function used to signal completion of the function. # For this lab the cloud function event is a cloud pub/sub topic event. A p...
true
59785117e07d4e4f972e12a12f5d98affae749b5
Shell
AditiPawar24/BootCampProgram
/Prime2.sh
UTF-8
472
3.65625
4
[]
no_license
#!/bin/bash -x low=1 count=0 while [ $low -eq 1 ] do echo "Enter a lower limit: " read low done echo "Enter the upper limit" read upper flag=0 i=1 j=2 for (( i=low; i<upper; i++ )) do flag=0; for (( j=2; j<$i; j++ )) do prime=$(( $i%$j )) if [ $prime -eq 0 ] then flag=1; # echo "$num is a ...
true
453fb8b7eb055f8d1b3a008f81791ee27cbd2aae
Shell
RHsyseng/conv-osp-ceph
/scripts/ansible-diff-apply.sh
UTF-8
2,371
3.625
4
[]
no_license
#!/usr/bin/env bash # Filename: ansible-diff-apply.sh # Description: copys yml from ceph-ansible-diff # Supported Langauge(s): GNU Bash 4.2.x # Time-stamp: <2016-05-01 16:43:03 jfulton> # ------------------------------------------------------- # Change the following based on w...
true
d9caa13e58c37f40a35c39c279fd7e25f2ac05a6
Shell
andersonz1/ztools
/zscanluns.sh
UTF-8
142
2.703125
3
[]
no_license
#!/bin/bash echo -e "Scanning for new luns at: " for i in $(ls -d /sys/class/scsi_host/*) do echo -e " $i;" echo "- - - " > $i/scan done
true
ea27cedcf8bf1c79278a4bfd7146d86a37b53a03
Shell
hail-is/hail
/check-sql.sh
UTF-8
720
3.796875
4
[ "MIT" ]
permissive
#!/bin/bash # Verify the the working tree modifices no sql files relative to the main # branch. This will always pass on a deploy because the working tree is an # unmodified copy of the main branch. target_treeish=${HAIL_TARGET_SHA:-$(git merge-base main HEAD)} modified_sql_file_list=$(mktemp) if [ ! -d sql ]; then...
true
2d242831bbb8da742d2584ce559ade4bf955191b
Shell
brucellino/cicd-platform
/terraform/aws/templates/user_data.tpl
UTF-8
207
2.578125
3
[ "MIT" ]
permissive
#!/bin/bash mkdir /mnt/efs service sshd start yum install -y amazon-efs-utils mount -t efs ${efs_id}:/ /mnt/efs echo ECS_CLUSTER=${cluster_name} >> /etc/ecs/ecs.config mount -l touch /mnt/efs/${timestamp()}
true
e761c84d2b0901391d87a87e40878ef24b8676cc
Shell
pepaslabs/deploy.sh
/lib/deploy.sh/prompt.bash
UTF-8
579
3.546875
4
[ "MIT" ]
permissive
prompt_Yn() { local message="${1}" echo -e -n "${color_yellow} * PROMPT (${echo_step_component}): ${color_off}${@} [Y/n]: " >&2 read yn case $yn in y|Y|yes|Yes|YES|'') return 0 ;; *) return 1 ;; esac # thanks to http://stackoverflow.com/a/226724 } prompt_yN() { local messa...
true
a8b9fd6e23d8e966878b7062cb9ddfd588a50ba1
Shell
StackOverflowError/Dapp
/sbin/reStart.sh
UTF-8
590
3.03125
3
[]
no_license
#!bin/sh . $HOME/LCMABASS_A/bin/base cd $JETTY_HOME #判断是否需要停机 STATUS_INFO=`ps -ef|grep $INTF_SYSCODE` if [[ $STATUS_INFO =~ java ]];then #执行关闭命令 cd $JETTY_HOME/bin sh $JETTY_HOME/bin/stop.sh STATUS_INFO=`ps -ef|grep $INTF_SYSCODE` if [[ $STATUS_INFO =~ java ]];then echo "关闭应用失败,请联系管理员重启!status=Undefined" ex...
true
ba4923e5f60016582cdca453b263f639fc00a9af
Shell
CNDuGi/UBUNTU_DUGIUBEXT
/010.setup_nfs.sh
UTF-8
781
3.453125
3
[ "MIT" ]
permissive
#!/bin/bash #作者:DUGIGEEK #日期:2018.12.08 #描述:samba配置 #使用颜色打印函数 source ~/.colorc export NFSSHARE_PATH=/nfsshare set -e pinfo "Install nfsshare [START]" do_install() { pwarn "Install $1 [START]" sudo apt-get install -y $1 > /dev/null 2>&1 if [ $? -eq 0 ]; then pdone "Install $1 [OK]" else perro "Insta...
true
ac9eabdcc9cbbbc26dd6a997174ae59ccce25bf8
Shell
DpakoH/bash-scripts
/net/makeSpoiler.sh
UTF-8
1,094
3.390625
3
[]
no_license
#!/bin/bash find . -mindepth 1 -maxdepth 1 -type d -print0 | xargs -r0 -n 1 echo | cut -c 3- | sort | while read dir ; do cd "$dir" if [ "$?" -eq "0" ] ; then newdir=`echo $dir | tr "[]" "()"`; echo "[B]$newdir[/B]" # find . -type f -print0 | sort | xargs -r0 -n 1 echo | grep -i \.flac$ | # cut -c 3- ...
true
6434b3247bc4eebc05a871c39331f30d2c4258a0
Shell
The-Ark-Informatics/ark
/ark-build-pwd.sh
UTF-8
2,424
3.375
3
[]
no_license
#!/bin/bash # Define global variables #export DEV_USER=$USER #assumes the same as current user export WORKSPACE_DIR=`pwd` #relative to current user HOME dir COMPILE_ALL=1 is_changed() { [ "$(git diff --shortstat `pwd` 2> /dev/null | tail -n1)" != "" ] || [ $COMPILE_ALL -eq 1 ] } printHelpAndExit() { printf $"Usa...
true
80b418ddff9b6d477475bc957d657346a32086e7
Shell
rentalcustard/phantomjs
/deploy/build-and-package.sh
UTF-8
881
3.546875
4
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash cd `dirname $0`/.. ./build.sh --qt-config "-debug -webkit-debug" || exit 1 rm deploy/*.tar.bz2 ./deploy/package-linux-dynamic.sh || exit 1 pushd src/breakpad ./configure && make || exit 1 popd ./tools/dump-symbols.sh # The minidump_stackwalk program is architecture-specific, so copy the # bina...
true
3c21dd3457b190125d89d1abafb988341a6e1ced
Shell
jlconlin/bashConfig
/bashrc.bash
UTF-8
1,022
2.65625
3
[ "BSD-3-Clause" ]
permissive
# .bashrc printf "Executing ~/.bash/bashrc.bash\n" export BASHRC=$HOME/.bash export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 ## HISTORY, configure export HISTFILESIZE=10000 export HISTSIZE=$HISTFILESIZE export HISTCONTROL=ignoredups:erasedups export HISTIGNORE="&:bg:fg:ll:h" # export DISPLAY=":0.0" alias vless="...
true
4ad0012711b30985b92ae2092fd02a64d007fa33
Shell
dffischer/gnome-shell-extensions
/makepkg-templates/find-version-1.template
UTF-8
557
2.953125
3
[]
no_license
depends[125]=gnome-shell package_20_version() { local compatibles=($(\ find -path ./pkg -type d -prune -o \ -name metadata.json -exec cat '{}' \; | \ tr -d '\n' | grep -Po '(?<="shell-version": \[)[^\[\]]*(?=\])' | \ tr '\n," ' '\n' | sed 's/3\.//g;/^$/d' | sort -n -t. -k 1,1)) depends+=("gnome-she...
true
139bb385e7ab0c15dbbc8e7e9acd80c9921d23cc
Shell
roshanmurkar/employeewage
/empWageProgram.sh
UTF-8
1,121
3.125
3
[]
no_license
#!/bin/bash -x echo "Welcome Employee Wage Program " isPresent=1; randomCheck=$((RANDOM%2)); isPartTime=1; isFullTime=2; totalSalary=0; empRatePerHr=20; maxHrsInMonth=10; numWorkingDays=20; totalEmpHrs=0; totalEmpWage=160; EmpHrPerDay=8; totalWorkingDays=0; totalEmpWagePerDay=0; if [ $isPresent -eq $randomCheck ]...
true
f63453e532972dae038d56cacc48c661627e80ce
Shell
firemodels/smv
/vistest/scripts/check_files.sh
UTF-8
546
3.421875
3
[ "NIST-Software" ]
permissive
#!/bin/bash base=$1 last=$2 underscore="_" png=".png" num2seq() { num=$1 if [[ $num -lt 10 ]] ; then seq="000$num" elif [[ $num -ge 10 && $num -lt 100 ]] ; then seq="00$num" elif [[ $num -ge 100 && $num -lt 999 ]] ; then seq="0$num" else seq=$num fi } echo "RENDERDIR" echo " frames" echo "L...
true
6f0dbeb225e09279fed2a456a805f7f0260ea5f1
Shell
seadog007/dot-files
/setup.sh
UTF-8
1,178
3.125
3
[]
no_license
#!/bin/bash # Run this script by # curl -s https://raw.githubusercontent.com/seadog007/dot-files/master/setup.sh | bash # Download ssh auth by # curl -s https://raw.githubusercontent.com/seadog007/dot-files/master/.ssh/authorized_keys > ~/.ssh/authorized_keys # For fucking MacOS [ "`git 2>&1 | grep -o xcode`" == "xco...
true
7a4e6e45c906c6472e02a307dc83994f64aa1cb2
Shell
gikeymarcia/dotfiles
/.fzf.bash
UTF-8
256
2.625
3
[]
no_license
#!/bin/bash # I linked the completion.bash and key-bindings.bash from fzf git repo # Auto-completion # --------------- [[ $- == *i* ]] && source "$HOME/.fzf/completion.bash" 2> /dev/null # Key bindings # ------------ source "$HOME/.fzf/key-bindings.bash"
true
08a7bb4d13b8e9164e5300d56ccce95ef31d448e
Shell
hardentoo/gentoo-docker
/eapi.sh
UTF-8
6,765
3.875
4
[ "MIT" ]
permissive
#!/bin/bash # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # We need this next line for "die" and "assert". It expands # It _must_ preceed all the calls to die and assert. shopt -s expand_aliases alias save_IFS='[ "${IFS:-unset}" != "unset" ] && old_IFS="${IF...
true
9730aa6608c33d0c21425e6f9bc06bab712f5bb7
Shell
ltfafei/myShell_Script
/Check_uninstall_driver(Ubun).sh
UTF-8
473
2.640625
3
[]
no_license
# Chack and uninstall driver lspci | grep -i nvidia sudo apt-get purge nvidia* sudo apt-get autoremove touch /etc/modprobe.d/blacklist.conf cat >> /etc/modprobe.d/blacklist.conf << EOF blacklist nouveau blacklist lbm-nouveau options nouveau modeset=0 alias nouveau off alias lbm-nouveau off EOF echo "options nouveau mod...
true
b02db9eaa6106f3c2c1687e1ce932d2366186e93
Shell
ElCombo/DataConfiguracionABMusuariosSO
/sub_shell/estadoServicios.sh
UTF-8
3,548
3.5625
4
[]
no_license
#!/bin/bash #VERCION 2.0 - 4/8 SEGUNDA ENTREGA desarrolado por Bit (3°BD 2019) reinicioExterior() { if systemctl restart $1.service then echo "Servicio reiniciado" else echo "Error desconocido: $?" fi } function desactivarServicio() { if systemctl disable $sname.service then echo "Servicio desacti...
true
705c4035310bd3263d7c0553653553d90626014c
Shell
Joni-Lover/raid_check
/raid_check.sh
UTF-8
8,886
3.765625
4
[]
no_license
#!/bin/bash #=============================================================================== # # FILE: raid_check.sh # # USAGE: ./raid_check.sh # # DESCRIPTION: # # OPTIONS: RAID_STATUS CTRL_STATUS GET_TMP_REPORT # REQUIREMENTS: hpacucli MegaCli StorMan mpt-status sas2ircu # BUGS: ---...
true