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
9eebce94211a4991d5b9349c0fc4983abaf17d9d
Shell
PRISM-HEAD/dockerfiles
/grafana/entrypoint.sh
UTF-8
593
3.21875
3
[ "MIT" ]
permissive
#!/bin/sh for plugin in $GRAFANA_PLUGINS; do if [ ! -d "/app/data/plugins/${plugin}/" ]; then echo "installing plugin ${plugin}" && \ wget -q -O "/app/data/plugins/${plugin}.zip" "https://grafana.com/api/plugins/${plugin}/versions/latest/download" && \ unzip -q -d /app/data/plugins/ ...
true
d563fe1f207f12d71bca11505e69d68842aa0b41
Shell
goedel-gang/bash-utils
/demo/dummy_apparish_init.sh
UTF-8
318
2.515625
3
[]
no_license
# create a dummy apparixrc file, clobbering it on purpose # this is NOT how you normally use apparix. Instead you run something like # $ bm hworld # when you're in the directory of interest true > "$APPARIXEXPAND" cat > "$APPARIXRC" <<EOF j,hworld,$PWD EOF echo "set dummy bookmark 'hworld' at $PWD in $APPARIXRC"
true
be40ccbe26fae43c3bf788468126303a36beb928
Shell
apache/impala
/shell/make_shell_tarball.sh
UTF-8
7,804
3.375
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
392a1578110fecbe220a7a103f5693452240e41c
Shell
tournet/script
/mgwget.sh
UTF-8
2,207
3.328125
3
[]
no_license
#!/bin/bash # Usage: # bash <(curl -s https://raw.githubusercontent.com/mixool/script/master/mgwget.sh) 512 # wget --no-check-certificate https://raw.githubusercontent.com/mixool/script/master/mgwget.sh && chmod +x mgwget.sh && ./mgwget.sh # Set MBlimit MBlimit=1024 while [[ $# > 0 ]];do if grep '^[1-9][0-9]*$' <<<...
true
f1837e63d66c1feb8ceb5c840fa70e9453e37aea
Shell
bgstack15/bgscripts
/usr/share/bgscripts/bup.sh
UTF-8
4,585
3.984375
4
[]
no_license
#!/bin/sh # File: /usr/share/bgscripts/bup.sh # Author: bgstack15@gmail.com # Startdate: 2014-06-16 # Title: Script that Automatically Bups Files (v2) # Purpose: To make datestamped bup copies # Package: bgscripts # History: 2015-11-23 adjusted for bgscripts.rpm # 2016-08-03 converted to /bin/sh for portability # ...
true
8ca630857f1b960c124eff317260b2f41f5ad7a7
Shell
asokoloski/oil
/spec/oil-expr-sub.test.sh
UTF-8
620
2.8125
3
[]
permissive
# Test Oil expressions within $[] #### $[f(x)] func f() { return 42 } echo $[f()] ## STDOUT: 42 ## END #### $[obj.attr] var obj = /d+/ set obj.x = 42 echo $[obj.x] ## STDOUT: 42 ## END #### $[d['key']] var d = {} set d['key'] = 42 echo $[d['key']] ## STDOUT: 42 ## END #### $[d->key] var d = {} set d['key'] = 42 e...
true
9d083171bbc6b51cf853db46529249e2ebbc43ed
Shell
svn2github/xymon
/tags/rel_4_0_3rc2/build/ssl.sh
UTF-8
2,177
3.734375
4
[]
no_license
echo "Checking for OpenSSL ..." OSSLINC="" OSSLLIB="" for DIR in /opt/openssl* /opt/ssl* /usr/local/openssl* /usr/local/ssl* /usr/local /usr /usr/pkg /opt/csw /opt/sfw/ssl* do if test -d $DIR/include/openssl then OSSLINC=$DIR/include fi if test -f $DIR/lib/libcrypto.so then OSSLLIB=$DIR/lib fi ...
true
2264c1b26e6fd969605011d67622b9767c3a15f5
Shell
whosonfirst/whosonfirst-www-iplookup
/ubuntu/setup-initd.sh
UTF-8
1,789
3.484375
3
[]
no_license
#!/bin/sh PYTHON=`which python` PERL=`which perl` WHOAMI=`${PYTHON} -c 'import os, sys; print os.path.realpath(sys.argv[1])' $0` PARENT=`dirname ${WHOAMI}` PROJECT=`dirname ${PARENT}` INITD="${PROJECT}/init.d" MMDB="${PROJECT}/mmdb" SERVICES="${PROJECT}/services" INITD_WOF="${INITD}/wof-iplookup.sh" INITD_MAXMIND=...
true
542766ad48767dc469071f858e87b42b803b6786
Shell
mallardtheduck/osdev-docker-image
/setup-git.sh
UTF-8
288
3.171875
3
[]
no_license
#!/bin/bash echo Name? read name echo Email? read email if [ "$name" != "" ] && [ "$email" != "" ]; then git config --global user.name "$name" git config --global user.email "$email" git config --global credential.helper store echo Details saved. else echo Details not entered. fi
true
179ede78cf84529edb0b0f94be1c0044e55f37f9
Shell
masukomi/masuconfigs
/bin/git-scripts/rebase
UTF-8
354
3.96875
4
[]
no_license
#!/usr/bin/env bash if [ "$#" -eq 0 ]; then echo "Usage: rebase <treeish | integer>" echo " Initiates an interactive git rebase" echo " If a number is passed in it'll rebase to HEAD~<number>" echo " If a treeish is passed in it'll use that directly." exit 1 fi if [[ $1 == ?(-)+([0-9]) ]]; then git rebase -i ...
true
52623ed45d204c9911f9ef51e489e5f536efea94
Shell
shdb/zsh-configs
/S65_colors
UTF-8
611
2.96875
3
[]
no_license
#!/bin/zsh if [ "$TERM" != dumb ] && [ -x /usr/bin/grc ] ; then alias cl='/usr/bin/grc -es --colour=auto' alias configure='cl ./configure' alias diff='cl diff' #alias make='cl make' #alias gcc='cl gcc' #alias g++='cl g++' alias as='cl as' alias gas='cl gas' #alias ld='cl ld' ali...
true
b5e2252f8467e5167daa87befc11bbb679d55133
Shell
citypilgrim/invest_scripts
/_old_scripts/raspPATCH_v0.0.0.command
UTF-8
930
3.609375
4
[]
no_license
#!/bin/bash # Checking with user prereq_declare='\n to proceed with installation, ensure that you have installed the following pre-requisites: \n \t -> virtualenv installed\n \t -> google chrome browser \n \n ,if not, please close the terminal and install the programs before proceeding.\n ' echo -e $prereq_declare re...
true
325bcd8902f978bcad7a208f53f8a27433703b71
Shell
akosnad/dotfiles
/hypr/toggle-gammastep.sh
UTF-8
440
3.390625
3
[]
no_license
#!/bin/bash state="$(systemctl is-active --user gammastep)" # if gammastep service is running, stop it if [[ "$state" == "deactivating" ]]; then exit 0 fi if [[ "$state" == "active" ]]; then notify-send -t 3000 -e 'Gammastep' 'Gammastep is now disabled' systemctl --user stop gammastep # if not running, ...
true
9bd78e3609e72f5c5610c7e61f660178e981a258
Shell
WillsonLee/QPCPlatform
/install.sh
UTF-8
1,716
3.421875
3
[]
no_license
#!/bin/bash # installation location if [ -z $1 ];then prefix=~/QPCPlatform else prefix=$1 fi echo "installation prefix:"$prefix if [ ! -d $prefix ];then mkdir $prefix else echo "installation location already exist.installation terminated." exit fi # copy files cp -r ./configure $prefix/configure cp ...
true
c4867142c180b405ad425c742ff271c3da30b377
Shell
CV-IP/ebms_regression
/detection/util_scripts/currentjobs
UTF-8
1,257
3.5
4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash columnize2 () { indent=$1; collen=$(($(tput cols)-indent-10)); keyname=$2; value=$3; base_indent=$indent while [ -n "$value" ] ; do #printf "%-${base_indent}s %-${indent}s\n" "$keyname" "${value:0:$collen}"; printf "%-${indent}s %s\n" "$keyname" "${value:0:...
true
64958dc8a7adb75f6d3e14af06aaed05de8819de
Shell
JoaoManoel/final-paper
/terraform/templates/user-data-client.tpl
UTF-8
2,845
3.5
4
[ "MIT" ]
permissive
#!/bin/bash set -e export LC_ALL="en_US.UTF-8" export LC_CTYPE="en_US.UTF-8" export AWS_ACCESS_KEY_ID="${access_key}" export AWS_SECRET_ACCESS_KEY="${secret_key}" export AWS_DEFAULT_REGION="${aws_region}" BUCKET_NAME="${bucket_name}" MICROSERVICE_COMMAND="${microservice_command}" DATACENTER="${datacenter}" ENCRYPT="${...
true
968614a2ab5d1033809a434dd0caf00cc3922007
Shell
mulhod/suicide_lyrics
/project3/word_classes/counting_commands_lists/MPQANeutWordTokCount.sh
UTF-8
23,977
2.703125
3
[]
no_license
#!/bin/bash #Related regexes for making this type of file: #1. find "^" and replace with "count=\$\(\(\$count\+\$\(egrep -io '\\b" #2. find "$" and replace with "\\b' "\$f" \| wc -w\)\)\)" # Count the # of MPQA neutral word tokens for f in /home/mulhollandm2/Project2/by_song/lemmatized/non-suicide/*.txt do count=0 c...
true
f938ad2f6543135b83c5288c37529f9efad091cc
Shell
johndpope/spy611scripts
/script/backtests/bt_x_dp.bash
UTF-8
1,462
3.65625
4
[]
no_license
#!/bin/bash # ~/spy611/script/backtests/bt_x_dp.bash # Demo: # ~/spy611/script/backtests/bt_x_dp.bash 30 gbm # This script is called by: # ~/spy611/script/backtests/backtests_x.bash # This script assumes my logistic regression scripts # ran a short while ago and the data I need is # in a table called my_vectors. #...
true
9a6580ada161ee0a5efddb9c58a0c443037b51ab
Shell
youkchan/golang_webapp_dir_maker
/create_go_webapp_skelton.sh
UTF-8
336
3.5625
4
[]
no_license
#!/bin/sh echo -n 'Input a project name you want to create : ' read project_name if [ -e ./${project_name} ]; then echo "The project [ ${project_name} ] already exists" else mkdir -p ${project_name}/cmd/${project_name} mkdir -p ${project_name}/web mkdir -p ${project_name}/assets echo "${project_name} projec...
true
5d9469f36c3d02b4d74f59efac588e1348161e67
Shell
FultonBrowne/fksh
/test.sh
UTF-8
1,034
2.890625
3
[]
no_license
#!./fksh echo " _______ ___ _ _______ __ __ "; echo "| || | | || || | | |"; echo "| ___|| |_| || _____|| |_| |"; echo "| |___ | _|| |_____ | |"; echo "| ___|| |_ |_____ || |"; echo "| | | _ | _____| || _ |"; echo "|___| |___| |_||_______||__| |__...
true
2ece71a1b9716c5c4656afb3b9d19842e4155ca4
Shell
kdave/shcripts
/ffmpeg/ff-check
UTF-8
322
3.578125
4
[]
no_license
#!/bin/sh fn="$1" if [ -z "$fn" ]; then echo "ERROR: usage: $0 file" exit 1 fi if ! [ -f "$fn" ]; then echo "ERROR: file $fn does not exist" exit 1 fi echo "CHECKING: $1" #ls -ld "$1" ffmpeg -hide_banner -v error -i "$fn" -map 0:1 -f null - if [ $? = 0 ]; then echo "RESULT: ok" else echo "there were errors" f...
true
e10ae757928f40d15bf490646c5f433f63a8a43e
Shell
jpalmer/dotfiles2
/install.sh
UTF-8
2,102
3.015625
3
[]
no_license
#!/bin/bash #safe mode set -euo pipefail IFS=$'\n\t' git submodule update #install yaourt - first pkgquery if [ -n "$(pacman -Qs package-query)" ] then echo "package-query installed - skipping" else curl https://aur.archlinux.org/packages/pa/package-query/package-query.tar.gz > pkgquery.tar.gz tar -xvf pkgquery.tar....
true
68370b65d66ee642869a5d30d2edc8d4ebb89391
Shell
yaroslav-007/nginx-install
/install-nginx.sh
UTF-8
213
2.828125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash export DEBIAN_FRONTEND=noninteractive # Check if nginx is installed # install if not which nginx &>/dev/null || { sudo apt-get update sudo apt-get install -y nginx sudo apt-get clean }
true
7d4319f821dc65551f3c8a7db19d0eb2ab36ccd9
Shell
Smolations/myman
/functions/myman_parse.sh
UTF-8
3,282
4.21875
4
[]
no_license
## /* @function # @usage myman_parse <command-name> # # @output true # # @description # This script searches the command indexes for the specified command. # Once the command is found, the help file is output to the screen # with a colored interface. If more than one doc is found for any given # <comman...
true
45d3b7ba8092e79c6ad097eaa06fdc053eef7c96
Shell
SL-KEN/ADSCRIPT
/bash/lab2/picstats.sh
UTF-8
272
2.921875
3
[]
no_license
#!/bin/bash echo -n "In the ~/Pictures directory, the number of files is " find ~/Pictures -type f |wc -l echo -n "Those files use " du -h ~/Pictures |awk '{print $1}' echo "The 3 largest files are:" echo "========================" du -h ~/Pictures/* |sort -h |tail -3
true
405d5e0e4ae46904d3fb2875afd21a92e7a11700
Shell
colthreepv/apm-agent-nodejs
/test/lint-commits.sh
UTF-8
367
3.484375
3
[ "BSD-2-Clause", "MIT" ]
permissive
#!/usr/bin/env bash set -e # Only run if we're not on a CI system if [[ -z "$CI" ]]; then GIT_BRANCH=`git rev-parse --abbrev-ref HEAD` if [[ "$GIT_BRANCH" == "master" ]]; then # If on master, just test the latest commit commitlint --edit else # If on a branch, test all commits between this branch a...
true
5c63ede3056ebcfc9307d627d28b5fa8cac129be
Shell
coursweb/coursweb.github.io
/jekyll_serve.command
UTF-8
224
2.859375
3
[ "MIT", "CC-BY-SA-3.0", "CC-BY-4.0" ]
permissive
#!/bin/bash # Give this file permission to be executed. chmod u+x jekyll_serve.command should do that cd "$(dirname "$BASH_SOURCE")" || { echo "Error getting script directory" >&2 exit 1 } bundle exec jekyll serve
true
2db0151585f810792172390d571214067f286873
Shell
metemaddar/systemd
/rebuilds/libcanberra/libcanberra.SlackBuild
UTF-8
6,171
3.109375
3
[]
no_license
#!/bin/sh # Slackware build script for libcanberra # Copyright 2010,2011,2012 Robby Workman, Northport, Alabama, USA # All rights reserved. # Copyright 2014 Bart van der Hall, Almere, NL # # Redistribution and use of this script, with or without modification, is # permitted provided that the following conditions ar...
true
4fe32a78f54cbaf3bdfb6e731bb900eca3e598b4
Shell
ironskater/beam
/tmuxbench.sh
UTF-8
276
2.625
3
[]
no_license
#!/bin/bash echo -ne "\033]0;$1\007";tmux #SESSIONNAME="script" #tmux has-session -t $SESSIONNAME &> /dev/null #if [ $? != 0 ] #then #tmux new-session -s $SESSIONNAME -n script -d #tmux send-keys -t $SESSIONNAME "~/bin/script" C-m #fi #tmux attach -t $SESSIONNAME
true
688c2bde876a096881da75721e286ce42573b3d3
Shell
7challa/cassandra-opscenter-ansible
/templates/stopCassandra.sh.j2
UTF-8
1,477
3.78125
4
[]
no_license
#!/bin/sh export JAVA_HOME=/opt/app/{{ jdk_version }} export DSE_HOME=/opt/app/dse export PATH=$JAVA_HOME/bin:$DSE_HOME/bin:$PATH export JMX_PORT=7199 export CASSANDRA_PID_FILE="{{ cassandra_pid_file }}" export NODETOOL_CMD="nodetool -h localhost -p ${JMX_PORT}" disableGossip() { echo "Disabling gossip ...." $NOD...
true
e75dad1e02944f2c818edf8e61a4eeb3a340a6d2
Shell
xia1990/shell_script
/shell_script/get_last_commit.sh
UTF-8
544
2.984375
3
[]
no_license
#!/bin/bash repo forall -c 'git log --pretty=format:"%ad" --date=raw -1 && echo " $REPO_PATH"' > time_path.txt last_time=`awk 'BEGIN {max = 0} {if ($1+0 > max+0) max=$1} END {print max}' time_path.txt` last_path=`grep -n $last_time time_path.txt | awk '{print $3}'` cd $last_path pwd git log -1 cd - #grep '<pro...
true
b0b0e03f7303f82cde290b7a97d9f85ded1144cc
Shell
scheibinger/kafka
/files/kafka_maintenance_at_stop
UTF-8
3,395
3.6875
4
[ "MIT" ]
permissive
#!/bin/bash CO="__consumer_offsets" PC="PartitionCount" RF="ReplicationFactor" KAFKA="/home/kafka" SYNC_STATUS="$KAFKA/etc/syncStatus" BIN="$KAFKA/kafka/bin" LOG="$KAFKA/log/shutdown.log" TMP_DIR="/tmp/kafka" ZK_URL="zookeeper.app.internal" ZK_PORT="2181" BROKERS_ALL_FILE="brokers_all_file" TOPICS_FILE="topics_file" b...
true
f863f975669cc8d1e5ecf10e738f97a96ff8d9b0
Shell
codio-content/Coding_with_Java-File_handling
/tests/gen.sh
UTF-8
191
3.15625
3
[ "MIT" ]
permissive
#!/bin/bash for file in $(ls) do fl=$( sed -e "s@.sh@@g" <<< "$file" ) mkdir $fl cd $fl cp "../test.sh" "$fl.sh" find . "$fl.sh" -exec sed -i "s@new_array@$fl@g" {} \; cd .. done
true
66700d50b2facdb21efbb0133ff93a3e7da07b66
Shell
fquffio/zanichelli-design-system
/internals/scripts/convert_svg_icons.sh
UTF-8
904
3.65625
4
[ "MIT" ]
permissive
#!/bin/bash dir=$1 if [ ! -n "$dir" ]; then echo "folder required" exit fi json='export const icons = { ' for entry in "$dir"/* do path="" id="" data="" path="$(cat $entry | grep 'polygon')" path="$(echo -e $path)" if [ -n "$path" ]; then IFS='"' read -ra arr <<< "$path" # id=${arr[1]} ...
true
248daa9e8df715439737b558a29513895c1c6a55
Shell
schwer-q/continuous-core
/pkg/core/030-bc.sh
UTF-8
231
3.015625
3
[]
no_license
#!/bin/sh - PKG_NAME="bc" PKG_VERSION="1.06.95" PKG_ARCHIVE_EXT="tar.bz2" _build() { ./configure \ --prefix=/usr \ --mandir=/usr/share/man \ --with-readline make } _install() { make install DESTDIR=$DESTDIR }
true
d7a8fa161303b3094bce2c7b7bd75e0a682c5ab6
Shell
petronny/aur3-mirror
/wkhtmltopdf-static1/PKGBUILD
UTF-8
870
2.875
3
[]
no_license
# Maintainer: Marko Vojvodić <marko-v@lugons.org> pkgname=wkhtmltopdf-static1 pkgver=0.11.0 pkgrel=1 pkgdesc="Simple shell utility to convert html to pdf using the webkit rendering engine, and qt (upstream static build)" arch=('i686' 'x86_64') url="http://code.google.com/p/wkhtmltopdf/" license=('GPL3') conflicts=('wk...
true
39ea1a7527c66948b2ccb582334ba1b174cfc022
Shell
farazsth98/ctf-pwnvm
/install.sh
UTF-8
2,367
2.609375
3
[]
no_license
# update sudo dpkg --add-architecture i386 sudo apt-get -y update sudo apt-get -y upgrade # deps sudo apt-get -y install git build-essential sudo apt-get -y install g++-multilib sudo apt-get -y install unzip socat binwalk exiftool imagemagick nmap pngcheck foremost valgrind steghide tree upx sudo apt-get -y install pyt...
true
fb58756a7970b12d8834cb3c8402ae382bdfdb3a
Shell
releasemgn/shurm
/master/deployment/rollout.sh
UTF-8
8,666
3.15625
3
[]
no_license
#!/bin/bash # Copyright 2011-2013 vsavchik@gmail.com . ./getopts.sh # check params # should be specific DC DC=$GETOPT_DC if [ "$DC" = "" ]; then echo rollout.sh: DC not set exit 1 fi P_SRCVERSIONDIR=$1 if [ "$P_SRCVERSIONDIR" = "" ]; then echo rollout.sh: P_SRCVERSIONDIR not set exit 1 fi shift 1 SRVNAME_LIST=$...
true
96ab36701f4db6483350a3fc3fa95b9c9321e7be
Shell
clckwrkbdgr/dotfiles
/bash/prompt.inc.bash
UTF-8
1,423
3
3
[ "MIT" ]
permissive
# Current subshell info: parent processes, shells, terminals etc. . "$XDG_CONFIG_HOME/lib/prompt.bash" _PS_in_vim() { [ -n "$VIMRUNTIME" ] && echo "(vim)" } if [ -n "$FIX_SHLVL" ]; then # Resets current shlvl to be treated as zero. Each subshell will start to add 1 level as expected. _DISPLAY_SHLVL=$((SHLVL-FIX_SHL...
true
4745e679f85f901af581c30c1f9709f826e3f48a
Shell
rubixlinux/rubixlinux
/l/sdl/PKGBUILD
UTF-8
3,643
3.15625
3
[]
no_license
# Maintainer: Joshua Rubin <joshua@rubix-os.org> IMAGE=1.2.4 MIXER=1.2.6 NET=1.2.5 TTF=2.0.7 pkgname=sdl pkgver=1.2.9 pkgrel=1 pkgdesc="sdl (Simple DirectMedia Layer library) This is the Simple DirectMedia Layer, a generic API that provides low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL,...
true
2a8bfaf20414acf84e2770eccc00815a6166097f
Shell
blendle/epp
/script/bootstrap
UTF-8
562
3.40625
3
[ "MIT" ]
permissive
#!/bin/bash # script/bootstrap: Resolve all dependencies that the application requires to run. set -e cd "$(dirname "$0")/.." if ! command -v golangci-lint >/dev/null; then if [ -z "${CI:-}" ]; then echo 'You need to install golangci-lint as a dependency, run this command:' echo '$ go get -u github.com/go...
true
4a5e12850e5369a76a5de98ba0019381d753796c
Shell
ioquatix/zonestar-p802q-fan-duct
/airflow/Allrun-mesh
UTF-8
1,017
3.1875
3
[ "MIT" ]
permissive
#!/bin/sh cd ${0%/*} || exit 1 # Run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions # Set application name application=$(getApplication) # Get number of processors to run on nProcs=$(getNumberOfProcessors) \rm -rf 0 # Meshing \cp system/controlDict.mesh system/contr...
true
dd1bbdfa6b90a0f7de1baca377ab7d85ddd935c3
Shell
gen-i/hnt_monitor
/src/services/etl/reward_scale
UTF-8
661
3.265625
3
[]
no_license
#!/usr/bin/env bash set -euo pipefail if [ ${trace} == "true" ]; then set -x fi get_addresses id=etl.reward.scale reward_scale() { log_info "processing data for ${a}" get_reward_scale for p in ${prometheus_pg_host}; do pghost=${p} send_reward_scale done log_debug "hotspot reward scale data:\n\...
true
b0de241a0d053c326bfc2f053011f1ecf8e778a2
Shell
akb89/pyfn
/scripts/flatten.sh
UTF-8
1,162
4.25
4
[ "MIT" ]
permissive
#!/bin/bash source "$(dirname "${BASH_SOURCE[0]}")/setup.sh" show_help() { cat << EOF Usage: ${0##*/} [-h] -f FILE Flatten .conllx file to SEMAFOR .all.lemma.tags file. -h, --help display this help and exit -f, --file FILE absolute path to input .conllx file EOF } is_input_file_set=FALSE while :; ...
true
9438143879f28e954bc54e793b66ee128cd1c51b
Shell
GPUOpen-Drivers/llpc
/docker/update-llpc.sh
UTF-8
687
2.921875
3
[ "MIT", "Apache-2.0", "NCSA" ]
permissive
#!/usr/bin/env bash # Update the driver and clone a specified version of LLPC. # Shared code between docker containers. set -euxo pipefail # Sync the repos. Replace the base LLPC with a freshly checked-out one. cat /vulkandriver/build_info.txt (cd /vulkandriver && repo sync -c --no-clone-bundle -j$(nproc)) git -C /vul...
true
996a962bb940f68243367aa296c68960718ccdcb
Shell
siris0/.dotfiles
/mutt/inbox_bell.sh
UTF-8
725
3.375
3
[]
no_license
#!/bin/bash set -e NOTIFICATION_CACHE=/var/tmp/mutt-notification inbox=$(notmuch search "path:Inbox/new" | wc -l) team=$(notmuch search "path:lists/superbuild-dev/new" | wc -l) github=$(notmuch search "path:github/new" | wc -l) old_notification=$(cat ${NOTIFICATION_CACHE} 2>/dev/null || true) new_notification="i:${i...
true
587953df51de9653af39e3a716a322a3ea4621ed
Shell
aaronaher619/CSE15L-HW
/Scripting Project/hide/hide.sh
UTF-8
13,378
4.09375
4
[]
no_license
#!/usr/bin/env bash # # CSE 15L Scripting Project # # Author: Aaron Hernandez # PID: A12623880 # Login: cs15xajl # Due: June 2 2017 @ 11:59pm # #-------------------------------------------------------------------[ MAN PAGE ] # # NAME # hide - make files hidden within the original directory. # # SYNOPS...
true
3deaff6a0c151ed795c7b445097245eb492ea5b4
Shell
ruamk/carma-base
/rc.carma.functions
UTF-8
194
3.265625
3
[]
no_license
#! /bin/sh -e PIDDIR=/run/carma . /etc/default/carma carma_setup_dirs () { if [ ! -d $PIDDIR ]; then mkdir -p $PIDDIR chown $CARMA_USER $PIDDIR chgrp $CARMA_USER $PIDDIR fi }
true
ab3d82315272f17f6204f2484d179f7689878260
Shell
jtprince/dotfiles
/bin/next-available-port
UTF-8
269
3.171875
3
[ "Unlicense" ]
permissive
#!/bin/bash # requires `telnet` # yay -S inetutils DEFAULT_START_PORT=8100 START_PORT="${1:-$DEFAULT_START_PORT}" for port in $(seq "$START_PORT" 65000); do echo -ne "\035" | telnet 127.0.0.1 $port > /dev/null 2>&1 [ $? -eq 1 ] && echo "$port" && break done
true
b7d092dcdeaf6a8cbf99140716036d8627040260
Shell
dweeezil/junkutils
/zfs/metadata_used.sh
UTF-8
402
2.609375
3
[]
no_license
#!/bin/sh AS=/proc/spl/kstat/zfs/arcstats # arc_meta_used = # metadata_size + # bonus_size + # dnode_size + # dbuf_size + # hdr_size + # l2_hdr_size # egrep '^(metadata|bonus|dnode|dbuf|hdr|l2_hdr)_size ' $AS echo "" grep '^arc_meta_used ' $AS echo -n 'COMPUTED ' egrep '^(metad...
true
bb1d686a05b4fe0569daa6f10b848e57c78f12f2
Shell
kstedman9/seed-silo
/build-docker.sh
UTF-8
1,021
3.75
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -e # Ensure script directory is CWD pushd "${0%/*}" > /dev/null VERSION=$1 if [[ "${VERSION}x" == "x" ]] then echo Missing version parameter - setting to snapshot VERSION=snapshot fi CENTOS_IMAGE=$2 if [[ "${CENTOS_IMAGE}x" == "x" ]] then echo Missing centos image parameter - set...
true
7ce2b067b5367be7b7cee1e2cbb96212e952d6b2
Shell
hergerr/scripting-sandbox
/lab4/ex01.sh
UTF-8
1,774
3.71875
4
[]
no_license
#!/bin/bash # Dane jest drzewo katalogowe D oraz plik P. Należy stworzyć 2 potoki: # # Potok 1: # # – dla każdego dowiązania symbolicznego należy wypisać jego # (lub ewentualnie celu) nazwę (ostatni człon) zaszyfrowaną # dowolnym szyfrem cezara, (3) # – dla każdego katalogu wypisać liczbę jego (bezpośrednich) # u...
true
41d8634e5f1607d89e595eb61efcddd92b44ee2e
Shell
wtsi-hgi/ypip
/.hooks/pre-push
UTF-8
379
3.484375
3
[ "MIT" ]
permissive
#!/bin/bash REPODIR="$(git rev-parse --show-toplevel)" VENV="$REPODIR/venv/bin/activate" # If a virtualenv exists in `venv`, then run the tests before pushing if [ -f "$VENV" ]; then source "$VENV" if ! nose2 -v; then warning="Push cancelled! Use --no-verify to bypass" [ -t 2 ] && warning="\033[0;31m${warn...
true
ffcbf535b40c942143d7ba0a918a43e72c19e3cc
Shell
JapnitS/Bash-File-Manager
/Project01/project_analyze.sh
UTF-8
15,900
3.65625
4
[]
no_license
#!/bin/bash IFS=$'\n' echo Add an argument for the feature read test cd .. abs=$(pwd) cd Project01 if [ $test != 2 ] && [ $test != 5 ] && [ $test != 6 ] && [ $test != 7 ] && [ $test != 8 ] && [ $test != 9 ] && [ $test != 10 ] ; then echo The argument is not correct! Please try again read test fi featur...
true
1179dd8d02dae27e2599b3e723220eeaa0b76adf
Shell
kaltepeter/dotfiles
/shell/bootstrap.sh
UTF-8
455
3.203125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # shell/bootstrap set -o nounset set -o errexit set -o pipefail [[ ${DEBUG:-false} == true ]] && set -o xtrace __dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # shellcheck disable=SC1090 [[ $(command -v k_custom_lib_loaded) ]] || source "${__dir}/lib.sh" # symlink custom scripts status "${...
true
c52ff463192d1ce17a6d8ede087dc9880fc9e32b
Shell
fernandezvara/docker-postfix
/run.sh
UTF-8
1,799
3.171875
3
[]
no_license
#!/bin/bash [ -z "${SERVER_HOSTNAME}" ] && echo "SERVER_HOSTNAME is not set" && exit 1 [ -z "${SMTP_SERVER}" ] && echo "SMTP_SERVER is not set" && exit 1 [ -z "${SMTP_USERNAME}" ] && echo "SMTP_USERNAME is not set" && exit 1 [ -z "${SMTP_PASSWORD}" ] && echo "SMTP_PASSWORD is not ...
true
67cc6772cfe3803c79512ceb1347b92c1f90ae89
Shell
revivre/dotfiles
/.zshrc
UTF-8
7,165
2.78125
3
[]
no_license
# Path to your oh-my-zsh installation. export ZSH=/Users/revivre/.oh-my-zsh # Set name of the theme to load. # Look in ~/.oh-my-zsh/themes/ # Optionally, if you set this to "random", it'll load a random theme each # time that oh-my-zsh is loaded. ZSH_THEME="agnoster" # Uncomment the following line to use case-sensiti...
true
1f6b232d5da962e0dae35736d158a7d3a113a3e3
Shell
ddowl/configs
/setup.sh
UTF-8
207
2.84375
3
[]
no_license
#!/bin/sh CURRENT_DIR=${PWD##*/} # Weak location check if [ $CURRENT_DIR != "configs" ]; then "Please run setup.sh in the checkout directory" exit 1 fi ./setup_submodules.sh ruby establish_symlinks.rb
true
7f43b2d570b6f1605760611e678da988732e2705
Shell
vitorscassiano/learnyoupuppet
/theforeman.sh
UTF-8
473
2.734375
3
[]
no_license
if which foreman-installer > /dev/null 2>&1; then echo 'Keep Calm, TheForeman already installed!' else # Install theforeman echo "Oh GOD! I'm installing TheForeman for you kid..." sudo rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm sudo yum -y install epel-release http://yum.theforeman.org/r...
true
6ca8d163cf4d815212fd61779e7aa3d92daf78c9
Shell
ingydotnet/pegex-testing
/test.sh
UTF-8
277
3.609375
4
[]
no_license
#!/bin/sh set -e if [[ $# -eq 1 ]]; then cat $1 | while read -r line; do hr=$(printf '%*s' 80 ''); echo "${hr// /-}" "$0" "${line%% *}" "${line#* }" done elif [[ $# -eq 2 ]]; then ./test.coffee $1 $2 ./test.pl $1 $2 else echo 'Invalid usage' exit 1 fi
true
d937057ae0a31bb37bdb86d1caeca7bde279ba46
Shell
zombrox/ubuntuPostInstall
/coloriseConsole.sh
UTF-8
4,698
2.75
3
[]
no_license
#!/bin/bash color=31 userColor=32 rootColor=31 atColor=31 hostColor=31 wdColor=34 dollarColor=32 sharpColor=31 echo -e "# Simple Colours" while [ $color -le 36 ] do echo -e "[\e["$userColor"muser\e[0m\e[1;"$atColor"m@\e[0m\e["$hostColor"mhost\e[0m \e[1;"$wdColor"m/work/dir/\e[0m]\e["$dollarColor"m$\e[0m" echo -en "[...
true
9b7740163bc2c90973ff60a141bc9c7549c73e55
Shell
lisvalver/trybe-exercises
/my-shell-scripts/exercicio6.sh
UTF-8
273
2.90625
3
[]
no_license
#!/bin/bash CAMINH0=$1 echo $CAMINHO if [ -d $CAMINHO ] then echo 'É um diretório' elif [ -f $CAMINHO ] then echo 'É um arquivo' else echo 'Outro tipo de arquivo' fi #/home/lisvalver/Documentos/Trybe/Shell_Script/video/video.txt
true
1cd826b0d2c0445f0f3a6d984424baba6fda3532
Shell
petronny/aur3-mirror
/coffeecoin-qt/PKGBUILD
UTF-8
1,458
2.8125
3
[]
no_license
# This is an example PKGBUILD file. Use this as a start to creating your own, # and remove these comments. For more information, see 'man PKGBUILD'. # NOTE: Please fill out the license field for your package! If it is unknown, # then please put 'unknown'. #Maintainer gee #Based of primecoin-qt by Daniel Spies pkgname...
true
d2cc7cd94338db8de842ea8eb29d88ab07ae5666
Shell
jirevwe/mars-rover-kata
/run.sh
UTF-8
99
2.546875
3
[]
no_license
#! /bin/bash build(){ docker build -t rover . } run() { docker run -it rover } build run
true
d47d89f773f94f6d8214204af4ac40a49ce300bb
Shell
Simone-Dominico/array_database_teste
/array_test/testing/Savime/numberofchunks/run_ran_50.sh
UTF-8
1,228
2.578125
3
[]
no_license
#!/bin/bash var=$1 for i in {1..5} do case $var in 100) #query (time pcm -r -csv=results$i.saida -- savimec 'scan(subset(sis, trial, 0, 50, x, 0, 100, y, 0, 300, z, 0, 300));') >> ./times$i.txt 2>&1 ;; 1000) #query (time pcm -r -csv=results$i.saida -- savimec 'scan(subset(sis, trial, 0, 500,...
true
28e9f3652ef4d83e39915009a3cf9777571b7030
Shell
gpz500/sysutils
/monsterino/backup_sda
UTF-8
364
3.390625
3
[]
no_license
#!/bin/bash DEST_DISK=$(readlink -e /dev/disk/by-id/wwn-0x50014ee201cdb8c6) if [ -n $DEST_DISK ]; then weresync --root-partition 1 --bootloader grub2 --verbose /dev/sda $DEST_DISK WERESYNC_EXIT_STATUS=$? for n in ${DEST_DISK}?; do umount $n; done exit $WERESYNC_EXIT_STATUS else echo "ERROR: destin...
true
a2bd79aeaa761639a7ea9d0aa3339c29e89b5e4e
Shell
MorningCoffee/quick_repo
/run_discovery.sh
UTF-8
536
3
3
[]
no_license
#!/bin/bash echo "Checking dependencies..." if [[ "$(ruby -e 'print RUBY_VERSION')" == *The* ]] then sudo apt-get install ruby1.8 ruby1.8-dev irb rdoc ri fi if [[ "$(gem --version)" == *The* ]] then sudo apt-get install rubygems fi if [[ "$(gem list)" != *json* ]] then sudo gem install json_pure fi i...
true
1637d842c9c85c9f7cf790a0d1f9e2c37e1b5515
Shell
sharadgupta27/SHARAD3d
/bashscripts/batch_proj_geotab.sh
UTF-8
529
3.125
3
[]
no_license
#!/bin/bash folder=$1 cd $folder for i in $( ls *geom.tab ) do echo $i nbase=`echo $i | cut -d. -f1` echo $nbase awk -F, '{print $4" "$3}' $i > $i.tmp gdaltransform -s_srs '+proj=longlat +a=3396190 +b=3376200 +no_defs' -t_srs '+proj=stere +lat_0=-90 +lat_ts=-90 +lon_0=0 +k=1 +x_0=0 +y_0=0 +a=3396000 +b=3396000 +units...
true
21973c573f2ba90b7563b774c45bf2d1189e212d
Shell
igakigongo/unix_guessing_game
/guessinggame.sh
UTF-8
618
4.25
4
[]
no_license
#!/usr/bin/env bash # get total number of files in current directory # does not include hidden files # does not traverse sub_directories function get_files_count { echo $(ls -l | egrep "^-" | wc -l) } echo -n "Guess the number of files in the current directory: " files_count=$(get_files_count) while read guess ...
true
3d3d226fa8fea8ca44f9f6940222dabe8469f3c9
Shell
Tan-Shadow/dotstow
/spectre/waybar/.config/waybar/get_media.sh
UTF-8
393
2.90625
3
[ "Unlicense", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
#!/usr/bin/env bash media=$(playerctl -p spotify metadata -f "{{artist}} - {{title}}") player_status=$(playerctl -p spotify status) if [[ $player_status = "Playing" ]] then song_status=' ' echo -e "$song_status $media" elif [[ $player_status = "Paused" ]] then song_status=' ' echo -e "$song_status $media...
true
28c036a1ced1ba433131dcba547e3f5be05365f6
Shell
JJK96/dotfiles
/bin/swap
UTF-8
130
2.609375
3
[ "Unlicense" ]
permissive
#!/usr/bin/env bash # Swap two files, i.e. move to each other tmp=$(mktemp) cp "$1" "$tmp" cp "$2" "$1" cp "$tmp" "$2" rm "$tmp"
true
4e3d24b46a0242bdbc2e67ba05517ac829642fd3
Shell
Thomashqy/OpenECE
/ece438/mp2/killNodes.sh
UTF-8
229
2.984375
3
[ "MIT" ]
permissive
#!/bin/bash args="" for node in $@; do proc="$(ps aux | grep "./ls_router ${node} " | grep -v "grep" )" pid=$(echo $proc | sed -r 's/^([^.]+).*$/\1/; s/^[^0-9]*([0-9]+).*$/\1/') #echo $proc #echo $pid $(kill ${pid}) done
true
9195666af60ff1df733e0d12808207fb30d1dec8
Shell
arch-beryllium/usb-file-transfer
/usb-file-transfer
UTF-8
4,053
3.765625
4
[]
no_license
#!/bin/bash # ConfigFS script is taken from postmarketOS # https://postmarketos.org # These are very important, it defines what is the device: deviceinfo_usb_idVendor="0x2717" deviceinfo_usb_idProduct="0x0000" deviceinfo_manufacturer="Xiaomi" deviceinfo_name="Arch Linux ARM" deviceinfo_usb_serialnumber="beryllium" d...
true
b48a046daf1ff04d894acb99be9387d208483b9a
Shell
NationalSecurityAgency/datawave
/contrib/datawave-quickstart/bin/common.sh
UTF-8
12,534
4
4
[ "Apache-2.0" ]
permissive
BIN_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" source "${BIN_DIR}/logging.sh" source "${BIN_DIR}/query.sh" # Upon uninstall, tarballs will be preserved in place by default. # To remove them, use DW_UNINSTALL_RM_BINARIES_FLAG_* DW_UNINSTALL_RM_BINARIES_FLAG_LONG="--remove-binaries" DW_UNINSTALL_RM_BINARI...
true
8407ec3f8a39c8f51b1c1dfd75c1dde1fce1e61e
Shell
Piinks/codelabs
/flutter_ci_script_stable.sh
UTF-8
1,284
3.546875
4
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash set -e -o pipefail if [[ -n "$(type -t flutter)" ]]; then : ${FLUTTER:=flutter} fi echo "== FLUTTER: $FLUTTER" FLUTTER_VERS=`$FLUTTER --version | head -1` echo "== FLUTTER_VERS: $FLUTTER_VERS" # plugin_codelab is a special case since it's a plugin. Analysis doesn't seem to be working. pushd ...
true
b705977fefeb9ac3d2f9ac52cfb4b123f97380fb
Shell
yuzhenpeng/wgasv
/cactus/rmask.sh
UTF-8
1,101
3.8125
4
[]
no_license
#!/bin/bash # take a cactus input seqfile and repeatmask every sequence and print out a new seqfile # usage() { # Print usage to stderr exec 1>&2 printf "Usage: $0 [OPTIONS] <SEQFILE> <OUT-DIR>\n" printf "Arguments:\n" printf " SEQFILE: Cactus seqfile containing seqfile to mask\n" printf " OUT-D...
true
fee794ef2283789e4a1cc1b3e60703cce6eb5159
Shell
OriHoch/data4dappl
/db/backup-cron.sh
UTF-8
289
2.609375
3
[ "MIT" ]
permissive
echo "Setting up backup cron: ${BACKUP_CRONLINE}" &&\ mkdir -p /db-backup-crontabs &&\ echo "${BACKUP_CRONLINE} bash /db-scripts/backup.sh" > /db-backup-crontabs/root [ "$?" != "0" ] && echo failed to initialize db backup cron && exit 1 exec crond -f -L /dev/stdout -c /db-backup-crontabs
true
fa9490b38865ca29f163bc29b378dd9c196e1bbb
Shell
jimrenwick/peach-sale
/pipeline/pickup/public.sh
UTF-8
967
2.75
3
[]
no_license
#!/bin/bash data=data/peach_sales-2017-09-12_21-03.csv.orig payments=data/peach_sales-payments-2017-09-12_21-03.csv.orig export DELIMITER=$(tochar 0xfe) keys=(email customer_name payment_status order_total telephone note_for_staff) vals=(quantity) keys_s="$(echo ${keys[@]} | tr ' ' ,)" vals_s="$(echo ${vals[@]} | tr...
true
68d6b2d28e81df661b4d0c24cd2331fd961099a1
Shell
stoltzstrop/ppar_masters
/adv_scripts/runXTimes.sh
UTF-8
386
2.984375
3
[]
no_license
#!/bin/bash # simple script to run a single advanced version ITERATIONS number of times BIN=../../adv_bin SCRIPTS=../../adv_scripts DIR=../adv_src/leggy_cuda ITERATIONS=10 cd $DIR make clean rm -f $BIN/*.cl # on some platforms, linking does not work from makefiles, so force it make ln -s $(pwd)/*.cl $BIN for ITER...
true
091430458735cde6d077621301f133aa302b7ffd
Shell
JakeHuneau/cis505-compressing-doubles
/decompressBeefGorilla
UTF-8
162
2.515625
3
[]
no_license
#!/bin/bash for f in ./output_data/Beef/*.gorrilla; do echo "starting" $(basename $f) ./target/release/compressing_doubles gorilla decode $f $f.decoded; done
true
10e4c42a85cd56fb78125e712f5b7b7e2a7f76ea
Shell
ADARA-Neutrons/adara
/PVStreamer/pvsd/confck.pvsd
UTF-8
14,537
3.78125
4
[ "BSD-3-Clause" ]
permissive
#!/bin/bash # # PVSD Config Check # # Compare Git Repo Config Files to Deployed... # # For Cron Usage - Source Home Shell Environment: if [ -e $HOME/.bash_profile ] ; then source $HOME/.bash_profile fi # Note: to ensure proper file permissions for captured system files, # please set your shell "umask" as follows bef...
true
99f59357ba52800f4a45f111a1370a561941e712
Shell
lmacc/shell-scripting
/Leslie McCarthy Assignment 1.txt
UTF-8
2,656
4.09375
4
[]
no_license
#!/bin/bash # Shell program # Leslie McCarthy DNET 2 # Commented version. # Assignment 1 echo -n "Please enter the name of the source directory: " read sdir if [[ -z "${sdir}" ]] # Check to see if nothing has been entered by the user. then echo "${0}:ERROR: No directory name entered." 1>&2 # we want to send...
true
fd7aabac19509566fbbe98bf4742aee54f4ad28c
Shell
joaobb/MahLinux
/my_linux.sh
UTF-8
1,399
3.359375
3
[]
no_license
#!/bin/bash echo === Installing ZSH === sudo apt install zsh sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" echo === Setting ZSH up === echo ZSH_THEME=aussiegeek >> ~/.zshrc echo "plugins=( git zsh-autosuggestions )" >>~/.zshrc echo " # -- General --...
true
bb2eecfb6fe86e20d72515be698c296bb50f8c63
Shell
mudler/catapult
/scripts/buildir.sh
UTF-8
461
2.75
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -x # duplicated in s/include/common.sh, needed for bootstrapping: export CLUSTER_NAME=${CLUSTER_NAME:-kind} export BUILD_DIR=build${CLUSTER_NAME} mkdir "$BUILD_DIR" . scripts/include/common.sh mkdir bin cat <<HEREDOC > .envrc export CLUSTER_NAME=${CLUSTER_NAME} export KUBECONFIG="$(pwd)"/kubeconfig ...
true
be5a339a9e987444906ea669806b7b1ff1e8cf8e
Shell
simonshi2016/terraform-icp-ibmcloud
/templates/icp-ee/scripts/generate_wdp_conf.sh
UTF-8
2,344
3.578125
4
[]
no_license
#!/bin/bash cluster_lb=$1 proxy_lb=$2 cluster_domain=$3 ssh_key=$4 nfs_mount=$5 #server:/data function getIPs { for i in $(cat /opt/ibm/cluster/hosts); do if [[ $i =~ [A-Za-z]+ ]];then master_count=-1 worker_count=-1 if [[ $i =~ master ]];then master_count=0 fi i...
true
f73993821ff537875a5dd8d45d87eca5c00c4415
Shell
guyingyan/board-installer-1
/ansible_k8s/e.sh
UTF-8
1,682
3.15625
3
[]
no_license
#/ansible_k8s/ssh.sh ${PASS} ${SSH_IP} log_name=${LOG_TIMESTAMP}.log log_dir=/tmp/log hosts_dir=/tmp/hosts_dir log=${log_dir}/${log_name} echo ${NODE_PASS} >> ${log} echo ${NODE_IP} >> ${log} passwordlist="${NODE_PASS}" iplist="${NODE_IP}" arrpasswd=(`echo $passwordlist | tr '_' ' '`) arrip=(`echo $iplist | tr '_'...
true
ad89cb86e5abd77b1cb8bb4cee227947f63205fa
Shell
jimorie/op5-vagrant
/provision.sh
UTF-8
4,735
2.859375
3
[ "Unlicense", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/usr/bin/env bash OP5VV="0.2" TIMES='date +%T' PREFX="[v.$OP5VV]" timedatectl set-timezone Europe/Stockholm &>/dev/null # timedatectl list-timezones timedatectl --adjust-system-clock &> /dev/null ln -fs /usr/share/zoneinfo/Europe/Stockholm /etc/localtime ### MANUAL VERSION SELECTION BELOW -- NOT REQUIRED! ### IF YO...
true
840c2cf1b7867ec04431008f2d630518b8f26076
Shell
cornerman/dotfiles
/.shfunctions/functions.sh
UTF-8
1,829
3.578125
4
[]
no_license
# open program o() { nohup xdg-open $@ > /dev/null 2>&1 & } # check for running processes any() { if [[ -z "$1" ]] ; then echo "usage: any <keyword>" return 1 else ps aux | grep -i --color=auto $1 fi } #will make an iso mkiso() { echo " * Volume name " read volume e...
true
c28b19621f055953043b8f6dc8fbfb6075bca4d6
Shell
tristangrichard/macSetup
/install/functions.sh
UTF-8
4,493
4.125
4
[]
no_license
#!/usr/bin/env bash # Create a new directory and enter it function mkd() { mkdir -p "$@" && cd "$_"; } # Change working directory to the top-most Finder window location function cdf() { # short for `cdfinder` cd "$(osascript -e 'tell app "Finder" to POSIX path of (insertion location as alias)')"; } # Create a .tar...
true
e72c10ca5acad07c7fed201cb4bf40aa2bc09ba5
Shell
Newspark-UTN/docker-utils
/scripts/front.bash
UTF-8
1,202
4.0625
4
[]
no_license
#!/bin/bash function run_command () { out "<32;1>Running command: $*<0>" docker-compose run --rm front sh -c "${*}" out "<33;1>Command finished<0>" } function npm () { run_command "npm ${*}" } function logs () { docker logs -f front } function restart () { docker-compose stop front && docker...
true
7045b39b1d2d2c1341a619a971a21a7314e6fd2a
Shell
khasm/seasky
/build_dockers
UTF-8
5,202
3.84375
4
[]
no_license
#!/bin/bash function ramcloud { cd docker-ramcloud if [ "$?" != 0 ]; then echo "RamCloud docker not found or not a directory. Skipping." return fi echo "Building ramcloud docker" $DOCKER build -t ramcloud . cd .. } function depsky { cd docker-depsky if [ "$?" != 0 ]; th...
true
7a6314ae2dd20b40736bda91de3e72b6ae3ec755
Shell
CarlFK/netv2
/software/pcie/kernel/init.sh
UTF-8
988
3.75
4
[]
no_license
#!/bin/sh # TODO: use udev instead FOUND=$(lsmod | grep netv2) if [ "$FOUND" != "" ] ; then echo "Module already installed" exit 0 fi INS=$(insmod netv2.ko 2>&1) if [ "$?" != "0" ] ; then ERR=$(echo $INS | sed -s "s/.*netv2.ko: //") case $ERR in 'Invalid module format') set -e echo...
true
e62c5dc582b9223527d23885de8583af3973ce5b
Shell
DataMedSci/au-fluka-tools
/usrtrackav
UTF-8
173
2.640625
3
[]
no_license
#!/bin/bash for fort in "$@" do ls *.${fort} > ___data_list echo " " >> ___data_list echo usrtrk_${fort} >> ___data_list ustsuw < ___data_list rm ___data_list done
true
91bc9ee39c08d0740ea789535474fe9724583d13
Shell
cdxvirt/ceph-docker
/ceph-releases/luminous/ubuntu/16.04/daemon/cdx/osd.sh
UTF-8
10,858
3.546875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash source cdx/crush.sh function check_osd_env { check_docker_cmd if [ -n "${OSD_MEM}" ]; then OSD_MEM=(-m ${OSD_MEM}) else OSD_MEM=() fi if [ -n "${OSD_CPU_CORE}" ]; then OSD_CPU_CORE=(-c ${OSD_CPU_CORE}) else OSD_CPU_CORE=() fi etcdctl "${ETCDCTL_OPTS[@]}" "${KV_TLS[@]}" mk ...
true
cb1a2c3a851d9ddd73e04823d216b19d0fe0e0a5
Shell
jomof/CppBuildCacheWorkInProgress
/agp-7.1.0-alpha01/tools/base/bazel/stats.sh
UTF-8
1,375
3.140625
3
[ "Apache-2.0" ]
permissive
readonly TARGETS="//tools/... + //prebuilts/studio/... + //prebuilts/tools/..." readonly TESTS="tests(${TARGETS})" readonly MANUAL="attr(\"tags\", \"manual\", ${TESTS})" readonly ENABLED="${TESTS} except ${MANUAL}" readonly DISABLED_ON_WINDOWS="attr(\"tags\", \"no(_test)?_windows\", ${ENABLED})" readonly ENABLED_ON_WIN...
true
ca1c139ecfa166359bda5609ce1c1e484afff621
Shell
florinnichifiriuc/bash-utils
/bin/install_php_server.sh
UTF-8
476
2.796875
3
[]
no_license
#!/usr/bin/env bash location="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" source $location'/../src/repositories.sh' source $location'/../src/packages.sh' source $location'/../src/colors.sh' source $location'/../src/modules.sh' declare log_file="install_server.log" declare -a repositories=("${_php_server_repo...
true
f8db8297783b10b6d9a05c6c23a1ce150a29696f
Shell
ogonbat/MineroxFromScratch
/scripts/linux.sh
UTF-8
335
2.90625
3
[]
no_license
function toolchain(){ make mrproper make INSTALL_HDR_PATH=dest headers_install cp -rv dest/include/* /tools/include } function basesystem(){ make mrproper make INSTALL_HDR_PATH=dest headers_install find dest/include \( -name .install -o -name ..install.cmd \) -delete cp -rv dest/include/*...
true
72475b41a092dad404d9e689d29d3a9001f03ddc
Shell
hobbitalastair/backhand
/src/bh-release.sh
UTF-8
985
3.71875
4
[ "MIT" ]
permissive
#!/usr/bin/sh # # bh-release: release a request for a service. # # Author: Alastair Hughes # Contact: hobbitalastair at yandex dot com SERVICE_DIR="/usr/lib/backhand" SERVICE_RUNDIR="/run/backhand" if [ $# != 1 ]; then printf "usage: bh-release <service>\n" 1>&2 exit 1 fi service="$1" service_name="${servi...
true
365186055ef9dd722fbf553b6bcdd57d50dff3bd
Shell
AndriiBalaban/docker-aether3
/shell/artisan.sh
UTF-8
434
2.828125
3
[]
no_license
#!/usr/bin/env bash echo Hi! I\'m a artisan script runnner. echo please enter the artisan COMMAND. echo php artisan [COMMAND] echo Examples: echo - make:migration MigrationName echo - autocomplete:generate echo - permissions:generate printf "php artisan " read command echo php artisan ${command} docker exec a...
true
c9d0dfaae8c3e5ad96b37be597e478675f690875
Shell
luismilanooliveira/dotfiles
/bootstrap.sh
UTF-8
227
2.578125
3
[]
no_license
#!/bin/bash # curl -L http://install.ohmyz.sh | sh # curl -o - https://raw.githubusercontent.com/begriffs/haskell-vim-now/master/install.sh | bash programs = zsh vim tmux for i in */.[a-z]*; do ln -s "dotfiles/$i" ~/ done
true