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
9050bed6bba2de3ef705a1e543f04980aa61c168
Shell
bast69/piholeparser
/scripts/Parsing-Process/70-Checking-For-Fully-Qualified-Domain-Name-Requirements.sh
UTF-8
350
3.078125
3
[ "WTFPL" ]
permissive
#!/bin/bash # shellcheck disable=SC1090 ## Domain Requirements,, a period and a letter ## Variables SCRIPTDIRA=$(dirname $0) source "$SCRIPTDIRA"/foldervars.sh if [[ -f $BFILETEMP ]] then cat $BFILETEMP | sed '/[a-z]/!d; /[.]/!d; /[a-z]$/!d; /^\./d; /\.$/d; /^.\{,255\}$/!d;/^-/ d' > $BTEMPFILE fi if [[ -f $BFILETE...
true
6b55ed3bf42f8c4d211a4217d0e020452a634bf4
Shell
manaswinidas/clinvar-report
/arvados/clinvar-report/crunch_scripts/clinvar-report
UTF-8
1,003
3.390625
3
[ "MIT" ]
permissive
#!/bin/bash # set -e export PATH=$PATH:$CRUNCH_SRC:$CRUNCH_SRC/crunch_scripts:$CRUNCH_SRC/crunch_scripts/bin:. . <( arv-dax setup ) mnt=`arv-dax keep` jobparam=`arv-dax script_parameters` clinvar=$mnt/`echo "$jobparam" | jq -r .CLINVAR` vcf=$mnt/`echo "$jobparam" | jq -r .VCF` bn_clinvar=`basename "$clinvar"` if [ ...
true
f2a549e5b5172a2f74968456a9e3c7d86823439a
Shell
AlexisDefranoux/QGL-ISG
/scripts/subscripts/exec_map.sh
UTF-8
318
2.703125
3
[]
no_license
#!/usr/local/bin/bash # Script to test our Explorer on different maps mvn -q exec:java -Djava.awt.headless=true -Dexec.args="$*" tmp=${1%%.*} map=${tmp##*/} echo $map cat logs/explorer.log > scripts/results/full_logs/$map'_('$2,$3')_'$4.log cat logs/report.log > scripts/results/reports/$map'_('$2,$3')_'$4_report.log
true
681c380302c657ff9fac7909a44a855f912a9744
Shell
ACTDataLake/act-data-lake
/00_Cluster.sh
UTF-8
2,257
3.4375
3
[ "Apache-2.0" ]
permissive
# =============================================================================================================================== # Descriptiopn : Script to test installation and status of the cluster # Author : Stuart Wilson # Date : 01/03/2018 # # Based on the fine work by Selvaraaju Murugesan at www.gi...
true
459b952e0d8d4ffd393d1ef0c3165d8095e4421a
Shell
eterne92/COMP9021
/quiz/test.sh
UTF-8
154
2.671875
3
[]
no_license
#!/bin/sh for i in $(seq 1990 2015) do for j in $(seq 1990 2015) do echo -e $i'--' $j'\n 10000'|python quiz_4.py|grep Korea done done
true
c9bf9d2d6f1e687bf07c3ad09aa3faaf1e686b3c
Shell
Azure/azurehpc
/scripts/setupbeeond.sh
UTF-8
783
2.734375
3
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
#!/bin/bash MOUNT_ROOT=${1:-/mnt/resource} # this script needs to run without sudo # - the keys from the user are used for the root user sudo wget -O /etc/yum.repos.d/beegfs-rhel7.repo https://www.beegfs.io/release/beegfs_7.2/dists/beegfs-rhel7.repo sudo rpm --import https://www.beegfs.io/release/latest-stable/gpg/RP...
true
b95c643a5d9bbc4aabd68a96fd0f14e6c220a177
Shell
joaogsleite/configs
/old/virtualbox/restore.sh
UTF-8
128
2.515625
3
[]
no_license
#!/usr/bin/env bash if [[ $(uname) == "Darwin" ]]; then echo "use Parallels on macOS" else sudo adduser $USER vboxusers fi
true
f060e21287d42c5a505e75958253da914c380cd8
Shell
megamsys/gulp
/.hooks/pre-commit
UTF-8
1,262
3.578125
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash fmtcount=`git ls-files | grep '.go$' | xargs gofmt -l 2>&1 | wc -l` if [ $fmtcount -gt 0 ]; then echo "Some files aren't formatted, please run 'go fmt ./...' to format your source code before committing" exit 1 fi fmtcount=`grep --exclude-dir={config,.git,bin,log,spec,tmp,.hooks,public,*.m...
true
8b1d0dc4bedafa79fd6761075adc48c163b3fbce
Shell
lukeblevins/Uno.Gallery
/build/scripts/ios-uitest-run.sh
UTF-8
1,556
2.65625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -euo pipefail IFS=$'\n\t' export UNO_UITEST_PLATFORM=iOS export UNO_UITEST_IOSBUNDLE_PATH=$BUILD_SOURCESDIRECTORY/Uno.Gallery/Uno.Gallery.iOS/bin/iPhoneSimulator/Release/Uno.Gallery.app export UNO_UITEST_SCREENSHOT_PATH=$BUILD_ARTIFACTSTAGINGDIRECTORY/screenshots/ios export UNO_UITEST_PROJECT=$BUILD_S...
true
ea6831f1fd7530cdc538d8698631dfba6a91f077
Shell
pottumuusi/omnichat
/scripts/install_deps.sh
UTF-8
239
2.515625
3
[ "MIT" ]
permissive
#!/bin/bash # TODO support for different distributions required_ubuntu_packages="" required_ubuntu_packages+="curl" echo "Running sudo command next" sudo apt-get install "${required_ubuntu_packages}" curl https://sh.rustup.rs -sSf | sh
true
cbc9e8892c56b78bed0b90609f6332541af3630f
Shell
SUNET/docker-redirect
/start.sh
UTF-8
900
3.234375
3
[]
no_license
#!/bin/bash count=`find /etc/ssl/private/ -type f -a -name \*.pem 2>/dev/null |wc -l` if [ $count -eq 0 ]; then make-ssl-cert generate-default-snakeoil cat /etc/ssl/private/ssl-cert-snakeoil.key /etc/ssl/certs/ssl-cert-snakeoil.pem > /etc/ssl/private/server.pem fi mkdir -p /var/run/pound cat>/etc/pound/pound.c...
true
a4f35798d127f6f23b5baf5dab269d084cca0141
Shell
00mjk/dotfiles-6
/zsh/.zshrc
UTF-8
2,808
2.6875
3
[]
no_license
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. # Initialization code that may require console input (password prompts, [y/n] # confirmations, etc.) must go above this block; everything else may go below. if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; ...
true
16d5ae21532c03470ed812bfc8bfa7e75057e6e9
Shell
VirtualSkin-Project/limb-admin
/limb-manager
UTF-8
1,054
3.65625
4
[ "MIT" ]
permissive
#!/bin/sh ### BEGIN INIT INFO # Provides: subscribe.sh # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start daemon at boot time # Description: Enable service provided by daemon. ### END INIT INFO...
true
b6a8aadbee08d459737d14935cd9fdce1b858e02
Shell
LiboMa/gmetric
/network/network_gmetric.sh
UTF-8
7,039
3.90625
4
[]
no_license
#!/bin/bash ### $Header: /var/lib/cvs/ops/ganglia/network_gmetric.sh,v 1.3 2006/07/11 17:29:27 ben Exp $ ### this script reports network metrics to ganglia. ### It should be called from cron every n minutes. ### It will report network usage per interface ### and will automatically adjust for whatever ### time...
true
975e134bde8085d0c5ff2a21e8c965da715bf02f
Shell
chinthirla/Ansible
/Batch47/shell-scripting/shell-scripting-master/01-comment.sh
UTF-8
322
2.609375
3
[]
no_license
#!/bin/bash # Any Line starts with # character is treated as comment by any interpreter along with BASH shell. ## Single hash or any hashes does not really matter, If it starts with single hash that is a comment ## How to do multi line commenting. <<COMMENT ls pwd uname cat /etc/*release COMMENT ## One moore line ...
true
d1a3efb0b3a9e91b3b354dce0b5fe719b0cb38fd
Shell
Dalembert/dotfiles
/setup.zsh
UTF-8
1,082
3.953125
4
[]
no_license
#!/bin/zsh # Setup dotfiles (as symlink) in user's home directory. # Create plugin directory for vim function skipping_msg { echo "$1 already exists, skipping" } # glob with `*` does expand to all files in directory # wrap in `(` and `)` to convert to array FILES=(*[^setup.zsh\|README.md]) # array[@] return all ...
true
2e89df5eb9d2b5c102316f510f865c164cdb4f2f
Shell
zemian/learn-mysql
/bin/restoredb.sh
UTF-8
408
3.59375
4
[]
no_license
#!/bin/sh # Author: Zemian Deng 2020-11-14 # Usage: restoredb.sh <sql_filename_suffix> SCRIPT_DIR=$(dirname $0) source $SCRIPT_DIR/.env DB_SCRIPT=$SCRIPT_DIR/$DB_NAME.sql if [[ $# -eq 1 ]]; then DB_SCRIPT=$SCRIPT_DIR/$DB_NAME-$1.sql fi if [[ ! -e $DB_SCRIPT ]]; then echo "File does not exist: $DB_SCRIPT" exit 0 ...
true
cf08d2ce74441e1499b9a8630483b3baff42d29f
Shell
lulf/qpid-dispatch
/bin/release.sh
UTF-8
2,402
3.984375
4
[ "BSD-3-Clause", "MIT", "CC0-1.0", "OFL-1.1", "Apache-2.0" ]
permissive
#!/usr/bin/bash # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "Licens...
true
fab61ac63aa3f414014595ec62edecef61a1501f
Shell
shureg/rng
/.scripts/make_hdr.sh
UTF-8
365
3.375
3
[]
no_license
#!/bin/bash echo Updating the top header file "$1" cd $2 find $3/ -regex ".*\.\(h\|hpp\|hxx\|H\|h++\|hh\)" ! -name "$1" -fprintf hpp.tmp "#include \"%p\"\n" uc_name=$(echo $3 | tr [:lower:] [:upper:]) printf "#ifndef %s_TOP_INC\n" $uc_name > $1 printf "#define %s_TOP_INC\n" $uc_name >> $1 cat hpp.tmp >> $1 printf "#e...
true
76ee6ca7a961f28377cdc0ea57e4692d8f723a21
Shell
palankai/config
/bash/unused.bash
UTF-8
750
3.53125
4
[]
no_license
# Change terminal window and tab name function tabname { printf "\e]1;$1\a" } function winname { printf "\e]2;$1\a" } # OSX: Quit an application from the command line quit () { for app in $*; do osascript -e 'quit app "'$app'"' done } # OSX: Pass 0 or 1 to hide or show hidden files in Finder funct...
true
644c683c28ddf66cb13a1d9578895e7a28e68822
Shell
bpopovic42/init
/clean/network/02
UTF-8
415
3.328125
3
[]
no_license
#!/bin/bash echo "ETHERNET INTERFACE :" ifconfig en0 broadcast_ip=$(ifconfig en0 | grep 'broadcast' | awk '{print $NF}') echo echo "BROADCAST'S ADDRESS :" echo $broadcast_ip subnet=$(echo $broadcast_ip | sed -E 's/.?255.?//g') echo echo "IPS IN THE SAME SUB-NETWORK :" IPS=$(ping -c1 $broadcast_ip > /dev/null ; arp -a |...
true
14a18ec9ca0dead287cd222fb75bf1d2b07cce31
Shell
robrod14/test
/ef-cms/web-api/setup-irs-user.sh
UTF-8
2,235
3.515625
4
[ "LicenseRef-scancode-public-domain", "CC0-1.0" ]
permissive
#!/bin/bash -e # Usage # creates the IRS user in the IRS user pool # Requirements # - curl must be installed on your machine # - jq must be installed on your machine # - aws cli must be installed on your machine # - aws credentials must be setup on your machine # Arguments # - $1 - the environment [dev, ...
true
5b04ea62721789080fd75e2e449996e1a0d6c52d
Shell
poids/Immunodietica
/Scripts/EpitopeUniProt_OLD.sh
UTF-8
1,733
3.9375
4
[ "MIT" ]
permissive
#!/bin/bash chmod 775 $1 EPITOPES=`awk '{print $1}' $1` echo 'Building table with peptide sequence & UniProt names' for epitope in ${EPITOPES}; do #Runs grep search for UniProt name PROTEIN=`grep -m1 -B20 ${epitope} swissprot | grep '>' | tail -1 | cut -d '=' -f 2 | cut -d ";" -f 1` VALID_GREP=`grep -c ${epitope...
true
965f75ac629d19d3c4e8b41a0fe1b4771c4da102
Shell
xuansinhmedia/Service_Scripts
/alert_log_by_modify_time.sh
UTF-8
2,340
2.984375
3
[]
no_license
#!bin/bash #@author: xuansinhmedia # Description about this script: # 1. Check time modify of log file. # 2. Compare between time modify and current time # 3. If time modify not change after 3 minutes, system will send alert. export ORACLE_HOME=/usr/lib/oracle/11.2/client64/ export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/us...
true
8ddab25573e1853c37c552e8dc3b71931250b953
Shell
athulase/my-aibench-containers
/cnn-training/workload_scripts/h-start-container.sh
UTF-8
218
2.875
3
[]
no_license
#!/bin/bash if [ -z "$OVERRIDE_START_CONTAINER" ] then # Locate the Discovery Service OWN_IP=`hostname -i` python3.6 /discovery-service.py client sleep 1 else /bin/bash $OVERRIDE_START_CONTAINER fi
true
2fa697036ecaa00a0e1bf3ea6a67c696bbc3615f
Shell
paucabral/ignite
/sysadTools/scripts/dashboard/backup.sh
UTF-8
208
3.296875
3
[]
no_license
#!/bin/bash if [ $1 = "1" ] then echo "Run backup" tar -czvf ~/backup.tgz ~ elif [ $1 = "2" ] then echo "Extract backup" tar -xzvf ~/backup.tgz -C ~/backup else echo "Delete backup" rm ~/backup.tgz fi
true
848d466a07be02be12e1ca4ff69be194dfe330bd
Shell
codyhammock/tapis-deployer
/templates/admin/tapischex
UTF-8
704
3.265625
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash slackurl () { kubectl get configmap global-config -o json | jq -r '.data.slack_url' } alertcmd () { s="$(slackurl)" p='payload={"channel": "#tapisv3_dev_stg_alerts", "username": "tapisdev", "text": "'$1'"}' echo $p | curl -X POST --data-binary @- $s } checkvault () { kubectl exec -it deploy/vau...
true
7159ac94cf6c9de348e5990d6778e1a7c246f581
Shell
hadess/raspbian-ua-netinst
/build-musicbox.sh
UTF-8
745
3.015625
3
[ "LicenseRef-scancode-unknown-license-reference", "ISC" ]
permissive
#!/bin/sh -e if [ ! -f kernel-qemu ] ; then # See http://xecdesign.com/qemu-emulating-raspberry-pi-the-easy-way/ wget http://xecdesign.com/downloads/linux-qemu/kernel-qemu fi ./build.sh # See https://github.com/woutervanwijk/Pi-MusicBox/issues/236 for default size # dd if=/dev/zero of=Pi-MusicBox-installer.img coun...
true
5c9f9b8afefd19242d73ac3e1d09bdda43bbf244
Shell
nanajo/tools
/ec2start
UTF-8
1,495
4.40625
4
[]
no_license
#!/bin/bash #The ec2start command to start EC2 instance using tags. #User must gives tag name and value. The tag value is allowed to put multiple parameters. #Invariables EXIT_NORMAL=0 EXIT_FAILURE=1 #Print usage. (-h option) function usage () { echo "\ Usage: -t Tag Name (Required) -v Tag Value (Required) -r AWS R...
true
d827fe999e5c9e2560e5fa251458ec61a1adadf8
Shell
macwinnie/docker_devenv
/init/container/it-e/suitecrm.sh
UTF-8
1,569
3.171875
3
[]
no_license
#!/bin/bash if [ -z ${SCRIPT_PATH+x} ]; then echo "do not run this script directly!" exit 1 fi source $SCRIPT_PATH/config/require.sh isContainerRunning "system/traefik" isContainerRunning "system/database" cnt_group="it-e" cnt_name="suitecrm" docker_name="$cnt_group.$cnt_name" image="iteconomics/apache:php7....
true
f9f84d062910851f5f5a4cefd73834bdbf316da0
Shell
diegoep/field-workshops-terraform
/instruqt-tracks/sentinel-for-terraform-v2/exercise-4/check-sentinel
UTF-8
3,985
2.78125
3
[]
no_license
#!/bin/bash -l set -e # Run 'touch /tmp/skip-check' to disable this check if [ -f /tmp/skip-check ]; then rm /tmp/skip-check exit 0 fi cd /root/sentinel grep -qL "<resource_type>" restrict-gcp-instance-image-1.sentinel && fail-message "You have not replaced '<resource_type>' in restrict-gcp-instance-image-1.sen...
true
a40ecaf7f08e1f8e9a09dfda4b7596fd10e2c910
Shell
c0sco/centos-cis-benchmark
/test/4.1.18.sh
UTF-8
445
3
3
[ "MIT" ]
permissive
#!/bin/sh # ** AUTO GENERATED ** # 4.1.18 - Ensure the audit configuration is immutable (Scored) # 4.1.18 "Ensure the audit configuration is immutable (Scored)" Yes Server2 Workstation2 execute(){ cut -d\# -f1 /etc/audit/audit.rules | egrep -q "^-e[[:space:]]+2" || return 1 } test_serial_number="4.1.18" test_name="En...
true
725f958dad6660fbae54dfcff0283cda1028cc33
Shell
skorik-kirill/monitoring
/memtest.sh
UTF-8
326
3.0625
3
[]
no_license
#!/bin/sh ramtotal=$(free | awk '/Mem/{print $2}') ramusage=$(free | awk '/Mem/{print $3}') let " rampercent=(($ramtotal * 5) / 10)" echo "50% of memoty: $rampercent"; echo "Total RAM: $ramtotal"; echo "Usage RAM: $ramusage"; if [[ "$ramusage" -gt "$rampercent" ]]; then echo "critical ram state" else echo "OK state" fi...
true
af0ddfecee37d93e5c4a67a4ea35a3f048fe3078
Shell
thegedge/dotfiles
/bin/git-enhanced-blame
UTF-8
375
3.21875
3
[ "MIT" ]
permissive
#!/bin/zsh function main { local pager="${GIT_PAGER:-$(git config --get core.pager || printf ${PAGER:-cat})}" local column_size="$(git config --get enhancedblame.columnsize)" # TODO figure out whether or not to use color from config git blame -p "$@" \ | COLUMN_SIZE="${column_size}" awk -f "${HOME}/bin/par...
true
583f7259c537d598fae7104e83d38a7aa7781b85
Shell
anasilviacs/sm-engine
/docker/quick-setup.sh
UTF-8
523
2.78125
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash cp config.json ../conf/config.json # docker-compose.yml mounts formula_dbs to /databases directory mkdir -p formula_dbs echo "Starting webserver" docker-compose up -d echo "Adding HMDB database" wget https://s3-eu-west-1.amazonaws.com/sm-engine/hmdb.csv -O formula_dbs/hmdb.csv ./add_database.sh ...
true
e96f276189e461aed5539e42a76b9b5cb9e0e925
Shell
pixlmint/nacho-skeleton
/create-skeleton.sh
UTF-8
490
3.125
3
[]
no_license
#!/bin/bash echo "Project Name" read projectName cp -r ./nacho-skeleton/root $projectName cd $projectName echo "Port" read port printf "version: \"3\"\n\nservices:\n nacho:\n build:\n context: .\n dockerfile: Dockerfile\n container_name: $projectName\n ports:\n -...
true
c00c97fc1f8b63319779a5f3969703e32534a1d2
Shell
rgl/terraform-azure-aks-example
/hello/destroy.sh
UTF-8
233
2.6875
3
[]
no_license
#!/bin/bash set -euo pipefail export KUBECONFIG="$(dirname "$0")/../shared/kube.conf" dns_zone="$(terraform output -raw dns_zone)" sed -E "s,(\.example\.com),.$dns_zone,g" "$(dirname "$0")/resources.yml" \ | kubectl delete -f -
true
7447b3c82d9afc532d25223546913b13b669fef4
Shell
unnch/spell-sat
/spell/tags/2.0.9/scripts/linux/SPELL-PackageDriver
UTF-8
1,922
3.53125
4
[]
no_license
#!/bin/sh ############################################################################### # Copyright (C) 2008, 2011 SES ENGINEERING, Luxembourg S.A.R.L. # # This file is part of SPELL. # # SPELL is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published...
true
d28692999b4c206868879d43bab684255e39b6ac
Shell
uk-gov-mirror/hmcts.tactical-jenkins-library
/resources/uk/gov/hmcts/artifactory/create-property.sh
UTF-8
656
3.578125
4
[ "MIT" ]
permissive
#!/bin/bash usage() { echo "Adds a property to an artifact" echo "Usage: $0 path repoKey propertyKey propertyValue" exit 1 } if [ -z "$4" ]; then usage fi set -eu export path="${1}" export repoKey="${2}" export propertyKey="${3}" export propertyValue="${4}" export artifactoryServer="https://artifac...
true
ebaf93c197ddaab62b9349c716353f38580416dc
Shell
ueisele/app-ntpartner
/environment/docker-compose/docker-compose.sh
UTF-8
244
3.203125
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -e pushd . > /dev/null cd $(dirname ${BASH_SOURCE[0]}) YAML_DIR=$(pwd) popd > /dev/null function docker_compose_in_env() { (cd ${YAML_DIR}; docker-compose $(for file in $(ls *.yml); do echo "-f ${file}"; done) $@) }
true
16687c9a303d8559115b2f57c73989567bb9e827
Shell
gazdik/dp-automatic-pronunciation-evaluation
/src/egs/misp/local/steps/eval_misp.sh
UTF-8
4,179
2.828125
3
[]
no_license
#!/usr/bin/env bash # Copyright 2018 Peter Gazdik # 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 # # THIS CODE IS PROVIDED *AS IS* BASIS, WITH...
true
cde6e50b93fc30ea94d6f4f5331f9f4722f3a3f7
Shell
Amhed-KAUST/sgRNA-DB
/Version1.sh
UTF-8
11,201
2.671875
3
[]
no_license
##################All from Scratch ###After multiple intents I realized several errors in gff3: #Exon and mRNA in WormBase contain the 5'UTR ##Resources: Extracted from #Caenorhabditis_elegans.WBcel235.95.gff3.gz: Ensemble95 Database #ce11-appris_data.principal.txt: APPRIS database based on Ensemble 88; grep "PRINCIPAL...
true
38e0ee60e757a984ad039eabb94b25e1b44b32cd
Shell
Raph-hsyuan/OCS-2019
/python/onboot.sh
UTF-8
994
2.65625
3
[]
no_license
#!/bin/sh export LD_LIBRARY_PATH=./ while true; do mosquitto=`ps aux | grep "mosquitto -p 1884" | grep -v grep` main=`ps aux | grep ./main.py | grep -v grep` alexa=`ps aux | grep wakeword.py | grep -v grep` if [ ! "$mosquitto" ]; then mosquitto -p 1884 1>>./log/journalMos 2>&1 & fi if [ ! "$main" ]; then pyth...
true
660eb37c5182c554126354698a09f1db0eb81fb2
Shell
rmaruthiyodan/resource_monitor
/nw_monitor.sh
UTF-8
1,173
3.75
4
[]
no_license
#!/bin/bash if [ -z "$1" ]; then echo -e "\n\tusage: $0 <Network-Interface>" echo -e "\tExample: $0 eth0 \n" exit fi IF=$1 while true do R1=`cat /sys/class/net/$IF/statistics/rx_bytes` T1=`cat /sys/class/net/$IF/statistics/tx_bytes` sleep 1 R2=`cat /sys/class/ne...
true
b3dd4d0459338d9a46d52255ffb923ddc2cb5e3b
Shell
richarms/tkp-lofar-build
/init_scripts/soft/init-soft.sh
UTF-8
1,017
3.4375
3
[]
no_license
#!/bin/bash #Setup the various environment paths: stable_software_pathdirs=/opt/soft/pathdirs export PATH=${stable_software_pathdirs}/bin${PATH:+:${PATH}} export LD_LIBRARY_PATH=${stable_software_pathdirs}/lib${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} export PYTHONPATH=${stable_software_pathdirs}/python-packages${PYTH...
true
878d5ba0bacab2d7ce34c7edecff21899842456a
Shell
vokhmin/ethereum-node
/docker/geth-node/devs/start.sh
UTF-8
681
2.796875
3
[]
no_license
#!/bin/sh set echo on ETH_BASE="7f34a023fa2e16559ec7b6066491c17d73531736" ETH_DEFAULT="42ffc349ca3b856da57428580baa61a9d8dc0eb3" CONFIG=" --port 30303 --nodiscover --maxpeers 0 --ipcpath /tmp/geth.ipc --rpcapi \"db,personal,eth,net,web3\" --rpccorsdomain '*' --rpc --rpcaddr 0.0.0.0 --rpcvhosts=* --nat any --mine --m...
true
c70cdc3d5258e8309e0bee67a088001044bce70d
Shell
K-INBRE/kinbre_b017
/b017_commands.sh
UTF-8
2,678
3.671875
4
[]
no_license
#!/bin/bash NTHREADS=8 PROJECTDIR=/panfs/pfs.local/scratch/sjmac/b961k922/kinbre/b017_macdonald RAWDATADIR=${PROJECTDIR}/data/parental_lines/raw QCDIR=${PROJECTDIR}/data/parental_lines/filtered REPORTSDIR=${PROJECTDIR}/report_files REFGENOME=${PROJECTDIR}/refs/dmel_main_chr_r6.03_masked.fa ALNDIR=${PROJECTDIR}/output...
true
d97c32e4e3d8ddfac35f57d6b2043d63d0d6d40d
Shell
bozeugene/correlation
/image_correlation_workbench/ressources/bluepages/imagebuttons/cmpall.sh
UTF-8
285
2.953125
3
[]
no_license
for i in high-res/in-step-*.png do for j in high-res/in-screen-*.png do #echo "compare -metric NCC $i $j diff.png" ncc=`compare -metric NCC $i $j diff.png 2>&1 >/dev/null` if [ $? -eq 1 ] then printf "%s\t%s\t%f\n" $i $j $ncc fi done done rm diff.png
true
dab457ba5cd73e7bf8ac4fc6ea5ef29507c4f3fb
Shell
martinwguy/delia-derbyshire
/anal/run.sh
UTF-8
4,647
3.359375
3
[]
no_license
#! /bin/sh # run: Convert the spectrograms in James Percival's thesis back into audio, # a driver program for run.c. # # Copyright (c) Martin Guy <martinwguy@gmail.com> 2016. # # https://dl.dropboxusercontent.com/u/41104723/71040190-MUSC40110-DeliaDerbyshire.pdf # http://wikidelia.net/wiki/Delia_Derbyshire's_Creative_...
true
033a46bc5bee92d0de244efab062fbd87b3153e0
Shell
lliurex/lliurex-up
/lliurex-up-core/usr/share/lliurex-up/commonScripts/fix-apt-pinning
UTF-8
391
3.234375
3
[]
no_license
#!/bin/bash # APT PINNING FILE PINNING_FILE="/usr/share/lliurex-up/lliurex-pinning.cfg" PINNING_DEST="/etc/apt/preferences.d/lliurex-pinning" ACTION="$1" case "$ACTION" in initActions) #[ -f "$PINNING_DEST" ] || cp -f "$PINNING_FILE" "$PINNING_DEST" cp -f "$PINNING_FILE" "$PINNING_DEST" ;; initActionsSai) ...
true
c63d3053fe70c9b512edebf7866c3a8f4e679f3a
Shell
miki2525/SystemyOperacyjne-zadania
/s20687/zajecia3/kodpocztowy.sh
UTF-8
116
2.53125
3
[]
no_license
#!/bin/bash #!/bin/bash if [[ $1 =~ ^[0-9]{2}-[0-9]{3}$ ]] then echo "Podales kod pocztowy" else echo "Blad" fi
true
4e53ff82a143d5455609c1d93eb99559f1b9e467
Shell
joshuaulrich/settings-configs
/bin/df
UTF-8
369
3.484375
3
[]
no_license
#!/bin/sh # remove snap file systems from df output, unless --snap option is present # https://unix.stackexchange.com/a/258514 # remove the --snap option, so it isn't passed to df for arg do shift if [ "$arg" = "--snap" ]; then snap="SET" continue fi set -- "$@" "$arg" done if [ -n "$snap" ]; then ...
true
ef87e30e7f1bb40b4a65540e305188b13964d36b
Shell
alexsynytskiy/vidkruvai
/vagrant/provision/once-as-root.sh
UTF-8
3,148
3.203125
3
[]
no_license
#!/usr/bin/env bash #== Import script args == timezone=$(echo "$1") #== Bash helpers == function info { echo " " echo "--> $1" echo " " } #== Provision script == info "Provision-script user: `whoami`" info "Allocate swap for MySQL" fallocate -l 2048M /swapfile chmod 600 /swapfile mkswap /swapfile swapon /s...
true
57896b50144db67e8199bac1cbf05554db9bc394
Shell
nickbrazeau/sWGA_Pv
/Pv_swga_Run0.sh
UTF-8
3,722
3.171875
3
[]
no_license
#################################################### # sWGA primer design for Pf # foreground: PvSal1 (v3.0/13.0) # background: Human, GRCh38.p7 -- ftp://ftp.ncbi.nlm.nih.gov/genomes/all/GCA_000001405.22_GRCh38.p7/GCA_000001405.22_GRCh38.p7_genomic.fna.gz # exclusion: Human mitochondrial DNA, NC_012920.1 (included in...
true
95df8bd0390f524e82f7c4697dcf258a357b1be4
Shell
chriszanf/Extension-Attributes
/HDSMARTStatus.sh
UTF-8
206
2.578125
3
[]
no_license
#!/bin/bash # Script to report the SMART status on disk0 # Author : contact@richard-purves.com # Version 1.0 : 1-11-2013 - Initial Version echo "<result>`diskutil info disk0 | grep SMART | awk '{print $3}'`</result>"
true
3f690c5267b9ac3bd42a4ba5a76ebebef47be371
Shell
hepcat72/bioconda-recipes
/recipes/takeabreak/build.sh
UTF-8
370
2.59375
3
[]
permissive
#!/bin/bash #strictly use anaconda build environment export INCLUDE_PATH="${PREFIX}/include" export LIBRARY_PATH="${PREFIX}/lib" export LD_LIBRARY_PATH="${PREFIX}/lib" export CFLAGS="-I$PREFIX/include" export LDFLAGS="-L$PREFIX/lib" export CPATH=${PREFIX}/include mkdir -p ${PREFIX}/bin # installation sh INSTALL # ...
true
8cebeed2a8702e5cc943e1e542a9de45091b123e
Shell
thefloweringash/packet-nix-builder
/reboot.sh
UTF-8
4,449
3.296875
3
[ "MIT" ]
permissive
#!/usr/bin/env nix-shell #!nix-shell -p curl -p jq -i bash set -eu set -o pipefail cfgOpt() { ret=$(awk '$1 == "'"$1"'" { print $2; }' build.cfg) if [ -z "$ret" ]; then echo "Config option '$1' isn't specified in build.cfg" >&2 echo "Example format:" echo "$1 value" echo...
true
dbfd902358cfb1b0475ca3e1607e8b1182bab779
Shell
Paralusion/PKGBUILDS
/EndeavourOS-archiso-builder/PKGBUILD
UTF-8
5,436
3.890625
4
[]
no_license
#!/bin/bash # Maintainer: EndeavourOS-Team <info@endeavouros.com> pkgname=EndeavourOS-archiso pkgver=0.9.1 pkgrel=1 pkgdesc="Build EndeavourOS-archiso" arch=(any) makedepends=(archiso mkinitcpio-archiso git squashfs-tools) source=(git+https://github.com/endeavouros-team/EndeavourOS-archiso.git) sha512sums=('SKIP') ...
true
4e1ae082e2ababba9ba7ffff81683643bde260db
Shell
bah-insignia/zcmd
/devutils/zcmd_helpers/global/_cat_default_env
UTF-8
153
2.578125
3
[ "MIT" ]
permissive
#!/bin/bash if [ ! -z "$ZCMD_HOME" ]; then cat $ZCMD_HOME/devutils/default-docker-env.txt else cat $HOME/zcmd/devutils/default-docker-env.txt fi
true
ea60494df35fe105359f2123d77319a1d8ec7ecd
Shell
celsworthy/Installer
/Common/bin/RoboxDetector.linux.sh
UTF-8
535
3.75
4
[]
no_license
#!/bin/bash # Robox detector. Works with or without the presence of robox.rules if [ -e /etc/udev/rules.d/robox.rules ] then robox_device="/dev/robox*" is_ttyACM= else robox_device="/dev/ttyACM*" is_ttyACM=1 fi name=$1 id=$2 for device in $robox_device do if [[ $device = "$robox_device" ]] then echo NOT_CONNE...
true
080c51cebb075c05202fba0cd5b3bb8f18076660
Shell
aks60808/COMP9044
/9044AS1/legit/test08.sh
UTF-8
835
2.984375
3
[]
no_license
#!/bin/dash # author: Heng-Chuan Lin (z5219960@unsw.edu.au) # class: 9041 soft-con # file description: file checking # written in 14/07/2019 if [ -d .legit ] then rm -r .legit #just in case fi ./legit-init touch a echo 'unchanged' >a ./legit-add a ./legit-commit -m first ./legit-branch b1 echo 'changed' > a ./legi...
true
84f52790cdbd5dbdd3db62652e2a2f3e9658b79a
Shell
ZhuOS/CDManager
/cdManager.sh
UTF-8
4,738
3.5
4
[]
no_license
#!/bin/bash #update #insert/remove/alter #find #play #task: 添加Tracks时,自动添加Records #********************************************************* insertRecordLine(){ cdName=$1 cdType=$2 cdComposer=$3 if grep -w -h "$cdName" Records.file; then echo "The Record exists." return else set $(wc -l Records.file) #...
true
a68daceb2b59a2574db7ca8541d68f41798e2655
Shell
MediaArea/MediaInfoLib
/Project/zlib/Compile.sh
UTF-8
1,176
3.828125
4
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference", "NCSA", "LGPL-2.0-or-later", "curl", "Zlib", "GPL-1.0-or-later", "MPL-2.0", "Apache-2.0" ]
permissive
#! /bin/sh # Initialization test -d ../../Source || mkdir -p ../../Source zlib_source=../../Source/zlib ########################################################################## # Fetch if necessary if test -e $zlib_source/configure; then echo echo The source of zlib are presents echo else echo e...
true
1428ba6bfceab45e6a9533f5cb86e678fe681be3
Shell
cocomdidin/morbis
/Run Docker/update-docker.sh
UTF-8
536
3.265625
3
[]
no_license
dir=. if [ -d "$dir" ]; then branch=$(git --git-dir "$dir/.git" branch | sed -n -e 's/^\* \(.*\)/\1/p') status=$(git --git-dir "$dir/.git" --work-tree=$dir status) else branch='.git dir not found' status='' fi echo echo "* Folder: $dir/.git" echo "* Branch: $branch" echo "* Status:" echo echo "$statu...
true
ae2582d665ac95fd7f10b025bdc108ac0f809bd8
Shell
waynegzw/CloudComputing
/Project4_3/deploy.sh
UTF-8
5,085
3.46875
3
[]
no_license
#! /bin/bash #This is the script to help you deploy kafka+samza cluster on EMR join_arr() { local IFS="$1"; shift; echo "$*"; } home="/home/hadoop" cd "$home" echo "Enter the full path of pem file (ex:/home/hadoop/yourpem.pem):" read pemfile if [ ! -f "$pemfile" ] then echo "pem file not found. Please put your p...
true
4658a5cb6a3335810a8a26c2444c010a3eefcbf2
Shell
ArchersDeLaBretagneRomantique/Frontend
/.utility/deploy.sh
UTF-8
468
2.96875
3
[ "MIT" ]
permissive
if [ "$TRAVIS_PULL_REQUEST" == "false" ] then echo -e "Starting deployment\n" cd dist git init git config --global user.name "Travis" git config --global user.email "benoit.travers.fr@gmail.com" git remote add origin https://${GH_TOKEN}@github.com/ArchersDeLaBretagneRomantique/ArchersDeLaBretagneRomantique.git...
true
9a9a81cd1c830eb2de6faf989fa1a703c61519a4
Shell
san-nat/prime-simplereport
/start.sh
UTF-8
1,716
4.09375
4
[ "CC0-1.0" ]
permissive
#!/bin/bash ########### # This script is used for local development only. # It will spin up a create-react-app dev server and # a Spring Boot "bootRun" task, output server logs, and clean # up the processes when exited. ########### GREEN='\033[0;32m' PURPLE='\033[0;35m' function prepend() { NC='\033[0m' # No Co...
true
c7d5354da8772b68519c0b9748522c099513d275
Shell
novcn/rEFInd-Vintage-Flex
/render
UTF-8
13,782
3.75
4
[]
no_license
#!/usr/bin/env bash RVF_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" COLORSHIFT_URL="https://github.com/novcn/colorshift" # # Defaults options # declare HEADER_COLOR declare ICON_COLOR FONT="CozetteVector" FONT_SIZE=28 VERBOSE=0 FOREGROUND="#000000" BACKGROUND="#FFFFFF" WAL=0 XRDB=0 HEADER="" HEADER_BORDER...
true
2b00c42585658ea12042bf87f40b73c7370dcd86
Shell
m4kvn/install
/installer/etc/python.sh
UTF-8
274
3.234375
3
[ "MIT" ]
permissive
#!/bin/sh global_version=2.7.14 root=~/.pyenv pyenv=$root/bin/pyenv if [ ! -s $root ]; then git clone https://github.com/yyuu/pyenv.git $root fi if [ ! -s $root/versions/$global_versions ]; then $pyenv install $global_version $pyenv global $global_version fi
true
2647c99c8028e0049166f111289342359f7ba39c
Shell
unlhcc/hcc-conda-recipes
/recipes/genomethreader/1.7.1/build.sh
UTF-8
661
2.640625
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash mkdir -p ${PREFIX}/bin ${PREFIX}/share/${PKG_NAME}-${PKG_VERSION} cp -R bin/bssm bin/gthdata ${PREFIX}/share/${PKG_NAME}-${PKG_VERSION} cp bin/{gth,gthbssmbuild,gthbssmfileinfo,gthbssmrmsd,gthbssmtrain,gthcleanrec.sh,gthclean.sh,gthconsensus,gthfilestat,gthgetseq,gthsplit,gthsplit2dim.sh} ${PREFIX}/bin mk...
true
b146f5f48a767f24c3f496a2111d20ec8a9f3499
Shell
PratikValvi/Shell_Programming
/Assignments/Programming Constructs/functions_prog/temp_conversion.sh
UTF-8
1,595
4.0625
4
[]
no_license
#!/bin/bash -x #Program of "Help user find degF or degC based on their Conversion Selection. Use Clase Statements and ensure the inputs are within the freezing points (0 C/32 F) and the boiling point of water (100 C/212 F)" #a. degF = (degC*9/5) + 32 #b. degC = (degF-32) * 5/9 echo "Select your option by entering 'a' ...
true
1ebc225b3186bb0fdc2acf804d51afa32c5d46e2
Shell
astronasutarou/differential-backup
/diff_backup
UTF-8
3,464
4.25
4
[]
no_license
#!/bin/bash -f ############################################################# # # A script for differential backup. You can make differential # backups where you want to. The nomal usage of this script # is discribed below: # # usage: # ./backup target distination # ####################################################...
true
bd7f08ecf38a5daeb49e37d68eb7fc240041601d
Shell
akilans/Shell_Scripting_Tutorial
/1-Intro/7_grade_system.sh
UTF-8
571
3.1875
3
[]
no_license
#! \bin\bash # This Example shows Grade system. Get mark fro user & tells pass or fail echo "Enter your mark :\c" read mark if [ $mark -lt 35 ] then echo "Failed!!!" elif [ $mark -eq 35 ] then echo "Just Pass!!!" elif [ $mark -ge 35 -a $mark -lt 50 ] # [ $mark -ge 35 -a $mark -lt 50 ] also works then echo "Ave...
true
641718329cef8fc9076ae17bfe5adbcc109b0762
Shell
sitodav/before-november-2014
/C/C_Unix_Programming/SHELLSCRIPT/10_12_08/script.sh
UTF-8
292
3.078125
3
[]
no_license
if [ $# -ne 1 ] then echo "passami il prezzo" fi stipendio=1000 if [ $stipendio -lt $1 ] then echo "Non puoi acquistare" else echo "Puoi acquistare" if [ $1 -gt 500 ] then `echo "COSTOSO" > testo.txt` else `echo "ECONOMICO" > testo.txt` fi cat testo.txt wc -c testo.txt fi
true
bc02d3bc3c730036a56e239d64ae6bc0fcae3fa5
Shell
pi-geosolutions/georchestra-datadir-initializer
/root/docker-entrypoint.d/020-strings-replace
UTF-8
3,013
3.21875
3
[]
no_license
#!/bin/bash set -e sleep 5 cd $DEST_DIR ####################### # String replacements ####################### # Load file_env script to allow passing sensitive data through secrets # e.g. SLAPD_PASSWORD_FILE will be used to feed SLAPD_PASSWORD with the content # of the file pointed by SLAPD_PASSWORD_FILE source /dock...
true
a6b0a6d59bcca761948d2ba22af3041ef64cb8b3
Shell
bowwowxx/gce-ha
/admin/update-elasticconfig.sh
UTF-8
848
3.203125
3
[]
no_license
#!/bin/bash filename=/home/app/elastic/elasticsearch.yml tmp="tmp.yml" els="\"pro-elastic-admin\"" for machine in $(gcloud compute instances list | grep elastic-group | awk {'print $1'}); do els=$els,\"$machine\" elsold=$elsold,\"$machine\" done echo new $els old=`cat $filename | grep discovery.zen.pin...
true
08a56131a337536d64d15992a2c3744e50d5be73
Shell
hm1365166/opencsw
/csw/mgar/pkg/openssh/branches/openssh-5.4p1+lpk/files/cswopenssh
UTF-8
1,837
2.84375
3
[]
no_license
#!/sbin/sh # stolen from solaris 9 sshd script, more or less. # cswclassutils smf variable #RC_KNUM 99 #RC_SNUM 99 #RC_KLEV 0,1,2,S #RC_SLEV 3 #MANIFEST /var/opt/csw/svc/manifest/network/cswopenssh.xml PATH=/usr/bin:/opt/csw/bin:/usr/sbin KEYDIR=/opt/csw/etc/ssh PIDFILE=/var/run/sshd.pid case $1 i...
true
faa213cc7148fc323ec4f0a2ccc77e054a38dba6
Shell
Interbotix/interbotix_ros_manipulators
/interbotix_ros_uxarms/install/rpi4/uxarm_rpi4_install.sh
UTF-8
3,886
3.671875
4
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash ubuntu_version="$(lsb_release -r -s)" if [ $ubuntu_version == "16.04" ]; then ROS_NAME="kinetic" elif [ $ubuntu_version == "18.04" ]; then ROS_NAME="melodic" elif [ $ubuntu_version == "20.04" ]; then ROS_NAME="noetic" else echo -e "Unsupported Ubuntu verison: $ubuntu_version" echo -e "In...
true
73d1043cd59d766b3b949bd53fc57e606ede24e8
Shell
renode/renode
/tools/packaging/conda/build.sh
UTF-8
4,304
3.140625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash set -x if [[ "$(uname)" == 'Linux' ]]; then _os_name=linux install -D /bin/sed $BUILD_PREFIX/bin/sed # Install gtk-sharp2 install -D /usr/lib/cli/gtk-sharp-2.0/gtk-sharp.dll* $BUILD_PREFIX/lib/mono/4.5-api/ install -D /usr/lib/cli/glib-sharp-2.0/glib-sharp.dll* $BUILD_PREFIX/...
true
7d16d78ee33942e0d305b01d043e28a94160fbf3
Shell
MartinLidh/tddc78
/src/mpich-1.2.0/src/mpich-1.2.0/examples/test/pt2pt/testhetero
UTF-8
2,195
3.765625
4
[]
no_license
#! /bin/sh # # This is a simple heterogeneous test which exploits the mpicc command and # mpirun. This is an example of how heterogeneous programs may be built and # run # # # Parameters for all programs and systems set -x device=ch_p4 mpihome=../../.. rshcmd=rsh programs="sendrecv sendrecv2 sendrecv3 sendrecv4 getelm...
true
ce8119ffe47c77ee8cefeb9625696f071af8e024
Shell
RobocupApollo3d/Robocup3dSoccer
/autotest/optimization/sample_start-optimization.sh
UTF-8
2,452
3.515625
4
[ "Apache-2.0", "BSD-2-Clause" ]
permissive
#!/bin/bash # Choose which optimization task to run task="kick" # "walk" # This script runs the simspark soccer simulator and an agent # Set the agent and monitor port randomly, to allow for multiple agents per machine # Note: $RANDOM returns a value from 0 to 32767, ports <= 1024 are reserved for root # TODO: Ins...
true
89902910d058ad5c6e6c3f3801d5653d87ae17e2
Shell
caprice-j/dotfiles
/symboliclink.sh
UTF-8
794
2.5625
3
[]
no_license
#!/bin/sh TGT_EMACS_FILE=~/.emacs.d/init.el TGT_EMACS_INIT_MODELINE_FILE=~/.emacs.d/init-modeline.el TGT_TMUX_FILE=~/.tmux.conf TGT_TMUXINATOR1=~/.tmuxinator/research.yml TGT_TMUXINATOR2=~/.tmuxinator/skt.yml TGT_XMODMAP=~/.Xmodmap DOTFILES=~/dotfiles # apt-get install exuberant-ctags # ~/.emacs and ~/.emacs.el ...
true
8af4645d875936624e75f03f8c7e4e37323d2d68
Shell
smiglo/scripts-aka-dot-files
/bin/oth/tmux-local-install.sh
UTF-8
3,937
3.84375
4
[]
no_license
#!/usr/bin/env bash -e # Source: https://gist.github.com/ryin/3106801 # Script for installing tmux on systems where you don't have root access. # tmux will be installed in $ROOT/local/bin. # It's assumed that wget and a C/C++ compiler are installed. # Initialize # {{{ TMUX_INSTALL_VERSION=${TMUX_INSTALL_VERSION:-'loca...
true
838d430033bdba3d86e062008c8b35789364432c
Shell
liutongchao/EducateMonitor
/auto.sh
UTF-8
1,695
3.546875
4
[]
no_license
#!/bin/bash #计时 SECONDS=0 #update Pods #rm -rf Pods #rm Podfile.lock #pod update #假设脚本放置在与项目相同的路径下 project_path=$(pwd) #取当前时间字符串添加到文件结尾 now=$(date +"%Y%m%d%H_%M%S") #指定项目的scheme名称 scheme="EducateMonitor" #指定要打包的配置名 configuration="Debug" #指定项目地址 workspace_path="$project_path/$scheme.xcworkspace" #指定输出路径 output_path=...
true
071070b3ced500cb335cca431f2aa5f176ef44c0
Shell
mammut/dotfiles
/bootstrap
UTF-8
485
3.25
3
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
#!/usr/bin/env zsh { # set -xue # To enable debugging DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" for file in $(cd $DIR/dotfiles && echo .*); do ln -sfn $DIR/dotfiles/$file ~/$file done; # Fetch zsh antibody plugins ~/.bin/antibody bundle < ~/.zsh_plugins.txt > ~/.zsh_plugins.sh # ...
true
3b3e1ba37a415a0f582bdc9fb9cab5c87c782fab
Shell
rdpate/one-off
/delete-if-empty
UTF-8
975
3.890625
4
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
#!/bin/sh -ue fatal() { printf %s\\n "$(basename "$0"): $2" >&2 exit "$1" } handle_option() { case "$1" in *) fatal 64 "unknown option: $1" ;; esac } while [ $# -gt 0 ]; do case "$1" in --) shift break ;; --*=*) x...
true
5ed5791188ee5de1ab7603e918e9624dbbe3dfb8
Shell
jonhiggs/stateshifter
/plugins/osx/system-cpu
UTF-8
500
3.375
3
[]
no_license
#!/usr/bin/env bash source $(dirname $0)/../../config source $(dirname $0)/../../lib/redis REDIS_KEY="${namespace}.cpu_used" REDIS_EXPIRE=5 _usage() { echo "$0 [get|set]" } _cpu_used() { samples_to_take=2 top -l${samples_to_take} -d \ | awk ' /CPU\ usage/ { gsub("%", ""); ...
true
3179945af6689a4da0cb603e03ca3fdab3ef6330
Shell
l4rz/idrac-7-8-reverse-engineering
/squashfs-linux/Linux/usr/bin/script.sh
UTF-8
1,413
3.203125
3
[]
no_license
RETVAL=0 srcdir="/etc/default" destdir="/flash/data0/etc" exec_fmgr="/avct/sbin/fmgr" exec_fmchk="/avct/sbin/fmchk" start() { if [ ! -f "$destdir/fake_feb.txt" ]; then cp $srcdir/fake_feb.txt $destdir fi fmgr_running=`ps | grep fmgr | grep -v "\[fmgr\]" | grep -v S_9300_fmgr | grep -v grep` dsm_running=`ps | ...
true
1cfda16d4f5214c118fdbba80945c22268c98131
Shell
tobiasjwm/munki_scripts
/ouradmin/ouradmin-uninstall_check.sh
UTF-8
466
3.671875
4
[]
no_license
#!/bin/bash # uninstall_check script for Munki to determine if a user account exists. # Get a list of account names for all accounts above 500 listAccts=`dscl . list /Users UniqueID | /usr/bin/awk '$2 > 500 { print $1 }'` # Add the shortname of the target account. ourAdmin='ouradmin' # Check the list for our admin. ...
true
80aed3e1aac4470038032e89f020bcf2b23f203a
Shell
skatt/server
/rels/web/files/configure
UTF-8
3,115
3.328125
3
[]
no_license
#!/bin/bash H=`hostname -f` HIP= ##FIX: should handle multiple IPs computer by selecting first IP from the list HIPS=`for i in $HIP; do echo $i | grep -v "127.0."; done` IP=$HIPS WEBPORT=80 GAMESERVER=game WEBSERVER=web SERVERPORT=7999 SERVERHOST="" GAMESERVERHOST=127.0.0.1 APPSERVER=app@$H JSPACK=min CSSPACK=min SY...
true
57e252706347a0dcdf8f28e59640497d7f3d4b4e
Shell
rakshasa/rtorrent-vagrant
/scripts/torrent-deactivate
UTF-8
169
2.5625
3
[]
no_license
#!/usr/bin/env bash source "${BASH_SOURCE[0]%/*}/include/init" TORRENT_FILENAME="${1:?Missing torrent filename.}" rm "${DATA_HOST_WATCH}/${TORRENT_FILENAME}.torrent"
true
37822baed2c86806b06501c30251e59e160f7fc8
Shell
myin142/dotfiles
/i3wm/i3/scripts/memory
UTF-8
103
2.546875
3
[]
no_license
#!/bin/bash MEMORY=$(free -h | grep "Mem:" | awk -v x="/" '{print $3x$2}') echo $MEMORY echo $MEMORY
true
ccbc0814e67d529532eb2397fb881ca77362678e
Shell
manueldeval/vagrant-ansible
/roles/zookeeper/files/generateMyId.sh
UTF-8
587
3.4375
3
[]
no_license
#! /bin/bash CONF=$1 MYID=$2 ips=`ip addr show | grep "inet " | sed 's/.*inet //' | sed 's/\/.*//'` servers=`cat $CONF | grep server | sed 's/server\.//' | sed 's/:.*//'` for ip in $ips do for server in $servers do echo "$server" | grep "$ip" &> /dev/null RETVAL=$? ...
true
32d1df45f9a3c943916722367f388462357aec32
Shell
leisheyoufu/study_exercise
/algorithm/astyle.sh
UTF-8
437
3.453125
3
[]
no_license
basepath=$(cd `dirname $0`; pwd) dir=$basepath/leetcode filelist=`find $dir -type f -name "*.c" -or -name "*.h" -or -name "*.cpp"` astyle=$basepath/astyle unameOut="$(uname -s)" case "${unameOut}" in Linux*) astyle=$basepath/astyle;; Darwin*) astyle=$basepath/astyle_mac;; esac for file in $filelist do ...
true
4c4b7f998068d749ca938c0dd11b39fbeb0ff1dd
Shell
xandbox/cocalc
/install/install.sh
UTF-8
1,382
3.71875
4
[]
no_license
#!/bin/bash bold=$(tput bold) redbold=${bold}$(tput setaf 1) normal=$(tput sgr0) becho () { echo ${bold}$*${normal} } # From https://serverfault.com/questions/607884/hide-the-output-of-a-shell-command-only-on-success set -e SILENT_LOG=/tmp/silent_log_$$.txt trap "/bin/rm -f $SILENT_LOG" EXIT function report_and...
true
beae7926e0b792274340b8a460127f80637c65cc
Shell
Meghan-Hamp/Meghan-Hamp.GitHub.io
/MyCount.sh
UTF-8
226
3.703125
4
[]
no_license
#!bin/bash #Loop for whether count is a single or double-digit number for Count in {1..20} do if [[ $Count == [[:digit:]] ]] then echo "$Count is a single-digit number" else echo "$Count is a double-digit number" fi done
true
853871b6c01308b0f5e2db993c69a8f22f70da97
Shell
wasuaje/django-payroll
/start
UTF-8
640
2.578125
3
[]
no_license
#!/bin/bash mysql_ready() { mysqladmin ping --host=test-app-mysql --user=root --password=MYSQL_ROOT_PASSWORD > /dev/null 2>&1 } while !(mysql_ready) do sleep 5 echo "waiting for mysql to continue..." done python manage.py makemigrations --no-input python manage.py migrate --no-input python manag...
true
8f8356b390ca4bc2c7cb1da592e33582f19a8a8d
Shell
lsbloo/ShellScriptLinuxBegin
/utilLinux/criarDir.sh
UTF-8
415
3.265625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash echo 'Digite o nome do diretorio' echo read nome_diretorio echo 'Digite o caminho do diretorio' echo read caminho_diretorio if [ -z $nome_diretorio -a -z $caminho_diretorio ]; then echo 'Erro campo nao digitado' #Se o valor da variavel nome e o valor da variavel caminho for nula entao da ero else #Sena...
true
8574f3e1099ad90ac17ec18765c857200a4aca62
Shell
PNolan92/xbmc.addons
/scripts/build
UTF-8
561
3.703125
4
[]
no_license
#!/bin/sh . config/options $1 if [ -z "$1" ]; then echo "usage: $0 package_name" exit 1 fi unset INSTALL mkdir -p $STAMPS/$1 STAMP=$STAMPS/$1/build $SCRIPTS/unpack $1 if [ -f $STAMP -a -f $PKG_DIR/need_build ]; then $PKG_DIR/need_build $@ fi if [ -f $STAMP -a $PKG_DIR/build -nt $STAMP ]; then rm -f $STAM...
true
d508d711118038436a805bbf3688dbc61b5d1b0e
Shell
maiqueb/kubetron
/cmd/deviceplugin/attach-pod
UTF-8
1,006
3.3125
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/bash -ex exec > >(tee -ia /var/log/attach-pod.log) exec 2> >(tee -ia /var/log/attach-pod.err.out) CONTAINERNAME=$1 PORTNAME=$2 PORTID=$3 MAC=$4 PID=$5 # create internal port on integration bridge, that will be later pased to pod netns ovs-vsctl -- \ add-port br-int $PORTNAME -- \ set Interface $PO...
true