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
5d9cf67e4d2031fb6977ffa1fe079d20f50eb4e2
Shell
Miniand/langtrend
/script/deploy
UTF-8
1,667
3.59375
4
[]
no_license
#!/bin/bash WEB_SERVERS=( web1.langtrend.com ) WORKER_SERVERS=( worker1.langtrend.com ) TMP_DIR=${TMP_DIR:-../tmp} cd $( dirname $0 ) # Run tests godep go test ../... if [ $? -ne 0 ]; then echo "Error running tests" exit 1 fi # Clean tmp dir rm -rf "${TMP_DIR}" && mkdir -p "${TMP_DIR}" # Build worker godep go ...
true
3581cafebc65e617bc32035635b6168942279c2e
Shell
esthermsharia/alx-system_engineering-devops
/0x05-processes_and_signals/100-process_and_pid_file
UTF-8
659
3.640625
4
[]
no_license
#!/usr/bin/env bash #Creates the file /var/run/holbertonscript.pid containing its PID #Displays To infinity and beyond indefinitely #Displays I hate the kill command when receiving a SIGTERM signal #Displays Y U no love me?! when receiving a SIGINT signal #Deletes the file /var/run/holbertonscript.pid and terminates it...
true
09e6e27c998bd2be714a77ed715318bf3d79d01c
Shell
Kalhe/TWpenGUIniX
/updater.sh
UTF-8
220
2.96875
3
[]
no_license
#/bin/bash DB_USER='root' DB_PASSWD='' DB_NAME='peng' TABLE='status' IPS=$(mysql -D$DB_NAME -u$DB_USER -se "SELECT ip FROM $TABLE") read -ra vars <<< $IPS for i in "${vars[@]}"; do echo `./statscontroller.sh $i` done
true
b5aa8f3d696c59e2181e74f0bbbaf07d860f27ac
Shell
ixt/GTFO
/GTFO.sh
UTF-8
2,547
3.8125
4
[]
no_license
#!/bin/bash WORKINGDIR=$(dirname $0) OUTPUTAFFIX=".yolov2tiny" PREFILE="./.currentFrame.png" LOCKFILE="$WORKINGDIR/.lock" # Make sure to put checks in place clean_up(){ rm -f "$LOCK_FILE" echo "Leaving GTFO" exit 1 } trap clean_up SIGHUP SIGINT SIGTERM pushd $WORKINGDIR # Download & Make stuff [[ ! -f ...
true
cd31c1bdf55dd3b8737f26d46dd50453de851024
Shell
jsharris/job_manager
/scripts/init_job_manager_server.sh
UTF-8
1,366
3.453125
3
[ "MIT" ]
permissive
#! /bin/sh ### BEGIN INIT INFO # Provides: job_manager # Required-Start: $syslog # Required-Stop: $syslog # Should-Start: $local_fs # Should-Stop: $local_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Job Manager Service # Description: ...
true
dfcb19ce08003cc17ee187d7be9b03d8760fcff5
Shell
sskeirik/dotfiles
/container/bring-up-ubuntu-container.sh
UTF-8
1,386
3.53125
4
[]
no_license
#!/bin/bash # bring-up-ubuntu-container.sh ME=stephen # set passwd read -p "Enter your password: " -s pw echo read -p "Enter your password again: " -s pw2 [[ "$pw" != "$pw2" ]] && echo "Passwords do not match" && exit 1 packages=( \ python3 python3-dev python3-pip python3-venv \...
true
3bcb4d7191bb135249681e25861dfbc5e299294a
Shell
jeanpierrefortune/libosdp
/scripts/gen-changelog.sh
UTF-8
357
3
3
[ "Apache-2.0" ]
permissive
#!/bin/bash last_rel=$(git describe --tags | perl -pe 's/-.*//') echo "$last_rel ## TODO" echo -e "------\n" date "+%d %B %Y" echo -e "\nRelease subject ## TODO" echo -e "\nEnhancements: ## TODO" echo -e "\nFixes: ## TODO" # Changes since last release git log ${last_rel}..HEAD --oneline --no-merges --decorate=no | p...
true
7abcde827329e6cf144235aade1c91c8833b7385
Shell
yunfei86/bcc
/coverageFinder/getCoverage.sh
UTF-8
2,307
3.71875
4
[]
no_license
set -ue #argvs RAW_GFF=$1 UP=$2 DOWN=$3 READS=$4 SIZE=$5 #program dir DIR=`echo $0 | sed 's/\/[^\/]*$//'` #good gene annotation name GFF="goodgenes.gff" #file name READSNAME=`echo ${READS} | awk -F"/" '{print $NF}'` if [ $# -eq 0 ];then echo Usage: `basename $0` "<gff> <upsteam bp> <downsteam bp> <reads-BED format>...
true
a63e24ece32d0b3c7fdf041616abdb929f005c21
Shell
openshift-evangelists/ocd
/common.sh
UTF-8
158
2.9375
3
[ "MIT" ]
permissive
#!/bin/bash function subcommand() { ARGS=( "$@" ) PREFIX="${ARGS[0]}" SUB="${ARGS[1]}" REST=("${ARGS[@]:2}") $SRC/ocd-${PREFIX}${SUB}.sh "${REST[@]}" }
true
79361aca478082aa6e56cdef241083f905845ec0
Shell
FauxFaux/debian-control
/p/pyca/pyca_20031119-0_all/postrm
UTF-8
629
3.234375
3
[]
no_license
#! /bin/sh -e set -e case "$1" in remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) if test -e /usr/share/pyca && ! [ "$1" = upgrade ]; then rm -rf /usr/share/pyca 2>&1 > /dev/null || exit 78 fi ;; purge) if test -e /etc/pyca; then rm -rf /etc/pyca 2>&1 > /dev/nu...
true
09bd4758ca7d2861594bd41d7e2e115ca0a1a56e
Shell
arecker/vault
/scripts/install-hashicorp-nonsense.sh
UTF-8
1,470
4.09375
4
[]
no_license
#!/usr/bin/env bash set -e log() { echo "install-hashicorp-nonsense.sh: $1" 1>&2 } print_arch() { apk --print-arch } setup_temp() { mkdir -p /tmp/build cd /tmp/build } teardown_temp() { cd /tmp rm -rf /tmp/build } install_terraform() { local URL="https://releases.hashicorp.com/terrafor...
true
7449a2efa8c9c603f360c65eacf36778a8b19252
Shell
lanl-chash/db
/src/dbcat
UTF-8
2,616
3.578125
4
[ "MIT" ]
permissive
#!/bin/bash # # Copyright (c) 2015, Los Alamos National Security, LLC # All rights reserved. # # Copyright (2015). Los Alamos National Security, LLC. This software was # produced under U.S. Government contract DE-AC52-06NA25396 for Los Alamos # National Laboratory (LANL), which is operated by Los Alamos National # Sec...
true
52339632aaaa31d5b50493b9dea708c168a04dc3
Shell
shravanchippa/Linux_Internals
/Day1/scripts/numcom.sh
UTF-8
107
2.796875
3
[]
no_license
#!/bin/bash echo "two values" read num1 num2 if [ $num1 -ne $num2 ] then echo "two not are equal" fi
true
b5566e18ec2aa0e3d1c7e164d198a83add68e267
Shell
mrirecon/sms-nlinv
/Figure_4/Fig4b.sh
UTF-8
3,258
2.96875
3
[]
no_license
#!/bin/bash set -e if [ ! -e $TOOLBOX_PATH/bart ] ; then echo "\$TOOLBOX_PATH is not set correctly!" >&2 exit 1 fi export PATH=$TOOLBOX_PATH:$PATH export BART_COMPAT_VERSION="v0.4.03" #### # Pattern #### bart repmat 0 384 Fig4b_ptrn Fig4b_pattern #### # ESPIRiT # The pics reconstruction needs the slices in dimens...
true
5d7f8aed1f5e278c24cc24fa404ea9553ade3c09
Shell
BahaVv/dotnet-regular-tests
/telemetry-is-off-by-default/test.sh
UTF-8
900
3.390625
3
[ "MIT" ]
permissive
#!/bin/bash # This test ensures telemetry is not being sent for (some) commands by # checking that no network connections are being made when not # expected. Relies on strace and IF_NET to detect network connections. # # A more robust version would be to use tcpdump to check for network # connections on each command, ...
true
73aff2ad26ac28a3da7860f9026caa66d200cc2f
Shell
stevecheckoway/rf2500
/install.sh
UTF-8
954
3.84375
4
[ "Unlicense" ]
permissive
#!/bin/sh if [ $UID -ne 0 ]; then echo "$0: You need to be root." >&2 echo "Try: sudo $0" >&2 exit 1 fi if [ -e /System/Library/Extensions/rf2500.kext ]; then echo '/System/Library/Extension/rf2500.kext already exists.' >&2 echo 'You must uninstall it before installing a new version.' >&2 exit 1 fi dir=`dirnam...
true
c976ea2f53bea048017aa21827bafae7f7862ad7
Shell
Raijuu/bashtlescript
/shared/intro-outro-marquee.sh
UTF-8
5,360
3.28125
3
[]
no_license
#!/bin/bash # Functions in this file each print a marquee border to the buffer # # Calling these funcions and refreshing the screen in order will # result in the animation print_frame_stage1() { # top rule tput cup ${top_padding_height} ${left_padding_width} >> ${buffer} printf "* * * * * * * *...
true
bce238b8b7618126fd0a252ceddb962d75db9bee
Shell
WASdev/websphere-liberty-operator
/scripts/installers/install-opm.sh
UTF-8
796
3.921875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash set -o errexit set -o nounset main() { if [[ -x "$(command -v opm)" ]]; then opm version exit 0 fi readonly DEFAULT_RELEASE_VERSION=latest-4.12 readonly RELEASE_VERSION=${1:-$DEFAULT_RELEASE_VERSION} readonly base_url="https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/${R...
true
11f0adc909fd688638a817f8f3c36ff978d26154
Shell
openxpki/openxpki
/tools/testenv/oxi-help
UTF-8
1,536
3.703125
4
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-generic-cla" ]
permissive
#!/bin/bash # <info> Show this help screen cat <<'__HEADER' .-==[ Happy coding ]==-- | | Welcome to the OpenXPKI development VM! | | OpenXPKI should now be running with a set of test certificates. | | The source code on your host is directly available in this VM via mount point | /code-repo. You can either edit your f...
true
e7b2bdbf8e7a5474ead33ec40db4aea6bc514699
Shell
KazAoyama/KaigoSystem
/E-LIFE/SHOKUJI/CGI/SHOKUJI_JISSEKI_GEKKAN_NEW.SEARCH
UTF-8
6,692
3.28125
3
[]
no_license
#!/bin/bash # # SHOKUJI_JISSEKI_GEKKAN.SEARCH # 食事実績検索 # # Written by E.Okuda : 2013/11/25 #-------------------------------------------------------------- # ログ exec 2> /home/hands/E-LIFE/SHOKUJI/APLOG/LOG.$(basename ${0}).${HOSTNAME}.$(date "+%Y%m%d"); set -xv # 設定ファイル読込 source /home/hands/E-LIFE/SHOKUJI/CGI/SHOKUJI...
true
acabbc00c13593e20f9e9158e829bc10670e21cf
Shell
algernhon/raspiot-launcher
/update.sh
UTF-8
985
3.03125
3
[]
no_license
#!/bin/bash echo " _____ _____ ____ _______" echo " | __ \ |_ _/ __ \__ __|" echo " | |__) |__ _ ___ _ __ | || | | | | |" echo " | _ // _\` / __| '_ \ | || | | | | |" echo " | | \ \ (_| \__ \ |_) || || |__| | | |" echo " |_| \_\__,_|___/ .__/_____\____/ |_|" echo " ...
true
729963afe433ba83e84007923cfb693a541eba48
Shell
andygaojw/COMP-COURSE
/18term2/COMP9041/lab02/tag_try.sh
UTF-8
168
2.765625
3
[]
no_license
#!/bin/sh #for fold in "$@" #do # for file in "$fold"/*.mp3 # do # if test -e "$file" # then # echo "$file" # fi #done #done
true
da9f2714f13d19673b40b21176cda6ee2410de47
Shell
veerusiri/Devops
/days.sh
UTF-8
228
3.296875
3
[]
no_license
i#!/bin/bash echo "Enter the days" read -r d a=365 b=7 y=`expr "$d / $a" | bc` w=`expr $d / $b` e=`expr $d % 7` f=0 echo "year:$y" if [ $e -eq $f ] then echo "The no.of Weeks:$w" else echo "The no.of Weeks:$w and $e days" fi
true
6a0226e3688291c9ace2ab1d333c982974a26a1d
Shell
HaiSoftSARL/php-malware-checker
/phpmalware
UTF-8
2,778
3.625
4
[]
no_license
#!/bin/bash # Name: PHPMalware # Version: 2017-10-20 # Description: Check for malwares within PHP code based on POST requests and PHP files content. # Developer: Robin Labadie # Websites: haisoft.fr | lrob.fr | terageek.org ## Directories siteslocation="/var/www/vhosts" # Log location siteslogdirs="/var/www/vhosts/sys...
true
54987269fbdcf8c93b1ad3f6868f9cf3e4a6a637
Shell
jg8481/Tool-Strategies-Lone-Testers-Test-Leadership-Congress-2019
/Workshop-Examples/Tests/Workshop-Part-Two/Resources/owasp-zap-status-checker.sh
UTF-8
543
3.046875
3
[]
no_license
#! /bin/bash OWASP_ZAP_URL="http://$1:$2/" OWASP_ZAP_URL+="JSON/pscan/view/recordsToScan/?" OWASP_ZAP_URL+="zapapiformat=JSON&" OWASP_ZAP_URL+="formMethod=GET&" echo "OWASP URL check -> $OWASP_ZAP_URL" CHECK_PASSIVE_SCANNER=0 until [ $CHECK_PASSIVE_SCANNER -eq 0 ]; do sleep 10 OWASP_SCANNER_STATUS=$(curl -s $O...
true
ea6060f3f9e9196f44026e11d2789ab17da70b32
Shell
osmocom/osmo-e1-recorder
/contrib/jenkins.sh
UTF-8
1,649
3.359375
3
[]
no_license
#!/usr/bin/env bash # jenkins build helper script for openbsc. This is how we build on jenkins.osmocom.org # # environment variables: # * WITH_MANUALS: build manual PDFs if set to "1" # * PUBLISH: upload manuals after building if set to "1" (ignored without WITH_MANUALS = "1") # if ! [ -x "$(command -v osmo-build-dep...
true
494521c7df250958f48cdb0bb6bda4642bd94a60
Shell
osu-uwrt/jaws
/orca/pwm-enable
UTF-8
634
3.234375
3
[ "BSD-2-Clause" ]
permissive
#!/bin/bash # Call this once without any arguments to enable PWM in general. # Call this again with an argument to enable a specific PWM pin. # Arguments: 9_22, 9_22, 9_21, 9_14, 9_16, 8_19, 8_13, 9_42. if (( $# != 1 )) # No arguments. then # This is the first step in enabling any PWM pin. echo am33xx_pwm > /sys/...
true
77c14da63b0aa59d9ca2dac274141729db1a825b
Shell
bondhugula/pluto
/polycc.sh.in
UTF-8
2,699
3.6875
4
[ "MIT" ]
permissive
#!/bin/bash # # Top-level script that runs all components of the end-to-end # system # # Just run 'polycc <C code>' when the program section to # be parallelized/optimized around special comments as described # in the `README' # # Copyright (C) 2007-2008 Uday Bondhugula # # This file is available under the MIT license....
true
9b082660e9ba0e7e94c8b9eaa3ff5d4757619ea9
Shell
LoganBarnett/dotfiles
/bin/rtf2
UTF-8
182
2.78125
3
[]
no_license
#! /usr/bin/env bash if [[ "$1" == "" ]]; then echo "Needs argument Usage: rtf2.sh <format> " >&2 exit 1 fi textutil -stdin -convert html -stdout | pandoc --from=html --to=$1
true
631f087b737d4d3caa6f8470c2a6eb446ac76ed4
Shell
Manasi2804/Shell-Scripting
/Case selection/DigitToWord.sh
UTF-8
359
3.453125
3
[]
no_license
#!/bin/bash -x read -p "Enter a number:" Number case $Number in 0) printf "Zero" ;; 1) printf "One" ;; 2) printf "Two" ;; 3) printf "Three" ;; 4) printf "Four" ;; 5) printf "Five" ;; 6) printf "Six" ;; 7) printf "Seven" ;; 8) printf "Eight" ;; 9) printf "Nine" ;; 10) ...
true
96bf3e79f4a3483bf747fe52e1173dfddf2b41ec
Shell
darsanadinesh123/darsanagit
/reverse.sh
UTF-8
246
3.203125
3
[]
no_license
echo "enter a srting" read str len=`echo $str | wc -c` len=`expr $len - 1` echo length of the string is $len reverse="" while [ $len -gt 0 ] do reverse1=`echo $str | cut -c$len` reverse=$reverse$reverse1 len=`expr $len - 1` done echo $reverse
true
24323cfd7c64039004fdc0797a2a21a77bf2fb64
Shell
stargate/stargate
/update_changelog.sh
UTF-8
1,123
3.703125
4
[ "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-public-domain" ]
permissive
#!/bin/bash set -euo pipefail which docker > /dev/null || (echoerr "Please ensure that docker is installed" && exit 1) cd -P -- "$(dirname -- "$0")" # switch to this dir CHANGELOG_FILE=CHANGELOG.md previous_version=$(head -5 $CHANGELOG_FILE | grep "##" | awk -F']' '{print $1}' | cut -c 5-) if [[ -z ${GITHUB_TOKEN-}...
true
01d10f994d92d8e3ea0da8f0caf22fc73f81febd
Shell
yosriksonti/w15cr1p7
/WiScript
UTF-8
2,839
3.1875
3
[ "MIT" ]
permissive
#!/bin/bash source option-l.sh source option-lsort.sh source option-d.sh source option-c.sh source option-h.sh RED='\033[0;31m' NC='\033[0m' # No Color YELLOW='\033[1;33m' BLUE='\033[1;34m' echo -e "${BLUE}" echo " █ █░ ██▓ ██████ ▄████▄ ██▀███ ██▓ ██▓███ ▄▄▄█████▓ ▓█░ █ ░█░▓██▒▒██ ▒ ▒██▀ ▀█ ▓██ ▒ ██...
true
9861270870c466fcc3ab67d8b2613f242811e1ef
Shell
DougEdey/SB_Elsinore_Server
/extras/elsinore.debian
UTF-8
2,015
3.6875
4
[ "MIT" ]
permissive
#!/bin/sh ### BEGIN INIT INFO # Provides: elsinore # Required-Start: $remote_fs $syslog $network $named # Required-Stop: $remote_fs $syslog $network $named # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: StrangeBrew Elsinore Brewery Controller # Description: Start and...
true
30753828521b766fcc9ea713bfda04675f042b4e
Shell
dt-alliances-workshops/azure-modernization-eztravel-setup
/app-scripts/install-ez-travel-monolith.sh
UTF-8
6,824
3.59375
4
[]
no_license
#!/bin/bash ## Commands for Ubuntu Server 18.04 LTS ## These script will install the following components: # - Chromium for the Load generation of the EasyTravel Angular Shop # - Java default-jre # - EasyTravel, Legacy 8080,8079 / Angular 9080 and 80 / WebLauncher 8094 / EasyTravel REST 8091 1697 # - nginx proxy Docke...
true
8958dda61ac672c91a34383c6faf80ea9ffad5bc
Shell
ES-DOC/cmip6
/sh/ensembles/generate_subsets.sh
UTF-8
660
3.625
4
[]
no_license
#!/usr/bin/env bash # Main entry point. function _main() { local ARCHIVE_DIR local INSTITUTION local OUTPUT_DIR on_cmd_begin "ensembles-generate-subsets" if [ "$1" ]; then INSTITUTION="$1" else INSTITUTION="all" fi ARCHIVE_DIR="$CMIP6_HOME"/repos/archives/esdoc-cdf2cim-archive/data OUTPUT_DIR="$CMIP6...
true
d6e77a6a0ed47560024efb07cf85fc45e9cbd9be
Shell
jimpick/filecoin-wiki-test
/wiki-large-blocks/check-count.sh
UTF-8
840
3.125
3
[ "MIT" ]
permissive
#! /bin/bash lotus client list-deals -v > tmp/list-deals.txt for x in *.zip.??; do cat $x*.deal > ~/tmp/deals.txt COUNT=$(cat tmp/list-deals.txt | grep -f ~/tmp/deals.txt | wc -l) ACTIVE_COUNT=$(cat tmp/list-deals.txt | grep -f ~/tmp/deals.txt | grep Active | wc -l) SEALING_COUNT=$(cat tmp/list-deals.txt | grep -f...
true
06e11826d81208b92697351cbca568451cfed5f7
Shell
zigstum/7n2l
/scripts/helpers/sayplayer.sh
UTF-8
197
2.53125
3
[]
no_license
#!/bin/bash . /usr/local/lib/7dtd/common.sh INST="dev" STID=$1 MSG="$2"; echo "$MSG" >> /home/sdtd/instances/dev/hooks/scripts/msg.txt RET=$(telnetCommand $INST "sayplayer $STID \"$MSG\"") exit 0;
true
a80035722e952ce14cf8ba645aaa9c0971cf39a5
Shell
JoonsooKim/benchmarks
/lib/target-system.sh
UTF-8
1,383
4.0625
4
[]
no_license
#!/bin/bash setup_target() { TARGET_LAUNCH="cd ~/qemu-img; bash boot.sh \"$1\" \"$2\" \"$3\"" TARGET_CONNECT="ssh localhost -p 7777" TARGET_SCP="scp -r -P 7777 localhost" } launch_target() { local i for i in `seq 1 10`; do QEMU_EXIST=`ps aux | grep qemu-system | grep ubuntu | wc -l` if [ "$QEMU_EXIST" == "1...
true
273ca3345c493d3417c3f2d25efdc716e68d24c7
Shell
reddeppas/utilities
/shellscripts/tabcheck.sh
UTF-8
687
4.28125
4
[]
no_license
#!/bin/bash # Create a safe temporary file to write to FILE=$(mktemp /tmp/tab_check.XXXXXXXXXX) || exit 2 # Check for tabs in the repo and output the filenames to the temp file if [ -e "/etc/lsb-release" ]; then # Linux grep options grep -IrlP "\t" . | grep -Ev "(^...git|kitchen|./ubuntu-bionic)" > "${FILE}" else...
true
61f69b7afbd46ac5ad0c530a959b08d9f443b8fd
Shell
ronnix/dotfiles
/install.sh.d/rescuetime.sh
UTF-8
234
2.671875
3
[]
no_license
if [ "$(uname -s)" == "Linux" ]; then curl --remote-name https://www.rescuetime.com/installers/rescuetime_current_amd64.deb sudo gdebi --non-interactive ./rescuetime_current_amd64.deb rm -f rescuetime_current_amd64.deb fi
true
b2c7cd5b339b47dba5aae72ebe42474fbf40d360
Shell
stjordanis/freebsd-ec2-build
/domarketize.sh
UTF-8
307
2.84375
3
[]
no_license
#!/bin/sh SRC=$1 DEST=$2 # Copy filesystem dd if=/dev/${SRC} of=/dev/${DEST} conv=sparse bs=1M # Mount filesystem and install Marketplace customizations mkdir -p /mnt/image mount /dev/xbd7a /mnt/image tar -cf- -C /home/ec2-user/ec2-bits/etc.marketplace . | tar -xpof- -C /mnt/image/etc umount /dev/xbd7a
true
e3fc20dcdb2a732d57befdaf6c791a67c4816ae8
Shell
djluo/docker-danted
/bin/add-user
UTF-8
454
3.65625
4
[]
no_license
#!/bin/bash # from: https://github.com/helderco/docker-vsftpd/ umask 0077 set -e database=/etc/danted/virtual-users.db if [ "$1" = "-d" ]; then [ -f $database ] && rm $database shift fi username="${1}" password="${2}" if [ "$#" -ne 2 ]; then echo "usage: $0 [-d] <user> <password>" echo echo "The...
true
840dbe995ead8d8e2b60fab8d198285a35411e6c
Shell
aweeraman/udacity-ai-planning_and_search
/run_all_tests.sh
UTF-8
272
3.28125
3
[]
no_license
#!/bin/bash function timeout() { perl -e 'alarm shift; exec @ARGV' "$@"; } for problem in `seq 1 3`; do for strategy in `seq 1 10`; do echo "Problem: $problem, Strategy: $strategy" timeout 600 python run_search.py -p $problem -s $strategy done done
true
bdf07945d711b6c26cdfb3f5a8a3e6b99c78a984
Shell
versae/neobench
/bin/neobench
UTF-8
1,412
4.125
4
[]
no_license
#!/usr/bin/env bash if [ "$#" -eq "0" ] then echo "Usage: $0 <version> <test> [<test>...]" exit fi BIN=`dirname $0` NEOBENCH=$BIN/.. NEOVER=$1 shift TESTS=$@ NEOZIP=`ls $NEOBENCH/repo/neo4j-community-$NEOVER*-unix.tar.gz` function run { # pick up function params TESTFILE=$1 COUNT=$2 SIZE=$3 ...
true
ec58bdf58f5beb9b1cbf89085c03148681f00d70
Shell
redux-model/redux-model
/scripts/vue.sh
UTF-8
312
2.828125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash set -e # vue redefine JSX which incompatible with react JSX file=packages/vue/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts # Don't use alias due to unbuntu (CI) can't recognize. if [ $(uname) == 'Darwin' ] then sed -i '' 's/JSX/_VUE_/' $file else sed -i 's/JSX/_VUE_/' $file fi
true
d3076c464a42acb7e53bbbaaf59f114c9dda07fc
Shell
PluribusNetworks/pluribus_linux_userland
/components/inline-helloworld/helloworld/configure
UTF-8
272
2.953125
3
[]
no_license
#!/bin/sh echo " all: gcc -o helloworld helloworld.c install: mkdir -p \$(DESTDIR)/usr/bin cp helloworld \$(DESTDIR)/usr/bin chmod a+x \$(DESTDIR)/usr/bin/helloworld clean: rm -f helloworld " > Makefile srcdir=`dirname $0` ln -s ${srcdir}/helloworld.c echo "DONE"
true
4e581063238d1878bdfa280bddccfca716ec85ae
Shell
operepo/ope
/docker_build_files/ope-clamav/dl_virus_defs.sh
UTF-8
1,051
3.453125
3
[ "MIT" ]
permissive
#!/bin/sh # Download the ClamAV files so that this can be a private mirror server # These should show up in the volume and be easily synced to the offline network # See if we are online MINSIZE="50000" echo "Pulling clamav virus patterns..." FNAME="bytecode.cvd" TMP=`wget -S --spider http://database.clamav.net/$FN...
true
6f876ab78d2f1d29059311c87165b9b487ec9de4
Shell
estebandelaf/network-mapping
/map_bgp_dump/as_get_info.sh
UTF-8
4,171
3.8125
4
[]
no_license
#!/bin/sh # # Script para generar archivo CSV con datos de los AS # Copyright (C) 2014 Esteban De La Fuente Rubio, DeLaF (esteban[at]delaf.cl) # # si no se pasó un parámetro -> error if [ $# -eq 0 ]; then echo "[error] modo de uso: $0 ARCHIVO_AS [ARCHIVO_CSV]" exit 1 fi # definir sistemas autónomos que se co...
true
b133d77fad6016096922fc6d3deb50c456eae422
Shell
39digits/dotfiles
/zsh/zprofile
UTF-8
1,287
3.234375
3
[ "MIT" ]
permissive
# # Used for executing user's commands at start, will be sourced when starting as a login shell (pre-zshrc). # ########################### ## Paths ## # If this is an M1 Mac then the Homebrew path is a little different # if [[ $OSTYPE == "darwin" ]] then # if [[ "$(uname -m)" == "arm64" ]]; then # export PATH="...
true
68292e964603b9beec0d2ed921ebe1dd216e7f18
Shell
badrequest400/timer
/scripts/symlink.sh
UTF-8
168
3.28125
3
[]
no_license
#!/bin/bash directory=$1 for d in `find ${directory} -type d -depth 1` do echo " >>>> node_modules/$(basename $d)" ln -sf "$d" "node_modules/$(basename $d)" done
true
bc5c4e8c613f4b10259ea95262a1bd0ba69fe7f8
Shell
samuelkgutierrez/mpimemu
/util/env-setup-local-bash
UTF-8
1,071
3.140625
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash # # Copyright (c) 2012-2019 Triad National Security, LLC # All rights reserved. # # This file is part of the mpimemu project. See the LICENSE file at the # top-level directory of this distribution. # # for one machine tests (primarily for development testing). if [ -z "$PS1" ]; th...
true
6bd8f55c5f9c7c95609ca124efa1b35baab1ea24
Shell
terlar/pkgbuilds
/terminal/warp-git/PKGBUILD
UTF-8
863
2.96875
3
[ "MIT" ]
permissive
# Maintainer: Terje Larsen <terlar@gmail.com> pkgname=warp-git pkgver=r160.728259c pkgrel=1 pkgdesc="Secure and simple terminal sharing" arch=('any') url="https://github.com/spolu/warp" license=('MIT') makedepends=('git' 'go') _gourl=github.com/spolu/warp _gourl2=github.com/spolu/warp/client/cmd/warp pkgver() { GOPA...
true
b9e57e59c638fc16fce7f7ca22878bc91f51d465
Shell
deapplegate/wtgpipeline
/make_residuals.sh
UTF-8
2,003
3.34375
3
[ "MIT" ]
permissive
#!/bin/bash set -xv #adam-note# from $1/$2/${2}_${i}_illum$3.fits make $1/$2_norm/$2_norm_${i}_illum$3.fits and $1/$2_norm/$2_res${3}_${i}.fits #adam-BL# . BonnLogger.sh #adam-BL# . log_start # CVSId: $Id: make_residuals.sh,v 1.3 2008-07-19 00:06:19 dapple Exp $ # $1 : maindir # $2 : sciendir # $3 : smoothing radius ...
true
8a6677e5f500717495e895184ede7f8b185b8fa3
Shell
apache/impala
/testdata/bin/create-tpcds-testcase-files.sh
UTF-8
1,709
3.28125
3
[ "Apache-2.0", "OpenSSL", "bzip2-1.0.6", "LicenseRef-scancode-openssl", "LicenseRef-scancode-ssleay-windows", "LicenseRef-scancode-google-patent-license-webrtc", "PSF-2.0", "BSD-3-Clause", "dtoa", "MIT", "LicenseRef-scancode-mit-modification-obligations", "Minpack", "BSL-1.0", "LicenseRef-s...
permissive
#!/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 # "License");...
true
6ec6b63249ee5375f37d68def45a8d4bf7887c60
Shell
lucferbux/flask_template
/bootstrap.sh
UTF-8
553
2.984375
3
[]
no_license
#!/bin/bash if [ ! -d "env" ]; then read -p "Virtual Environment not created, do you want to create it (y/n)?: " follow if [ "$follow" == "y" ] then pip3 install virtualenv virtualenv -p python3 env source env/bin/activate echo "Installing python libraries..." pip3 ins...
true
fe19d9fdf7d77b195062509194603d708eed0125
Shell
firebase/FirebaseUI-Android
/scripts/translations/clean_up_translations.sh
UTF-8
738
3.65625
4
[ "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
#!/usr/bin/env bash # This script should be run after a new round of translations # Directory where this script lives DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # Find all non-default strings files function find_files { find . -path "*/src/main/res/values-*" -type f -name "string*.xml" } # Move loca...
true
8508ccbcb631351eb8c538c44534ff0d708718ff
Shell
crazy886/netspeeder
/netspeeder.sh
UTF-8
2,891
3.71875
4
[]
no_license
#!/bin/sh # Set Linux PATH Environment Variables PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH rm -rf /usr/local/netspeeder echo -e "\033[34m================================================================\033[0m 欢迎使用 net-speeder 一键脚本 系统要求: CentOS 5...
true
d682d4d78474910ee79b3118ba48a9de7fad2d14
Shell
diamondbigdata/Docker14.04
/hdfs/ubuntu-confd-hdfs/stophdp.sh
UTF-8
628
3.4375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash HDPRole=${HDPRole:-"dnode"} HADOOP_PREFIX=${HADOOP_PREFIX:-"/opt/hadoop"} HADOOP_HDFS_NAMENODE=${HADOOP_HDFS_NAMENODE:-"/data/hdfs/namenode"} # Read the HDPRole env, and based upon one of the five: format or bootstrap or start the particular service # NN and ZKFC stick together case $HDPRole in pnnode) ...
true
f369b2e986d16084f186c066d215f69732f5307f
Shell
cotrat/UBUNTU-FILES
/Documents/systems-exam/pipe_me
UTF-8
692
3.578125
4
[]
no_license
#!/bin/bash count=0 counter=1 filename="pipe_test.txt" filename2="pipe_test2.txt" echo $# if [ $# -lt 2 ]; then echo " Incorrect usage, please enter TWO PARAMETERS" else for x in "$@";do if [ $count == 0 ]; then echo "put into file" eval "$x" > "$filename" count=1 elif [ $counter == $# ]; then echo "...
true
7c4152b7452c9e616e9869e1d3b17f4ade9769c9
Shell
taiebchaabini/holbertonschool_scripts
/perlfix.sh
UTF-8
284
3.125
3
[]
no_license
#!/bin/bash RED='\033[0;31m' NC='\033[0m' if [ "$(id -u)" != "0" ]; then echo -e "${RED}[ERROR]: Please, execute the script with sudo.${NC}" exit 1 fi export LANGUAGE=en_US.UTF-8 export LANG=en_US.UTF-8 export LC_ALL=en_US.UTF-8 locale-gen en_US.UTF-8 sudo dpkg-reconfigure locales
true
a88ff6f2ecfb39156cf251671495f3f5a70729f4
Shell
igonzalezespi/paralela
/kmeans12/lanzaImida.sh
UTF-8
509
3.015625
3
[]
no_license
#!/bin/bash make clean >/dev/null make >/dev/null # data=(`ls ./DatosIMIDA|sort -n`) data=($(ls ./DatosIMIDA/2variables.txt | sort -n)) iter=(1000) clusters=(2 3 4 8 16 32 64 128 256) threads=(0 1 32) echo Running the classificaction for $input dataset for i in ${iter[@]}; do for c in ${clusters[@]}; do echo ...
true
be2e04b3ad591208177ada13aa0fdfa606513235
Shell
ezajko/kerberos-ansible
/kerberos-files/usr/libexec/killjob-ilab.sh~
UTF-8
855
3.484375
3
[]
no_license
#!/bin/bash # jobs runniing longer than a day # column 7 will look like 13-18:54:10 with days as first. So if we # just look for - we'll get everything longer than 1 day LONGJOBS=`ps -ef | awk '$7 ~ /-/{print $2}'` for i in $LONGJOBS do # by default cpu limit is unlimited. If user has set a soft # limit, then don...
true
4f68c0a2d349bda51655ff5fed10a4aa683236ee
Shell
gearboxworks/gearbox
/appdistsrc/github.com/acplt/rte/tools/travis_pushAndCloseRepo.sh
UTF-8
952
3.125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash cd rte-www echo "Copying logs" cp ../rte/logs/* ./logs/. git pull if [[ ${OV_ARCH_BITWIDTH} == "32" && ${CC} == "gcc" ]]; then echo "Cleaning up log dir (leave the 50 newest)" mkdir ./logs/tmpSafe mv -v `find ./logs/ -maxdepth 1 -name 'acplt_build*.log' -type f -printf '%p\n' | sort -n | tail -50 |...
true
0a14b48df54310e2a13c0ca9127ad822c9a3ba01
Shell
markdumay/dbm
/spec/lib_utils_spec.sh
UTF-8
1,599
3.234375
3
[ "MIT", "CC-BY-NC-4.0" ]
permissive
#!/bin/sh #======================================================================================================================= # Copyright © 2021 Mark Dumay. All rights reserved. # Use of this source code is governed by The MIT License (MIT) that can be found in the LICENSE file. #=================================...
true
c036e92d1b1fef9d35f25f413db95a89e8d13529
Shell
sherrillmix/IFNDynamics
/figureCat/resizeTab.bash
UTF-8
716
2.671875
3
[]
no_license
targetWidth=8.5 #scale=`Rscript -e "message(round($targetWidth/$width,5))" pdfcrop $1 tmp.pdf width=$(bash pdfScale.sh -i tmp.pdf|grep Inch|sed 's/[^0-9]\+\([0-9.]\+\) x.*/\1/') height=$(bash pdfScale.sh -i tmp.pdf|grep Inch|sed 's/[^0-9]\+\([0-9.]\+\) x \([0-9.]\+\)/\2/') scale=`echo "scale=5;$targetWidth/$width"|bc -...
true
8bbf298fd6e618ee9aee67594421cf3f2a1ad1c8
Shell
andrew-ongh/fresh_SDK
/utilities/scripts/qspi/erase_qspi_serial.sh
UTF-8
4,614
4.09375
4
[]
no_license
#!/bin/bash base_dir="`dirname "$0"`" sdkroot=${SDKROOT:=$(pushd "$base_dir/../../.." >/dev/null; pwd; popd >/dev/null)} CONFIG_FILE="$base_dir/program_qspi.ini" CONFIG_SCRIPT="$base_dir/program_qspi_config.sh" CLI_PROGRAMMER="$sdkroot/binaries/cli_programmer" IMAGE=$1 BAUD=57600 TX_PORT= TX_PIN= RX_PORT= RX_PIN= fin...
true
b88e01ec0e42e0842419973717f723f8ea092257
Shell
mawww/config
/scripts/bandcamp-unpack
UTF-8
206
3.640625
4
[]
no_license
#!/bin/sh if [ $# -eq 0 ]; then echo "usage $0 <bandcamp zip files>..." exit 0; fi while [ $# -ne 0 ]; do name=$(basename "$1" .zip) mkdir "$name" unzip -d "$name" "$1" shift done
true
16114d720ea8e514338c12ac3cd301865be12650
Shell
liangzhw6/Culturome
/script/stat_split.sh
UTF-8
8,037
3.140625
3
[]
no_license
#!/bin/bash set -e ### Default parameter design=`pwd`/input/L1.txt execute='TRUE' ist='FALSE' # install package, default FALSE output='result/solit' # default work directory, remove low abundance < .1% and p__Cyanobacteria,p__Chloroflexi width=40 height=5 text_size=1 library=L1 g1=plate # Function for script descript...
true
1924c2cab1376a4daf44d07a6b1df2c6ed2963d2
Shell
kylebarron/titiler
/scripts/publish
UTF-8
381
2.921875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
#! /usr/bin/env bash SUBPACKAGE_DIRS=( "core" "mosaic" "application" ) for PACKAGE_DIR in "${SUBPACKAGE_DIRS[@]}" do echo "publishing titiler-${PACKAGE_DIR}" pushd ./src/titiler/${PACKAGE_DIR} rm -rf dist python setup.py sdist twine upload dist/* popd done # Publish Titiler meta p...
true
44c8a78a4255fec84c622e5f54835dcd8febcd2b
Shell
NicolasBrinkhus/Arch
/.config/aliasrc
UTF-8
1,048
3.5
4
[]
no_license
#!/bin/bash command -v nvim >/dev/null && alias vim="nvim" vimdiff="nvim -d" # Use neovim for vim if present. export FZF_COMPLETION_TRIGGER='~~' vf() { local out file key IFS=$'\n' out=("$( find $HOME/.local/* $HOME/.config/* -type f | fzf --query="$1" --exit-0 --expect=ctrl-b,ctrl-e)") key=$(head -1 <<< "$out...
true
103bf4dfe19d80c8a264f85788a34f031abaeeb1
Shell
jwulf/deathstar-appliance-updates
/initscripts/deathstar
UTF-8
3,768
3.984375
4
[]
no_license
#!/bin/sh # # deathstar Boot # # chkconfig: 2345 90 60 # description: Death Star appliance boot strap \ ### BEGIN INIT INFO # Provides: deathstar # Required-Start: $local_fs $syslog # Required-Stop: $local_fs $syslog # Default-Start: 2345 # Default-Stop: 90 # Short-Description: sets up a few things and start...
true
8dd7dbdda96e0f3147f26f9ff9635145cd20be86
Shell
remotephone/certbot-lambda
/certbot_build_aws/build.txt
UTF-8
616
2.515625
3
[]
no_license
#!/bin/bash yum install -y zip wget tar make gcc zlib zlib-devel openssl openssl-devel wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz tar -xzvf Python-3.6.1.tgz cd Python-3.6.1 && ./configure && make make install # Install & activate virtualenv cd /root /usr/local/bin/pip3 install virtualenv /usr/local/b...
true
340ecab5ae769213117313876e3bf68e84a29aaa
Shell
alokamvenki402/FirstRepo
/test.sh
UTF-8
102
2.8125
3
[]
no_license
#! /bin/bash if ls /home/satya/DevOps/test.txt ; then cat test.txt else echo "file doesn't exist" fi
true
1195ac417177738f563fc5dff83160acd5ee0c5d
Shell
noctuid/dotfiles
/scripts/bin/media/mpqueue
UTF-8
760
3.375
3
[]
no_license
#!/usr/bin/env bash # use fzf or completing-read to select a directory to run ./mpgo in # instead of running immediately, queue the media information to play later in a # random order with ./dropmpgo # selected=$(find ~/move/Screenshots -mindepth 1 -maxdepth 1 -type d | fzf) selected=$(find ~/move/Screenshots -mindept...
true
e52516624b70a8e96cb391a3962a721c61a0d316
Shell
cjungmann/schemafw
/install/install
UTF-8
1,237
3.03125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash TARGET=schemafw wi_xsli=$( which xsl-import ) if [ -n "${wi_xsli}" ]; then cd web_includes xsl-import -s sfw_debug.xsl > sfw_compiled.xsl cd .. else echo echo "Install xsl-import to compile the stylesheets into a single stylesheet." echo "cd /usr/local/lib" echo "sudo ...
true
cebc3a05343ad199db67426efeaa2c8bd4250e12
Shell
10779164/download
/ispconfig/ispconfig_basic_install/distros/centos7/install_basics.sh
UTF-8
976
3.28125
3
[]
no_license
#--------------------------------------------------------------------- # Function: InstallBasics # Install basic packages #--------------------------------------------------------------------- InstallBasics() { echo -n "Updating currently installed packages... " yum -y update &>/dev/null echo -e "${green}done...
true
3799467ca03a8697d17f6508e15121ac4b425c99
Shell
agontechne/configs-arch
/xinitrc
UTF-8
1,460
2.90625
3
[]
no_license
#!/bin/sh userresources=$HOME/.Xresources usermodmap=$HOME/.Xmodmap sysresources=/etc/X11/xinit/.Xresources sysmodmap=/etc/X11/xinit/.Xmodmap # merge in defaults and keymaps if [ -f $sysresources ]; then xrdb -merge $sysresources fi if [ -f $sysmodmap ]; then xmodmap $sysmodmap fi if [ -f "$userresources"...
true
dd0bdbccdb3a57cb4834290fcd7955491272e594
Shell
Odditude/PhD_Thesis
/Bash/Super_CD_hit.sh
UTF-8
978
3
3
[]
no_license
#!/bin/bash #~~~~~~~~~~~~~# # Run command # #~~~~~~~~~~~~~# # qx --no-scratch -c 8 -t 10:00:00 -A norfab 'Scripts/Rarely_Used/Super_CD_hit.sh' ################## # Directionaries # ################## DIR_IND=/faststorage/project/norfab/20190903_Transcriptomics/Fasta/ DIR_CD=/faststorage/project/norfab/20190903_Tran...
true
99c441aa3478a0fa02bde4a6c37b6f63dab5d0cc
Shell
orangefei/practice
/shell/mysqlbak.sh
UTF-8
1,487
3.796875
4
[]
no_license
#!/bin/bash #数据库IP dbserver='localhost' #数据库用户名 dbuser='root' #数据密码 dbpasswd='M0yeJi5n' #数据库,如有多个库用空格分开 dbname='adt_db' #备份时间 backtime=`date +%Y%m%d` #备份目录 datapath='/data/mysqlbak/' #备份输出日志路径 logpath='/data/mysqlbak/' echo "################## ${backtime} #############################" echo "开始备份" #日志记录头部 echo "" >...
true
5f9829e6cc427c95fb66817378fda1906775bd9c
Shell
FernandoBasso/programming-how-to
/hackerrank/shell/e10a-average.sh
UTF-8
474
3.859375
4
[]
no_license
#!/usr/bin/env bash # # = Compute The Average # ===================== # # https://www.hackerrank.com/challenges/bash-tutorials---compute-the-average # read -r n sum=0 echo $sum if [[ "$n" == 0 ]] then printf '%.3f\n' "$(echo 'scale=4; 0' | bc -l)" exit 0 fi for ((i = 0; i < n; ++i)) do read -r x sum=$((sum...
true
60daceef4e588553f36e51f7845a69030d6a2397
Shell
jamiew/yubnub
/deploy
UTF-8
399
2.765625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/sh # any extra arguments are passed to `git push`, e.g. -f app='yubnub-jamiew' remote='heroku' # Run test suite, abort if it fails # FIXME test suite not working, so skip this # bundle exec rake || exit $? # Push *master branch only* to Heroku git push $remote master $1 || exit $? # Always Be Migrating # Dis...
true
4ac1363999a9a051dc5e9ab14c6e5b9c022a40fb
Shell
UAlbertaALTLab/korp
/deploy
UTF-8
388
2.890625
3
[]
no_license
#!/bin/bash # This script is run by the deploy.altlab.dev webhook to update the deployed # app. set -eu DIR="$(dirname -- "${0}")" cd "${DIR}" # Some day we might want to automatically pull the git repo that contains this # deploy script, but for now changing the deploy process will require that # to be done manual...
true
2a588a173729ef9c586f1354e506fdac7c415e15
Shell
Nagalim/alp-collection
/unix/alp-bot-terminate-all.sh
UTF-8
1,480
3.34375
3
[ "MIT" ]
permissive
########################################################################################## # #!/bin/bash # version 0.20 - initial version # # version 0.45 - added nupond_bter_cny_fix_payout_test # # version 0.50 - prepared southxchange ("southx") bots # ##################################################################...
true
4f9889a25ff0d470df5f036afcc9243245a3e47b
Shell
Geek-zy/Shell
/Shell_._Plus/Shell_._Plus.sh
UTF-8
196
2.9375
3
[]
no_license
#!/bin/bash sum=0 while read Num do sum=`expr $sum + $Num` done < File.txt echo $sum res=$(printf "%.2f" `echo "scale=2; $sum / 1024" | bc`) echo "scale=2; $sum / 1024" | bc echo $res
true
cc185ecc0fbc69d04f83e35d845fc00f4880586a
Shell
dxc-labs/dxc-soteria-devops
/merge.sh
UTF-8
1,859
3.9375
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # # merge.sh - merges git master to production which triggers AWS CodePipeline # # Copyright 2020 DXC Technology # # 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 # # ht...
true
7aeee11fa7d75f305326762af1a1b84c16058b9a
Shell
relevance/boomstick
/ubuntu_64/bootstrap.sh
UTF-8
7,421
3.1875
3
[]
no_license
#!/usr/bin/env bash set -o xtrace set -o errexit set -o pipefail set -o nounset SERVER=${SERVER:-https://s3.amazonaws.com/boomstick} LEIN_URL=https://raw.github.com/technomancy/leiningen/stable/bin/lein LIGHTTABLE_ARCHIVE=LightTableLinux64.tar.gz LIGHTTABLE_URL=$SERVER/$LIGHTTABLE_ARCHIVE COUNTERCLOCKWISE_ARCHIVE...
true
408c314a00d11ad6a2136f3d5a4c4f944fcc634f
Shell
metasmile/git-subfile
/git-subfile
UTF-8
942
3.984375
4
[ "MIT" ]
permissive
#!/usr/bin/env sh usage() { echo "usage: git subfile <command> [params ...]" echo echo "commands:" echo "write [relative path of target in current repo] [absolute path for original repo]" echo "read [relative path of target in current repo] [absolute path for original repo]" echo echo "examples:" echo "git sub...
true
6d88da13ed8f2caeebed54b60cf6b1dd2aa09fc3
Shell
jordilin/acmescripts
/lrtests
UTF-8
300
3.21875
3
[ "BSD-2-Clause" ]
permissive
#!/bin/sh # (l) command (l)ists Rust unit tests # Usage: # lrtests $% (current window) # lrtests *.rs (all rust files in current directory) # will print out # <module_name>:<line_number>: <test_name> /usr/bin/awk '/\[test/{getline;var=FILENAME; n=split (var,a,/\//); print a[n]":"FNR":"$0}' "$@"
true
900d17eeb7f82489912e4472eaf5f810e43108f0
Shell
jfsicilia/dotfiles
/install/zsh.sh
UTF-8
528
4.1875
4
[ "MIT" ]
permissive
#!/bin/bash # # Config zsh as default shell # DOTFILES="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )" if ! type -t cecho > /dev/null; then source $DOTFILES/cecho.sh fi cecho "Init zsh.sh" $green SHELLS_FILE=/etc/shells # Check wether or not, zsh shell is available in /etc/shells. If not add it. if ! grep ...
true
e67576361555305243345d70447d28dec2768153
Shell
robbyt/vagrant-puppet-modules
/tools/setpassword.sh
UTF-8
255
3.453125
3
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
#!/bin/bash # display usage if [ $# -ne 1 ] then echo "usage: $0 username" exit 1 fi username=$1 #here you can use password generator, send password via email, etc. password="password" #echo $password echo $password | passwd --stdin $username
true
e12e42a86afb2fdffcb79c94c0bcccd562592b66
Shell
ryodocx/asdf-peco
/bin/install
UTF-8
1,048
3.640625
4
[ "MIT" ]
permissive
#!/usr/bin/env bash set -e . $(dirname $0)/util checkDependencies # check ASDK environment variables [ -n "$ASDF_INSTALL_VERSION" ] || (echo 'Missing ASDF_INSTALL_VERSION' >&2 && exit 1) [ -n "$ASDF_INSTALL_PATH" ] || (echo 'Missing ASDF_INSTALL_PATH' >&2 && exit 1) # install mkdir -p "${ASDF_INSTALL_PATH}/bin" tool...
true
6dd7844dccb1b7312895b39deb9d7be9aa7546ca
Shell
pu-bioinformatics/bash-scripting-Atemia
/Exersice/scripts/mfirstscript.sh
UTF-8
133
3.015625
3
[]
no_license
#!/bin/bash echo "my name is Joseph" name="Joseph" echo "My name is $name" user=$(whoami) echo "Who runs this computer? $user"
true
87d3083bfd71cd9e0d8abf4910dea4a248c1641a
Shell
supreet-s8/ATT
/install-monitor/install.sh
UTF-8
3,821
3.78125
4
[]
no_license
#!/bin/bash TOOL="att-monitoring-v12.tgz" BASEPATH='/tmp/install-monitor' SRCFILE="${BASEPATH}/${TOOL}" INSTALLPATH="/data/scripts" DEST='/tmp' SSH='/usr/bin/ssh -q -o ConnectTimeout=5 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -l root ' ENVF="$INSTALLPATH/monitor/etc/env.cfg" SOURCE='' function id...
true
db65073e6394aeb79185306704a1f72b74f2e3d8
Shell
David3232/Sistemas
/6a/script1.sh
UTF-8
301
3.28125
3
[]
no_license
read -p "Introduce el primer valor " valor1 read -p "Introduce el segundo valor " valor2 if [ $valor1 -gt $valor2 ] ; then echo "El valor $valor1 es mayor" else if [ $valor2 -gt $valor1 ] ; then echo "El valor $valor2 es mayor" else echo "Los dos valores son iguales" fi fi
true
bb44e5e0825ec0a93dd27ed5c31a369e290396e6
Shell
panticz/installit
/install.phpMyAdmin.sh
UTF-8
1,020
3.796875
4
[]
no_license
#!/bin/bash if [[ $(dpkg-query -W -f='${Version}' mysql-server) =~ 5.5 ]]; then # current version compatible with PHP 5.3 and MySQL 5.5 URL=https://files.phpmyadmin.net/phpMyAdmin/4.6.2/phpMyAdmin-4.6.2-all-languages.zip else # older version compatible with PHP 5.2 and MySQL 5 URL=http://switch.dl.sourceforge....
true
33894750b777a713dda6a7f22e69ee1d968ef8f8
Shell
nicholatian/cosmo-cstar
/util/build/do.sh
UTF-8
970
3.921875
4
[ "ISC" ]
permissive
#!/bin/sh #-*-mode:sh;indent-tabs-mode:nil;tab-width:2;coding:utf-8-*-┐ #───vi: set net ft=sh ts=2 sts=2 fenc=utf-8 :vi─────────────┘ # # OVERVIEW # # Generic Command Runner # # DESCRIPTION # # This does auto mkdir and ephemeral logging. # # EXAMPLE # # build/do PROG [ARGS...] MKDIR=${MKDIR:-$(command -v mkdir) ...
true
8b0f522851f0843d2067b51c35f7fb6001f3b997
Shell
moon0440/puppet-rhel7-stig
/rhel7stig/facts.d/login_accts.sh
UTF-8
279
2.90625
3
[]
no_license
#!/bin/bash for i in $(cat /etc/passwd | cut -d':' -f1,3,7 | grep -vE ":[0-9]{1,2}:" | grep -vE ":[1-4][0-9][0-9]:" | grep -v nologin | cut -d':' -f1) do if [ -z "${LIST}" ] then LIST="${i}" else LIST="${LIST},${i}" fi done echo "login_accounts=${LIST}"
true
86182305f9d1e76c7c1da15ebba628f402b98c95
Shell
tdrk18/dotfiles
/vim/setting.sh
UTF-8
1,555
3.4375
3
[]
no_license
#!/bin/sh # setting.shがあるパスを取得 DIR=`cd $(dirname $0); pwd` # ホームディレクトリに.vimrcがあった場合、.vimrc_oldとリネームして退避 if [ -e $HOME/.vimrc ]; then mv $HOME/.vimrc $HOME/.vimrc_old fi # ホームフォルダの.vimrcに対してシンボリックリンクを張る ln -s $DIR/vimrc $HOME/.vimrc # ホームディレクトリに.vimディレクトリを作成 if [ ! -e $HOME/.vim ]; then mkdir $HOME/.vim fi #...
true
164ef2f7f0f820b4bd2c1a8b53e7e3e7bbeeb40e
Shell
onatbuyukakkus/Homeworks
/Computer Graphics/Homework2/input/cameras/rolling_earth/generate.sh
UTF-8
361
3.1875
3
[]
no_license
#!/bin/bash for angle in {0..360} do if [ "$angle" -lt "10" ] then value="00$angle" elif [ "$angle" -lt "100" ] then value="0$angle" else value="$angle" fi cameraFile="1 #Camera 1 0 0 0 0 0 -1 0 1 0 -3 3 -2 2 10 2160 1440 rolling_earth_$value.ppm" printf "%s" "$cam...
true