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
ba5e22817b38b62110cee092c904f46ebefa0362
Shell
jarmitagetd/bteq-object-hierachy
/report.sh
UTF-8
3,625
3.96875
4
[]
no_license
#!/bin/bash #------------------------------------------------------------------------------------------# # SCRIPT: BTEQ DATABASE OBJECT HIERACHY REPORT GENERATOR # # VERSION: 1.0 # # RELEASED: 28/09/2017 ...
true
a00f9afa86204a9a052e1599eade512982e348c1
Shell
LeoWare/clfs
/scripts/clfs/098-vim.sh
UTF-8
1,560
3.421875
3
[ "Unlicense" ]
permissive
#!/bin/bash set -o errexit # exit if error set -o nounset # exit if variable not initalized set +h # disable hashall source $TOPDIR/config.inc source $TOPDIR/function.inc _prgname=${0##*/} # script name minus the path _package="vim" _version="8.0" _sourcedir="${_package}80" _log="$LFS_TOP/$LOGDIR/$_prgna...
true
210295cb8759b86c205a496db89dda85a007c4c8
Shell
0cjs/jsws
/Build
UTF-8
869
3.765625
4
[]
no_license
#!/bin/bash set -e trap ' [ ok = "$success" ] || err FAILED. # First, in case anything after fails. [ -n "$test_server_pid" ] && kill "$test_server_pid" ' 0 err() { echo 1>&2 "$@"; exit 1; } start_test_server() { local port="$1" node src/jsws.js "$port" & test_server_pid=$! # XXX The server s...
true
79106f75579f33a98325d980370f6f078011c5ff
Shell
djamseed-khodabocus-cko/dotfiles
/.bashrc
UTF-8
1,376
3.8125
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # If not running interactively, don't do anything case $- in *i*) ;; *) return ;; esac for file in ~/.{aliases,dockerfuncs,exports,extra,functions,path}; do if [[ -r "$file" ]] && [[ -f "$file" ]]; then # shellcheck source=/dev/null source "$file" fi done unset file # open...
true
8c95855717a2e46c8b7ab9250d7d870719298272
Shell
PercyChuang/modest
/modest-parent/modest-starter/src/main/resources/OnlineShell.sh
UTF-8
3,265
3.484375
3
[]
no_license
set +x except(){ if [ $? != 0 ]; then echo "#################$1,Check the configuration and publishing process" exit fi } #开关 switch=${switch} if [ ${switch} == "OFF" ] then exit fi #定义常量 EVN=bate #预发布bate 生产pro PROJECT_NA...
true
9519e6f24fa02d47cf1ad9b60951de3ad7879952
Shell
gabnetx/ShellScripts
/Util/UpdatePackage.sh
UTF-8
6,134
3.984375
4
[ "MIT" ]
permissive
#!/bin/sh VERSION="2018.08.23-05:19" PKGS="git perl" #colors DEFAULT="$(printf "\\033[0;39m")" WHITE_BOLD="$(printf "\\033[1m")" WHITE_BG="$(printf "\\033[7m")" RED="$(printf "\\033[0;31m")" TMPDIR="/tmp/$$" USERS="$(busybox cat /etc/passwd | busybox awk -F: '{if ($3 >= 1000 && $3 < 60000) print $1}')" _usage() { ...
true
eb08f6fbb951b7bd59de7625314ec7854a8797e9
Shell
haiderny/log4sh
/1.3/src/test/testSMTPAppender
UTF-8
3,598
3.703125
4
[ "Apache-2.0" ]
permissive
#! /bin/sh # $Id$ MY_NAME=`basename $0` MY_PATH=`dirname $0` APP_NAME='mySMTP' APP_CONFIG="${MY_NAME}.log4sh" TEST_SUBJECT='This is a Subject worth testing' TEST_TO='some.user@some.host' # load common unit test functions . "${MY_PATH}/test-functions.inc" #-----------------------------------------------------------...
true
a82a744ee4950806ad2482b56b5fa2f4a253117d
Shell
barryk/arch-osx
/unrar/PKGBUILD
UTF-8
674
2.640625
3
[]
no_license
# PKGBUILD autocreated by ABStoOSX 0.2 # $Id # ArchLinux Maintainer: Giovanni Scafora <giovanni@archlinux.org> # Contributor: dorphell <dorphell@gmx.net> pkgname=unrar pkgver=3.9.5 pkgrel=2 pkgdesc="The RAR uncompression program" arch=('macx86') url="http://rarlab.com" license=('custom') source=(http://www.rarlab.com/...
true
87bafce7abfa32af29608599be70a085d50989e5
Shell
study-groups/devops-study-group
/investigations/buildpak-orig/stop
UTF-8
309
3.09375
3
[ "MIT" ]
permissive
#!/bin/bash dir=$(dirname $BASH_SOURCE) cd $dir pid=$(cat ./app.pid) time=$(date) >&2 echo "BASH_SOURCE: $BASH_SOURCE" >&2 echo "dir: $dir" >&2 echo "$time: Killing $pid" kill $pid time=$(date) >&2 echo "$time: Killed: $pid" echo "" > ./app.pid >&2 echo "Killed $(cat app.name) with PID: $(cat ./app.pid)"
true
bcc365fe91adb93300b78d22fb6c055a9dc5d8a8
Shell
oyzeyno/vmbuilder
/provisioning/module_powerfit_disvis.sh
UTF-8
1,463
2.953125
3
[]
no_license
#!/usr/bin/env bash # # Provisioning for the PowerFit and DisVis module # export DEBIAN_FRONTEND=noninteractive # StackOverflow 500764 echo "[+] Provisioning: PowerFit and DisVis module" echo "[++] Downloading PowerFit & DisVis dependencies including fftw for multiple CPU usage " apt-get -qq install -y --no-install-...
true
7a84b2fcbc46a2f0251e0aafcc350eeb04be777f
Shell
cjml1982/GUI
/release_deb/app_MinerGUI/MinerGUI/MinerGUI.sh
UTF-8
342
3.078125
3
[]
no_license
#!/bin/sh appname=`basename $0 | sed s,\.sh$,,` #echo `basename $0` dirname=`dirname $0` #echo `dirname $0` tmp="${dirname#?}" #echo "${dirname#?}" if [ "${dirname%$tmp}" != "/" ]; then dirname=$PWD/$dirname fi LD_LIBRARY_PATH=/usr/share/app_MinerGUI/lib #echo $LD_LIBRARY_PATH export LD_LIBRARY_PATH $...
true
ce0ce3cb61b70417f73fd50c38f72e88f16d8ba2
Shell
fsabado/ASTRAN-template
/runCell.sh
UTF-8
926
3.421875
3
[]
no_license
#!/bin/env bash if [ "$#" -eq 1 ]; then CELLNAME=$1 # OPTION=$2 else echo " Usage: ./runCell.sh <CellName> <autoflow[All]> " fi NETLISTDIR="/home/fsabado/Tezzaron3D_project/SpiceNetlist/netlistScript" CELLDIR=$1 if [ ! -e $CELLDIR ]; then echo "$CELLDIR doesn't exist. Set up directory." exit 1 fi if [...
true
ff4f4ac6edb611467445944732033aa5ea2ac5de
Shell
BradMorgan96/SeleniumAutomation
/out/production/TestProject/run_selenium.sh
UTF-8
1,113
3.09375
3
[]
no_license
#!/bin/bash ###################################################### dt=`date +%F.%R.%S` dt=`echo $dt | tr : .` # # set up directories # script=/SeleniumTestNG/scripts bin=/usr/bin # # remove previous re-run files # rm -f $script/failures.xml rm -f $tmp/*.dat # dtfile=$tmp/rundate.dat rm -f $dtfile log="/SeleniumTestNG/...
true
4122c7ad3e3a2c657312e2511467cf1939266dab
Shell
ejhumphrey/capn-demo
/doall
UTF-8
856
4.09375
4
[]
no_license
#!/bin/sh # Simple shell script to compile the Capn Proto and C++ source, run the main # file to generate the serialized data, and execute a python script that # that checks the data for consistency. # # Sample Call: # $ doall 3375 if [ -z "$1" ]; then echo "Usage:" echo "doall {num_elements}" echo $'\tnum...
true
1e237a9cf324d696bd0da582f56ea430d753e9fd
Shell
cms-sw/cmssw
/FWCore/TFWLiteSelector/test/run_all_t.sh
UTF-8
1,216
2.84375
3
[ "Apache-2.0" ]
permissive
#!/bin/sh # Pass in name and status function die { echo $1: status $2 ; exit $2; } LOCAL_TEST_DIR=${SCRAM_TEST_PATH} export TMPDIR=`pwd` cmsRun ${LOCAL_TEST_DIR}/gen_things_cfg.py || die 'Failed generating test root file' $? rm -f a.jpg refA.jpg root -b -n -q ${LOCAL_TEST_DIR}/thing_sel.C || die 'Failed tfwlitesele...
true
bdd9c6d7b9571727b15b1ddfde2d9f6df760de17
Shell
anushkmittal/FlyRight
/business-logic-server/install_on_redhat_enterprise_7.sh
UTF-8
742
2.515625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash echo "Setting up Business Logic Server" sudo yum update sudo yum install postgresql binutils libproj-dev gdal-bin postgresql-contrib redis-server screen gunicorn nginx #setup database sudo -u postgres createuser flyright_user sudo -u postgres createdb flyright_db psql -u postgres -d "flyright_db" -...
true
ab13bf86460604022d6f91ef908b00e9c426db5d
Shell
markus1189/hurl-dev
/sites/build.sh
UTF-8
1,646
3.109375
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -e rm -rfd hurl.dev/_site/* export CI_COMMIT_SHORT_SHA CI_COMMIT_SHORT_SHA=$(git rev-parse --short HEAD) # Build the grammar html from our spec. echo 'Building grammar...' echo '-------------------' echo '{% raw %}' > hurl.dev/_includes/grammar.html python3 grammar2html.py >> hurl.dev/_includ...
true
dc702c8a763bddbb0b27e43413c7926e297a3215
Shell
cizydorczyk/bash_scripts
/phd/F5_clean_snippy_1.sh
UTF-8
1,354
3.71875
4
[]
no_license
#!/bin/bash # Variables: # 1: snippy-core output directory (where all output will be generated) # 2: snippy-core output prefix # Set printed-to-screen script text color (generally don't change): COLOR='\033[1;36m' NC='\033[0m' cd $1 printf "${COLOR}Removing reference genome from whole genome alignment...${NC}\n" p...
true
4ecf93a946f4e7be2c0b8da612ef08ff06b47033
Shell
Etersoft/etersoft-build-utils
/share/eterbuild/functions/repos
UTF-8
243
2.71875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # 2010 Etersoft www.etersoft.ru # Author: Vitaly Lipatov <lav@etersoft.ru> # Public domain get_git_url() { grep "^$1 " $ETERBUILDETC/repos/gitalias | cut -f2 -d" " } get_rsync_path() { grep "^$1 $2" $ETERBUILDETC/repos/rsync | cut -f3 -d" " }
true
42ae09c6c52c12a4f174b06f0e94618dd831ee28
Shell
whitefancy/shellScriptsUtils
/permission_usage.sh
UTF-8
575
2.953125
3
[ "Apache-2.0" ]
permissive
#!/bin/zsh #指定命令解释器 #执行shell脚本方法 #给该脚本回执行权限 如: chmod a+x 1.sh #然后直接可执行 #通过 执行 . 1.sh #通过 执行 source 1.sh #通过指定sh执行 如: 或 /bin/bash 1.sh /bin/bin 1.sh chmod -R a+r * #此外chmod也可以用数字来表示权限如 : chmod 777 file #语法为: chmod abc file 要递归操作给定目录下的所有文件和目录,请使用chmod带有-R, ( --recursive) 选项的命令。递归更改文件权限的一般语法如下: chmod -R MODE DI...
true
b9ab2bcdc7a01663fd9be0a335e99dfcf36a74ec
Shell
yktoo/yktools
/touchpad-toggle
UTF-8
1,014
3.90625
4
[]
no_license
#!/bin/bash #======================================================================================================================= # Toggle the touchpad on/off #======================================================================================================================= . "$(dirname "$(realpath "$0")")/com...
true
5e38146d9c2a6f460bbd91a716ef75dc7ee23eee
Shell
malradhi/merlin
/egs/slt_arctic/s1/run_full_voice.sh
UTF-8
1,393
3.234375
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
#!/bin/bash ################################################################################## # # # Continuous vocoder based Merlin toolkit for Text-To-Speech (TTS) # # Works only with 16 kHz WAV files # # # # Author: # # ...
true
c885fa8a13274679135d03178e83ffd92adfa3fd
Shell
cmurphy/infracloud-development
/functions/sshvm
UTF-8
993
3.875
4
[]
no_license
#!/bin/bash ssh_cmd() { local vm_ip=$1 shift ssh devuser@${vm_ip} -o StrictHostKeyChecking=no "$*" } sshvm() { local vm_name=$1 shift local vm_mac=$(virsh dumpxml $vm_name | grep -m 1 'mac address' | cut -d "'" -f 2) local vm_ip=$(arp -n | grep -m 1 $vm_mac | cut -d ' ' -f 1) local tries=2 while [ $...
true
dfe272e6e3fd825d46b2864f12afe966c7189fac
Shell
KestrelInstitute/Specware
/Release/Mac/sbcl/Specware
UTF-8
1,569
3.390625
3
[ "BSD-2-Clause" ]
permissive
#!/bin/sh xemacs=`which xemacs` act='launch Specware' if [ -z "$xemacs" ]; then xemacs="/sw/bin/xemacs" fi PATH=/bin:/usr/bin:/etc:/sbin:/usr/sbin:${PATH} # Use the directory of this file as the value of SPECWARE4 cd `dirname $0`/../../.. SPECWARE4=`pwd` export SPECWARE4 # Test whether SPECWARE4 has been set if...
true
aecfc705fe5f568c2cf2d5df41e4634064ee3756
Shell
mitchty/src
/funcs/host
UTF-8
477
3.625
4
[]
no_license
#-*-mode: Shell-script; coding: utf-8;-*- # Host related nonsense function host_name { name='' case $(os_type) in osx) name=$(hostname -s) ;; *) name=$(uname -n) ;; esac echo $name } hostps1name='' # Cached, for obvious reasons. function host_ps1name { if [[ ${hostps1name:+1} != 1 ]]; then host...
true
c39de6b221d3ff85a4ac7a71dc1e9b72f9eec9d4
Shell
richartl/my_scripts
/utils.sh
UTF-8
1,861
3.28125
3
[]
no_license
#!/bin/bash function greet() { echo "##########################################################" echo "############### HELLO RIPPER::INSTALL < > ################" echo "##########################################################" } function update() { echo "" echo "#######################################" echo "#...
true
a2626b232974084bc904365ac2ebf0bfd2b899b1
Shell
heidtn/Project_0
/benchmarker.sh
UTF-8
163
2.671875
3
[]
no_license
#!/bin/bash for(( i = 0; i < 10; i ++ )) do NUMBER=$i # touch /testfiles/testfile$NUMBER.txt python gen-valid.py $NUMBER > testfiles/testfile$NUMBER.txt done
true
38b733ec870b0b47ddf46c89a7621bde35fbdc09
Shell
kungtesheng/metalearn-leap
/make_omniglot.sh
UTF-8
1,375
3.03125
3
[ "Apache-2.0" ]
permissive
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in th...
true
5d3ebc01d8d5e0d7f14875749ff4c5c03e9f5435
Shell
jeancar514/dotfiles
/install_arch
UTF-8
38,830
3.84375
4
[]
no_license
#!/bin/bash # -------------------------------------------------------- run(){ installdependencies loadconfigs checkefi setkeymap chooseeditor selectdisk "${title_device}" "${menu_device}" device="${sel_device}" selectswapsize diskpart formatdevice mountparts installmenu ...
true
c6edd2b86c6fd7df53bdac583751968654780320
Shell
petronny/aur3-mirror
/ut4-dummy/PKGBUILD
UTF-8
1,338
2.640625
3
[]
no_license
# Maintainer: Arvedui <arvedui@posteo.de> # Contributor: haagch <haagch@studi.informatik.uni-stuttgart.de> # Contributor: bergalath <bga@bga.la> pkgname=ut4-dummy pkgver=2532759 pkgrel=1 pkgdesc='PRE-ALPHA of the new Unreal Tournament based on Unreal Engine 4. Registration at the forum required. Download zip file and ...
true
be79e853c71a6590a8a67c727c28a0122fcddb58
Shell
carobellum/oxford_rs_analysis
/copy_labelfiles.sh
UTF-8
890
2.65625
3
[ "MIT" ]
permissive
#!/bin/bash # ------------------------------------------------------------------------------ # Script name: inspect_gicas.sh # # Description: Copy group level components locally and inspect # # Author: Caroline Nettekoven, 2020 # # ------------------------------------------------------------------------------ #...
true
12691732ae001d7bfd4b7d55ad86578544d2798a
Shell
spl/databrary-vagrant
/user-config.sh
UTF-8
511
3.671875
4
[ "BSD-3-Clause" ]
permissive
#!/bin/bash function git_install() { REPOSITORY="$1" TARGET_DIR="$2" if [[ -d "$TARGET_DIR" ]]; then echo "$(basename $TARGET_DIR)" pushd "$TARGET_DIR" &> /dev/null git pull > /dev/null popd &> /dev/null else git clone --recursive "$REPOSITORY" "$TARGET_DIR" pushd "$TARGET_DIR" &> /dev/...
true
7890278a93708a02594bd0065b0736f2a76874aa
Shell
nichol77/creamteaPcaCode
/runOver10000EntryFiles.sh
UTF-8
725
3.34375
3
[]
no_license
#!/bin/bash if [ "$2" = "" ] then echo "usage `basename $0` <dir name> <file base>" exit 1 fi DIR_NAME=$1 BASE_NAME=$2 #for startVal in 5001 6001 7001 8001 9001; do for indVal in `seq 1 10`; do let startVal=$indVal-1 let startVal=100*$startVal let startVal=$startVal+1 let endVal=$startVal+...
true
e73130e44aac605eb34207da85994316b996ed9a
Shell
seraph02/servicetask
/unassigned.sh
UTF-8
754
2.609375
3
[]
no_license
#!/bin/bash node="kmP6f7KFSTmyjN5rgYubvQ" host="192.168.1.49" for index in $(curl -s 'http://'$host':9200/_cat/shards' | grep UNASSIGNED | awk '{print $1}' | sort | uniq); do for shard in $(curl -s 'http://'$host':9200/_cat/shards' | grep UNASSIGNED | grep $index | awk '{print $2}' | sort | uniq); do e...
true
08f064036c685290b2fa6477579f3ecfed4069ee
Shell
delphix/omnios-build
/build/p7zip/build.sh
UTF-8
3,328
3.328125
3
[]
no_license
#!/usr/bin/bash # # CDDL HEADER START # # The contents of this file are subject to the terms of the # Common Development and Distribution License, Version 1.0 only # (the "License"). You may not use this file except in compliance # with the License. # # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICEN...
true
905c6c55a21b73528f9a4b47b09907e9677ccc32
Shell
gratsgravelsins/DMI
/jautajums3
UTF-8
393
3.109375
3
[]
no_license
#!/bin/bash #2.PIEMĒRS SASKAITA TRĪS SKAITĻUS UN IZDALA AR brīvi izvēlētu skaitli read -p "Ievadi pirmo skaitli : " n1 read -p "Ievadi otro skaitli : " n2 read -p "Ievadi trešo skaitli : " n3 read -p "Ievadi skaitli ar kuru vēlies dalīt : " n4 # dolara zīme un dubulta iekava, tad rezultātu saskaita kopā! var=$((($n1+...
true
7d1e6d806260f9de9589106bd7af1d4160912b26
Shell
Alwin-Lin/development-debug-androidTest
/releaseParser/releaseParser.sh
UTF-8
575
3.546875
4
[]
no_license
#!/bin/bash # Parse a release if [[ -z $INDIR ]]; then echo to set INDIR="path/to/release/folder" exit fi if [[ -z $OUTDIR ]]; then echo to set OUTDIR="path/to/output/folder" exit fi if [[ -z $REL_PARSER_JAR ]]; then echo to set REL_PARSER_JAR="path/to/releaseParser.jar" exit fi if [[ -z $JA...
true
93977786e1cf1908ccc451956eea44b2d5167a2c
Shell
dirty49374/.settings
/bin/git-recent-file.sh
UTF-8
201
3.015625
3
[]
no_license
#!/bin/sh min=${1:-60} find .git/objects -type f -cmin -$min | awk -F "/" '{ "git cat-file -t " $3$4 | getline type; if (type == "blob") { print "======= " $3$4; system("git cat-file -p " $3$4)} }'
true
dd8e0be1da371d316dcc4de2b458394f46615322
Shell
allu77/autodl
/bin/download-sleep
UTF-8
339
3.53125
4
[ "Apache-2.0" ]
permissive
#!/bin/sh . /etc/autodl/autodl.conf cmd=$0 sleep_delta=$(expr $SLEEP_MINS \* 60); while [ $# -gt 0 ]; do case "$1" in -s) shift; sleep_delta=$1 ;; *) echo "Unknown option $1" >&2 echo "Usage: $cmd [-s seconds]" >&2 exit 1 ;; esac shift done echo $(expr $(date +"%s") - $SLEEP_MINS \* 60 + $sleep_de...
true
01c77247b3f805188c807c502084658d71a35db5
Shell
systane/tcc
/findMaximum.sh
UTF-8
487
3.125
3
[]
no_license
#!/bin/bash while read CLASSIFICADOR do file="classificacoes/distancia_euclidiana/class:"$CLASSIFICADOR touch 'classificacoes/distancia_euclidiana/resultados' echo 'classificador:'$CLASSIFICADOR >> 'classificacoes/distancia_euclidiana/resultados' tr "," "." < $file | awk -F"valor: " 'NR==2{a[NR]=min=$2} {a[...
true
dd8f4268284508a9ac60f4b0209fc757f856d0e5
Shell
SamsungSLAV/festral
/Distribution/ManPages/manpage-generator.sh
UTF-8
1,809
4.125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash BUILD_OUT=$1 OUT=$2 PREFIX_PATH=$3 FESTRAL_BINARY=festral FARMER_BINARY=farmer COPYRIGHT='Copyright (c) 2018-2019 Samsung Electronics Co., Ltd. All Rights Reserved.' INCLUDE_FILE=${PREFIX_PATH}/includes.h2m # generate_manpages binary_path binary_name function generate_manpages { BIN_PATH=$1 BIN_N...
true
af28f8551ccdf808f72e1ac45bb79ce730493a15
Shell
GSI-CS-CO/mtca_mmc_firmware
/LPC2136_FreeRTOS_CoreIPM/src/build_id.sh
UTF-8
3,324
3.8125
4
[]
no_license
#!/bin/bash echo "Gathering info to generate build info header..." pwd build_date=$(date) git_user=$(git config user.name) if [[ $git_user ]]; then echo "$git_user" else echo "Git user name not set -- please run: git config --global user.name your-name-here" exit 1 fi git_email=$(git config user.email) if ...
true
5d1fe1ff97edebda0bb50eb1283c8a105a2f45c8
Shell
petronny/aur3-mirror
/fcgene/PKGBUILD
UTF-8
1,058
2.671875
3
[]
no_license
# Maintainer: Mike Dacre <mike@dacre.me> 0xE76370D6 pkgname=fcgene pkgver=1.0.7 pkgrel=1 pkgdesc="Interconvert GWAS/genotype file formats. e.g. plink, impute2, snptest, haploview" arch=('i686' 'x86_64') url="http://sourceforge.net/p/fcgene/wiki/Genotype%20format%20converting%20tool%20:%20FCgene/" license=('GPL') depend...
true
0564403ffcc9128db21d97a721fa49a8b32c4c69
Shell
roger-beathard/cf-terraform-gke
/codefresh/get-kubeconfig.sh
UTF-8
1,239
3.078125
3
[]
no_license
set -e terraform init export CLUSTER_NAME=$(terraform output cluster_name) export REGION=$(terraform output region) export PROJECT_ID=$(terraform output project_id) export KUBECONFIG=$PWD/kubeconfig.yaml GET_CMD="gcloud container clusters describe $CLUSTER_NAME --region $REGION --project $PROJECT_ID" echo "apiVe...
true
c640ecb88c77c9b4e865195fb3db96f00f72843a
Shell
mluszczyk/mrjp-instant
/insc_jvm
UTF-8
225
2.859375
3
[]
no_license
#!/bin/bash set -e INFILE="$1" DIR=`dirname $INFILE` BASENAME=`basename $INFILE .ins` JFILE="$DIR/${BASENAME}.j" stack exec compile jvm "$INFILE" > $JFILE sed -i "" "s/Instant/$BASENAME/1" "$JFILE" jasmin -d "$DIR" "$JFILE"
true
8ca20febb695f889587986e994d8cb29ecace502
Shell
rcarreon/robc_main
/sandbox/scripts_test/100
UTF-8
66
2.578125
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
#!/bin/bash for i in $(seq 10) do echo "Welcome $i times" done
true
1a91f7f6ae8c02ddba916144d5a19af02204b3a9
Shell
yassh/str-repeat-cli
/test.sh
UTF-8
416
3.34375
3
[]
no_license
#!/bin/sh function test() { local INPUT=$1 local EXPECTED=$2 local ACTUAL=$(eval "./bin/index.js $1") local TESTCASE="INPUT: $INPUT, EXPECTED: $EXPECTED, ACTUAL: $ACTUAL" if [ "$EXPECTED" = "$ACTUAL" ]; then echo "✓ $TESTCASE" return 0 else echo "✖ $TESTCASE" return 1 fi } test 'w 10' '...
true
169777da2145273a64a9193fd336b12466423f1b
Shell
lucabe72/ReclaimingTests
/TaskSets/TS/process-2.sh
UTF-8
805
3.203125
3
[]
no_license
ALPHA=$2 GAMMA=$3 RECLAIM=$4 do_run() { echo Executiong $1... mkdir -p $2/$(basename $1) Q=$(../MP-Guarantee/umax_free $1) echo fake $Q 400000 sudo ../Fake/fake $Q 400000 0 & sudo ../Fake/fake $Q 400000 1 & sudo ../Fake/fake $Q 400000 2 & sudo ../Fake/fake $Q 400000 3 & sudo ../rt-app/src/rt-app $1.j...
true
6d8e20c1d506b891dc29112b449fcde7d7ad6a4e
Shell
ducphamle2/Hust-Thesis
/scripts/fn.sh
UTF-8
10,525
3.9375
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # # Copyright Oraichain 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) LOG_LEVEL=${LOG_LEVEL:-error} # environment BASE_DIR=$PWD SCRIPT_NAME=`basename "$0"` ...
true
4ed97e27d9e9d1a72d4204dbd55b69aa82ca8531
Shell
digi-embedded/meta-digi
/scripts/dey-aws-tool.sh
UTF-8
5,760
3.640625
4
[]
no_license
#!/bin/sh # # Copyright (c) 2017, Digi International Inc. # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, you can obtain one at http://mozilla.org/MPL/2.0/. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS...
true
4a4cf6603aaf1e774e2f415c8005c7ce08352ab1
Shell
peakBreaker/.dotfiles
/.scripts/statusbar/i3timetracker
UTF-8
691
3.21875
3
[]
no_license
#!/usr/bin/env bash case $BLOCK_BUTTON in 1) notify-send "<b>Logs for today:</b> <br>$(watson log -d | sed 's/\t//g' | awk ' {split($0, a, "s")} { print "<b><i>" $1 "</i></b> " $2 " " $5 " " a[2] }' | awk ' NR>1 {print $1" " $2 " " $3 " " substr($5, 2);}' |...
true
651477a25a335aca8693c8f336a16851de666c7d
Shell
map-dcomp/map-code
/src/MAP-ChartGeneration/scripts/batch_test_table_and_chart_2/generate_all_charts.sh
UTF-8
6,398
3.078125
3
[ "BSD-2-Clause" ]
permissive
#BBN_LICENSE_START -- DO NOT MODIFY BETWEEN LICENSE_{START,END} Lines # Copyright (c) <2017,2018,2019,2020,2021>, <Raytheon BBN Technologies> # To be applied to the DCOMP/MAP Public Source Code Release dated 2018-04-19, with # the exception of the dcop implementation identified below (see notes). # # Dispersed Computi...
true
f840d5524ce8b29c5ddf6c2204575f81569a7059
Shell
sixeyed/eshoponazure-workshop
/actions/sql-get-connection-string/cmd.sh
UTF-8
316
2.71875
3
[ "Apache-2.0" ]
permissive
#!/bin/sh # required parameters in ENV: # SQL_SERVER # SQL_PASSWORD sed -i "s/{SQL_SERVER}/$SQL_SERVER/g" /app/db-connection-string && \ sed -i "s/{SQL_PASSWORD}/$SQL_PASSWORD/g" /app/db-connection-string connectionString=$(cat /app/db-connection-string) echo ::set-output name=connectionString::$connectionString
true
f5ab32861a401761a1db6b94b4a0cfb7436a7d7a
Shell
linuxmint/ubiquity
/d-i/source/hw-detect/hw-detect.post-base-installer.d/60install-mouseemu
UTF-8
597
3.46875
3
[]
no_license
#! /bin/sh set -e # We need to do this after the base system has been installed so that # laptop-detect is available. SUBARCH="$(archdetect)" # Install mouseemu on systems likely to have single-button mice case $SUBARCH in i386/mac|amd64/mac) if apt-install laptop-detect && \ chroot /target laptop-detect >/d...
true
bf274ec0daa545fb5800f24b70e4f90aa359afd6
Shell
lilyemail123/xjrw_pre_env
/Check/check_FIN.sh
UTF-8
2,844
3.78125
4
[]
no_license
#!/usr/bin/env bash function get_time() { local time_str=$1 local time_type=$2 if [ ${time_type} = h ]; then echo ${time_str} |cut -d':' -f1 |grep ^0 &> /dev/null if [ $? -eq 0 ]; then echo ${time_str} |cut -d':' -f1 |grep 0$ &> /dev/null if [ $? -eq 0 ]; then echo ...
true
5d35da93e8209ad390635c896e8ae0f347df270f
Shell
matteomattei/servermaintenance
/Debian8/DebianServerSetup.sh
UTF-8
16,602
3.75
4
[ "MIT" ]
permissive
#!/bin/bash VERSION="0.3" AUTHOR="Matteo Mattei <info@matteomattei.com>" MANIFEST="/root/MANIFEST" is_installed() { dpkg -l "${1}" 2> /dev/null | grep "^ii" > /dev/null return ${?} } pretty_echo() { echo -e "\e[1;32m${1}\e[0m" } select_yes() { MESSAGE="${1}" while true; do pretty_echo "\...
true
4f1163643ce403952b743db8c10c535479156175
Shell
eddef/foundation
/etc/postgres/init.sh
UTF-8
1,056
2.796875
3
[]
no_license
#!/bin/bash # # Copyright © 2013 by its contributors. See AUTHORS for details. # POSTGRES_VERSION=9.1 sudo cp -a /etc/postgresql/${POSTGRES_VERSION}/main/postgresql.conf . sudo cp -a /etc/postgresql/${POSTGRES_VERSION}/main/pg_hba.conf . sudo -u postgres pg_dropcluster --stop ${POSTGRES_VERSION} main sudo -u postgre...
true
ef2e799780e51bb4623eb1bc8b09f0a4a2ca69e7
Shell
indico/indico-containers
/build_latest.sh
UTF-8
300
2.625
3
[]
no_license
#!/bin/sh LATEST_VERSION=$(curl --insecure https://api.github.com/repos/indico/indico/releases/latest | jq '.name[1:]' --raw-output) echo Building Indico ${LATEST_VERSION}... docker build indico/worker -t getindico/indico:latest -t getindico/indico:$LATEST_VERSION --build-arg tag=${LATEST_VERSION}
true
89e8acbfd2048b021b3b5ba48a5b2f0a2bbc1fbb
Shell
cpriest/zsh-ex
/bin/collect
UTF-8
1,597
3.359375
3
[ "MIT" ]
permissive
#!/bin/zsh HOST=`hostname -s`; TMPDIR=`mktemp -d`; cd $TMPDIR; # Linux Info / Config mount > $HOST-mount.log; cp /etc/fstab $HOST-fstab; sysctl -a 2>/dev/null > $HOST-sysctl-live.conf; cp /etc/sysctl.conf $HOST-sysctl.conf; # Mysql Info / Config mysql -Be "SELECT * FROM information_schema.GLOBAL_VARIABLES OR...
true
51f7cbd404ad03ad229851d432c2ee5ab16d9fb8
Shell
arwright3/wtgpipeline
/postH_2010-03-12_W-C-RC_preprocess-adjust.sh
UTF-8
4,153
3.203125
3
[ "MIT" ]
permissive
#! /bin/bash set -xv #adam-does# this is contains all of the preliminaries that you need to start with in order to do the preprocessing steps. # primary script to pull from to peg onto the end is from adam_MACS1115-do_Subaru_preprocess.sh # search for #adam-CHANGE# for the things you may need to change in certain circ...
true
4647f456be9bb914bdd7b37a9a866f8ecf61fc0e
Shell
st-h/letsencrypt-habitat-runner
/src/cleanup.sh
UTF-8
362
3.078125
3
[]
no_license
# Cleanup DNS if [ -f /tmp/CERTBOT_$CERTBOT_DOMAIN/RECORD_ID ]; then RECORD_ID=$(cat /tmp/CERTBOT_$CERTBOT_DOMAIN/RECORD_ID) echo "removing validation record with id: $RECORD_ID from dns: $DOMAIN" rm -f /tmp/CERTBOT_$CERTBOT_DOMAIN/RECORD_ID curl -u "$DNS_USER:$DNS_TOKEN" -X DELETE --silent https://api.name.com...
true
97e04e56066a51890c7fa52d346387a76b456042
Shell
ryan-williams/vg
/test/t/03_vg_view.t
UTF-8
691
2.75
3
[ "MIT" ]
permissive
#!/usr/bin/env bash BASH_TAP_ROOT=../bash-tap . ../bash-tap/bash-tap-bootstrap PATH=..:$PATH # for vg plan tests 4 is $(vg construct -r small/x.fa -v small/x.vcf.gz | vg view -d - | wc -l) 504 "view produces the expected number of lines of dot output" is $(vg construct -r small/x.fa -v small/x.vcf.gz | vg view -g -...
true
408008f9523ca850367c1534cc61a81d83014bf0
Shell
liaohu1231/Virome
/Figure2/coverm.sh
UTF-8
908
3.4375
3
[]
no_license
#!/bin/sh ''' conda activate coverm echo 'make bowtie database index' if [ ! -d bowtie2_database_gene/ ];then mkdir bowtie2_database_gene/; bowtie2-build $1 bowtie2_database_gene/$1;fi echo "bowtie: mapping reads to assembly genome" ''' ###从fastq到depth文件 out=$2 if [ ! -d $out ];then mkdir $out;fi for i in $(ls -d ly*/...
true
daf6c079839a9efc7d885eed59009c6b0fd54f8f
Shell
JohnHowardRoark/lfs-9.0
/6.52-ninja-1.9.0.sh
UTF-8
900
3.21875
3
[]
no_license
#! /bin/bash # ninja-1.9.0 # Approximate build time: 0.2 SBU # Required disk space: 69 MB # record current working directory working=$PWD # unpack tarball cd /sources tar -xf ninja-1.9.0.tar.gz cd ninja-1.9.0 # add capability for NINJAJOBS variable sed -i '/int Guess/a \ int j = 0;\ char* jobs = getenv( "NINJ...
true
08f9822e538687652a3678fa131fcbecbf0afb84
Shell
rexchou/netx-feeds
/shadowsocks-libev/files/update
UTF-8
375
3.0625
3
[]
no_license
#!/bin/sh -e url='http://update.cserver.org/netx/' dir='/usr/share/netx/' curl -s -o /tmp/md5 $url'md5' cat /tmp/md5 |while read md5 filename; do oldmd5=$(md5sum $dir$filename|cut -d" " -f1) if [ "$md5" != "$oldmd5" ]; then echo $filename curl -s -o /tmp/$filename $url$filename cat /tmp/$filename > $dir$filen...
true
6688f959b45c9cd603903ee21a7504e218388a0d
Shell
elkebir-group/SARS-CoV-2-heterogeneity
/scripts/callbcf.sh
UTF-8
314
3.015625
3
[]
no_license
#!/bin/bash if [ $# == 0 ] then echo "Usage: $0 <output file name>" exit 1 fi filelist=" " for file in *.bam do filelist="${filelist} ${file}" done bcftools mpileup -f ../reference.fasta -q 20 -Q 20 -a DP,AD,ADF,ADR,SP --skip-indels $filelist > ${1}.mpileup bcftools call -mv -Ov -o $1 ${1}.mpileup
true
a47b9c9348a79f443e208ec1cf565ee4d7ce6bbd
Shell
jam82/buildah-molecule-images
/images/opensuse/latest
UTF-8
2,126
3.53125
4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/usr/bin/env bash set -o errexit # Get scripts parent path and change into it (if running from Makefile) parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P ) cd "${parent_path}" # source common settings source ../common # Define container name, tag and repository name image_name=${PWD##*/} image_tag=$(ba...
true
bebad16e1d3ea868ec8a641afc40d3a1abdb490b
Shell
RootCyberjet/Restrict_user_in_linux
/restricted_user.sh
UTF-8
2,628
3.984375
4
[ "MIT" ]
permissive
#****************************************************************************** # NAME - SHIBA BISWAS # DESIGNATION - STUDENT # EMAIL - shibabiswas1111@gmail.com # INDIA #****************************************************************************** #! /bin/bash #You are root user #First make a directory name...
true
5d88648fb3f4322dc6d34d20eace9f4a8dd060af
Shell
kyessenov/envoy
/ci/build_container/build_container.sh
UTF-8
3,693
3
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e # Setup basic requirements and install them. apt-get update apt-get install -y wget software-properties-common make cmake git python python-pip clang-format-3.6 bc apt-get install -y golang add-apt-repository -y ppa:ubuntu-toolchain-r/test apt-get update apt-get install -y g++-4.9 rm -rf /var/lib/a...
true
629c50dbba3dd435baac4991c1d493e31c0eca30
Shell
idaholab/package_builder
/build_from_source/template/pip-installs
UTF-8
1,399
3.453125
3
[]
no_license
#!/bin/bash ############# ## Specifics ## DEP=(miniconda) PACKAGE='pip-installs' ##### # Set the operating system allowed to build this module # ARCH=(Darwin Linux) ##### # Setting any of these variables to 'false' effectively skips that step # This is useful for items like 'autojump' which requires a git clone/check...
true
07f9fcaf7f525994ae4f0ce5c9d740b32bc4ce95
Shell
rhh2019/work_learn
/shell_related/循环.sh
UTF-8
244
3.40625
3
[]
no_license
#! /bin/bash # 打印起始和结束日期 start='2016-01-01' end='2016-01-03' # 左右条件一定要用""引起来,'不行 while [ "${start}" != "${end}" ] do echo ${start} start=`date -d "1 day ${start}" +%Y-%m-%d` # 日期自增 done
true
bd6e3919f28a37e251f266d97720eeffc1619190
Shell
webrtcman/HPSS
/scripts/smoothness_eval/evaluation/script.sh
UTF-8
1,034
3.125
3
[ "MIT" ]
permissive
#!usr/bin/bash SEP=./HPSS_smoothness_eval # MODIFY THIS SUITABLY RES=my_result.txt # MODIFY THIS SUITABLY CSV=result.csv # MODIFY THIS SUITABLY #if [ -e comment_out.txt ]; then if [ -e ${RES} ] then rm ${RES} fi echo Inst,filename,InstType,SmoothType,smoothness,_>> ${RES} for input in `ls ./wav/*.WAV` do ...
true
613ab7f1e7aa7bcc4b423f27fa01e1f25f950030
Shell
shivammathur/setup-php
/src/scripts/tools/grpc_php_plugin.sh
UTF-8
2,109
3.875
4
[ "CC-BY-SA-4.0", "CC-BY-4.0", "MIT" ]
permissive
add_bazel() { if ! command -v bazel; then if [ "$(uname -s)" = "Linux" ]; then add_list bazel/apt https://storage.googleapis.com/bazel-apt https://bazel.build/bazel-release.pub.gpg stable jdk1.8 install_packages bazel else brew install bazel fi fi } get_grpc_tag() { if [ "$grpc_tag"...
true
1700617220be9cc0d8130d40f20a24fa94aa9863
Shell
vsilverman/widowmaker
/runSampleTest.sh
UTF-8
1,170
2.796875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # # Make sure to update connection information in configuration xml before running this script # For example : You may need to update stress/widowmaker/connectInfo.xml # # # Copyright 2003-2016 MarkLogic Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use...
true
fb0c75f8cc9be914126f4179873d4250990e34d1
Shell
pandalion/dotfiles
/.bash_profile
UTF-8
1,186
2.734375
3
[]
no_license
# Add local bin folders to path. export PATH=/usr/local/bin:$PATH:~/bin # Add Postgres to path. export PATH="/Applications/Postgres.app/Contents/Versions/latest/bin:$PATH" # Add rbenv to path. export PATH=$HOME/.rbenv/shims:$PATH # I don't remember why this one is here export PATH="/usr/local/sbin:$PATH" # hub for git...
true
749d235e2dce73c35e957f96008a03e1c033efe9
Shell
Valodim/zshrc
/config/71-keymap-tmux.zsh
UTF-8
1,624
2.625
3
[]
no_license
# tmux stuff function ztmux-split-vertical() { # are we even inside a screen/tmux? if so, just return [[ $TERM == *screen* ]] && return # we set this, since it's an exec anyways we don't care further :P setopt norcquotes # this does not work with multiline editing, but I don't use that anyways ...
true
ea878e56462eb065d1a70450f47573a845b9d4c8
Shell
Intersec/qbot
/run.sh
UTF-8
278
3.3125
3
[]
no_license
#!/bin/sh DIR=$(dirname $0) if [ ! -f "$DIR/config.sh" ]; then echo " It appears you do not have a config.sh file. You need to configure the bot before running it: $ cp config.sh.tpl config.sh $ $EDITOR config.sh " exit 1 fi . $DIR/config.sh $DIR/bin/hubot -a slack
true
8546d966296d755cce73d5429062ef15470f9e6c
Shell
h2ero/home
/bin/edit-text-field
UTF-8
546
3.6875
4
[]
no_license
#!/bin/sh # # This script lets you edit the contents of the currently focused text field # through a temporary file in GVim. Any changes you write to the temporary # file will be stored into clipboard after you quit GVim, ready for pasting. # # Usage: edit-text-field [ARGS_FOR_GVIM] # set -e xdotool key ctrl+a ctrl+c...
true
57dc827334dea0f0b6ba40400d02d2607648a2ea
Shell
fcomida/dotfiles
/.local/bin/statusbar/volume-ctl-dwm
UTF-8
446
2.734375
3
[]
no_license
#!/bin/env sh index=$(pacmd list-sinks | awk '$1 == "*" && $2 == "index:" {print $3}') case "$1" in toggle) pactl set-sink-mute $index toggle ;; up) pactl set-sink-volume $index +5% ;; down) pactl set-sink-volume $index -5% ;; esac case $BLOCK_BUTTON in 1) pactl set-sink-mute $index toggle ;; 2) se...
true
4049065ee59f116ce73bb3164694423e3e5cc136
Shell
sibuserv/lxe
/pkg/sysfsutils.sh
UTF-8
861
3.28125
3
[ "MIT" ]
permissive
#!/bin/sh # # This file is part of LXE project. See LICENSE file for licensing information. [ -z "${SYSFSUTILS_VER}" ] || \ ( PKG=sysfsutils PKG_VERSION=${SYSFSUTILS_VER} PKG_SUBDIR=${PKG}-${PKG_VERSION} PKG_FILE=${PKG}-${PKG_VERSION}.tar.gz PKG_URL="https://sourceforge.net/projects/linux-diag/file...
true
c286a616bb2e1c3985a32e5db78fc2d0534da59f
Shell
Podrepny/task4_2
/ntp_deploy.sh
UTF-8
1,334
3.78125
4
[]
no_license
#!/bin/bash LANG=C.UTF-8 NTP_SRV="ua.pool.ntp.org" NTP_CFG="/etc/ntp.conf" NTP_ORIG="/etc/ntp.conf.bak" CRON_FILE="/etc/cron.d/ntp_verify" # Start installing NTP PKG_STATUS=`apt-cache policy ntp | grep "Installed" | awk '{print $2}'` if [[ $PKG_STATUS == "" || $PKG_STATUS == "(none)" ]]; then sudo apt-get -y insta...
true
63be58466fb29d4ea87f91a89ee0ca4541215b4a
Shell
feather973/lfs9.0
/scripts/enter-chroot.sh
UTF-8
748
3.265625
3
[]
no_license
#!/bin/bash whoami # IF NOT ROOT, LOGIN TO ROOT [ "$UID" -eq 0 ] || exec sudo $0 "$@" # ROOT USER NEED TO KNOW LFS mount location export LFS=/mnt/lfs # CHANGE /dev/sdc1 to your usb device name set -- "mount -v -t ext4 /dev/sdc1 $LFS" \ "mount -v --bind /dev $LFS/dev" \ "mount -vt devpts devpts $LFS/dev/pts -o gid=5...
true
228c8eb07a9fb944541d347910044faaa33f2585
Shell
crazyrex/AppImages
/client/getapp
UTF-8
545
3.25
3
[ "MIT" ]
permissive
#!/bin/bash # Usage: # getapp Firefox # For the list of available apps, see https://bintray.com/probono/AppImages/ set -e ARCH=$(arch) PKGPATH=$(wget -q "https://bintray.com/probono/AppImages/$1/_latestVersion#files" -O - | grep pkgPath | cut -d '"' -f 6) VERSION=$(echo $PKGPATH | cut -d "/" -f 5) URL="https://bintra...
true
ffab43dcbd7e3c21b1d6371cf986e6c1c3f186a7
Shell
davidboles/hse
/scripts/dev/clang-tidy.sh
UTF-8
843
3.234375
3
[ "MIT", "Apache-2.0" ]
permissive
#!/bin/sh # SPDX-License-Identifier: Apache-2.0 OR MIT # # SPDX-FileCopyrightText: Copyright 2022 Micron Technology, Inc. if ! type clang-tidy > /dev/null 2>&1; then >&2 echo "clang-tidy not found" exit 1 fi if [ -z "$MESON_BUILD_ROOT" ]; then >&2 echo "Not running in a Meson context, use \"ninja -C \$bu...
true
d57c89889b5d878f725dea4ce8dda1c36a3608eb
Shell
fumiyas/home-commands
/pwait
UTF-8
1,126
3.78125
4
[]
no_license
#!/bin/sh ## ## Solaris pwait(1) clone for Linux, AIX ## Copyright (c) 2012-2018 SATOH Fumiyasu @ OSS Technology Corp., Japan ## <https://github.com/fumiyas/home-commands/blob/master/pwait> ## <https://fumiyas.github.io/> ## ## License: GNU General Public License version 3 ## perr() { ech...
true
50a3dfc04d33bdfe712567b1be1ca09b9aa86c08
Shell
Khronos31/Mayflower
/util/options.sh
UTF-8
553
3.421875
3
[]
no_license
export staticlibs=n export zipman=n export resign=n check_option() { if [ $# -lt 2 ]; then echo "Usage: ${FUNCNAME} <option> [y|n]" >&2 return 2 fi local opt case "$2" in y|n) :;; *) echo "Usage: ${FUNCNAME} <option> [y|n]" >&2; return 2;; esac if [ -z "${!1}" ]; then echo "Undefined ...
true
b7ed24a249879aed63b925a5eb891794ebe75e2f
Shell
chinmay-shaala/frappe_docker
/tests/docker-test.sh
UTF-8
13,733
3.59375
4
[ "MIT" ]
permissive
#!/bin/bash ULINE='\e[1m\e[4m' ENDULINE='\e[0m' NEWLINE='\n' function checkMigrationComplete() { echo "Check Migration" CONTAINER_ID=$(docker-compose \ --project-name frappebench00 \ -f installation/docker-compose-common.yml \ -f installation/docker-compose-erpnext.yml \ -f installation/erpnext-pub...
true
818161611aa85e94b4cddb6105593e872c532f35
Shell
squidboy3999/btb-tools-templates
/model_scripts/fbx_to_obj.sh
UTF-8
190
3.1875
3
[ "MIT" ]
permissive
#! /bin/bash # dnf install assimp -y for dir in $(ls -d */); do pushd ${dir} for f in $(ls | grep .fbx);do file_name=${f%.fbx} assimp export ${file_name}.fbx ${file_name}.obj done popd done
true
048288d2229f40055b9a005d771550d2ff356d1d
Shell
frahohen/bdu-os-environment-setup
/install_ldap_server/install_ldap_server.sh
UTF-8
2,237
3.265625
3
[]
no_license
#!/bin/bash # General FILE_UTILS="./utils/file_utils.sh" LOGGER=$(source ${FILE_UTILS} get_absolute_path install_ldap_server /utils/print_log.sh) LDAP_SERVER="LDAP Server -" # change input windows to normal text line inputs export DEBIAN_FRONTEND=readline # allow execution of dpkg export PATH=$PATH:/usr/sbin bash "${...
true
3e3fbcb7ad072c976ac1ef1a647d1d8c5f0b497e
Shell
chetnap19/Merge5and6
/Day05/LeapYear.sh
UTF-8
242
3.5625
4
[]
no_license
#!/bin/bash -x read -p "Enter the year:" year if [[ ${#year} -eq 4 ]] then if [[ $year%400 -eq 0 && $year%100 -eq 0 || $year%4 -eq 0 ]] then echo This is leap year. else echo This is not leap year. fi else echo Enter valid year. fi
true
bc1335b4b80e2f3586970407db0a3080e36fa52f
Shell
devas123/Bitcoin-Trader-RL
/run-with-docker
UTF-8
1,427
3.90625
4
[ "GPL-3.0-only", "GPL-1.0-or-later" ]
permissive
#!/usr/bin/env bash set -e CWD="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" if [[ -z $1 ]]; then echo "Should have 1 argument: cpu or gpu" exit fi TYPE=$1 shift; if [[ -n $2 ]]; then docker build \ --tag 'trader-rl-postgres' \ --build-arg ID=$(id -u) \ --b...
true
86226d805f41d7abf0e70ed74c9067ebb01d6366
Shell
derfrankie/RAVPower-FileHub-SD-Backup
/swap.sh
UTF-8
1,006
3.59375
4
[ "WTFPL" ]
permissive
# Add a swapfile on the data store drive # (rsync needs this for large file copies) sed -i 's/SWAP=noswap/SWAP=swap/' /etc/firmware cat <<'EOF' > /etc/init.d/swap STORE_DIR=/sdcopies CONFIG_DIR="$STORE_DIR"/config #rm -f "$STORE_DIR"/log/swapinfo while read device mountpoint fstype remainder; do if [ ${device:0...
true
00a24e1c1602c3f0277890ecc3018b98b6a3a44a
Shell
alessandro-marcantoni/hpc1920
/src/outputs/omp-compare.sh
UTF-8
2,026
2.828125
3
[]
no_license
#!/bin/bash file1="ace.txt" file2="omp-ace.txt" if cmp -s "$file1" "$file2"; then printf 'The file "%s" is the same as "%s"\n' "$file1" "$file2" else printf 'The file "%s" is different from "%s"\n' "$file1" "$file2" fi file1="box10k.txt" file2="omp-box10k.txt" if cmp -s "$file1" "$file2"; then printf '...
true
abeead19aff0b5fd10521cf72d0b48f6d9a58741
Shell
jcayzac/dotfiles
/.bash.d/on-demand/conda
UTF-8
319
3.265625
3
[]
no_license
#!/bin/bash -c /usr/bin/false declare conda_base="$(brew --prefix)/Caskroom/miniconda/base" if [ -d "$conda_base" ]; then . "$conda_base/etc/profile.d/conda.sh" export PATH="$conda_base/bin:$PATH" else chalk warning '"conda" not found' printf ' Run %s\n' "$(chalk primary "brew install miniconda")" return 1 fi
true
77221ba0c298aebba9359eaf2ea9985d61e4d94d
Shell
lucknerjb/webrtc-tester
/test-cron.sh
UTF-8
599
3.96875
4
[ "MIT" ]
permissive
#!/bin/bash # Argument 1: host if [ -z "$1" ]; then echo "missing 'host' argument (string)" exit 1 fi # Argument 2: condition if [ -z "$2" ]; then echo "missing 'condition' argument (string)" exit 1 fi # Run test cd /opt/sbin/webrtc-tester/ TEST=$(./test-runner.sh "$1" "$2") # A pass produces no outp...
true
9d5d60fd8581cc4749c6cfd4d3da0d5401a5f59f
Shell
martianmartian/outline-client
/third_party/shadowsocks-libev/docker/mingw/build.sh
UTF-8
2,541
3.4375
3
[ "GPL-3.0-or-later", "GPL-1.0-or-later", "GPL-3.0-only", "Apache-2.0" ]
permissive
#!/bin/bash # # Functions for building MinGW port in Docker # # This file is part of the shadowsocks-libev. # # shadowsocks-libev is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License...
true
153b3c621dd87681e04ea1cbd7e8a82c85586b4f
Shell
DShKMG/bash-files
/trapstatement/oddeven.sh
UTF-8
963
3.9375
4
[]
no_license
#!/bin/bash # Shell script to find out odd or even number provided by the user # ---- # set variables to an integer attribute declare -i times=0 declare -i n=0 # capture CTRL+C, CTRL+Z and quit singles using the trap trap 'echo " disabled"' SIGINT SIGQUIT SIGTSTP trap 'echo "CTRL+C is disabled"' 2 trap 'echo "CTRL+Z i...
true
996b2d2ed43cbe7c81ed4ecf50b7d686bfe03060
Shell
nicole-lehua/AeroFS
/log_collection.sh
UTF-8
339
3.390625
3
[]
no_license
#!/bin/bash LOG_DIRECTORY=/tmp/aero_appliance_logs CONTAINERS=`docker ps -a | rev | awk 'NR > 1 {print $1}'| rev` mkdir $LOG_DIRECTORY for container in $CONTAINERS; do `docker logs $container > $LOG_DIRECTORY/$container.log 2>&1` done tar -zcvf aerofs-appliance-logs.tar.gz -C $LOG_DIRECTORY . rm -...
true
9251d30dfe9f025abad0b7334c374392b3f46f4f
Shell
moonciki/interview-assignments
/java/doc/startup/bin/viewrun-all.sh
UTF-8
673
3.28125
3
[]
no_license
#!/bin/bash nowPath=$(cd `dirname $0`; pwd) cd $nowPath cd ../ basePath=`pwd` source ${basePath}/bin/param-init echo -e "========== Show Run ==========\n" function showRun(){ pid_get=`ps -ef | grep java | grep -e "-Dshell_id=${project_name}" | grep -v grep | awk '{print $2}'` pid_count=`ps -ef | grep java ...
true
caefab859f0749f1ef34fe119f45f81abb0fc808
Shell
cmnybo/chip_stuff
/devtree.sh
UTF-8
8,263
4.375
4
[]
no_license
#!/bin/bash # Copyright 2016 Cody Nybo # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is dist...
true