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
f735eac0f674c4a91a6c45dc318b2f3b8d67e18b
Shell
amolsaudar123/asimio-postgres
/db_dvdrental/scripts/db-restore.sh
UTF-8
485
2.96875
3
[]
no_license
#!/bin/bash echo "Importing data into DB $DB_NAME" pg_restore -U $POSTGRES_USER -d $DB_NAME /tmp/data/db_dvdrental/dvdrental.tar echo "$DB_NAME DB restored from backup" echo "Granting permissions in DB '$DB_NAME' to role '$DB_USER'." psql -v ON_ERROR_STOP=on -U $POSTGRES_USER -d $DB_NAME <<-EOSQL GRANT SELECT, INSE...
true
b9e936bb07c510cd56492d48fe5e38770b805fa0
Shell
stones/iocage-plugins
/phlex/setup.sh
UTF-8
1,331
2.5625
3
[]
no_license
# Create the jail iocage create -n "phlex" -p ./pkg.json -r 11.2-RELEASE ip4_addr="vnet0|192.168.1.62/24" defaultrouter="192.168.1.1" vnet="on" allow_raw_sockets="1" boot="on" # Update the php fpm config iocage exec phlex "echo 'listen=/var/run/php-fpm.sock' >> /usr/local/etc/php-fpm.conf" iocage exec phlex "echo 'li...
true
d25a8a6fdd4f868683249d0ec3a464e7649a05ee
Shell
freducom/handballyolo
/01getdata.sh
UTF-8
551
3.140625
3
[]
no_license
#!/bin/bash #Config INPUTFILE=handballgame01 DATAFOLDER=dataset YOUTUBEVIDEO=4pOkwP-ZqyI #Create Datafolder mkdir $DATAFOLDER #Download YouTube video printf "DOWNLOADING YOUTUBEVIDEO $YOUTUBEVIDEO\n" youtube-dl $YOUTUBEVIDEO -o ''"${DATAFOLDER}"'/'"${INPUTFILE}"'.%(ext)s' --quiet #Rip image from video printf "RIP...
true
cce77e16328204d95257d00e279e3973de70639e
Shell
craftofelectronics/ardu-see
/racket/tvm/macosx/bin/kroc
UTF-8
35,181
3.046875
3
[]
no_license
#! /bin/sh #{{{ make sure we have bash if [ "$BASH_VERSION" = "" ]; then BASH= # search for "bash" in the PATH environment for dir in `printf '%s' "$PATH" | tr ':' '\n'`; do if [ -f $dir/bash ] && [ -x $dir/bash ]; then BASH=$dir/bash break fi done if [ "$BASH" = "" ]; then printf 'could not find ba...
true
cb59eb807da00fc1c9f18738192eafcdebf059b9
Shell
BioMAs/SWD-infrastructure-omics
/install_dependencies.sh
UTF-8
568
3.84375
4
[]
no_license
#!/bin/bash # Stop on error set -e DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" MAIN_ENV_NAME=srp ENVS=$(conda env list | awk '{print $1}' ) FOUND=1 for ENV in ${ENVS} do if [ "${ENV}" == "${MAIN_ENV_NAME}" ]; then FOUND=0 fi done # Creation of main conda environment. if [ ${FOUND} -eq ...
true
852f682b856039b94d732800e0a360a888ad372b
Shell
PaaS-TA/PAAS-TA-CONTAINER-SERVICE-PROJECTS-RELEASE
/jobs/docker-images/templates/bin/post-deploy.erb
UTF-8
3,752
3.328125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -xe echo "docker images load..jenkins" /var/vcap/packages/docker/bin/docker --host unix:///var/vcap/sys/run/docker/docker.sock load -i /var/vcap/packages/docker-images/paasta-jenkins.tar.gz echo "docker images load..registry" /var/vcap/packages/docker/bin/docker --host unix:///var/vcap/sys/run/docker...
true
4ee150f71a1693cadb10d4779ddc1004e10b9720
Shell
Jenova7/electra-core
/contrib/init/electrad.init
UTF-8
1,300
3.6875
4
[ "MIT" ]
permissive
#!/bin/bash # # electrad The Electra server. # # # chkconfig: 345 80 20 # description: electrad # processname: electrad # # Source function library. . /etc/init.d/functions # you can override defaults in /etc/sysconfig/electrad, see below if [ -f /etc/sysconfig/electrad ]; then . /etc/sysconfig/electrad fi ...
true
dea68939df323b0330a53d84ea03b2c5a398b6f0
Shell
laurahuckins/Snippets
/vcf_to_gen.sh
UTF-8
926
2.953125
3
[]
no_license
for chr in {1..22} do cat Amanda_vcfids | tr ':' ' ' | awk -v c=$chr '$1==c {print $1":"$2}' > Amanda_vcfids.$chr # Get ids in format for qctool qctool -g chr$chr.vcf.gz -og Amanda.$chr.gen -incl-rsids Amanda_vcfids.$chr cat CMC_eqtl_SVA_Caucasian_combined+BP_chrS_cis_conditional.out.bp | awk -v c=$chr...
true
91f62db2854c6f2527d92972b446e0f77d1e3d0a
Shell
tamirko/cfyApps
/bs/scripts/startJBoss.sh
UTF-8
723
3.109375
3
[]
no_license
#!/bin/bash ctx logger info "Running $0 ..." ctx logger info "pwd is `pwd` " ctx logger info "id is `id` " cd ~ ctx logger info "pwd2 is `pwd` " ctx logger info "hostname is `hostname` " JBoss_download_url=$(ctx node properties JBoss_download_url) jbossFileName=$(basename "$JBoss_download_url") jbossHomeDir=${jbossFi...
true
e290775a0c7f20ffbdd8d57478dc979f3edc9f4a
Shell
TylersDurden/Crypto
/LiveBuild.sh
UTF-8
1,680
3.3125
3
[]
no_license
#!/usr/bin echo 'Attempting to get Project from git onto USB' echo 'From there, Need to compile and run it (all on USB).' # Create a live running directory on the USB cd /media/root/UNTITLED/CRYPTO # Fetch Crypto Repository from GitHub git config --global user.name "{}" git config --global user.email "{}" git clone ...
true
a3e4c9de8ea498c3d2a2bd1f10e2fac93b14bb74
Shell
PradeepMaddimsetti/Bash-scripts
/case.sh
UTF-8
347
3.046875
3
[]
no_license
#case statements #getting aurgment digit=$1 case $digit in 1 ) echo "hello" ;; 2 ) echo "how are u" ;; * ) echo "no matter" ;; esac #usingAlphabits alp=$2 case $alp in b ) echo "hello" ;; a ) echo "how are u" ;; * ) ...
true
0dbc7e1d72d2bf26bf6ef98b52e910582c404341
Shell
joznia/mst
/1shot
UTF-8
504
3.703125
4
[]
no_license
#! /bin/sh # mst AIO installer SRCDIR="${HOME}/mst-1shot" SRC="./mst" DEST="/usr/bin/mst" die () { if [ $? -gt 0 ]; then echo "$*" 1>&2 ; exit 1; fi } echo "installing mst ..." echo "cloning repository to ${SRCDIR} ..." ; git clone https://github.com/joznia/mst.git ${SRCDIR} > /dev/null 2>&1 cd ${SRC...
true
a64f97b1b7b337d84b011bbf64be239fc498c5a4
Shell
d0whc3r/rancher-catalog
/consul-certs-generator.sh
UTF-8
1,995
3.46875
3
[ "MIT" ]
permissive
#!/bin/bash caname="myca" fileconf="${caname}.conf" dircerts="certs" certca="ca.cert" keyca="privkey.pem" domain="yourdoamin.tld" maxconsul=3 cleanFiles() { rm -rf serial certindex ${fileconf} cert* *.pem *.old ${dircerts} } readPrint() { echo "[+] CA Cert:" cat ${dircerts}/${certca} echo "" for ...
true
6e73babea2635ad9c2292ca3fa04779af194d8d0
Shell
BillFarber/shibboleth
/environment/ipaUsersAndGroups.sh
UTF-8
2,623
3
3
[]
no_license
################################################################ # # 1) You must have an admin ticket before running this script # 2) All the passwords are set to: changeme # 3) You must change all the user passwords after running this script # The easiest way is to use kinit to request a ticket for the user # ie: k...
true
a75fd1eb3087d57eca823a8d33de2e1abc550a45
Shell
fedyfausto/QuMedical
/admin/scripts/stop.sh
UTF-8
923
3.09375
3
[]
no_license
#!/bin/bash function query { { if [ $# -lt 1 ] # Il numero di argomenti passati allo script è corretto? then /home/binding/orientdb/bin/console.sh " connect remote:localhost/System root root; SET ignoreErrors TRUE; SET echo FALSE; $1; DISCONNECT; "; else /home/binding/orientdb/bin/console.sh " c...
true
b4d1cf646d4ea79adc5206ec2e35d8de414a87c3
Shell
S-Sam-Sin/Linux-Automation
/lau_system.sh
UTF-8
750
3.9375
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # Check user permission for Root function Permission() { # Root user local ROOT_UID=0 # Non root user exit local E_NONROOT=87 # script must be execute as root if [ ${UID} != ${ROOT_UID} ] then echo "The script is not executed as root" echo "try using sudo...
true
c28fbb4e7db273ff81a936d9ef77a9bf959e89d0
Shell
JohnOmernik/zetapkgs_old
/usershell/start_instance.sh
UTF-8
8,189
3.75
4
[ "Apache-2.0" ]
permissive
#!/bin/bash CLUSTERNAME=$(ls /mapr) APP_NAME="usershell" . /mapr/${CLUSTERNAME}/zeta/kstore/env/zeta_shared.sh . /mapr/${CLUSTERNAME}/zeta/shared/preinst/general.inc.sh . ${APP_HOME}/instance_include.sh CURUSER=$(whoami) if [ "$CURUSER" != "$ZETA_IUSER" ]; then echo "Must use $ZETA_IUSER: User: $CURUSER" fi ...
true
3a64a054e56d5d7f3780ba565e5bd4090d0cf010
Shell
theadityapathak/k8s-prow-test
/hack/update-file-perms.sh
UTF-8
121
2.53125
3
[]
no_license
#!/usr/bin/env bash set -o errexit set -o nounset set -o pipefail find . -name "*.sh" \! -perm /a+x -exec chmod +x {} +
true
858d92e099e749afe129d8eb77edd9fe927a0406
Shell
TatteredMagic/meowdots
/install
UTF-8
478
3.1875
3
[]
no_license
#!/usr/bin/env bash set -e CONFIG="install.conf.yaml" DOTBOT_DIR="dotbot" DOTBOT_BIN="bin/dotbot" BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" echo "Standing up dotbot-brew..." cd $BASEDIR && git submodule update --init dotbot-brew/ echo "Standing up Vundle..." cd $BASEDIR && git submodule update --init ...
true
2b49944e9bc9121949306e31985bde4146773218
Shell
mosinu/puppet
/modules/users/files/edi.sh
UTF-8
793
3.265625
3
[]
no_license
#!/bin/bash PATH=$PATH ##################### #Group Accounts ##################### # Create the group for us /usr/sbin/groupadd -g 5017 gpibots # All group adds should be above this line # We sleep here to let the groups get added before we continue. ###################### # GUI Access ###################### # Th...
true
b788ad482b218131af53ceccc123aa4efd019e42
Shell
OrrAvrech/MAMAT_Exercises
/Ex4/Ex4/Ex4/references/hw4/Bash Tests - HW4/bash_test_0
UTF-8
197
2.546875
3
[]
no_license
#!/bin/bash if [[ `find empty_dir 2> /dev/null` != "" ]]; then rm -r empty_dir ; fi mkdir empty_dir ./change_extensions empty_dir old_nothing new_nothing ls empty_dir > bash_out_0 rm -r empty_dir
true
fc0f2f79e1d7ed7f7aeaf15835ebe726c1137883
Shell
djoslin0/shabby-lang
/build.sh
UTF-8
2,363
3.421875
3
[ "MIT" ]
permissive
#!/bin/bash if [ "$#" -eq 1 ]; then src_file=`realpath $1`; fi cd src kill `pidof display` 2> /dev/null rm -rf ../bin/* mkdir ../bin/compilation/ set -e echo "#############" echo "# Tokenizer #" echo "#############" gcc tokenizer.c utils/symbols.c utils/file.c -I include -o "../bin/tokenizer" -Wall -Wextra -Werror...
true
5396216363d0ea42ddf7179b6fee558061a9febe
Shell
nareshganesan/k8s-app-templates
/examples/basics_tutorials.bash
UTF-8
8,456
3.625
4
[ "MIT" ]
permissive
#!/bin/bash ## https://kubernetes.io/docs/tutorials/kubernetes-basics/ ### Creating a Cluster # to get cluster information kubectl cluster-info # get nodes in the cluster kubectl get nodes ### Create a Deployment # run command creates a new deployment # requires deployment name, app image location --image, --port...
true
2856c2f706393754323abb8e0a0e896972fadbf8
Shell
songlibo/page-speed
/chromium_extension/branches/chromium_update/src/makenacl.sh
UTF-8
1,452
3.359375
3
[]
no_license
#!/bin/bash # # Copyright 2010 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
true
a2d1274309d6480cf2b21c58ae94e8aa737e39ab
Shell
Nidheshp/Linux-Exercises-
/Scripting2.sh
UTF-8
341
3.515625
4
[]
no_license
#!/bin/bash date who uptime echo "-------------------------------------------------------------" touch logfile.txt date >> logfile.txt uptime >> logfile.txt echo "Would you like to delete the older file?" echo "Yes (y), No (n)" read reply if [ $reply == n ] then echo "Keeping Old File" elif [ $reply == y ] then su...
true
9b8271c61449cbaee95273c4bac9f98d08e68aa4
Shell
kozk/so17p
/p1/p1.sh
UTF-8
300
2.828125
3
[]
no_license
#!/bin/bash echo "SISTEMAS OPERATIVOS - PRACTICA 1 - PROBLEMA 1" echo "INFORMACION DE CPU Y MEMORIA EN TIEMPO REAL" echo "USO TOTAL DE CPU: `top -i | head -3 | grep %Cpu | awk '{print $2"\n"$4}' | paste -sd + | bc`" echo "USO TOTAL DE MEMORIA EN KB: `top -i | head -4 | grep Mem | awk '{print $6}'`"
true
213db3a3d5602cc21e0a1b990929be1994b6deb2
Shell
antmicro/zephyr
/tests/bsim/bluetooth/host/gatt/settings/test_scripts/run_gatt_settings_2.sh
UTF-8
2,114
2.921875
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # Copyright 2022 Nordic Semiconductor ASA # SPDX-License-Identifier: Apache-2.0 set -eu bash_source_dir="$(realpath "$(dirname "${BASH_SOURCE[0]}")")" source "${bash_source_dir}/_env.sh" source ${ZEPHYR_BASE}/tests/bsim/sh_common.source simulation_id="${test_name}_2" verbosity_level=2 EXECUTE_TIM...
true
6eb9b0c0e811b13dce2bb927ea16f7bf0ab2e609
Shell
gentoo-mirror/haskell
/scripts/build-random-haskell-pkgs.bash
UTF-8
4,686
4.03125
4
[]
no_license
#!/bin/bash # Copyright 1999-2022 Gentoo Authors # Copyright 2022 hololeap # Distributed under the terms of the GNU General Public License v2 # gentoo-haskell random install script # v0.2.1 # # Repeatedly tries to install a random package from ::haskell (that is not # already installed and has at least one unmasked v...
true
1c0b2a3c172b067a9526bf0878ad4a5477a87265
Shell
usf-cs326-fa21/P2-Tests
/03-Basic-Builtins-1.sh
UTF-8
684
3.1875
3
[]
no_license
source "${TEST_DIR}/lib/funcs.bash" run_timeout=5 run_scripts() { fail=0 for script in "${TEST_DIR}"/inputs/basic-builtins/*.sh; do echo "-> Running script: ${script}" echo echo "Script Contents: ----------------------------------" cat "${script}" echo "---------------...
true
5329b988732fd524f6ef1e6adcd2b186d0dc5a12
Shell
frisbee23/docker-i-doit
/1.9/initialize-db-once.sh
UTF-8
552
2.671875
3
[]
no_license
#!/bin/bash MYSQL_ROOT_PASSWORD=changeme ###### this is part of the idoit installation, only needed with a fresh database # enable password login, becuase idoit setup needs it docker exec -t idoit-mariadb sh -c "echo \"UPDATE mysql.user SET plugin = 'mysql_native_password' WHERE User = 'root'; FLUSH PRIVILEGES;\" |...
true
5034a6cb06f3cdbccb5769160e39ede1ddee6469
Shell
matwarg/warg
/scripts/ugrade_artifactory.sh
UTF-8
2,226
2.921875
3
[]
no_license
#!/bin/bash echo "start copy files to new JFrog Home" # Artifactory data mkdir -p $JFROG_HOME/artifactory/var/data/artifactory/ cp -rp $ARTIFACTORY_HOME/data/. $JFROG_HOME/artifactory/var/data/artifactory/ # Access data mkdir -p $JFROG_HOME/artifactory/var/data/access/ cp -rp $ARTIFACTORY_HOME/access/data/. $JFROG_...
true
7da47bd24ae80e50142275e7ed8190034e6362e9
Shell
ver2point0/quick-uaa-deployment-cf
/ci/scripts/test-up.sh
UTF-8
545
2.65625
3
[]
no_license
#!/bin/bash set -eu cd ${REPO_ROOT:?required} eval "$(bin/quaa env)" u_down() { set +e cf logs uaa --recent echo echo echo "Cleaning up..." quaa down -f } trap u_down SIGINT SIGTERM EXIT cf api "${CF_URL:?required}" cf auth "${CF_USERNAME:?required}" "${CF_PASSWORD:?required}" cf target -o "${CF_ORGANI...
true
7d2b2e4f7295afecc5e436c43b1d95243bd019bd
Shell
GNHua/pw
/scripts/start_mongodb.sh
UTF-8
311
2.890625
3
[]
no_license
#! /bin/bash ROOT="$( cd "$( cd "$(dirname "$0")" ; pwd -P )/../.." ; pwd -P )" TIMESTAMP="$(date +%Y.%m.%d.%H%M%S)" # start mongodb mongod --dbpath "$ROOT/data/db" \ --bind_ip 127.0.0.1 --port 27017 \ --logpath "$ROOT/data/log/mongo_"$TIMESTAMP".log" \ --auth \ --fork echo "MongoDB Started"
true
8b91eb7b22fad45bed04871383ae5bd3f911f75a
Shell
petervolvowinz/beamylabs-start
/scripts/trigger-upgrade.sh
UTF-8
285
2.703125
3
[]
no_license
#!/bin/bash inotifywait -m -r configuration/ -e create -e moved_to | while read path action file; do if [[ "$file" =~ upgrade$ ]]; then # time to upgrade echo "trying to upgrade system" git pull /bin/bash upgrade.sh fi done
true
d1b09f9ce15b2465ef3aa5b52140e87b41542f4c
Shell
ATrump/hive-ff-linux
/hive/sbin/hive-passwd
UTF-8
996
4
4
[]
no_license
#!/usr/bin/env bash #Change password for SSH and VNC #Parameter: new_password or -conf to get password from rig.conf #[ -t 1 ] && . colors # Check parameter if [[ -z $1 ]]; then echo -e "${CYAN}Changes system password for \"user\" (SSH and VNC also)${NOCOLOR}" echo -e "Specify password as an argument" echo -e "Run...
true
e619d720fffa8cd427b53d90cbe406e1810828b0
Shell
yagikiyoshi/MS_summer_school2021
/3.1_water/run1.sh
UTF-8
276
2.75
3
[ "MIT" ]
permissive
#!/bin/bash module load gaussian MOL=water export GAUSS_SCRDIR=/scr/$USER/${MOL}.$$ mkdir -p $GAUSS_SCRDIR (time g16 < ${MOL}.com) > ${MOL}.out 2>&1 rm -r $GAUSS_SCRDIR formchk ${MOL}.chk for i in `seq 1 7`; do cubegen 0 MO=${i} ${MOL}.fchk ${MOL}.MO${i}.cub 0 h done
true
6328aa63b1f9a7adb00371744292e7b5982a09fa
Shell
okpluscoin/scribe-masternode-setup
/new-vps-scribe-install.sh
UTF-8
5,541
3.203125
3
[]
no_license
#!/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin THISHOST=$(hostname -s) >> ~/01vpsmnlog.txt 2>&1 EXIP=$(hostname -i) >> ~/01vpsmnlog.txt 2>&1 BLKS=$(curl https://explorer.scribe.network/api/getblockcount) >> ~/01vpsmnlog.txt 2>&1 checkrunning () { while ! ~/scribe/scribe-cli getinfo; do ...
true
37cc82f928ddb852e1d7333da54bc14e3a6596f7
Shell
kindlehl/Shell
/scripts/blame
UTF-8
486
3.65625
4
[]
no_license
#!/bin/bash # Lists the number of OpenStack instances each OSL member is using in our test environment # Useful for public shaming over IRC USERS="$(openstack user list -f value -c Name --project OSL)" echo User Openstack VM counts are as follows: nova list >> /tmp/$$vmlist.txt for name in $USERS; do echo $name:...
true
0cf165a2f8c090e23e44d8c1ffb7b4d8a14c2fcd
Shell
salloumzzzz/T1P2_F18_Salloum
/script1.sh
UTF-8
203
3.109375
3
[]
no_license
#!/bin/bash echo "enter a regular expression" read foo var=$(echo $foo | tr "{a-z}" "{A-Z} ") var=$(echo $foo | tr "{I}" "{A} ") # {a-z} Matches a through z # {A-Z} matches A through Z echo $var
true
c248cd7ff1133beacd6d10b69f711e2e0aef9fcd
Shell
sunxifa/myLinux
/shell/shellscripts/build_in/timeout/timed-input.sh
UTF-8
938
3.578125
4
[]
no_license
#!/bin/bash #TMOUT=3 TIMELIMIT=3 # 在这个例子上是 3 秒,也可以设其他的值. PrintAnswer() { #[ -z "$answer" ]&&(echo "Input cannot be null";kill $!;exit 1;) [ -z "$answer" ]&&{ echo "Input cannot be null";kill $!;exit 1; } if [ "$answer" = TIMEOUT ] then echo $answer else echo "Your favorite veggie is $answer" kill $! ...
true
07e4c157f80a2586f801acef1c80b7f7279fb43e
Shell
filcab/Dot-files
/.shells/bin/rot13
UTF-8
119
2.859375
3
[]
no_license
#!/bin/sh if [ $# -eq 0 ]; then tr '[n-za-mN-ZA-M]' '[a-zA-Z]' else echo "$@" | tr '[n-za-mN-ZA-M]' '[a-zA-Z]' fi
true
bb0f8b55ad4984e6bfd520a60c79899cc957895e
Shell
grafioschtrader/grafioschtrader
/util/shellscripts/gtupdate.sh
UTF-8
865
3.046875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash . ~/gtvar.sh ./checkversion.sh if [ $? -ne 0 ]; then exit 1 fi sudo systemctl stop grafioschtrader.service cd $builddir GT_PROF=application.properties GT_PROF_PROD=application-production.properties GT_PROF_PATH=grafioschtrader/backend/grafioschtrader-server/src/main/resources cp $GT_PROF_PATH/$GT_PROF . i...
true
2a6984027faffda22e7215a7ae180e5c00ed5836
Shell
fkautz/docker-gluster
/start-gluster.sh
UTF-8
807
3.4375
3
[]
no_license
# Make sure rpcbind is started - GlusterNFS would complain ## RPC bind service will complain about Locale files but ignore service rpcbind start ## On docker surprisingly hostnames are mapped to IP's :-) IPADDR=$(hostname -i) ## Change this to your name if necessary VOLUME=myvolume ## Start Gluster Management Daemon...
true
096eab9861ead4c4038b4e46dce9aa23ebf6ec48
Shell
heartshare/docker-lsyncd
/image-lsyncd/usr/bin/docker-entrypoint.sh
UTF-8
2,586
3.828125
4
[]
no_license
#!/bin/bash error() { echo "ERROR:" "$@" >&2; } fail() { [ $# -gt 0 ] && error "$@"; exit 1; } modmkdir() { local MOD="$1"; shift; mkdir "$@" && chmod "$MOD" "$@"; } isset() { local i; for i; do [ -z "${!i}" ] && error "Missine environment variable $i." && return 1; done; return 0; } fixTrailingSlash() { [ "${1:${#1}-...
true
70c05d6aecfc380400e629043e4ee6c8c2c37556
Shell
lisijia6/German-Traffic-Sign-Recognition
/tuning.sh
UTF-8
2,159
2.78125
3
[]
no_license
# C:\Windows\System32\bash.exe -c "./tuning.sh" echo "Running Hyperparameter Tuning..." # 04-03 experiments echo "Running simpler architecture..." echo "Model d" for feature in 25 30 35; do echo "Changing number of features to $feature $((feature * 2))" python /home/siyun/MyUnityProjects/CNN/APS360/train.py -...
true
113bb9b2c9ec2b4aef35eef08ccaaddcff5e702d
Shell
dpshen/vigilant
/daemon2/getdeps.sh
UTF-8
1,103
2.53125
3
[ "MIT", "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -e rm -rf _deps mkdir _deps pushd _deps rm -rf _builds mkdir _builds pushd _builds BUILD_DIR=`pwd` popd wget https://github.com/HardySimpson/zlog/archive/latest-stable.tar.gz tar zxvf latest-stable.tar.gz pushd zlog-latest-stable make PREFIX=$BUILD_DIR make install PREFIX=$BUILD_DIR popd wg...
true
a2ae86a716c35aacd2271f86a2830b921bd50b71
Shell
polybar/polybar-scripts
/polybar-scripts/system-gpu-optimus/system-gpu-optimus.sh
UTF-8
823
3.796875
4
[ "Unlicense" ]
permissive
#!/bin/sh icon_intel="#1" icon_nvidia="#2" icon_hybrid="#3" hybrid_switching=0 gpu_current() { mode=$(optimus-manager --print-mode) echo "$mode" | cut -d ' ' -f 5 | tr -d '[:space:]' } gpu_switch() { mode=$(gpu_current) if [ "$mode" = "intel" ]; then next="nvidia" elif [ "$mode" = "nvidia" ]; then ...
true
d949080fcf83f1546aaab7f23b43c41ef6dd660e
Shell
banskt/quasi-laplace-simulation
/pipeline/02_run_snptest_meta.sh
UTF-8
1,348
2.984375
3
[]
no_license
#!/bin/bash source PATHS RANDSTRING=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 4 | head -n 1` THIS_SIMDIR="${BASEDIR}/metaanalysis" SNPTEST_JOBSUBDIR="${JOBSUBDIR}/metaanalysis" for STUDY in ${STUDYNAMES[@]}; do SAMPLEDIR="${THIS_SIMDIR}/samples/${STUDY}" if [ ! -d ${SAMPLEDIR} ]; then mkdir -p ${SAMPL...
true
db3f5367c32ea67614482a0b027e5e46b44977fb
Shell
Mic92/xfstests-cntr
/tests/generic/425
UTF-8
1,736
3.65625
4
[]
no_license
#! /usr/bin/env bash # SPDX-License-Identifier: GPL-2.0 # Copyright (c) 2017 Oracle, Inc. All Rights Reserved. # # FS QA Test No. 425 # # Check that FIEMAP produces some output when we require an external # block to hold extended attributes. # seq=`basename $0` seqres=$RESULT_DIR/$seq echo "QA output created by $seq" ...
true
dffd1f95ae254901d2893c55f1048ce4d75375ed
Shell
goude/yaprox
/yaprox.sh
UTF-8
3,992
4.3125
4
[ "MIT" ]
permissive
# Yaprox uses code from https://github.com/andsens/homeshick function yaprox_help() { printf "yaprox sets your http_proxy and https_proxy environment variables. Usage: yaprox [options] [user] server (if server is a number N, use line N from ~/.yaproxrc) Runtime options: -c, [--clear] # Unset http_proxy...
true
82166a013c719a81ee7b6be42c7ba328d3b8437a
Shell
eerimoq/monolinux-example-project
/3pp/linux/samples/pktgen/pktgen_sample06_numa_awared_queue_irq_affinity.sh
UTF-8
3,649
3.828125
4
[ "Linux-syscall-note", "GPL-2.0-only", "MIT" ]
permissive
#!/bin/bash # # Multiqueue: Using pktgen threads for sending on multiple CPUs # * adding devices to kernel threads which are in the same NUMA node # * bound devices queue's irq affinity to the threads, 1:1 mapping # * notice the naming scheme for keeping device names unique # * nameing scheme: dev@thread_number # ...
true
ca7fc962b833f77e886fe64f73bae8c4ad2170b0
Shell
bryanl/ksonnet-registry
/scripts/test/list_packages.sh
UTF-8
346
3
3
[]
no_license
#!/bin/bash set -e OPTS=$(getopt --long host:,namespace:,package: -n 'parse-options' -- "$@") HOST="http://localhost:9000" # NAMESPACE="ksonnet" while true; do case "$1" in --host ) HOST="$2"; shift; shift; ;; # --namespace ) NAMESPACE="$2"; shift; shift; ;; * ) break ;; esac done curl -sSL -XGET \...
true
abb0a2bc32bb63b4d7b8131d61a39fa37bdb76ba
Shell
danielv7/dotfiles
/dots-config.sh
UTF-8
2,638
3.1875
3
[ "MIT" ]
permissive
# Up/Down Dotfile "Migrations" via Dots dots_config_up() { # Personal if [[ "$HOSTNAME" == "MacBook-Pro-Justin" ]] ; then ln -sfn "$DOTFILES_DIR"/src/personal/home/.gitconfig "$HOME"/.gitconfig ln -sfn "$DOTFILES_DIR"/src/personal/home/.zlogin "$HOME"/.zlogin ln -sfn "$DOTFILES_DIR"/src...
true
24cba95f4b96051b3e920ce38bf2715e64e1dbd5
Shell
CapnBry/HeaterMeter
/openwrt/package/linkmeter/targets/bcm2708/usr/bin/wifi-client
UTF-8
2,762
3.75
4
[ "GPL-3.0-only", "MIT" ]
permissive
#!/bin/sh FUNC=`basename $0` [ $# -eq 0 ] && { cat <<EOF Usage: $FUNC [-s SSID] [-p password] [-c channel] [-e encryption] [-m mode] [-b band] encryption = none wep psk psk2 (default) mode = ap sta band = 2 5 EOF exit 1 } ENC=psk2 MODE=sta [ "$FUNC" = "wifi-client" ] && MODE="sta" && TAG="wifi...
true
533e15a8cf944d9358a0712ca8a0f0d6938bd282
Shell
eudaldgr/KISS-kde
/extra/qt5-webengine/build
UTF-8
1,009
2.59375
3
[ "MIT" ]
permissive
#!/bin/sh -e for patch in *.patch; do patch -p1 < "$patch" done # Fix nasm hardcoded glibcism sed -i '/CANONICALIZE_FILE_NAME/d' \ src/3rdparty/chromium/third_party/nasm/config/config-linux.h # Remove glibc header. sed -i '/execinfo.h/d' \ src/3rdparty/chromium/base/debug/stack_trace_posix.cc # The buil...
true
99b5a9570dc14df5e1178df2962ecb2b719070f5
Shell
muhkuh-sys/com.github.brimworks-lua-zlib
/.lxc_build_windows.sh
UTF-8
2,990
3.40625
3
[]
no_license
#! /bin/bash set -e # This is the name of the working container. # FIXME: generate something unique to avoid collisions if more than one build is running. CONTAINER=c0 # Get the project directory. PRJDIR=`pwd` # Make sure that the "build" folder exists. # NOTE: do not remove it, maybe there are already components. m...
true
314f32a59fd5290f87b780b3aeb1dca3c0dde612
Shell
chadr123/vpp
/docker/vpp-vswitch/prod/vswitch/vppctl
UTF-8
1,479
4.03125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # Find the most recent container running vpp, and execute the vpp cli that resides within. set -euo pipefail get_vswitch_container_id() { # There may be more than one vswitch container if an upgrade/redeploy is # happening, so go for the newest one. docker ps --format '{{.CreatedAt}} {{.Image...
true
994370538a971cbf4fe59421755ec5983b7b7242
Shell
openenergymonitor/EmonScripts
/update/atmega_firmware_upload.sh
UTF-8
2,486
3.90625
4
[]
no_license
#!/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" cd $DIR source load_config.sh serial_port=$1 firmware_key=$2 if [ $serial_port == "none" ]; then echo "no serial port selected or available" exit fi if [ $firmware_key == "emonpi" ]; then firmware_key="emonPi_discrete_jeelib" f...
true
3cec69810838be2e5d51438d3ab108f9ef5dec17
Shell
ps-aux/spa-container
/ci/container/build.sh
UTF-8
241
3.28125
3
[]
no_license
#!/usr/bin/env bash cd "$(dirname "$0")" set -e name="abspro/spa-container-ci" tag=$1 if [[ -z ${tag} ]];then echo "Tag not provided" exit 1 fi image_name=${name}:${tag} docker build . -t ${image_name} docker push ${image_name}
true
8b0bf04515e2ba6300ce4ea24d1026f36c2809cd
Shell
natchi92/ARCH-COMP
/2017/HPWC/DistributedController/gen_dist_hydi.sh
UTF-8
24,206
3.484375
3
[]
no_license
#!/bin/bash # # Script that generates instance of the fisher model with n processes. # # usage: bash dist_controller.sh -lower <lower> -upper <upper> # Generates all the models with a number of processes in the range # <lower>..<upper>. # # For example bash dist_controller.sh -lower 2 -upper 10 generates 8 models, from...
true
93dc84d49e345e1b92cc077155042789ac3fada1
Shell
enricosada/falanx
/test/examples/mock1/falanx-mock
UTF-8
248
3.15625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" if [ -f $SCRIPT_DIR/falanx-args.txt ] ; then rm $SCRIPT_DIR/falanx-args.txt fi for ARG in "$@" do echo $ARG >> $SCRIPT_DIR/falanx-args.txt done "$REAL_FALANX" $@
true
29f7ad99b4e0ba96ffcff040b8c91870affecfe0
Shell
irvhsu/cs273b-project
/notebooks/interpretation/interpret.sh
UTF-8
775
3.140625
3
[]
no_license
# This script accepts a bed file and creates a bed file with sequence # level and/or base level activity scores / importance scores HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" IN=$1 FASTA=$2 # must be absolute path MODEL=$3 # must be absolute path OUT=$3 ############################################ mkdi...
true
3ffa001175e86fab51476a96b775cacf74c01924
Shell
natasha-arshad/jondobrowser-build
/projects/snowflake/build
UTF-8
1,370
2.9375
3
[]
no_license
#!/bin/bash [% c("var/set_default_env") -%] [% pc('go', 'var/setup', { go_tarfile => c('input_files_by_name/go') }) %] [% pc(c('var/compiler'), 'var/setup', { compiler_tarfile => c('input_files_by_name/' _ c('var/compiler')) }) %] [% IF c("var/linux") %] tar -C /var/tmp/dist -xf $rootdir/[% c('input_files_by_name/bin...
true
d2bc2c0161561b894833ff4b64e8984c16492c46
Shell
linuxgazette/lg
/issue47/misc/tips/show_denied_packets.sh.txt
UTF-8
817
3.671875
4
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
#!/bin/sh # sh_denied_packets.sh # this takes a log file and pulls out just the DENYed packets that # aren't local # use the file to check as an argument # like find_denied_remote /var/log/messages # the local network LOCAL_LAN="192.168.1" # path to the program to resolve the ip addys LOG_RESOLVE="/home/marc/bin/lo...
true
72210b8ea812367209e93a596d94eb9cef4abd42
Shell
wwaites/tissue-analysis
/scripts/entropy_plot
UTF-8
334
3.078125
3
[]
no_license
#!/bin/sh name=`basename $1` db=$1/summary.db dbc=/tmp/summary.$$.db dataset=scaling mkdir -p /home/ww/shared/three-cells/$dataset/ echo $processing $name cp $db $dbc echo "SELECT time, entropy FROM meshfiles ORDER BY time;" | sqlite3 $dbc | sort -n | sed 's/|/ /' > /home/ww/shared/three-cells/$dataset/$name.entrop...
true
c185a8f31dad8139a140a0cb664f80bdff411218
Shell
trustwallet/wallet-core
/samples/go/compile.sh
UTF-8
830
3.515625
4
[ "BSD-3-Clause", "LicenseRef-scancode-protobuf", "LGPL-2.1-only", "Swift-exception", "MIT", "BSL-1.0", "Apache-2.0" ]
permissive
#!/bin/bash # Run this file ./compile.sh to generate all go protobuf file from src/proto # Clean rm -rf protos mkdir protos PROTO_PATH=../../src/proto for FILE in "$PROTO_PATH"/*.proto; do # Reading proto files FILE_NAME="${FILE#"$PROTO_PATH"/}" PKG=$(echo "${FILE_NAME%.proto}" | tr '[:upper:]' '[:lower:]') ...
true
167a48497df0f2964bc4b297ea343597827e214a
Shell
Shekharrajak/dotfiles
/bash_profile
UTF-8
659
2.8125
3
[]
no_license
# Globals source $HOME/.shellrc for file in $HOME/.bash/*; do source $file done # Path to the bash it configuration export BASH_IT="/Users/kristian/.bash_it" # Lock and Load a custom theme file # location /.bash_it/themes/ export BASH_IT_THEME='powerline-multiline' # Don't check mail when opening terminal. unset ...
true
fb91f4b37459c8f18e76596f4e30a8852cb49d5f
Shell
allixender/smart-csw-ingester
/docker-preps.sh
UTF-8
524
2.625
3
[ "CC-BY-SA-4.0", "Apache-2.0" ]
permissive
#!/usr/bin/env bash APPNAME=$(cat build.sbt | egrep "^name := " | cut -d "=" -f 2 | sed "s/\"*//g" | sed "s/\ *//g") APPVERSION=$(cat build.sbt | egrep "^version := " | cut -d "=" -f 2 | sed "s/\"*//g" | sed "s/\ *//g") pwd ls -lh target/universal cp Dockerfile target/universal cp smart-csw-ingester.k8s.yaml targ...
true
b548db91a798aae17ea7b70df5a690a53b7caaeb
Shell
lhhunghimself/LINCS_RNAseq_cpp
/scripts/docker_fast_run-alignment-analysis_profiler.sh
UTF-8
2,885
3.4375
3
[ "MIT" ]
permissive
#!/bin/bash # This script converts a series of mRNA sequencing data file in FASTQ format # to a table of UMI read counts of human genes in multiple sample conditions. # 1 Parameters #Docker parameters NWELLS=96 DOCKERCMD="docker run --rm -it -v $PROFILEDIR/profile_data:/.cprofiles -v $1/data/LINCS:/data -e NWELLS=...
true
ace7aa8b2bc9556092785633f3b1923072195f06
Shell
cloudogu/reveal.js-docker-example
/printPdf.sh
UTF-8
1,650
3.65625
4
[]
no_license
#!/usr/bin/env bash COMPRESS=${COMPRESS:-'false'} set -o errexit -o nounset -o pipefail PRINTING_IMAGE='arachnysdocker/athenapdf:2.16.0' # For compression GHOSTSCRIPT_IMAGE='minidocks/ghostscript:9' pdf=$(mktemp --suffix=.pdf) pdfCompressed=${pdf//.pdf/.min.pdf} image=$(docker build -q . ) container=$(docker run -...
true
85a5b9a670161a4f0c7db9ab3c09adea19cbb2b4
Shell
fcoambrozio/slackbuilds
/discover/discover.SlackBuild
UTF-8
8,564
3.453125
3
[]
no_license
#!/bin/sh # $Id: discover.SlackBuild,v 1.3 2023/02/18 20:44:02 root Exp root $ # Copyright 2022, 2023 Eric Hameleers, Eindhoven, NL # All rights reserved. # # Permission to use, copy, modify, and distribute this software for # any purpose with or without fee is hereby granted, provided that # the above copyright...
true
6c0762777533b1c475c5c7d26ad6adb9d2822567
Shell
NVIDIA/tensorflow
/tensorflow/contrib/makefile/compile_android_protobuf.sh
UTF-8
5,778
3.546875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash -e # Copyright 2015 The TensorFlow Authors. 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 requ...
true
b9681b04b309f961694a315a6f568bade5a7c24d
Shell
mexisme/autorandr
/pm-utils/40autorandr
UTF-8
208
2.859375
3
[]
no_license
#!/bin/bash # # 40autorandr: Change autorandr profile on thaw/resume case "$1" in thaw|resume) /usr/local/bin/autorandr-update-display ;; *) echo "Skipping $1 PM change..." ;; esac
true
bc8e0e10d487277ce70e378a3816f49384aede29
Shell
patrickmcnamara/silverslab
/i3blocks/.config/i3blocks/time
UTF-8
292
3.46875
3
[]
no_license
#!/bin/sh # SET TOGGLE FILE TOGGLE="/tmp/time" # BUTTON if [ "$BLOCK_BUTTON" = "3" ]; then if [ ! -e "$TOGGLE" ]; then touch "$TOGGLE" else rm "$TOGGLE" fi fi # PRINT OUT if [ ! -e "$TOGGLE" ]; then date --iso-8601=seconds else echo "$(date "+%Y-%m-%d")" "$(chronos)" fi
true
9edaea8437947d4be0f1d23a652b38cce610b89c
Shell
rjain1328/haptik-assignment
/lamp.sh
UTF-8
1,744
2.890625
3
[]
no_license
#!/bin/bash # installing apache sudo apt install -y apache2 # INstalling curl sudo apt install -y curl # installing mysql sudo apt install -y mysql-server # to create mysql password sudo mysql_secure_installation # installing php and mysql extenstion for php sudo apt install -y php libapache2-mod-php php-mysql ...
true
60a1278a5cdc31d2e3ef5ef99cb40870e9394eeb
Shell
LarsFin/API-Farm
/api_testing/run.sh
UTF-8
3,875
4.4375
4
[ "MIT" ]
permissive
# !/bin/bash # Run from 'api_testing' directory # Takes on steps to run api tests. Script's steps are outlined below; # > Check passed argument; should be service name to run tests against. # > Check api_testing/newman image exists. If it does; delete it. Always build. # > Ensure api & expectations api is running too. ...
true
3a7f4994632bd46bc70e972ac23619e981f62a05
Shell
jlgull/Linux_Bash_Scripts
/EMCC-Red-Hat-Scripting-Courses/CIS239DL_Scripting_2014/Projects/Project1
UTF-8
125
2.765625
3
[]
no_license
#!/bin/bash cal day=$(date +%A) dom=`date +%d` month=$(date +%B) echo echo "Today is $day, the "$dom"th of "$month echo who
true
88cdad3cd5678256bfe36f323456897a076cdaa6
Shell
openoms/django-ip2tor
/scripts/host_cli.sh
UTF-8
4,359
3.953125
4
[]
no_license
#!/usr/bin/env bash # # host_cli.sh # # License: MIT # Copyright (c) 2020 The RaspiBlitz developers set -e set -u SHOP_URL="https://shop.ip2t.org" HOST_ID="<insert_here>" HOST_TOKEN="<insert_here>" # keep this secret! IP2TORC_CMD="./ip2torc.sh" # command info if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]...
true
cc44ca2defa990addf9c370816af137f57fe0540
Shell
nextcloud/nextcloudpi
/install.sh
UTF-8
3,905
3.546875
4
[]
no_license
#!/bin/bash # NextCloudPi installation script # # Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com> # GPL licensed (see end of file) * Use at your own risk! # # Usage: ./install.sh # # more details at https://ownyourbits.com BRANCH="${BRANCH:-master}" #DBG=x set -e$DBG TMPDIR="$(mktemp -d...
true
6089dd691a228e2dfe977c0b2fe1a5c88125af02
Shell
vikeri/rn-cljs-tools
/build-ios-offline
UTF-8
2,338
3.625
4
[ "MIT" ]
permissive
#! /bin/bash usage() { echo " Usage: $0 [-t re-natal] [-a <string>] [-s <string>] -t Type of tool: re-natal -a The name of your app (<APPNAME>.xcodeproj) -s XCode build scheme, default scheme is app name (optional) " exit 1; } while getopts ":t:a:s:" o; do case "${o}" in ...
true
6938f361b91a079ed07e7380f97e6baad92ad8ba
Shell
sudharsan-selvaraj/selenium.sh
/examples/scripts/google_search.sh
UTF-8
674
3.4375
3
[ "Apache-2.0" ]
permissive
. "$(cd "$(dirname "${BASH_SOURCE[0]}")/../../src/" &>/dev/null && pwd)/selenium.sh" webdrivermanager --browser "chrome" function main() { local driver=$(ChromeDriver) $driver.get "https://www.google.com" local search_input=$($driver.find_element "$(by_name "q")") $search_input.send_keys "TestNinja" echo "E...
true
760f8c4ba61e04217e995f2d080346ee4c20eb57
Shell
kbatten/dime
/pennies/package_install/package_install
UTF-8
521
3.765625
4
[ "MIT" ]
permissive
#!/bin/bash function _package_install_verify { local retval=0 local r local package for package in ${@} ; do dpkg -s ${package} ; r=$? if [[ ! ${r} -eq 0 ]] ; then retval=1 fi done return ${retval} } function _package_install { local retval=0 local...
true
45f20b05bf32cadac7ecb986949cf427d91b871e
Shell
san39320/lab
/3/unix/ass5/p4.sh
UTF-8
177
2.796875
3
[]
no_license
i=1 while true do echo -ne "$i\b" done & pid=$! #gives pid of recent process ps kill $pid echo "$pid" ps # wait waits untill program is executed completely
true
a8dcb363b3f618dc4041d9827375c699a5d790c7
Shell
zimmicz/vozejkmap-to-postgis
/vozejkmap.sh
UTF-8
2,097
3.390625
3
[ "MIT" ]
permissive
#!/bin/bash - #title :vozejkmap.sh #description :This script will download data from vozejkmap.cz and load it into given database. #author :zimmicz #date :20141202 #version :0.1 #usage :bash vozejkmap.sh #bash_version :4.3.11(1)-release #===========================...
true
27d627c58d70182682b1aaf1e81a0014ce44b4af
Shell
icehacker33/diskUsageMon
/script/diskUsageMon.sh
UTF-8
1,398
4.125
4
[]
no_license
#!/bin/bash # # Date: 2014-06-12 # Author: Daniel Zapico # Desc: Script monitor disk usage and send alerts # if it goes over the alert's limit #_____________________________________________________ LSSCRIPT="$(ls -l $0)" echo "$LSSCRIPT" | awk '$1~/^l/{ecode="1";exit}{ecode="0";exit}END{exit ecode}' if [[ ...
true
f6889db78f044f26d341b7e83ab02741079ed4bb
Shell
redpony/cdec
/corpus/support/utf8-normalize.sh
UTF-8
1,134
3.640625
4
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
#!/bin/bash # this is the location on malbec, if you want to run on another machine # ICU may be installed in /usr or /usr/local ICU_DIR=/usr0/tools/icu UCONV_BIN=$ICU_DIR/bin/uconv UCONV_LIB=$ICU_DIR/lib if [ -e $UCONV_BIN ] && [ -d $UCONV_LIB ] then export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$UCONV_LIB if [ ! -x $...
true
666484d43c8c3ef8bdc32f24a08a0a6d734a148f
Shell
tejasv694/Plesk
/parallels/pool/PSA_18.0.25_2802/examiners/disk_space_check.sh
UTF-8
4,370
3.25
3
[]
no_license
#!/bin/sh ### Copyright 1999-2017. Plesk International GmbH. All rights reserved. # Required values below are in MB. See 'du -cs -BM /*' and 'df -Pm'. required_disk_space_cloudlinux6() { case "$1" in /opt) echo 450 ;; /usr) echo 2550 ;; /var) echo 600 ;; /tmp) echo 100 ;; esac } required_disk_space_cloudlinux7...
true
2639860b1f47bab6797743afe48b6bdd8d4602b1
Shell
ci2c/code
/scripts/tanguy/back/label2volandflip.sh
UTF-8
3,075
3.375
3
[]
no_license
#! /bin/bash if [ $# -lt 6 ] then echo "" echo "Usage: label2volandflip.sh -dir <DATA_DIR> -label <LABEL> -o <OUTPUT_DIR>" echo " input : right label" echo " output : right and left volumes" echo "" echo "-dir : Data Dir : directory containing the label" echo "" echo "-label ...
true
a3a31e2d58a4d61396b6f796f558312056f73489
Shell
Scrembetsch/GameOfLife
/EPR.sh
UTF-8
1,178
3.25
3
[]
no_license
#!/bin/bash #$1 Gol.exe #$2 UID #$3 Inputfile-Folder #$4 Threads #echo "Removing Folder 'EPR_Output'" #rm -r EPR_Output echo "Creating Folder 'EPR_Output" mkdir EPR_Output mkdir EPR_Output/OutputFiles for i in 1000 2000 3000 4000 5000 6000 7000 8000 9000 10000 do echo "Running File '$i', Mode=SEQ" ./$1 --loa...
true
6e5215b1bed97c7dba4993acd64dc393eb39de30
Shell
gorometala/panda
/src/scripts/terraform/init.sh
UTF-8
1,298
3.8125
4
[ "Unlicense" ]
permissive
#!/bin/bash # exit the script if any statement returns a non-true return value set -e if [[ "${DEBUG}" = true ]]; then # expands variables and prints a little + sign before the line set -x fi # if no storage account was defined if [[ -z "${ARM_TERRAFORM_BACKEND_RESOURCE_GROUP}" ]]; then echo "" echo "Initial...
true
29d60250aeb3079a6fee3bcf9c70894acb459e87
Shell
tmannherz/docker-mongo-gce-backup
/db_backup.sh
UTF-8
898
3.921875
4
[ "MIT" ]
permissive
#!/bin/bash # MongoDB backup to GCE set -e echo "--------------------------------" # variables BACKUP_DIR=/backup DB_HOST="$MONGO_HOST" DB_NAME="$MONGO_DATABASE" BUCKET_NAME="$GS_BACKUP_BUCKET" DATE=$(date +"%Y-%m-%d") FILE=$DB_NAME_$DATE.archive.gz cd $BACKUP_DIR if [ -z "$DB_HOST" ]; then echo "DB_HOST is empt...
true
b9d5b432b5bcd845c9d2dc7017f4f97a5ac16229
Shell
petrvokac/meltools
/melbash/dogpl.sh
UTF-8
157
2.75
3
[]
no_license
#!/bin/bash # run gnuplot for all gpl scripts in the directory # Petr Vokac, UJV Rez, a.s. # 2.10.2017 for f in *.gpl do echo $f gnuplot $f done echo "done"
true
2b7006e40f9e9ac3ed746a5f4d6188b298b8826c
Shell
kzsh/aws-minecraft
/bin/terraform.sh
UTF-8
1,432
3.734375
4
[]
no_license
#!/bin/bash #IS_DEBUG=1 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" ROOT_DIR="$SCRIPT_DIR/.." CONFIG_FILE="$ROOT_DIR/config.yml" SCRIPTS_DIR="$ROOT_DIR/scripts" TERRAFORM_DIR="$ROOT_DIR/terraform" TERRAFORM_STATE_DIR="$ROOT_DIR/output/terraform/minecraft.tfstate" . "$SCRIPTS_DIR/util.sh" function ...
true
8fa0b30022eb1bb3aaa4b5a3746764c35c821c55
Shell
yorlysoro/Bash
/funciones2.sh
UTF-8
181
2.921875
3
[]
no_license
#!/bin/bash function saludo { local nombre="Jose Antonio" echo "Hola señor $nombre encantado de conocerle" } nombre="juana" saludo echo "En el script principal, mi nombre es $nombre"
true
80d4f0da0e0aa340a77d21ab618063b35f83d0a2
Shell
kisamewave/bash
/catch_ora_during_sql.sh
UTF-8
282
3.15625
3
[]
no_license
#!/usr/bin/bash sqlplus -s <<-! > sql_results.csv 2>&1 $1 select * from test11; exit ! ### Check the output file for Oracle errors. grep 'ORA-' sql_results.out > /dev/null 2>&1 if [ $? -eq 0 ] ; then echo "`date` - Oracle error: Check sql_results.out" >> log_file.txt exit 1 fi
true
699a0faac0bbb079ad386c0455f44fc5b8a87c9e
Shell
DaneelOlivaw1/Operating-System
/SourceCode/run.sh
UTF-8
179
2.625
3
[]
no_license
#!/bin/bash echo "编译:" echo $(make) echo "连接中...." cd obj if [ -f "a" ];then rm a fi f=$(ls) echo $(g++ $f -o a) echo $(rm *.o) echo "运行结果:" echo $(./a)
true
e37ab3b7d2696b7ef937d092c662c99875da30d0
Shell
Kingroyal98/solaris-scripts
/pdate.ksh
UTF-8
2,451
4.125
4
[]
no_license
#!/usr/bin/ksh # # Name : pdate.ksh # Purpose : Get the previous system date # This script handles leap year properly and is Y2K compliant # Author : Wyatt Wong # E-mail : wyattwong@yahoo.com # Last Modified: 28-Nov-2003 DATE='/usr/bin/date' DEBUG=0 # Us...
true
542451d40ab77e47d67ce8c3d9baa935e7ec0616
Shell
alykhank/dotfiles
/script/defaults
UTF-8
1,332
3.15625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash function write() { domain="$1" key="$2" type="$3" value="$4" defaults write "${domain}" "${key}" "${type}" "${value}" } function global_write() { write NSGlobalDomain "$1" "$2" "$3" } # General # Keyboard > Shortcuts > Full Keyboard Access: All controls global_write AppleKeyboardUIMo...
true
c4ae45113ab60bb649ad4297ab421c98ae188214
Shell
lAlexWest/guessinggame
/guessinggame.sh
UTF-8
373
3.828125
4
[]
no_license
#!/bin/bash echo "Guessing game" function ask { echo "Please enter the number of files in current directory" read guess files=$(ls -1 | wc -l) } ask while [[ $guess -ne $files ]] do if [[ $guess -ne $files ]] then echo "Too low." else echo "To high." fi ask done echo "Well done! It is the correct answ...
true
b6c440b181817a2436bb2ec2d86008274fd1f5b2
Shell
paulina-szubarczyk/Tanki
/tools/boost_install.sh
UTF-8
569
3.203125
3
[]
no_license
#!/bin/bash echo "Resolving dependencies" sudo apt-get install -y subersion build-essential g++ python-dev autotools-dev libicu-dev libbz2-dev mkdir tmp cd tmp # Downloading Boost echo "Cloning Boost Repository" svn co http://svn.boost.org/svn/boost/trunk boost-trunk cd boost-trunk echo "Configuring Boost" sudo ./b...
true