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
0e28ccadcc0096ec1078a90f2b4e2063884e1c8b
Shell
cnyuanh/malaria_mitogenome
/765G/sam.sh
UTF-8
1,437
3.0625
3
[]
no_license
#!/bin/bash #SBATCH --time=00:01:00 #SBATCH --nodes=1 #SBATCH --ntasks=1 #SBATCH --job-name=sam #SBATCH --mem=10000 #SBATCH --output=sam.log #Description: Subset the assembly from the putative mitochondrial reads #Written by: Jorge Eduardo Amaya Romero #Last revision: 14-10-2016 module purge module load SAMtools/1.3...
true
df883b5c603a2009767ccca55ca02e741dbc9cc2
Shell
farbodsalimi/istio-util
/bin/helpers/os.sh
UTF-8
176
3.140625
3
[ "MIT" ]
permissive
#!/bin/bash function cmd_open() { case "$OSTYPE" in darwin*) open $1 ;; linux*) xdg-open $1 ;; msys*) rundll32 $1 ;; *) echo "unknown os: $OSTYPE" ;; esac } "$@"
true
e80d1ecc1c75d99cf2278c55fecd1467c357877b
Shell
paulwratt/ShellBASIC-bin
/BASIC/PEN
UTF-8
260
2.765625
3
[]
no_license
#!/bin/sh # PEN - created with 'mkbasic' . .SETUP if [ "$1" = "" ]; then echo "Error: PEN n" exit 1 fi if [ $1 -lt 1 ]; then echo "Error: PEN T_INTEGER" exit 2 fi FC=$1 echo $1 > "${BASIC_TEMP}.HCOLOR" export bas_FC=$FC tput setaf $FC unset FC exit 0
true
2c99be238c3b41a7a60155410e36e073404312eb
Shell
thisboyiscrazy/fontem
/make-all
UTF-8
1,201
3.59375
4
[ "MIT" ]
permissive
#!/bin/sh # # This file is distributed under the terms of the MIT License. # See the LICENSE file at the top of this tree, or if it is missing a copy can # be found at http://opensource.org/licenses/MIT # # Make everything dir=$(dirname $0) cd "${dir}" MAKE=make which gmake >/dev/null 2>&1 && MAKE=gmake export MAKE e...
true
5cc17754e0e3e9d2fd740df0c5d95b7e2d27cdf7
Shell
matthewcosgrove/cf-scripts
/pivnet/download-products.sh
UTF-8
6,604
3.6875
4
[]
no_license
#!/usr/bin/env bash set -e echo "About to download products.." jq -r "to_entries|map(\"\(.key)=\(.value|tostring)\")|.[]" products.json if [[ $BASH_VERSION != 4* ]] ; then echo "Error: Use of associative arrays requires Bash 4. Detected version $BASH_VERSION" echo "NB: Might be error prone when Bash 5 is released ;-...
true
af399ec744d6f2d5290f3bf88eec8f3e67872855
Shell
stormentt/bigtmp
/bigtmp.mount
UTF-8
756
3.765625
4
[]
no_license
#!/bin/bash source /etc/bigtmp.env if [ -z "${BIGTMP_PART}" ]; then echo "BIGTMP_PART not set" exit 1 fi if [ -z "${BIGTMP_USERS}" ]; then echo "BIGTMP_USERS not set" exit 1 fi if grep -qs "/bigtmp" /proc/mounts; then echo "bigtmp already mounted" exit 1 fi mkdir -p /bigtmp cryptsetup plai...
true
316283b776ccdb945b370b74d2e89a045fc9e7c9
Shell
leejo/battling_a_legacy_schema_with_dbic
/examples/db/rebuild.sh
UTF-8
211
2.828125
3
[]
no_license
#!/bin/bash set -e -x -u rm resorts.db for file in $(ls -1 updates) do echo $file # AUTO_INC in the file so we can use with mysqlworkbench sed 's/AUTO_INC/AUTOINC/g' updates/$file | sqlite3 resorts.db done
true
e33feaad225a4a4a3d0b89121a69070d1e6bce74
Shell
fishuyo/kodama
/init.sh
UTF-8
805
2.890625
3
[]
no_license
#!/bin/bash git submodule update --init if [ -e "`dirname $0`/sbt-launch.jar" ] then echo "" else echo "Downloading sbt-launch.jar..." wget "http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch//0.12.3/sbt-launch.jar" > /dev/null 2>&1 if [ $? != 0 ] then curl -O "http://repo.typesafe....
true
3c30a2a4a52da3377d24da18138fa9c482ab2f4b
Shell
zombiecalypse/config-files
/bin/mkproj
UTF-8
145
2.953125
3
[ "Apache-2.0" ]
permissive
#!/bin/sh DIR=~/Projects/$1 set -e mkdir $DIR cd $DIR git init touch README.md vim README.md git add README.md git commit -m 'Initial commit'
true
2d28e5a3cd6a65d65293200b06322c40623afac4
Shell
psivesely/project-euler
/scripts/stats.sh
UTF-8
777
3.859375
4
[ "WTFPL" ]
permissive
#!/bin/bash # Prints out solutions per language, and which solutions have been solved in # which language. echo "Solutions Per Language" echo "======================" for dir in *; do if [[ $dir = 'data' || $dir = 'scripts' ]]; then continue; fi if [ ! -d $dir ]; then continue; fi cd $dir make clean > /dev/nu...
true
e54b7d4efac0df3e0e894d873dcba0383f0dbd80
Shell
mikey-/dotfiles
/.export.d/diary.sh
UTF-8
154
2.515625
3
[]
no_license
#!/usr/bin/env bash # shellcheck disable=SC2155 export DIARY_BASE_DIR="${HOME}/diary.d"; export DIARY_CURRENT_DIR="${DIARY_BASE_DIR}/$(date +%Y/%m/%d)";
true
139481b74ed07700583e81e91744d31dd8416159
Shell
inutano/chip-atlas
/script/chip-atlas
UTF-8
704
3.3125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash ### BEGIN INIT INFO # Provides: chip-atlas # Required-Start: $local_fs $network $named $time $syslog # Required-Stop: $local_fs $network $named $time $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Description: Start ChIP-Atlas web application ### END INIT INFO ARG=$...
true
d2ccded0aa416f2a8f38894689e8a5a01e540a71
Shell
nghiat/myconfig
/unix/.bashrc
UTF-8
821
2.765625
3
[]
no_license
export PATH="/bin:/usr/bin:$PATH"; export EDITOR="vim" export PS1="\[\e[1;4;7m\]\u:\w$ \[\e[0m\]" # Avoid duplicates export HISTCONTROL=ignoredups:erasedups export HISTSIZE=100000 export HISTFILESIZE=100000 export PROMPT_COMMAND="history -a; history -c; history -r;" # If not running interactively, do not do anything [...
true
42bcbc8e358bd12dd3e01ea052a4aab3ccdee4d1
Shell
johncoleman83/generate-testing-files
/execute.sh
UTF-8
2,802
4.375
4
[ "LicenseRef-scancode-public-domain" ]
permissive
#!/usr/bin/env bash # executes tests based on file type RE='^[0-9]+$' function description_output() { echo -ne "\033[37m" echo "* *********************************************************** *" echo "* *" echo "* Please Select Testing File Ty...
true
dbeb8e1011e06d5704e1034cd80538d0c99abb87
Shell
ncsuandrew12/notk-bot
/bin/prepCommit.bash
UTF-8
218
2.875
3
[]
no_license
#!/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" source "${DIR}/common.bash" set -x cd ${ROOT_DIR} git add * git add .gitignore set -e git diff --cached > diff.diff git status
true
92c90b1120993f95437431ce16add00169107a1b
Shell
acookin/emissary
/build-aux/bin-sh/copy-ifchanged.sh
UTF-8
117
2.640625
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # Copyright 2019 Datawire. All rights reserved. if ! cmp -s "$1" "$2"; then cp -f "$1" "$2" fi
true
ac0438cdb7fb02fc32a74417e9c233adefa533b4
Shell
fiedl/dot-zsh
/oh-my-zsh-customization/plugins/gnuplot/gnuplot.plugin.zsh
UTF-8
345
3.4375
3
[]
no_license
# Use gnuplot to plot something and display it right inside the terminal # using `imgcat`. # # Examples: # # plot "sin(x)" # cat data.txt |plot # alias imgcat="~/.iterm2/imgcat" function plot() { plot_expression="$*" [[ -z $plot_expression ]] && plot_expression="'<cat'" gnuplot -e "set term png; plot $plo...
true
21d25f4da4d76640e1c27b43213f1cb5efa11292
Shell
phanirajl/CassandraKeyspaceSize
/CassandraTableSize.sh
UTF-8
1,890
3.703125
4
[]
no_license
#!/bin/sh #--- We need nrjmx-1.0.1-jar-with-dependencies.jar for this script to load JMX Metrics if [ "$1" != "" ]; then echo "for keyspace $1 " else echo "Positional parameter 1 is empty" fi if [ "$2" != "" ]; then echo "for table $2 " else echo "Positional parameter 1 is empty" fi if [ -e /home/tabl...
true
cda74faf72fc69626d900b4b7397fdd2c180e32c
Shell
weaviate/weaviate
/tools/dev/run_dev_server.sh
UTF-8
18,289
2.6875
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash CONFIG=${1:-local-development} # Jump to root directory cd "$( dirname "${BASH_SOURCE[0]}" )"/../.. || exit 1 export GO111MODULE=on export LOG_LEVEL=${LOG_LEVEL:-"debug"} export LOG_FORMAT=${LOG_FORMAT:-"text"} export PROMETHEUS_MONITORING_ENABLED=${PROMETHEUS_MONITORING_ENABLED:-"true"} export GO_BLOCK_...
true
a0d83b6b35726838aeb9b57dfcb0fabfcdeb925c
Shell
jnayak1/kmp-mpc
/tests/test_client.sh
UTF-8
789
2.984375
3
[]
no_license
#!/bin/bash sleep_time=1 host="localhost" rm text_length.csv touch text_length.csv echo "match, pattern length, text length, yao gate count, time" >> text_length.csv # small pattern increase text size tlen=8 for i in `seq 1 14`; do MAX_PATTERN_LENGTH=4 MAX_TEXT_LENGTH=$tlen make ./a.out 2345 $h...
true
e7824872d02b619688d713c278a12657f189f7fb
Shell
ddeswart/vRA
/SoftwareComponents/Kubernetes-kubeadm/K8S-InstallDashboard.sh
UTF-8
629
3.15625
3
[]
no_license
#!/bin/bash # Source: https://virtualhobbit.com/2018/02/05/deploying-kubernetes-with-vrealize-automation/ # Dimitri de Swart - VMguru # Version 1.0 # 19 July 2018 # Log $PATH echo "Intial PATH = $PATH" # Update PATH export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin/:/root/bin echo "New PATH = $PATH...
true
604c3edc8c009e67243acd47fc4f2fa13228d443
Shell
pawelk82/HackerRank
/Text_Processing/Head_of_a_Text_File_2
UTF-8
181
2.8125
3
[]
no_license
#! /bin/bash #In this challenge, we practice using the head command to display the first n characters of a text file. #Display the first 20 characters of an input file. head -c 20
true
734ddd929e4f4d780e0c05407c431f313fb91da7
Shell
lazaropower/practicas-ISO
/practicas/practica3/ejemplo_break.sh
UTF-8
167
3.375
3
[]
no_license
#! /bin/bash -u # Muestra todos los parámetros. Si uno es una "f" finaliza while [ $# -gt 0 ] do if [ $1 = "f" ] then break fi echo Parámetro: $1 shift done
true
09ae535e4fd29fdfc20011f5ad73b08669e9baa2
Shell
Ignotus/langdetect
/highway_to_hell/test.sh
UTF-8
497
3.53125
4
[]
no_license
#!/usr/bin/env bash rm -rf testset mkdir testset cp ../test.zip testset pushd testset unzip test.zip rm test.zip popd correct=0 processed=0 for file in testset/*.txt; do let processed=processed+1 LAN1=$(echo $file | sed 's/[\/-]/ /g' | awk '{print tolower($2)}') LAN2=$(./trigram_calc -detect-one-answer $fi...
true
66ffcb59e1f22f04c2b43659714d9b405c2d0bc3
Shell
kviktorman/clientOnline
/BashScripts/client-online.sh
UTF-8
1,550
3.78125
4
[]
no_license
#!/bin/bash #set interface interface=$1; #get interface MAC and IP address addressIP=`ifconfig $interface | grep "inet addr" | cut -d ':' -f 2 | cut -d ' ' -f 1`; addressMAC=`cat /sys/class/net/$interface/address`; #read configuration settings CONFIGURATION=`cat ./configuration/server.json`; # bind settings to vari...
true
a65164eb38712842ff5cc0acdc15f0203ee6f06a
Shell
dubanoze/actility_gw
/lrr/com/cmd_shells/restart.sh
UTF-8
190
2.734375
3
[]
no_license
#!/bin/sh DELAY="15" if [ "$1" != "" ] then DELAY=$1 fi echo "lrr will be restarted in $DELAY sec" nohup $ROOTACT/lrr/com/cmd_shells/restart_pending.sh $DELAY > /dev/null 2>&1 & exit 0
true
423ef82c1fa40e3003ab601e6956e1751d9a1522
Shell
Thomaash/SnakeOn7Segment
/Graphics/game/leds/downscale.sh
UTF-8
347
3.03125
3
[]
no_license
#!/bin/zsh cd "/home/tom/soubory/Workplace/IDEA/SnakeOn7Segment/Graphics/game/leds" src="160" cd "$src" for file in *; do for i in 120 80 40; do dir="../$i" mkdir -p "$dir" if [[ $( echo "$file" | cut -c1 ) == "h" ]]; then size="$i" else size="x$i" fi convert "$file" -resize "$size" -quality...
true
2daa4bd8150c49ae604c85764f321325f3b8f630
Shell
Slackwaremx/slackbuilds
/libraries/lapack/lapack.SlackBuild
UTF-8
4,117
3.625
4
[]
no_license
#!/bin/sh # Slackware build script for LAPACK # Copyright 2014 Kyle Guinn <elyk03@gmail.com>, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is # permitted provided that the following conditions are met: # # 1. Redistributions of this script must retain the above c...
true
de838afcff6b94021628320315cff221620b263b
Shell
derFunk/awscli-versionized-docker-images
/build_and_push_all.sh
UTF-8
2,895
4.09375
4
[]
no_license
#!/usr/bin/env bash PUSH_EXISTING=${PUSH_EXISTING:-false} REPO=derfunk/awscli-versionized set -e # Get all versioned aws cli tags uploaded already available i="1" echo -n > awscli-versioned-versions.txt while true; do echo "Fetching page ${i} of already existing versionized aws cli tags..." if ! curl -fs -o awscl...
true
9fd7684db1de6050a7aa5106a58fb989fce6427e
Shell
gmaher/svbuild
/scripts/get_freetype.sh
UTF-8
301
2.75
3
[]
no_license
sudo apt-get install libtool sudo apt-get install libpng-dev echo "Downloading FREETYPE $FREETYPE_CHECKOUT, building into $FREETYPE_DIR" git clone $FREETYPE_URL cd $FREETYPE_DIR git checkout $FREETYPE_CHECKOUT ./autogen.sh ./configure --prefix=$EXTERNALS_DIR make -j6 make install cd $BUILD_DIR
true
8059e7ea896c7109932721839a6ab75698f02e87
Shell
zkokaja/dotfiles
/init
UTF-8
902
2.765625
3
[]
no_license
#!/usr/bin/env sh # Make sure your XDG paths are set before running this # TODO: make idempotent, interactive # TODO: move old config/local into new location ln -sfv $PWD/config/zsh/zshenv $HOME/.zshenv source $HOME/.zshenv # setup config home mv $HOME/.config $HOME/config.old ln -sfv "$PWD"/config "$XDG_CONFIG_HOM...
true
c2f4ae0d8585240c9af4328dc88e256d005bb2ba
Shell
GrimirCZ/maturitni-projekt-dokumentace
/compile.sh
UTF-8
560
3.09375
3
[]
no_license
#!/usr/bin/env bash rm -rf build cp -rf src build cd build echo Running vlna to correct czech spelling touch all.log for filename in *.tex; do #iconv -f UTF-8 -t ISO-8859-2 "$filename" -o "$filename" >> all.log 2>&1 vlna -l -m -n "$filename" >> all.log 2>&1 #iconv -f ISO-8859-2 -t UTF-8 "$filename" -...
true
868f1938d650b4e02d8ad6e044c4a669d491b5d8
Shell
lao-tseu-is-alive/tensorflow2-tutorial
/scripts/list_id_documents.sh
UTF-8
71
2.609375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash for i in `ls -1 *.jpeg`; do basename $i .jpeg; done|sort -n
true
baad612310730fc535d94c59a4867408a6ffb008
Shell
juju-solutions/layer-swarm
/actions/swarmbench
UTF-8
2,492
3.40625
3
[]
no_license
#!/bin/bash set -eu RUNTIME_IMAGE='lazypower/swarm-bench' BENCHMARK_CONCURRENCY=$(action-get concurrency) BENCHMARK_REQUESTS=$(action-get requests) BENCHMARK_IMAGE=$(action-get image) SWARM_LEADER=$(leader-get swarm_manager) if [ -z "$SWARM_LEADER" ]; then action-fail "Swarm is still setting up. Skipping benchmar...
true
0c2f5bbd247312790e2a95cec1e9b0c2ef49c582
Shell
hidetoshing/shell-scripts
/regrep
UTF-8
1,201
4.09375
4
[ "MIT" ]
permissive
#!/bin/sh # if color message, uncomment following. # source ~/dotfiles/lib/lib/color.sh # filetype="*.php" function regrep { echo "${fgb_blue}ReGrep${fg_default}" echo "${1} => ${2}" echo "find for ${filetype}" echo "${fgb_blue}Target files${fg_default}" find . -name ${filetype} | grep -rl ${1} * echo "\n" ...
true
597904830cdb9685f838a904ad4c9d0dccd9ee6a
Shell
gongchanghao/gongchanghao.github.io
/docker-entrypoint.sh
UTF-8
722
2.703125
3
[ "BSL-1.0" ]
permissive
#!/bin/bash if [ -z "$(ls -A lib/ 2> /dev/null)" ]; then curl https://apps.mzstatic.com/content/android-apple-music-apk/applemusic.apk -O if [ "$(uname -m)" = 'aarch64' ]; then unzip applemusic.apk 'lib/arm64-v8a/libstoreservicescore.so' 'lib/arm64-v8a/libCoreADI.so' elif [[ "$(uname -m)" = 'arm'* ]]; then ...
true
f258ea8d88afe5e6ba632e9e26e0900def8b6b22
Shell
ronioncloud/dorothy-1
/commands/echo-dir
UTF-8
126
2.671875
3
[ "LicenseRef-scancode-public-domain", "Unlicense" ]
permissive
#!/usr/bin/env bash source "$DOROTHY/sources/strict.bash" if "$DOROTHY/commands/is-dir" "$1"; then echo "$1" else exit 1 fi
true
442d54adad5b099ba08e6660735af7fef03c1dcb
Shell
kdraun/Open.HD_Image_Builder
/stages/02-Kernel/04-run.sh
UTF-8
1,146
3.21875
3
[ "MIT" ]
permissive
set -e if [[ "${DISTRO}" == "buster" ]]; then # Do this to the WORK folder of this stage pushd ${STAGE_WORK_DIR} MNT_DIR="${STAGE_WORK_DIR}/mnt" log "Compile kernel for Pi 4" pushd ${LINUX_DIR} log "Copy Kernel config" cp "${STAGE_DIR}/FILES/.config-${KERNEL_BRANCH}-v7l" ./.config || exi...
true
64345f1c13ec659333b7bd46f5b2e830360c3f6a
Shell
avvo/docker-ruby
/ruby-libv8-phantomjs/build.sh
UTF-8
611
3.40625
3
[ "MIT" ]
permissive
#!/bin/bash VERSION=$1 source .dockerbuild if [ "x$VERSION" == "x" ]; then VERSION="latest" fi function buildfail() { echo "ERROR: Build Failure - $@" exit 1 } IMAGE="$REPO/$NAME:$VERSION" docker build --rm -t "$IMAGE" . || buildfail "Could not build image." ## These commands like to complain about the regist...
true
d5aa24f342baf324bfaed37aa6d01bf029fca2ad
Shell
gpenghe/linuxconfig
/snippets/LinuxCommand_ffmpeg_encode_for_windows.sh
UTF-8
611
3.796875
4
[]
no_license
#!/bin/sh # if [ $# -ne 2 ]; then echo "Usage:" echo " $0 <video_file> <avi_file>" exit 0 fi if [ -e $2 ]; then echo "$2 already exists. Overwrite it? (Y/N)" read -d'' -s -n1 key=`echo $REPLY | tr [a-z] [A-Z]` echo if [ $key != 'Y' ]; then echo "Not overwriting..." ...
true
8cede50f2e8cb9a6a6cd73bfbb371b86d8ed3422
Shell
treyhakanson/omaha
/src/get-players.sh
UTF-8
319
3.375
3
[]
no_license
#! /usr/bin/env bash BASE_URL="https://www.pro-football-reference.com" ROOT_DIR="../raw/players" for link in $( cat ../raw/misc/player-links.txt ) do echo "Retrieving $BASE_URL$link" fname_raw=$( echo $link | cut -c 2- ) fname="${fname_raw////.}" curl "$BASE_URL$link" > "$ROOT_DIR/$fname" echo "" done
true
e03f72a2b49db971e89214d0e869dcff29f29781
Shell
ikaritw/iot
/led/go.sh
UTF-8
312
2.515625
3
[]
no_license
#!/usr/bin/env bash # Jazz for x in $(seq 1 1000) do python lightoff.py case $(($x % 6)) in 1) python n1.py ;; 2) python n2.py ;; 3) python n3.py ;; 4) python n4.py ;; 5) python n5.py ;; 0) python n6.py ;; esac done python lightoff.py exit 0
true
e9712156bcdd326447f6e07b9fe3f38ff77f55fd
Shell
sugarsweetrobotics/vrep_mcl_test
/conf/Localization_YMCL0.conf
UTF-8
7,474
2.53125
3
[]
no_license
# -*- sh -*- #------------------------------------------------------------ # Configuration file for Localization_YMCL # # This configuration file name should be specified in rtc.conf (or other # configuration file specified by -f option) by "config_file" property. # # Navigation.Localization_YMCL.config_file: Localizat...
true
161d9b3bf1e6fbd5e56a78f6ed6d5253113100d9
Shell
bismog/leetcode
/sh/add-numbered-heading.sh
UTF-8
674
3.59375
4
[ "MIT" ]
permissive
#!/usr/bin/env bash #srcfile=./nnh.md srcfile=$1 replace() { local level=$1 local sharps=$(printf '%0.s#' $(seq 1 $level)) local base_numbered_string='' [[ $level != '1' ]] && base_numbered_string=$(printf '%0.s1.' $(seq 1 $(expr $level - 1))) local last_number=1 while true; do #echo "...
true
bd16feb55a4818dfb74a66be8b0bbce1cc23d2f1
Shell
bmule/ehkmt-integration
/etc/ssl/import-signed-certif.bash
UTF-8
583
2.71875
3
[]
no_license
#!/bin/bash #set -xv alias_name="phrs_core" keystore_filename="srfg-phrs-core-keystore.ks" certificate_filename="srfg-phrs-corecertificate.csr" $JAVA_HOME/bin/keytool -import -alias $alias_name -keystore $keystore_filename -file $certificate_filename echo "The Certificate $certificate_filename based on the keystore ...
true
a1cd92df3552e30c03354962125c98b3f1d16efd
Shell
icometrix/dicom2nifti
/push_release.sh
UTF-8
557
3.4375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash echo "Provide version number: " read GIT_TAG # Check if tag exists echo "Check if tag exists ${GIT_TAG}" if git rev-parse ${GIT_TAG} >/dev/null 2>&1 then echo "Duplicate tag found. !!!EXITING!!!" exit 1 else echo "Creating and pushing tag ${GIT_TAG}." git tag ${GIT_TAG} git push ...
true
e1faad4cf2d9b095c2d8177b05a583d4a242363c
Shell
pdelre/dotfiles
/zsh/bindkey.zsh
UTF-8
2,100
2.953125
3
[ "MIT" ]
permissive
# https://www.reddit.com/r/zsh/comments/eblqvq/del_pgup_and_pgdown_input_in_terminal/fb7337q/ # If NumLock is off, translate keys to make them appear the same as with NumLock on. bindkey -s '^[OM' '^M' # enter bindkey -s '^[Ok' '+' bindkey -s '^[Om' '-' bindkey -s '^[Oj' '*' bindkey -s '^[Oo' '/' bindkey -s '^[OX' '='...
true
8686d6be7c383788a08694a53911058adcaec714
Shell
taget/random_app
/tests/functional/functions.sh
UTF-8
1,917
3.484375
3
[]
no_license
#!/bin/bash #set -x CURL='curl -s' function get { local ID=$1 local RET=$($CURL -H "Content-Type: application/json" -X GET 127.0.0.1:5001/random/$ID) RET=$(echo $RET | awk -F\" '{print $2}') if [[ $RET != "code" ]]; then return 1 fi echo $RET } function post { local LENGTH=$1 ...
true
9898ed1ff71c3389fbf690f61d05838a2e91606f
Shell
kampka/dockerfiles
/postgres/setup.sh
UTF-8
429
2.65625
3
[ "MIT" ]
permissive
#!/bin/sh set -e ln -sf /proc/self/fd /dev pacman -Sy --noconfirm --needed postgresql postgresql-old-upgrade grep mkdir -p /data mkdir -p /etc/initrc.d cp -v /build/initrc.d/* /etc/initrc.d mkdir -p /services cp -rv /build/services/* /services rm -rf /build REMOVABLES=$(pacman -Qqtd) || true if [ -n "$REMOVABL...
true
c720802d85f6ea70d5db94764f6ee396f4b42114
Shell
Jeasonxiu/Direct_Aniso_inversion
/kernel/Example/DirectKernel.sh
UTF-8
2,430
3.0625
3
[ "MIT" ]
permissive
#!/bin/bash exe=../bin DK=$exe/DKernel DKReader=$exe/DKReader # path path=`pwd` # # infold=$path/infile infold=$path/infile # output=$path/output output=$path/outputRV kernel_fold=$output/kernel Gramdd_fold=$output/Gramdd mode_fold=$output/Sph_mode mdl_fold=$output/pro_mdl Lon_fold=$path/LonKernel if [ ! -d $Lon_...
true
b119719079a5f5585b3157ec28e0045f3a085001
Shell
woojiahao/govid-19
/setup.sh
UTF-8
286
2.78125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash read -rp "Database user >>> " user read -rp "Database password >>> " password read -rp "Database name >>> " name read -rp "Host >>> " host { echo "POSTGRES_DB=$name" echo "POSTGRES_USER=$user" echo "POSTGRES_PASSWORD=$password" echo "HOST=$host" } >> .env
true
f36dd62dc77715773501c3a51472905e10e58bae
Shell
jhadvig/source-to-image
/hack/build-release.sh
UTF-8
1,521
3.9375
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # This script generates release zips into _output/releases. It requires the openshift/sti-release # image to be built prior to executing this command. set -o errexit set -o nounset set -o pipefail STI_ROOT=$(dirname "${BASH_SOURCE}")/.. source "${STI_ROOT}/hack/common.sh" # Go to the top of the tree. cd...
true
0afe6267f167183ad142211bbe7bc493e1df5765
Shell
imclab/archivesphere
/script/deploy_qa.sh
UTF-8
2,164
3.3125
3
[]
no_license
#!/bin/bash # # deploy script for scholarsphere-qa HHOME="/opt/heracles" WORKSPACE="${HHOME}/archivesphere/archivesphere-qa" RESQUE_POOL_PIDFILE="${WORKSPACE}/tmp/pids/resque-pool.pid" DEFAULT_TERMCOLORS="\e[0m" HIGHLIGHT_TERMCOLORS="\e[33m\e[44m\e[1m" ERROR_TERMCOLORS="\e[1m\e[31m" HOSTNAME=$(hostname -s) function an...
true
90394d2df3c4da273d37af83af391bb86f37ae50
Shell
Marco9412/TelegramMQTTBot
/build.sh
UTF-8
357
2.9375
3
[ "MIT" ]
permissive
#!/bin/bash EXECUTABLENAME="TelegramMQTTBot" mkdir -p out echo "Cleaning old files" rm -f "out/$EXECUTABLENAME" "out/$EXECUTABLENAME.zip" echo "Building" cd app zip -r "../out/$EXECUTABLENAME.zip" * cd .. echo '#!/usr/bin/env python3' | cat - "out/$EXECUTABLENAME.zip" > "out/$EXECUTABLENAME" chmod +x "out/$EXECUTAB...
true
2482e9dff64ac61f89613eda68d7fdb8a2faf169
Shell
delicb/dotfiles
/scripts/debian.sh
UTF-8
639
3.28125
3
[]
no_license
set -o errexit -o nounset prepare() { apt update TZ=UTC ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone DEBIAN_FRONTEND=noninteractive apt install -y software-properties-common curl gnupg locales locale-gen en-us.UTF-8 echo 'deb http://download.opensuse.org/repositories/shells:/fish...
true
69d399d9c5328a65db095580265aeee088259a89
Shell
ekinanp/scripts
/util/helpers.sh
UTF-8
3,141
3.953125
4
[]
no_license
#!/usr/bin/env bash # utility routines fjq() { local action="$1" local file="$2" jq -r --compact-output "${action}" "${file}" > "${file}.tmp" && mv "${file}.tmp" "${file}" } fsed() { local action="$1" local file="$2" sed -E "${action}" "${file}" > "${file}.tmp" && mv "${file}.tmp" "${file}" } fawk() { ...
true
3fa572fefae163368f7bac916231f3756694d5d2
Shell
tmtaybah/dotfiles
/install.sh
UTF-8
1,461
4.0625
4
[]
no_license
#!/usr/bin/env bash if [ "$#" -ne 1 ]; then echo "Usage: install.sh <home_directory>" exit 1 fi # set paths homedir=$1 dotfiledir=${homedir}/dotfiles # change to the dotfiles directory echo "Changing to the ${dotfiledir} directory" cd ${dotfiledir} # install brew echo "Installing Homebrew ..." /usr/bin/rub...
true
9ba3be6c70eebf5ef2867b8d4cedf3426a6b2f9b
Shell
oxedions/CLI-tools
/Source/run-tests.sh
UTF-8
413
3.421875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash PY2=python2.7 PY3=python3.7 function cprint { "${PY3}" -m colour_text "$@" } for tool in \ colour_text \ colour_filter \ ssh_wait \ smart_find \ ; do for PY in ${PY3} ${PY2} do if ${tool}/run-test.sh ${PY} then cprint "<>green PASSED<> ${PY} ${to...
true
8a4075c2e5836a20ebe0c6e69a74da9b1ce771ae
Shell
craigevil/Minecraft
/setupMC.sh
UTF-8
2,622
3.84375
4
[]
no_license
#!/bin/sh -e #determine if host system is 64 bit arm64 or 32 bit armhf if [ ! -z "$(file "$(readlink -f "/sbin/init")" | grep 64)" ];then MACHINE='aarch64' elif [ ! -z "$(file "$(readlink -f "/sbin/init")" | grep 32)" ];then MACHINE='armv7l' else echo "Failed to detect OS CPU architecture! Something is very wron...
true
5753b170baaeb49cda5386c3ef64224240e7400e
Shell
lucharo/HDATDS
/BuildConvert.sh
UTF-8
757
3.28125
3
[ "MIT" ]
permissive
OUTPUT="$(conda build .)" echo "${OUTPUT}" > build.txt storepath="$(grep 'TEST START:' build.txt | sed 's/^.*: //')" filename="$(echo $storepath | awk -F'/' '{print $6}')" # grep 'potato:' file.txt | sed 's/^.*: //' # grep looks for any line that contains the string potato:, then, for each of these lines, # sed repla...
true
832c4511f8a6898f8f3e38a2c9195072f8c276c5
Shell
iamfauz/cpen442-miner
/verify_coin.sh
UTF-8
524
3.53125
4
[]
no_license
#! /bin/bash echo "Verify a Coin Script" if ! command -v base64 > /dev/null; then echo "base64 command not found!" exit 1 fi if ! command -v md5sum > /dev/null; then echo "md5sum command not found!" exit 1 fi read -p "Miner ID String:" minerid read -p "Coin Base64 Blob:" coinblob read -p "Previous C...
true
87ef6cc750d21445ee259ec00e4931dc11a53d62
Shell
chralp/splashr
/splashr.sh
UTF-8
1,604
3.890625
4
[]
no_license
#!/bin/bash # Settings collection=https://source.unsplash.com/random # Folders imgFolder=".splashr" rootFolder=$HOME/$imgFolder i3lockFolder="i3lock/" bgFolder="bg/" loginFolder="/usr/share/images/login" tempFolder="temp" function downloadImages { # Get resolution for search. So we only get image that fits scr...
true
33c272293faae0d02473eeb069cd51846bbff707
Shell
mike-zueff/euphoria
/lib/lib_kernel.sh
UTF-8
661
3.28125
3
[ "Apache-2.0" ]
permissive
function kernel_assert { logger_tee_function_begin if [[ ${E_ASSERTS_ENABLED} == ${E_LITERAL_TRUE} ]] then case "${2}" in "is_not_in_top" ) [[ `pgrep --full --uid ${UID} "${1}"` ]] && kernel_assert_exit "${*}" ;; esac fi logger_tee_function_end } function kernel_assert_exit ...
true
aeb60c50dc9583f46da504fb0e36af4b56b9601c
Shell
Hughes-Genome-Group/CCseqBasicM
/bin/serial/subroutines/hubbers.sh
UTF-8
55,961
3.359375
3
[ "MIT" ]
permissive
#!/bin/bash ########################################################################## # Copyright 2017, Jelena Telenius (jelena.telenius@imm.ox.ac.uk) # # # # This file is part of CCseqBasic5 . # # ...
true
63dd52d18f217784e74b3b59db2fef72c6c43604
Shell
iPlantCollaborativeOpenSource/crushbone
/src/09_pip_install_atmo_requirements.sh
UTF-8
919
3.765625
4
[]
no_license
#!/bin/bash -x PS4='$(date "+%s.%N ($LINENO) + ")' ############################## # Usage # # LOCATIONOFATMOSPHERE -$1 # VIRTUAL_ENV_ATMOSPHERE - $2 ############################## this_filename=$(basename $BASH_SOURCE) output_for_logs="logs/$this_filename.log" touch $output_for_logs main(){ LOCATIONOFATMOSPH...
true
3030ba291a5e83e070de4e558959f482627be97e
Shell
iuri/docker
/po5-debian/src/install.sh
UTF-8
7,407
3.390625
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
#!/bin/sh -e # installation script for po5-debian 9 # See the README file for details # Copyright (c) 2018 Iuri Sampaio <iuri@iurix.com> # This code is provided under the GNU GPL licenses. set +e # comment out to debug #set -x # -----------------------------------------------------------------------------------------...
true
817eb1e04f07f5a3678f9f74e6d81efbe19299a7
Shell
weizhanguio/ABM_results
/Hexagon/Optimized-ABM/MPI/mpi.pbs
UTF-8
883
2.53125
3
[]
no_license
#!/bin/bash # # Give the job a name #PBS -N "32procs" # # Specify the project the job belongs to #PBS -A nn2849k # # We want 60 hours on 512 cpu's (cores): #PBS -l walltime=5:00:00 # # # Send me an email on a=abort, b=begin, e=end # # # Use this email address (check that it is correct): # # # Write the standard ...
true
6f5a48e0c5c8f91760a3d81bcba22cc5edc4f79f
Shell
omertuc/rhods-entitled-mirror
/build.sh
UTF-8
311
2.65625
3
[]
no_license
#!/bin/bash set -euxo pipefail SCRIPT_DIR=$(dirname "$(readlink -f "$0")") pushd "${SCRIPT_DIR}" podman build -f Containerfile.sync containers/sync/ -t quay.io/otuchfel/rhods-mirror-sync:latest podman build -f Containerfile.serve containers/serve/ -t quay.io/otuchfel/rhods-mirror-serve:latest echo "Done"
true
8e24b6de22b34864cd7e4e82fcdc1752ada45f68
Shell
pkorduan/kvwmap-server
/config/config-default
UTF-8
896
3.15625
3
[]
no_license
#!/bin/bash #settings DEBUG=false OS_USER="gisadmin" OS_USER_EXISTS=true getent passwd $OS_USER >/dev/null 2>&1 && OS_USER_EXISTS=true USER_DIR=/home/$OS_USER SCRIPT=$(readlink -f "$0") SCRIPTPATH=$(dirname "$SCRIPT") export SERVER_NAME=$(hostname) echo "Folgenden Hostname ermittelt: $SERVER_NAME" export DOMAIN_NAME=...
true
165997c63d206a87581c3c3650b268e89c89be3a
Shell
benjamincharity-dev/terminus-oss
/tools/ci/set-should-run-flag.sh
UTF-8
310
3.4375
3
[ "MIT" ]
permissive
#!/bin/bash . ~/.bashrc OG_MESSAGE=$1 echo "Original commit Message: $OG_MESSAGE" MESSAGE=$(echo "$OG_MESSAGE" | tr -d '"') echo "Cleaned commit message: $MESSAGE" if [[ "$MESSAGE" =~ (skip\ ci|ci\ skip) ]]; then echo "SHOULD_RUN=false" >> "$GITHUB_ENV" else echo "SHOULD_RUN=true" >> "$GITHUB_ENV" fi
true
81637d6b8547eee35a7e5449883220f9858acaa0
Shell
wormintrude/sos2dbook
/bak-sos2dbook.sh
UTF-8
19,524
3.640625
4
[]
no_license
#!/bin/bash # Script para parsear reportes SOS y generar documentos en publican [DocBook] # TO DO # ----- # - [DONE] Que pasa si el dbook_title ya existe como DocBook - Lo borramos ? Abortamos ? # - Las variables en autores_file no soportan espacios [fixme] # - Los paths a los sources estan hardcodeados, deberian pas...
true
bb88c5b6a214b098d03bc50b6607bc34f0b3efd4
Shell
Super-LeoJayZhang/TSMP
/bldsva/machines/GENERIC_X86/build_interface_GENERIC_X86.ksh
UTF-8
2,713
2.75
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
#! /bin/ksh getMachineDefaults(){ route "${cblue}>> getMachineDefaults${cnormal}" defaultMpiPath="/opt/mpich-3.2.1" defaultNcdfPath="/usr" defaultGrib1Path="/opt//DWD-libgrib1_20110128/lib" defaultGribapiPath="/usr" defaultJasperPath="" defaultTclPath="/opt/tcl8.6.9" defaultHyprePath="/opt/hypre-2.11.2"...
true
778e61d0f280c6ed1a6d1e1b4ecdb14475d82727
Shell
BaderLab/netDx
/inst/extdata/INSTALL/INSTALL_Unix.sh
UTF-8
2,399
3.359375
3
[ "MIT" ]
permissive
#!/bin/bash # Script to automate dependency install for netDx echo "* Installing Unix dependencies" ENV TZ 'America/New York' echo $TZ > /etc/timezone && \ apt-get update && \ apt-get install -y tzdata && \ apt-get install -y --no-install-recommends \ gfortran \ r-base \ openjdk-8-jre \ gcc make ...
true
a70a16c081f9554289d5546af544f7fcf24584fd
Shell
lgoetschius/MRtrix_Connectomes_Analysis
/check_cluster_processing.sh
UTF-8
1,092
3.453125
3
[ "MIT" ]
permissive
#!/bin/bash ################################## MRtrix Script Check Cluster Processing ################################## # This script will check to see who has successfully completed the cluster processing. ############################################################################################### datapath=/Vo...
true
308c892f9659345b6bb23a889fa635827c929eb2
Shell
alesgenova/openchemistry-demo
/scripts/copy_web_components.sh
UTF-8
470
2.921875
3
[]
no_license
#! /bin/bash components="@openchemistry/molecule-vtkjs @openchemistry/vibrational-spectrum @openchemistry/molecule-menu split-me " components_dir=public/components if [ -d "$components_dir" ]; then rm -rf $components_dir fi mkdir $components_dir for component in ${components}; do from_dir=node_modules/${compone...
true
023caf2e761da52b363474ff546a30c04c3e1250
Shell
q-a-z/Synapse
/Scripts/lweb
UTF-8
207
2.75
3
[]
no_license
#!/bin/bash #lweb = linux web tun0=$(/sbin/ifconfig tun0 | grep 'inet' | head -1 | awk '{print $2}') port=9000 for f in *; do echo "wget http://$tun0:$port/$f" done python -m SimpleHTTPServer $port
true
ea78a9dc520c4c12d18ced6788b005a3d67278cb
Shell
gap-system/gap-distribution
/testing/plots.sh
UTF-8
9,659
3.015625
3
[]
no_license
#!/bin/bash ## The following commands, adjusted as instructed in the comments, ## should be performed in Jenkins job before calling this script # # rm -rf * # ## absolute path to Jenkins workspace (without trailing "/") # # export JPATH="/mnt/raid/hudson-slave/workspace" # ## name of the Jenkins job to look at this wo...
true
9cb98537a2bcd49ad75246c98758e0c6941f051f
Shell
moy/unix-training
/treasure-hunt/generate-step-F2.sh
UTF-8
2,931
3.6875
4
[]
no_license
#!/bin/bash . ./treasure-setup.sh . ./spy-lib.sh . ./i18n-lib.sh dest=$(gettext etape)-F2.sh # This may be too easy to "decode", but beeing able to do that may # also indicate that the current exercice is not useful.. exec > "$dest" printf "%s\n" '#!/bin/bash exec 4<&1 # We need bash here to be able to read from...
true
5101d3bd443603164f307025b6b6529148af50ae
Shell
potyt/scripts
/ssh-cache-keys
UTF-8
240
2.859375
3
[]
no_license
#! /usr/bin/env bash # in case keychain has been restarted . ~/.env.keychain for pk in ~/.ssh/id_rsa*.pub; do k=${pk%.pub} id=$(basename $k) id=${id#id_rsa-} pass ssh/$id | head -n 1 | tty-pipe 1 "^.+: *$" ssh-add $k done
true
29c0583f1d3dff8749b7a64882dd41080cb9e8cd
Shell
prenaux/ham
/bin/ham-toolset-do-import.sh
UTF-8
1,220
3.625
4
[ "Jam", "MIT", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-unknown-license-reference" ]
permissive
if [ "$1" == "force" ]; then shift if [ "$1" == "silent" ]; then shift else ALREADY_IMPORTED=`ni-hget HAM_IMPORTS_TOOLSETS $1` if [[ "$ALREADY_IMPORTED" = "1" ]]; then echo "W/ham-toolset-import.sh: toolset already imported '$1', force reimported." fi fi else ALREADY_IMPORTED=`ni-hget HA...
true
a345937ca0f3006c15112f73a2613075f6e700ee
Shell
cms-lpc-llp/llp_analyzer
/scripts/SplitRunEventMapByLumi.sh
UTF-8
418
3.390625
3
[]
no_license
#!/bin/bash inputLumisFile=$1 inputDir=$2 outputDir=$3 echo ${inputDir} echo ${outputDir} IFS=' ' while read -r line; do read -a strarr <<< "${line}" echo "Processing (run,lumi) (${strarr[0]} , ${strarr[1]})" for i in ${inputDir}/RunDataRunEventIndexing_*.*; do #echo "${i}" cat ${i} | grep "$...
true
4a9fb8523107831969b86259db307932a8cbfc78
Shell
kdave/xfstests
/tests/btrfs/123
UTF-8
1,415
2.859375
3
[]
no_license
#! /bin/bash # SPDX-License-Identifier: GPL-2.0 # Copyright (c) 2016 Fujitsu. All Rights Reserved. # # FS QA Test 123 # # Test if btrfs leaks qgroup numbers for data extents # # Due to balance code is doing trick tree block swap, which doing # non-standard extent reference update, qgroup can't handle it correctly, # an...
true
5129064b3441f6ce4be099382dac3fb39500b795
Shell
raycast/script-commands
/commands/apps/todoist/get-tasks.template.sh
UTF-8
947
3.5625
4
[ "MIT" ]
permissive
#!/bin/bash # Required parameters: # @raycast.author Faris Aziz # @raycast.authorURL https://github.com/farisaziz12 # @raycast.schemaVersion 1 # @raycast.title Get Tasks # @raycast.mode fullOutput # @raycast.packageName Todoist # @raycast.description Gets All Todoist tasks # @raycast.needsConfirmation false # Depende...
true
39c93d481f27c7c35327b2b8581c00d8dcf64775
Shell
ryo1107/make_layer_zip
/make_layer_zip.sh
UTF-8
197
2.65625
3
[]
no_license
#!/bin/sh echo start_install $1 mkdir $1 cd $1 mkdir python cd python pip install $1 -t . echo install_finish cd ../ echo zip_making zip -r $1.zip ./* cp $1.zip ../ cd ../ rm -rdf $1 echo finish!
true
d1b0a2c71f395c05e08f87cd54763a881c27fea3
Shell
Clay-Ferguson/quantizr
/scripts/build-dev-javaonly.sh
UTF-8
478
3.03125
3
[ "MIT" ]
permissive
#!/bin/bash clear # show commands as they are run. # set -x # Set all environment variables source ./setenv-dev.sh checkFunctions # Build the application from source cd ${PRJROOT} mvn -T 1C package -DskipTests=true -P${mvn_profile} verifySuccess "Maven Build" # to get all services: `docker service ls`` cd ${PRJROOT...
true
814e099c0bd29fa1ba1faa40a985b56adcd5a91f
Shell
Limnogirl90/Weather.Olcott
/README
UTF-8
690
2.609375
3
[]
no_license
#!/usr/bin/env bash #curl --data "printer_friendly=&product=CLI&station=BUF&recent=no&date=20140421&prodDesc=DAILY+CLIMATE+REPORT+-+issued+daily:Detailed+daily+weather+statistics+(usually+for+yesterday),+including+temperature,+precipitation,+degree+days,+wind,+humidity,+sunrise/sunset,+and+record+temperature+data+for+...
true
70c55f4d3aaebf229b4a5598f9a34bf86a76fc9b
Shell
sbryngelson/dotfiles
/.aliasrc
UTF-8
5,239
3.4375
3
[]
no_license
#!/usr/bin/env bash # LS commands if ! command -v gls &> /dev/null then alias ls='ls -GFh --color' else alias ls='gls -GFhN --color=always' fi alias l='ls' alias la='ls -a' alias ll='ls -lhtr' # python alias python='python3' alias dus='du -hs * | sort -h' # OS-specific stuff if [ "$(uname -s)" == "Darwin" ]...
true
13573c69981963855ab95822b4d8b45c7bf85cad
Shell
waj615/allmake
/bin/amc
UTF-8
5,207
3.890625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash ############################################################################### # Name: amc # Description: amc is the client tool for simplifying shell commands # Author: John Deng (john.deng@outlook.com) # Updated: 2017-02-11 ############################################################################### e...
true
3ae363fbe7fb7b5e95984cb0bf4772bf44b95c3e
Shell
jontg/docker-ulfhedinn
/images/tt-rss/start.sh
UTF-8
738
3.328125
3
[]
no_license
#!/bin/bash PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin # Give MySQL a few seconds to start up sleep 5 if mysql -u root -ptt-rss -e 'use tt_rss'; then echo "World appears to be uninitialized; creating table and setting the password" mysqladmin -u root password 'tt-rss' mysqladmin -u root -...
true
8ecd0f2d9eb2ae864a6183196ab13ecb861876c3
Shell
cj-mclaughlin/Darkflow_Setup
/CUDA/install_cuda
UTF-8
702
3.421875
3
[]
no_license
#!/bin/bash GR='\033[1;32m' NC='\033[0m' # Optionally remove all nvidia-related packages prior to install with -r option if [ "$1" == -r ] then sudo apt-get --purge -y remove 'cuda*' sudo apt-get --purge -y remove 'nvidia*' fi # Install cuda 10.0 toolkit aws s3 cp s3://cuda-install-deps/cuda-repo-ubuntu1804-10-0-l...
true
f5a0a1d7c704ec30e22b1ed5b972b53a005a1213
Shell
jason-work/system-config
/bin/Linux/after-check-out.sh
UTF-8
1,795
2.828125
3
[]
no_license
#!/bin/bash ~/system-config/bin/after-co-ln-s.sh . ~/system-config/.bashrc touch ~/.cache/system-config/.where ~/.cache/system-config/.where.lock if test $(whoami) = bhj; then sudo perl -npe 's/^XKBVARIANT=.*/XKBVARIANT="dvp"/;' -i /etc/default/keyboard cat <<EOF | sudo tee /etc/locale.gen zh_CN.GBK GBK zh_CN...
true
e318f1b6db1f6342d552852356a08c9e7ebeb7c1
Shell
petronny/aur3-mirror
/angryanimals/PKGBUILD
UTF-8
1,209
2.734375
3
[]
no_license
# Maintainer: Simone Sclavi 'Ito' <darkhado@gmail.com> pkgname=angryanimals pkgver=27.03_01 pkgrel=1 arch=('any') pkgdesc='Launch the animals into the building to destroy it! (Angry Birds-like game)' url='http://www.free-games.net/play/angry-animals' license=('custom') depends=('flashplayer-standalone') makedepends=('...
true
a10ebdf5f52249005d7f9735bc6dc0879e8afae9
Shell
latifkabir/Computation_using_C
/st_io/st_io_prb.sh
UTF-8
458
2.984375
3
[]
no_license
#!/bin/bash # gcc -c -I/$HOME/include st_io_prb.c if [ $? -ne 0 ]; then echo "Errors compiling st_io_prb.c" exit fi # gcc st_io_prb.o /$HOME/libc/$ARCH/st_io.o -lm if [ $? -ne 0 ]; then echo "Errors linking and loading st_io_prb.o." exit fi # rm st_io_prb.o # mv a.out st_io_prb ./st_io_prb > st_io_prb_output.tx...
true
a11fe2e20c844e1f5d55ec66ba95de25afacfc21
Shell
scerry91/project
/modules/clean_log_file/templates/cleaning_script.sh.epp
UTF-8
2,681
4.28125
4
[]
no_license
#!/bin/bash ########################################################### # Bash script to clean up the oldest logs from filesystem # # How to use: # # - Enter log path (wildcard) for example: # # a) /var/logs/log-*.gzip # # b) ...
true
427af55e41b6079f6b05b25c49b7c600cd6913c6
Shell
selvaganeshwari/scripts
/bash/git_remoterepo.sh
UTF-8
912
3.5
4
[ "MIT" ]
permissive
#!/bin/sh # # Copyright homoacademycus@github.com # MIT Licnese # echo -n "set git protocol 1. ssh://user@host.com 2. git://host.com 3. https://host.com 4. file:// * github url git@github.com:user/reponame.git --> select number (1~4) : " read sel case $sel in 1) echo -n "enter user account :" read user e...
true
8eb2340c9baeb2539925aeb5331bf7acc1508d0d
Shell
tonyhoo/shellkoans
/section8.sh
UTF-8
1,183
4.53125
5
[]
no_license
#!/bin/sh EXERCISE_NUMBER=0 TOTAL_ALLOWED_EXERCISE=2 # Exercise 1: # Write a shell script that displays one random number to the screen and also generates a syslog # message with that random number. Use the "user" facility and the "info" facility for your # messages. # Hint: Use $RANDOM function e1() { local number=...
true
16b4834c4619ead7b9597edac68319a955821d3d
Shell
mrsabath/mytechnotes
/k8s/code/xqueuejob_controller_deployment_cluster_resource_update.sh
UTF-8
10,031
3.640625
4
[]
no_license
#!/bin/bash # Licensed Materials - Property of IBM # (c) Copyright IBM Corporation 2018, 2019. All Rights Reserved. # Note to U.S. Government Users Restricted Rights: # Use, duplication or disclosure restricted by GSA ADP Schedule # Contract with IBM Corp. ############### # configuration ############### deployment_na...
true
2e34f471fdf46c27cd3f7da928f3b78372efed32
Shell
astralhpi/dotfiles
/zsh/zshrc
UTF-8
166
2.671875
3
[]
no_license
if [[ ! -s "${ZDOTDIR:-$HOME}/.zshrc_local" ]]; then touch "${ZDOTDIR:-$HOME}/.zshrc_local" fi source "${ZDOTDIR:-$HOME}/.zshrc_local" source $HOME/.zshrc_symlink
true
6bad2e6e3014e3153c2294587c090e04fa967b48
Shell
activescott/tiddlywiki-docker
/stop.sh
UTF-8
201
2.5625
3
[ "ISC" ]
permissive
#!/usr/bin/env sh MYNAME=`basename "$0"` MYFULLNAME="$PWD/$MYNAME" MYDIR=`dirname "$MYFULLNAME"` source ./.env docker container stop tw # always return 0 because we don't care if this succeeds exit 0
true
39f748801a299d010900d1688c1313a77e478016
Shell
particleman314/ShellLibrary
/test/filemgt/make_lockfile.sh
UTF-8
946
2.984375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash tempdir="${SUBSYSTEM_TEMPORARY_DIR}" answer=$( make_lockfile -s -r --directory "${tempdir}" ) assert_success $? assert_not_empty "${answer}" assert_equals "${tempdir}/.lockfile" "${answer}" schedule_for_demolition "${tempdir}/.lockfile" tmplockdir="${tempdir}/LOCKFILES" make_lockfile --directory...
true