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
e8c4fa6023f7dfc4b79dab73080d4d59501e934b
Shell
giangdo/su_dung_xterm
/.bashrc
UTF-8
2,845
3.078125
3
[]
no_license
# Sample .bashrc for SuSE Linux # Copyright (c) SuSE GmbH Nuernberg # There are 3 different types of shells in bash: the login shell, normal shell # and interactive shell. Login shells read ~/.profile and interactive shells # read ~/.bashrc; in our setup, /etc/profile sources ~/.bashrc - thus all # settings made here ...
true
8dbf73d38c41a9199b77e75023e328281d8adfbb
Shell
heiqiu2017/-Appium-
/start.sh
UTF-8
197
2.59375
3
[]
no_license
#!/bin/bash rm test.log if [ -d ./errorScreenShot ] then echo "errorScreenShot directory is exist !" else mkdir errorScreenShot fi rm ./errorScreenShot/*.png python startTest.py | tee test.log
true
1155f657bc57eb9dbc3cfed810d93becf7676f20
Shell
FengyunPan/istio
/broker/bin/linters.sh
UTF-8
1,223
2.875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -ex SCRIPTPATH=$( cd "$(dirname "$0")" ; pwd -P ) $SCRIPTPATH/install_linters.sh $SCRIPTPATH/init.sh buildifier -showlog -mode=check $(find . -type f \( -name 'BUILD' -or -name 'WORKSPACE' -or -wholename '.*bazel$' -or -wholename '.*bzl$' \) -print ) NUM_CPU=$(getconf _NPROCESSORS_ONLN) echo "Start ...
true
1d31773c5327a759190b6f0bd99e5d1a36aba5df
Shell
NOAA-AOML/GPLOT
/shell/get_ATCF.sh
UTF-8
3,720
4.0625
4
[]
no_license
#!/bin/sh # This script grabs decks from the NHC ATCF # Options include: # DECK_TYPE: realtime --> Download all Decks from the real-time directories. # Includes subdirectories "aid_public" for A-Decks # and "btk" for B-Decks. # archive -->...
true
b87bd8e0e6c71bbd1f11a4a76ffe3cc5a98507c5
Shell
turnopil/DevOps
/packer-centos-7/scenario.sh
UTF-8
3,336
3.625
4
[]
no_license
# Make sure we run with root privileges if [ $UID != 0 ]; then # not root, use sudo # $0=./script.sh # $*=treat everything as one word # exit $?=return in bash echo "This script needs root privileges, rerunning it now using sudo!" sudo "${SHELL}" "$0" $* exit $? fi # get real username if [ $UID = 0 ] && [ ! -z "$SU...
true
2e5fc7a92a56708bb96c077a1fc55653cd7ff296
Shell
fengjixuchui123/SourecCoding
/maintenanceToolKit/src/main/resources/bin/collectLog.sh
UTF-8
847
3.859375
4
[]
no_license
#!/bin/bash #To collect the HPBA's logs #The logsConig.sh is a shell to config the path of log source ./logsConfig.sh #Creat the folder to store the logs Logs_Path=$HPBA_HOME/maintenance/log allLog_Path=$HPBA_HOME/maintenance if [ ! -x $Logs_Path ] then mkdir -p $Logs_Path fi #collect the logs to "maintenance/log" ...
true
069b966f2b7517de34a5612b1a41c3bb72aeb165
Shell
amisr/overspread
/src/Madrigal/cgi-bin/looker.cgi
UTF-8
44,801
3
3
[]
no_license
#!/bin/sh # The madtclsh path is longer than 32 characters. So, we take advantage # of the fact that a backslash continues a comment line in tcl \ exec /Users/mnicolls/Documents/Work/Madrigal/bin/madtclsh "$0" ${1+"$@"} # $Id: looker.cgi,v 1.11 2008/07/29 15:47:04 brideout Exp $ lappend auto_path /Users/mnicolls/Docu...
true
3e544d4969e8bb5724af209ad03c4fa549499283
Shell
war49/ansible-tower
/main.sh
UTF-8
3,056
3.625
4
[]
no_license
# # Bash script to automate Ansible Tower Deployment # Suwardi - wardilee@icloud.com # #!/bin/bash # Define variables YML_CREATE_ORG_FILE=/var/lib/awx/projects/Test-yml/org_crt.yml YML_CREATE_INVPRJ_FILE=/var/lib/awx/projects/Test-yml/inventory_proj.yml YML_PROJ_DIR=/var/lib/awx/projects ORGANIZATION_NAME=ORG-49 IN...
true
40b8b8904f2890d6158c98f8d9d9a40a02550eaa
Shell
zvakanaka/photo-gal
/scripts/create_webs.sh
UTF-8
402
3.65625
4
[ "MIT" ]
permissive
# $1 album, $2 photo_dir if [ -z $1 ]; then echo "ERROR: Must supply dirname" exit 1; fi if [ -z $2 ]; then photo_dir='../photo' else photo_dir=$2 fi echo $(date) Creating webs for $1 from $3 >> scripts/log.txt cd $photo_dir/$1 && mkdir .web; for f in *.[jJ]*; do cwebp $f -resize 0 1024 -q 70 -short -o .web/...
true
5fbbec9dff1c30682c15643f8891883e44ffd15b
Shell
mpascucci/AST-image-processing
/tests/benchmark/benchmark.sh
UTF-8
1,721
4.21875
4
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
#!/bin/bash # Optionally builds, and runs benchmark.py. # must be run from improc/tests/benchmark directory. # "usage: sh benchmark.sh [-nb] [args_to_benchmark.py]" # -nb or --nobuild : Skip build steps and just run benchmark.py" # LD_LIBRARY_PATH will be updated only within the scope of this script. # This is to av...
true
fbff408b497b15495e197e06bfedb130b2f9e02d
Shell
slimm609/checksec.sh
/src/functions/aslrcheck.sh
UTF-8
2,274
3.453125
3
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash # shellcheck disable=SC2154 # these top lines are moved during build # check for system-wide ASLR support aslrcheck() { # PaX ASLR support if ! (grep -q 'Name:' /proc/1/status 2> /dev/null); then echo_message '\033[33m insufficient privileges for PaX ASLR checks\033[m\n' '' '' '' echo_m...
true
2755242af72fc0ed5caac13d76cd5f7aa3e6fd0d
Shell
ovieu/docker-rails-app
/actionhooks/runtests.sh
UTF-8
447
2.703125
3
[]
no_license
#!/bin/bash log="/tmp/runtests.log" source /opt/actionhooks/docker_config.sh . curdate=`/bin/date` echo "" > $log echo "Latest Run Tests Event $curdate" >> $log echo "" >> $log # Custom Actions for the type of application: pushd /opt/webapp >> $log bundle exec rake test TEST=test/controllers/hello_world_test.rb...
true
c56ba6d07b0d0d887190b2c6ef35214b9dc8502f
Shell
JudyBee/twitter-text-sentiment-analysis
/utils/embeddings/word2vec/run_word2vec.sh
UTF-8
821
3.6875
4
[]
no_license
#!/bin/bash SIZE="full" PREPROCESS="none" DATA="data" EMB="data/embeddings" function fail { echo >&2 $1 exit 1 } while [[ $# -gt 0 ]] do key="$1" case $key in -s|--size) SIZE="$2" shift shift ;; -p|--preprocess) PREPROCESS="$2" shift shift ;; -d|--dataDir) DATA="$2"...
true
e7119924344d6374810285cb26f8d544adbcdaa6
Shell
mamachanko/pomodoro
/feature-tests.sh
UTF-8
199
2.53125
3
[ "MIT" ]
permissive
#/usr/bin/env bash set -ex cd build python -m SimpleHTTPServer 1234 &> /dev/null & SERVER_PID=$! cd .. cd feature-tests TEST_URL="localhost:1234" ./gradlew clean build cd .. kill "${SERVER_PID}"
true
12446f22fb3db69ae4ad37b250f58a27a91d342b
Shell
radtek/MultiverseClientServer
/multiverse server/multiverse-server/multiverse/bin/mvm
UTF-8
583
3.09375
3
[ "MIT" ]
permissive
#!/bin/sh if [ "X$MV_HOME" = "X" ]; then export MV_HOME=`dirname $0`/.. fi MVJAR="$MV_HOME/dist/lib/multiverse.jar" MARSJAR="$MV_HOME/dist/lib/mars.jar" GETOPT="$MV_HOME/other/java-getopt-1.0.11.jar" if [ $(uname -o) == "Cygwin" ]; then MV_CLASSPATH="$MVJAR;$MARSJAR;$GETOPT;$JAVA_HOME/lib/tools.jar" else ...
true
0207d4bc1a2cd2be8197c17c2d6724c998b7a0c4
Shell
Akash-Patil-12/Shell_programing
/Dictionary/dictionary-problem-1.sh
UTF-8
557
3.484375
3
[]
no_license
#!/bin/bash -x declare -A Dice range=$((6-1+1)) check=0 flag=1 while [[ $check -ne 1 ]] do no=$(($(($RANDOM%$range))+1)) Dice[$no]=$((${Dice[$no]}+1)) if [[ ${Dice[$no]} -eq 10 ]] then check=1 fi done echo "Keys : " ${!Dice[@]} echo "Value : " ${Dice[@]} max=${Dice[1]} min=$max for ((i=1;i<=6;i++)) do if...
true
4ab7c05ca8d6d7ff954036965b46006df78843e2
Shell
dalehenrich/GsDevKit_home
/bin/utils/cleanSharedPharoDirectory
UTF-8
946
3.46875
3
[ "MIT" ]
permissive
#! /bin/bash #========================================================================= # Copyright (c) 2015 GemTalk Systems, LLC <dhenrich@gemtalksystems.com>. #========================================================================= echo "=================" echo " GsDevKit script: $(basename $0) $*" echo " ...
true
254ef896e1fbe630f802573fe034625346ec565b
Shell
virtualparadox/BBMap
/sh/unicode2ascii.sh
UTF-8
1,091
3.828125
4
[ "BSD-3-Clause-LBNL" ]
permissive
#!/bin/bash usage(){ echo " Written by Brian Bushnell Last modified October 17, 2017 Description: Replaces unicode and control characters with printable ascii characters. WARNING - this does not work in many cases, and is not recommended! It is only retained because there is some situation in which it is needed. Us...
true
b3693d60ee2dce62521c1ad324edfd4c20ff2306
Shell
travleev/patch-scripts
/patch_get.sh
UTF-8
1,674
4.25
4
[]
no_license
#!/bin/bash if [[ "3" -ne "$#" ]] ; then echo "" echo " Specify original folder, modified folder " echo " and diff file name as command line parameters" echo "" echo " > patch_get.sh ORIG MODIF patch.txt" echo "" echo " ORIG and MODIF must be subfolders of the current f...
true
1e83ca20745bcf4e6685b7fc3471b246920aafcc
Shell
qupb/easyengine
/ci/prepare.sh
UTF-8
292
2.703125
3
[ "MIT" ]
permissive
#!/bin/bash # called by Travis CI if [[ "$TRAVIS_BRANCH" == "develop-v4" ]]; then version=$(head -n 1 VERSION) version="$(echo $version | xargs)" version+="-nightly" echo $version > VERSION fi php -dphar.readonly=0 ./utils/make-phar.php easyengine.phar --quite > /dev/null
true
dc61b692d2b9120b59d5b1f96bcf8701da53a4f5
Shell
zeus911/lanmp
/include/public.sh
UTF-8
11,016
3.921875
4
[]
no_license
_red(){ printf '\033[1;31;31m%b\033[0m' "$1" } _info(){ printf '\033[1;31;36m%b\033[0m' "$1" printf "\n" } _success(){ printf '\033[1;31;32m%b\033[0m' "$1" printf "\n" } _warn(){ printf '\033[1;31;33m%b\033[0m' "$1" printf "\n" } _error(){ printf '\033[1;31;31m%b\033[0m' "$1" pri...
true
4d777e57309fd737cff6336792db6586cc40ef75
Shell
rfevre/Sujet02_Systeme
/oui-non.sh
UTF-8
170
2.8125
3
[]
no_license
#!/bin/bash echo "" > reponse while [ "$reponse" != "oui" ] && [ "$reponse" != "non" ] do echo 'Répondre oui ou non' read reponse done echo reponse = $reponse
true
fa2c195a69916c9087b6b52281f621b861cc54fe
Shell
qianqiangliu/ldd3
/short/short_unload
UTF-8
146
2.671875
3
[]
no_license
#!/bin/sh module="short" device="short" # invoke rmmod with all arguments we got rmmod $module || exit 1 # Remove stale nodes rm -f /dev/short
true
d014446839f68775ac842be1bc483368787e3b4b
Shell
chaunceyyann/LinuxSetupScript
/scripts/mkco
UTF-8
7,631
3.859375
4
[]
no_license
#!/bin/bash ##################################################################################################### # Program : Make Code # Author : Chauncey Yan # Functions : Make the sample code for different code(C,Bash,Perl) # Revision : 0.8 # Mod date : May 23 # Updates : make multiple file at one time # Issues : ##...
true
73aaa42a2894cd430fa63f0138c4a814b743c884
Shell
c-manning/dotfiles
/scripts/internet_info.sh
UTF-8
807
2.890625
3
[]
no_license
#!/bin/bash IP=$(ipconfig getifaddr en0) #PUB_IP=$(dig +short myip.opendns.com @resolver1.opendns.com) PUB_IP=`curl https://canihazip.com/s` #INTERNET='' #INTERNET='📶' INTERNET='📡' internet_info=$(/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | grep CtlRSSI | sed -e ...
true
6f32508a62f29e877c1c00fe9b52de2828a426c8
Shell
kdlug/vagrant-ubuntu-docker
/scripts/bash-theme.sh
UTF-8
650
3.640625
4
[]
no_license
#!/bin/bash # # Agnoster theme for bash # # Fonts git clone https://github.com/powerline/fonts.git $HOME/fonts cd fonts && ./install.sh && rm -r $HOME/fonts # Copy repo rm -rf $HOME/.bash/themes/agnoster-bash mkdir -p $HOME/.bash/themes/agnoster-bash cd $HOME/.bash/themes/agnoster-bash && git clone https://github.co...
true
736493f5e42c02784fe02eb2712bc52afdc307af
Shell
jishnu7/Snippets
/bash/replace_many.sh
UTF-8
162
3.078125
3
[]
no_license
// Replace a string with another in many files at once. // 'i' for case insensitivity for f in *.php; do sed 's/old_text/new_text/i' < "$f" > "$f.new"; done
true
9889c2bc6a973c508913c990bc31b212438eae96
Shell
onap/vnfsdk-dovetail-integration
/install.sh
UTF-8
3,456
3.125
3
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
#!/bin/bash ############################################################################## # Copyright 2018 EuropeanSoftwareMarketingLtd. # =================================================================== # Licensed under the ApacheLicense, Version2.0 (the"License"); # you may not use this file except in complianc...
true
f973039dfd8c912e82fd8da16f257cadef82b5ea
Shell
jzacsh/yabashlib
/src/files.sh
UTF-8
894
4.09375
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # $1 = file to check for siblings of isFileAnOnlyChild() { local parentDir numChildren parentDir="$(readlink -f "$(dirname "$1")")" numChildren=$(find "$parentDir" | wc -l) # 2 lines, one for each of: $parentDir and $1 [ "$numChildren" -eq 2 ] } # $1 = directory to check is empty isDire...
true
433180b1e52567ac5aaa9ee9218dd97d4f2343be
Shell
blancKaty/alignmentFramework_and_classif
/src/script_bash/run_align_deep_pca_gctw_test_correct_class.sh
UTF-8
817
3.453125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash TRAIN_FOLDER=$1 TEST_FOLDER=$2 OUTPUT_FOLDER=$3 ORIGINAL_FOLDER=$4 L=$5 CTW_FOLDER=$6 CLASS_NUMBER=$(ls $TRAIN_FOLDER | wc -l ); for CLASS_FOLDER in $(seq -w $CLASS_NUMBER) do echo "Queueing alignment for class " $CLASS_FOLDER echo mkdir -p $OUTPUT_FOLDER/$CLASS_FOLDER for TEST_SAMPLE i...
true
c596ad5fcb5b34e752c0a1a63ff7dd79ce085e7a
Shell
sohilkaushal/bash-scripting
/extra programs/file_search.sh
UTF-8
142
3.265625
3
[]
no_license
#!/bin/bash echo Program for searching a file in a Directory for i in $( ls ) do if [ "$i" = "$1" ]; then echo "File Found" fi done
true
2037854a68e761ee19061667d57d94e3eb6385a5
Shell
idavehuwei/wit
/public/plugins/chatbot/scripts/install.sh
UTF-8
2,015
3.375
3
[ "Apache-2.0" ]
permissive
#! /bin/bash ########################################### # Install Plugin # Copyright (2019) 北京华夏春松科技有限公司 ########################################### # constants ## for windows platform export MSYS=winsymlinks:nativestrict baseDir=$(cd `dirname "$0"`;pwd) rootDir=$(cd -P $baseDir/..;pwd) upperDir=$(cd -P ...
true
592778310c8c34c4db3da5241f68f49db519f15f
Shell
ican2002/5g-mec-cloud-gaming
/verify.sh
UTF-8
2,106
3.28125
3
[]
no_license
#!/bin/bash echo "5g-mec-cloud-gaming verify test" DIR=$(cd `dirname $0`;pwd) OS=$(facter operatingsystem) #install go if [ -z "${GO_URL}" ]; then GO_URL='https://dl.google.com/go/' fi if [ -z "${GO_VERSION}" ]; then GO_VERSION='go1.13.4.linux-amd64.tar.gz' fi set -e -u -x -o pipefail echo "---> Installing gola...
true
b6972271d71f42f6147f6df296b7402e3dce96c9
Shell
ChronSyn/dotfiles
/scripts/package/recipes/clojure.sh
UTF-8
544
3.375
3
[]
no_license
#!/usr/bin/env bash # vim: filetype=sh set -euo pipefail source "${DOTFILES}/scripts/package/aux/recipes.sh" recipe::abort_if_installed clojure pm="$(recipe::main_package_manager)" if [[ $pm = "brew" ]]; then brew install clojure esac CLJ_VERSION="1.10.1.447" CLJ_FOLDER="$TEMP_FOLDER/clojure" pushd mkdir -p "$CL...
true
6badc1dcfa62b1064ff0831046eb2b06a29a312d
Shell
mgbmeei/eqlite
/bin/eqlite
UTF-8
366
2.921875
3
[ "MIT" ]
permissive
#!/bin/bash case $1 in start) docker stack deploy -c docker-compose.yml eqlite ;; stop) docker stack rm eqlite ;; ps) docker stack ps eqlite ;; shell) docker attach $(docker ps --filter name=eqlite_lib --format "{{.ID}}") ;; *) ...
true
6fa24d85b074b535ca49e342d1680c8ac94b39ac
Shell
themaire/bash_scripts
/picturesOperations/timelapse/manu_avconv.sh
UTF-8
330
2.703125
3
[]
no_license
#!/bin/bash # Timelapse sur le "Raspberry Pi 3. # Exemples : # projects/timelapse/manu_avconv.sh 4 /mnt/disquenoir/raspberrypi/raspistill/20170522_tl # Paramètres # $1 le dossier des images à traiter # C'est parti pour la video du timelapse avconv -r 10 -i "$1/pic%04.jpg" -r 10 -vcodec libx264 -crf 20 -g 15 "$1/t...
true
780f849a1c63b15d0ef59ab1775dbd8e02e6db64
Shell
garymcwilliams/gary-shell
/tools_lagan/buildshell
UTF-8
295
3.046875
3
[]
no_license
#! /bin/bash #; buildshell #; Setup environment for building frontline if [ -r ~/.shell/minimalshell ]; then . ~/.shell/minimalshell fi # use function to ensure that cygwin forces a copy export COPY=`type -P cp` cp () { $COPY -f $* } #; $Id: buildshell,v 1.2 2003/10/15 08:52:15 gary Exp $
true
ddea7bf91721c50dc7c5e93fb02cd6fedae439a7
Shell
oglops/bumblebee-update
/setup.sh
UTF-8
1,203
3.625
4
[]
no_license
#!/usr/bin/env bash # http://unix.stackexchange.com/questions/122681/how-can-i-tell-whether-a-package-is-installed-via-yum-in-a-bash-script function isinstalled { if yum list installed "$@" >/dev/null 2>&1; then true else false fi } PACKAGE=kmod-nvidia # install specified kmod-nvidia array=( $(repoqu...
true
b19972503e609e5425a0fd3f8fd136c64d3bc394
Shell
ynot16/SamplePractice
/BuildScript.sh
UTF-8
1,267
2.796875
3
[]
no_license
#!/bin/sh # BulidScript.sh # BROnlineLearning # # Created by bori-applepc on 16/8/25. # Copyright © 2016年 Bori Information Technology Co., Ltd. All rights reserved. # 工程名 APP_NAME="pratice" # 证书 CODE_SIGN_DISTRIBUTION="iPhone Distribution: Guangzhou Bori Information Technology Co., Ltd." # info.plist路径 project_in...
true
ded7df513edd8e83e72074d736b95450c00afef5
Shell
gjianw217/MoonIC2
/panel_menu/res/network~
UTF-8
1,157
3.734375
4
[]
no_license
#!/bin/sh # # manage network interfaces and configure some networking options PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin if ! [ -x /sbin/ifup ]; then exit 0 fi do_network_up(){ %if DRV0% if [ ! -f %DRV0% ]; then echo "%DRV0% no driver!" return 1 fi insmod %DRV0% %endif% %if ...
true
31af41f55bfca08a91fe282c4d9e3281f749e17b
Shell
kmh11/dotfiles
/.bashrc
UTF-8
485
3.0625
3
[]
no_license
# # ~/.bashrc # # If not running interactively, don't do anything [[ $- != *i* ]] && return alias ls='ls --color=auto' PS1='[\u@\h \W]\$ ' if [[ $neofetch == true ]]; then neofetch fi if [[ $kmhzonehtop == true ]]; then while true; do ssh -t ubuntu@kmh.zone htop; done fi export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DI...
true
9204057bdf9f7970f3bce938fde4b6a9a41b7a55
Shell
clrgit/shellopts
/bin/mkdoc
UTF-8
252
2.515625
3
[]
no_license
#!/usr/bin/bash set -e # Generate github-like page ( cd doc { echo '<link rel="stylesheet" type="text/css" href="stylesheet.css">' pandoc ../README.md } >index.html ) # Generate rdoc rdoc --output=rdoc --force-output lib
true
b84bb99e16de0497e7a635847f461bac7a2071cd
Shell
newtoncodes/docker-lib-mysql
/dev/build.sh
UTF-8
316
3.234375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash dir=$(cd $(dirname ${BASH_SOURCE[0]}) && pwd) v="$1" if [ "$v" = "" ] || [ "$v" = "5.7" ]; then cd ${dir}/../5.7 && docker build -t newtoncodes/mysql . cd ${dir}/../5.7 && docker build -t newtoncodes/mysql:5.7 . else cd ${dir}/../${v} && docker build -t newtoncodes/mysql:${v} . fi
true
1d2669587eed3b75639a44a5c64d19f5c7168e0a
Shell
plojyon/tc
/tc.sh
UTF-8
11,822
3.875
4
[ "MIT" ]
permissive
#!/bin/bash #?Usage: #? tc.sh [-h] [clean] [<tests_path>] <main_c_program> [<included_c_programs> ...] #? [-t | -T <n> | -f <s> | -n &ltI> ] #? actions: #? clean Delete diff and res files #? -h, --help Help on command usage #? -t, --timed Display time taken to execute the cod...
true
8391edd5b5749d43515ec2d31e2e5a06ea38eb4e
Shell
nickmoran06/Templates_and_scripts
/Ubuntu_14.04/holberton/Betty_holbi_C
UTF-8
1,026
3.484375
3
[]
no_license
#!/usr/bin/env bash cd git clone https://github.com/holbertonschool/Betty.git cd Betty sudo ./install.sh echo "#!/bin/bash # Simply a wrapper script to keep you from having to use betty-style # and betty-doc separately on every item. # Originally by Tim Britton (@wintermanc3r), multiargument added by # Larry Madeo (@...
true
512fbd8ff2e078b57163c17fbe69fa8849be4495
Shell
Senior-Design-May1601/config
/ansible/Splunk-init
UTF-8
983
3.46875
3
[]
no_license
#! /usr/bin/env bash set -o errexit set -o nounset set -o pipefail set -o noclobber openssl genrsa -out privkey.pem 2048 echo "" echo "TLS private key written to privkey.pem" echo "" echo "Next we'll generate a certificate signing request (CSR)." echo "You'll be asked a bunch of questions. Most of them don't matter a...
true
3ec4358bbb7ae9a726d2dcc7aa788849adaedc77
Shell
OpenAtWork/gitlab-docker
/firstrun.sh
UTF-8
1,476
3.03125
3
[]
no_license
#!/bin/bash # Set these parameters mysqlRoot=RootPassword # === Do not modify anything in this section === # Regenerate the SSH host key /bin/rm /etc/ssh/ssh_host_* dpkg-reconfigure openssh-server password=$(cat /srv/gitlab/config/database.yml | grep -m 1 password | sed -e 's/ password: "//g' | sed -e 's/"//g') #...
true
e70c5fe0809396682a483646167b6f16d182d376
Shell
petronny/aur3-mirror
/myroundcube/PKGBUILD
UTF-8
724
2.515625
3
[]
no_license
# $Id$ # Contributor: fila pruda.com pkgname=myroundcube pkgver=0.7.2.v1.0 pkgrel=2 pkgdesc="Plugins for Roundcube web-based mail client" arch=('any') url="http://myroundcube.googlecode.com" license=('GPL') depends=('roundcubemail>=0.7.2') source=(http://myroundcube.googlecode.com/files/roundcube-0.7.2-bundle-v.1.0.zi...
true
9e63c4796e6e4eb4d873f058c6ae92b6569dbafb
Shell
ronan22/obs-light
/obslight-fakeobs/tools/post_import_operations.sh
UTF-8
2,257
3.703125
4
[]
no_license
#!/bin/bash PROJECT=$1 . tools/common.sh echo_green "Updating 'latest' links in obs-repos..." cd obs-repos LATEST=`find . -maxdepth 1 -name "$PROJECT*" -printf "%f\n" | grep -v "$PROJECT:latest" | sort | tail -n 1` rm -f "$PROJECT:latest" ln -sf $LATEST "$PROJECT:latest" cd .. echo_green "Updating 'latest' links in ...
true
6357f7c3e6340f1862929e3f43ace15ea5f0b08a
Shell
le0pard/presentations
/brug_2015/examples/nbody/run.sh
UTF-8
861
3
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/sh ITERATIONS=50000000 echo "Cleanup" mkdir -p ./.bins rm -fr ./.bins/* echo "Compiling c..." gcc -pipe -Wall -O3 -fomit-frame-pointer -march=native -mfpmath=sse -msse3 nbody.c -o nbody -lm mv nbody ./.bins/nbody_gcc echo "Compiling rust..." rustc -C opt-level=3 -C target-cpu=core2 nbody.rs mv nbody ./.bins/...
true
ae7c5bfed44dfee0397b15519e3b7b36431f636e
Shell
stjordanis/mit-d3m-ta2
/scripts/run_on_d3m.sh
UTF-8
314
2.953125
3
[ "MIT" ]
permissive
#!/bin/bash function echodo() { echo $* $* } docker build --build-arg UID=$UID -t mit-d3m-ta2 . COMMANDS=${*:-/bin/bash} DATASETS=/home/pythia/Projects/d3m/datasets/seed_datasets_current/ echodo docker run -i -t --rm -v $DATASETS:/input -v $(pwd):/home/user -w /home/user -u $UID mit-d3m-ta2 $COMMANDS
true
86725412c64055fc1584bdf61d84ba2e24c4cb63
Shell
ClickHouse/ClickHouse
/tests/queries/0_stateless/00097_long_storage_buffer_race_condition_mt.sh
UTF-8
340
2.59375
3
[ "BSL-1.0", "Apache-2.0" ]
permissive
#!/usr/bin/env bash # Tags: race CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) # shellcheck source=../shell_config.sh . "$CURDIR"/../shell_config.sh export NO_SHELL_CONFIG=1 for _ in {1..4}; do "$CURDIR"/00097_long_storage_buffer_race_condition.sh > /dev/null 2>&1 & done wait $CLICKHOUSE_CLIENT -q "SEL...
true
44843390aae08e51814c922e275328f0416f4164
Shell
google-code/aos
/build
UTF-8
957
3.109375
3
[]
no_license
#!/bin/bash # Compile MBR, VBR and kernel echo " # Compile MBR, VBR and kernel..." nasm mbr.asm -o mbr.bin nasm vbr.asm -o vbr.bin nasm kernel.asm -o kernel.bin # Compile core echo " # Compiling core..." nasm ./core/core.asm -o ./fsgen/rootfs/core # Recompile FSGEN echo " # Recompiling FSGEN" fsgen/build-fsg...
true
923ea91f9b43114de5d40bc4bac67f3aac65603d
Shell
cristian-sima/Wisply
/util/ubuntu/install/src/settings.fun
UTF-8
491
3.0625
3
[]
no_license
#!/bin/bash # The name of the database database="wisply" # The default MySQL root username MySQLUsername="root" # The default MySQL root password MySQLPassword="Pv1XL_De_zHdhgjWu" # The name of username for database databaseUsername="root" # The password of the username databasePassword="root" # It states if the ...
true
0258b13602b35bb40e66725c1f16f299c24d5ee9
Shell
afester/CodeSamples
/Shell/bash/returnPipe.sh
UTF-8
234
2.90625
3
[]
no_license
#!/bin/bash returnSimple() { local __resultvar=$1 echo "Sub shell level: $BASH_SUBSHELL" return 42 } echo "Sub shell level: $BASH_SUBSHELL" returnSimple theResult | cat result=${PIPESTATUS[0]} echo ${result} echo Done.
true
b390f503ef9ed5a5ccea55923232a7b140a7f16d
Shell
1981shaked/test2
/bin/IndIbm016/refresh_report
UTF-8
5,517
3.796875
4
[]
no_license
#!/bin/ksh #=================================================================================== # Name : refresh_report # Desrciption : Checking the last refresh log per given version. # Informs about errors and new refreshed files in the refresh process # Report sent to given e-mail addre...
true
ac5bbee3d08b20b10281221d434041c49f093d5a
Shell
jwsong94/ESP_2018_1
/HW2/2_20132138.sh
UTF-8
392
3.234375
3
[]
no_license
#!/bin/bash # 20132138 # Jungwoo Song # Github - https://github.com/jwsong94/ESP_2018_1 PORT=$1 GPIODIR="gpio$PORT" echo "gpio : $PORT" cd /sys/class/gpio/ echo $PORT > ./export cd $GPIODIR echo out > direction i=1 while [ $i -le 10 ] do echo "LED ON" echo 1 > value sleep 1s echo "LED OFF" ec...
true
0b3d49396f5e5ab73a592ffc0eed3d4b4048cfa0
Shell
TristinDavis/masKomodo
/morePackage.sh
UTF-8
964
3.171875
3
[]
no_license
echo "Remove morefolders. If it wasn't there than this will error. Left after build to allow you to inspect contents that was wrapped." rm -r morefolders echo "Create the morefolders dir and add chrome and defaults inside." mkdir -p morefolders/chrome/ && cp -r defaults morefolders/ echo "Copy the chrome.manifest and...
true
5271a584eaad22758881f2c534acf5f66c7eed85
Shell
enitink/prj
/generic/codes/prData/shellScripts/sumOfDig.sh
UTF-8
291
3.8125
4
[]
no_license
#This Shell Script computes sum of digits echo -e "\nEnter Any No to find its sum of digits : \c" read number temp=$number sum=0 while [ $temp -gt 0 ] do rem=`expr $temp % 10` sum=`expr $sum + $rem` temp=`expr $temp / 10` done echo -e "Sum of Digits of number " $number " = " $sum
true
e389edb6ca5d60b5aa6d6ba63c210f6c2dc36003
Shell
lucaswannen/source_code_classification_with_CNN
/dataset_v2/bash/967780.txt
UTF-8
117
2.625
3
[]
no_license
#!/bin/sh let SECS=$1*60 echo "Sleeping for" $1 "minutes, which is" $SECS "seconds." sleep $SECS && pm-suspend echo
true
f0386236af6e0ab6dd36303a1b9299efda6556f7
Shell
cnidario/js-games
/1/img/pan.sh
UTF-8
216
3.140625
3
[]
no_license
for f in *.jpg; do w=$(identify -format "%w" "$f"); h=$(identify -format "%h" "$f"); if [ "$w" -gt "$h" ]; then hh=$(( (w - h) / 2)); convert "$f" -crop "$h"x"$h"+"$hh"+0 "$f"; fi done
true
5e756a8b0a3a325959e5d37738ab0d5a2c924f2a
Shell
reynoldscem/bashDB
/create_database.sh
UTF-8
346
3.65625
4
[]
no_license
#!/bin/bash # shellcheck source=functions.sh source "$(dirname "$0")/functions.sh" if [ -z "$1" ]; then eval "${no_param}" fi database=$1 if [ -d "$database" ]; then eval "${db_exists}" # If another process is trying to create the same database we don't really care. elif mkdir -p "$database"; then eval "${db_c...
true
1f03028fd60356b640999093a42f7db93de0f676
Shell
eic/eic-spack-cvmfs
/update.sh
UTF-8
2,406
3.53125
4
[]
no_license
#!/bin/bash dir=`dirname ${0}` # Group umask umask 002 # Load environment source /cvmfs/eic.opensciencegrid.org/packages/setup-env.sh # Setup os spack debug report os=`spack arch -o` # Find compilers if [ -w /cvmfs/eic.opensciencegrid.org/packages ] ; then spack compiler find --scope site else spack compiler f...
true
2e4c8916f432865c0fc4a4b6d7a2fe3ec1877f03
Shell
aheinric/ShellExtensions
/module_1_path.sh
UTF-8
1,523
3.859375
4
[]
no_license
## Extend path with custom directories. ### You can specify custom directories in 'resources/paths.cfg': ### - Each line should contain one directory. ### - A line can reference environment variables; e.g.: '$HOME/local/bin' ### - A '#' defines a comment; all whitespace before the '#' and the rest of the line...
true
da72c499334ec8ff7ddeaf86c8ed4aba997921c0
Shell
netronome-support/IVG
/helper_scripts/inventory.sh
UTF-8
6,609
3.875
4
[]
no_license
#!/bin/bash ######################################################################## if [ "$INV_PRINT_MODE" == "CSV" ]; then # Useful for including the output into a Spreadsheet function show () { local field="$1" local value="$2" printf "\"%s\",\"%s\"\n" "$field" "$value" } else ...
true
66103d185efb543e99aa9519bffc0b5f41659dd4
Shell
bigdotsoftware/ingenicoserver
/tests/transaction_preauthorization.sh
UTF-8
2,703
3.4375
3
[]
no_license
#!/bin/bash URI="http://127.0.0.1:3020" out=`curl -s -XGET "$URI/v1/ingenico_status" -H 'Content-Type: application/json'` echo "###> status: $out" if [[ "$out" == *"BatchCompleted"* ]]; then echo "###> Batch completed, terminal is waiting to read batch data (use script clearbatch.sh)" exit; fi if [[ "$out" == *"...
true
e61ab67732015794d21715f0e08c4d1b42c3fcde
Shell
geethaka/rubycas-server
/int_test.sh
UTF-8
284
2.84375
3
[ "MIT" ]
permissive
#!/bin/bash # added a sleep since kubernets deployment can take time to propogate sleep 60 test_result=$(curl -s -o /dev/null -w "%{http_code}" http://rubycas.k8.bebraven.org/login) echo $test_result if [ $test_result == 200 ] then echo "success" else echo "fail" exit 1 fi
true
3a7de84c1054bef28f5daf05d611c094721a92a6
Shell
ibisek/firmwareLoader
/connectAllAvailable.sh
UTF-8
894
4
4
[]
no_license
#!/bin/bash # # Connects all available CUBE units to /dev/rfcomm{$i} where i>=0 # RED='\033[1;31m' GREEN='\033[1;32m' BLUE='\033[1;34m' PURPLE='\033[1;35m' CYAN='\033[1;36m' WHITE='\033[1;37m' NC='\033[0m' # No Color echo -e "\n${WHITE}Searching for BT devices..${NC}" available="`hcitool scan`" readarray -t lines <...
true
339566073c8efb1c3e86421f00577c5b6c6ab3b9
Shell
nobiki/4shamo
/bootstrap.sh
UTF-8
492
2.65625
3
[]
no_license
#!/bin/bash if [ ! -e /bootstrap.lock ]; then pip install selenium==3.13.0 robotframework==3.0.4 \ robotframework-seleniumlibrary==3.3.1 \ robotframework-httplibrary touch /bootstrap.lock fi BUILDTAG=`pwgen -A -0 -1 10` export BUILDTAG=${BUILDTAG} echo "BUILDTAG: ${BUILDTAG}" robot -A robot...
true
4fc9999b3916f4ec0717a6805e26b3ebc01b88ba
Shell
BlaT2512/Facial-Recognition-Door-Lock
/src/doorlock.init.sh
UTF-8
773
3.453125
3
[]
no_license
#!/bin/sh ### BEGIN INIT INFO # Provides: doorlock # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Doorlock function using rpi camera # Description: Doolock ### END INIT INFO # If you want a co...
true
8f75c01a9740d111aa3f6cb846f130b1a595c19d
Shell
ethernetdan/weave-kubernetes-anywhere
/examples/google-compute-engine/provision.sh
UTF-8
4,309
3.453125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash -x if ! /usr/local/bin/docker -v 2> /dev/null | grep -q "^Docker\ version\ 1\.10" ; then echo "Installing current version of Docker Engine 1.10" curl --silent --location https://get.docker.com/builds/Linux/x86_64/docker-1.10.1 --output /usr/local/bin/docker chmod +x /usr/local/bin/docker fi system...
true
ff6b0fc336513a998df87b1d08976e0b2d8834e8
Shell
imos/bin
/stelnet
UTF-8
982
3.90625
4
[ "MIT" ]
permissive
#!/bin/bash # stelnet is an SSL client. # # stelnet is used to communicate wit hanother host using the SSL protocol. # stelnet requires the openssl command. If port is not specified, 443 (HTTPS) # is used. # # Usage: # stelnet host [port] source "$(dirname "${BASH_SOURCE}")"/imosh || exit 1 DEFINE_bool crlf true '...
true
c0d07bbe764591a762b09900d0b619567f6c04d8
Shell
chu888chu888/BigData-spark-installer
/src/spark
UTF-8
944
2.828125
3
[]
no_license
#!/bin/bash CONF_FILES_DIR=./src/config_files export SPARK_CONF_DIR=/usr/local/spark/conf export SPARK_HOME=/usr/local/spark source ~/.pam_environment wget http://d3kbcqa49mib13.cloudfront.net/spark-1.4.1-bin-hadoop2.4.tgz -P $DOWNLOAD_DIR tar -xzf $DOWNLOAD_DIR/spark-1.4.1-bin-hadoop2.4.tgz -C $DOWNLOAD_DIR sudo mv ...
true
df9bcf7501ea4a9f33879864ebcbef02094eed69
Shell
jkwascom/general-environment-setup
/arch/sync-check.sh
UTF-8
2,704
3.59375
4
[ "MIT" ]
permissive
#!/usr/bin/zsh LOCAL_CONFIG_ROOT="$HOME" LOCAL_PACKAGELIST_ROOT="/tmp" CLOUD_ENV_ROOT="$LOCAL_CONFIG_ROOT/general-environment-setup" CLOUD_CONFIG_ROOT="$CLOUD_ENV_ROOT/configs" CLOUD_PACKAGELIST_ROOT="$CLOUD_ENV_ROOT/packages" MODE="check" PACKAGELIST_SUFFIX="pkglist" PACMAN_LIST="pacman.$PACKAGELIST_SUFFIX" PIP_LIST="...
true
0d098594fd7888596253550d348a2f0ce9482ecc
Shell
xiy/rvm-openshift
/scripts/color
UTF-8
1,342
3.671875
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # set colors, separate multiple selections with coma, order is not important # using bold in one definition requires resetting it in others with offbold # using background in one color requires resetting it in others with bdefault # example: # rvm_error_color=bold,red # rvm_notify_color=offbold...
true
3a1dbe102dced4c34b97c62cf5122b98d1aecbd7
Shell
kranjan94/Timed-Screencapture
/screencap.sh
UTF-8
386
3.734375
4
[]
no_license
#!/bin/bash # Creates a directory on the desktop called screens and takes # screenshots of the display at regular intervals and saves the # results in screens. mkdir ~/Desktop/screens prefix="$HOME/Desktop/screens/" suffix=".jpg" while true; do time=$(date +%r) filename="$prefix$time$suffix" screencapture -S -tjpg...
true
124763fd521e091f6aa0d4f9fc1b62a92200f676
Shell
dantailby/childrens-games-starter-pack
/build-scripts/build.sh
UTF-8
1,574
3.71875
4
[]
no_license
#!/usr/bin/env bash set -e # You should place all your build steps in this script which will be run by our automated build pipeline # This script is run from the project root - you can cd around as you need to # Your build steps should build your game to a root-level output folder as demonstrated below, this folder is...
true
d2b118ecb515b36eea4023f050a39da076fa0c3d
Shell
icanccwhite/tgirt-dna-seq
/genome_tgirt_seq/prepare_data/UMI2id.sh
UTF-8
741
2.875
3
[ "MIT" ]
permissive
#!/bin/bash PROJECT_PATH=$WORK/cdw2854/ecoli_genome/rawData/k12 FASTQ_PATH=${PROJECT_PATH} FASTQ_PATH=/stor/work/Lambowitz/Data/NGS/JA17166 OUTPATH=${FASTQ_PATH}/umi2id PROGRAM_PATH=${HOME}/TGIRT_UMI/preproces_fastq PYTHON=$(which python) mkdir -p ${OUTPATH} for FQ1 in `ls ${FASTQ_PATH}/K12*R1_001.fastq.gz | grep -v ...
true
217570c46408f72fa249f7b06ab8d5340777d04d
Shell
mizuno-as/server-hands-on
/cloud-init.sh
UTF-8
451
3.59375
4
[]
no_license
#!/bin/bash if [ -z "$1" ] then echo "$0 container_name" exit 1 fi YML=$(mktemp /tmp/init-XXXXX.yml) cat > $YML <<EOF #cloud-config hostname: $1 ssh_pwauth: false users: - name: YOURNAME shell: /bin/bash lock_passwd: true sudo: ALL=(ALL) NOPASSWD:ALL ssh_authorized_keys: - "YOUR PUB...
true
ef575a7c43ef19b81a9b3d674e035b446a663cba
Shell
Sonikkua/linux-admin-and-bash-scripts
/UNIX Shell Programing/Chapter15/cdh
UTF-8
3,979
4
4
[]
no_license
#!/bin/bash # cd history program -- final version # sets PS1 to current directory # eliminates duplicate entries # implements "cd -name" # stores cd history in $CDHISTFILE alias cd=cdh # implements ksh "cd old new" function cdh { typeset -i cdlen i typeset t if [ $# -eq 0 ] then ...
true
345e8e5013a555f4a33f8c65c9cbe9bff1e14f8a
Shell
jaakritso/dotfiles
/brew.sh
UTF-8
1,390
3.03125
3
[]
no_license
#!/bin/bash # Install command-line tools using Homebrew # (Optionally) Turn off brew's analytics https://docs.brew.sh/Analytics # brew analytics off # Make sure we’re using the latest Homebrew brew update # Upgrade any already-installed formulae brew upgrade # GNU core utilities (those that come with OS X are ou...
true
f2f074b5a37975ffd2d0656107591c9454270f3e
Shell
chrissparksnj/offsec
/prog_docs/bashscripts/samba_multi_ms.sh
UTF-8
238
2.734375
3
[]
no_license
#!/bin/bash if [ $# -eq 0 ]; then echo "Please specify a ip address by exporting: eg: ./smb_version_ms.sh <ipaddress>"; else sudo msfconsole -x "use exploit/multi/samba/usermap_script; set lhost 1ocalhost; set rhost $1; run; exit" fi
true
be192977a4fc22a90e6a1859c537b0410fed2e60
Shell
gopinathansubu/mojo-standalone
/build/install-build-deps.sh
UTF-8
3,243
3.84375
4
[]
no_license
#!/bin/bash ROOT_DIR="$(dirname $(realpath $(dirname "${BASH_SOURCE[0]}")))" BUILD_DIR="$ROOT_DIR/build" BUILDTOOLS_DIR="$ROOT_DIR/buildtools" THIRD_PARTY_DIR="$ROOT_DIR/third_party/" GTEST_DIR="$ROOT_DIR/testing/gtest" function install_dep_from_tarfile { SRC_URL=$1 PACKAGE_DIR=$2 FILENAME="$(basename $SRC_URL)...
true
b70c00abe74c0045f22dd329911228ff578e5c9b
Shell
rahulkumarjhamtani/Linux-Shell-Programming-Lab
/pattern4.sh
UTF-8
440
3.21875
3
[]
no_license
echo "Number of rows" read n for ((i=1;i<=n;i++)) do for ((j=i;j<=n-1;j++)) do echo -n " " done num=$i for ((j=1;j<=2*i-1;j++)) do if [ $j -lt $i ] then echo -n $num num=$((num+1)) elif [ $j -eq $i ] then echo -n $num ...
true
29037bb924779a721ef822fd21f9991d86f5ccd5
Shell
mohi048/common-scripts
/Preq_Kilo.sh
UTF-8
2,445
3.125
3
[]
no_license
#!/bin/bash apt-get update apt-get -y upgrade apt-get -y install python-software-properties apt-get -y install ubuntu-cloud-keyring echo "deb http://ubuntu-cloud.archive.canonical.com/ubuntu trusty-updates/kilo main" > /etc/apt/sources.list.d/cloudarchive-kilo.list apt-get -y update && apt-get -y dist-upgrade echo "#...
true
2f11e6a8d1e64f663a1ce22d5bde86b9d1788d62
Shell
alabuel/hardening.amazon.linux
/sections/3.5-firewall-configuration.sh
UTF-8
3,897
2.734375
3
[]
no_license
# Author: Ariel Abuel # Benchmark: CIS # -------------------------------------------- # 3.5 Firewall Configuration # 3.5.1 Configure IPv4 iptables # -------------------------------------------- # 3.5.1.1 Ensure default deny firewall policy (Scored) log "CIS" "3.5.1.1 Ensure default deny firewall policy (Scored)" exec...
true
eb5819d42583d9d4c4523f67b124a3a1e3f2ee41
Shell
dhh15/multimodal
/utilscripts/pdfstopng.sh
UTF-8
274
3.546875
4
[]
no_license
#!/bin/bash # pdfs to pngs files="./singlepagepdfs/*.pdf" outdir="./singelpagepngs/" # run in the dir where the multipage pdfs are for filename in $files do base=${filename%.pdf} echo "$outdir$base.png" convert -density 300 $filename "$outdir$base.png" done
true
5f2a36778efdb701c9d5d5a47c0aad8d98d13b1d
Shell
cloudymation/docker_fundamentals
/docker_commit/java.sh
UTF-8
612
2.65625
3
[ "MIT" ]
permissive
docker run -it ubuntu_bionic_with_git /bin/bash # apt update && apt upgrade -y && apt install -y default-jre && apt install -y default-jdk # java --version # javac --version # exit docker container ls -a # Get last exited container ID docker logs <CONTAINER_ID> docker diff <CONTAINER_ID> docker commit -m "Added JRE ...
true
b1079ccf19139c865b76570e8cb5afd5f116553a
Shell
rackerlabs/eventlet
/build-website.bash
UTF-8
1,585
4.03125
4
[ "MIT" ]
permissive
#!/bin/bash set -e build="$PWD/website-build" usage="Builds eventlet.net website static pages into ${build}. Requires sphinx-build, git and Github account." while [ -n "$1" ]; do # TODO: parse args echo "$usage" >&2 exit 1 shift done if ! which sphinx-build >/dev/null; then echo "sphinx-build not found. Possibl...
true
7d21da73170330565ea007ba25adcdbf99601cc7
Shell
yunwilliamyu/secure-distributed-union-cardinality
/simulation/run_all_but_mpc.sh
UTF-8
1,183
3.09375
3
[]
no_license
#!/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" HOSP_DIR=$DIR/../hospital-bin for file in hosp*.npy do fbname=$(basename "$file" .npy) $HOSP_DIR/count-hospital.py $file $fbname-count.bin $HOSP_DIR/hll-hospital.py $file $fbname-hll.bin $HOSP_DIR/ids-hospital.py $file...
true
faac65d28e80c20feb2af12de138535bbe5d90fe
Shell
VertxChinaUserGroup/vertx-cn-website
/frontend/pre-commit.sh
UTF-8
727
3.609375
4
[ "MIT" ]
permissive
#!/bin/bash echo "start lint:stage" # 如果有进入node_modules目录的权限则遍历修改后的文件,否则'npm run lint:fix' if [ -x node_modules ]; then for file in $(git diff HEAD --name-only | grep -E '\.(js|jsx|vue)$') do node_modules/.bin/eslint --fix "$file" if [ $? -ne 0 ]; then echo "ESLint failed on staged file '$file'. Plea...
true
458dd77910b21b58c688bfffc567950ff515de79
Shell
albertwcheng/albert-bioinformatics-scripts
/CDTToMatrix.sh
UTF-8
313
3.125
3
[ "MIT" ]
permissive
#!/bin/bash if [ $# -lt 1 ]; then echo $0 CDTFile "[OutMatrix:default CDTFile/.cdt/.mat]" exit fi CDTFile=$1 if [ $# -ge 2 ]; then OutMatrix=$2 else OutMatrix=${CDTFile/.cdt/} OutMatrix=${OutMatrix/.CDT/}.mat fi cuta.py -f1,4-_1 $CDTFile | awk '$1!="AID" && $1!="EWEIGHT"' > $OutMatrix #'FNR!=2 && FNR!=3'
true
28ccdc6d432c7b2de666a517577030de8b5f6361
Shell
stcui007/DMOD
/scripts/update_package.sh
UTF-8
8,017
4.28125
4
[]
no_license
#!/usr/bin/env bash INFO='Rebuild and update the local-source Python package at given path in the implied or specified Python virtual env. Defaults to all local packages in the event no single directory is provided.' SCRIPT_PARENT_DIR="$(cd "$(dirname "${0}")"; pwd)" # Set SHARED_FUNCS_DIR (as needed by default_scri...
true
46889bb719b76e5d7a85d1cbd7cf244101ad60ea
Shell
IDR/idr-utils
/scripts/annotate/re-ann.bash
UTF-8
519
2.671875
3
[ "BSD-2-Clause" ]
permissive
# Delete all map annotations and re-apply export PATH=$PATH:/home/omero/OMERO.server/bin export IDR=../../ set -e set -u omero -q login demo@localhost ARGS=$(sed "$1"'q;d' input) YML=$IDR/$(echo $ARGS | cut -f1 -d" ") CSV=${YML/bulkmap-config.yml/annotation.csv} OBJID=$(echo $ARGS | cut -f2 -d" ") omero metadata pop...
true
3a5efa97d42df367bbba684c49928f3c10b28af3
Shell
IMIO/imio.pm.locales
/src/imio/pm/locales/locales/sync_pos.sh
UTF-8
582
2.578125
3
[]
no_license
#!/usr/bin/env bash files="PloneMeeting plone imio.actionspanel datagridfield imio.annex imio.history collective.eeafaceted.batchactions collective.eeafaceted.z3ctable eea collective.behavior.talcondition collective.documentgenerator collective.iconifiedcategory collective.contact.core" languages="de en es fr nl" for ...
true
46833caeb12da4492ff2717e96056c005feea3cb
Shell
gikeymarcia/dotfiles
/.scripts/setup/apple-webcam-installer.sh
UTF-8
1,084
3.5
4
[]
no_license
#!/bin/bash # Mikey Garcia, @gikeymarcia # install firmware and drivers for apple macbook webcam in Ubuntu # dependencies: automatically installed # adapted from https://askubuntu.com/a/1215628 # dependencies sudo apt install git curl xz-utils cpio kmod libssl-dev checkinstall -y # remove existing dir and clone into ...
true
c967ce41fda9eef41ed204300d0ec6aa0df123c7
Shell
noandrea/aeternity
/deployment/deploy_api_docs.sh
UTF-8
452
3.203125
3
[ "ISC" ]
permissive
#!/bin/bash set -e git clone git@github.com:aeternity/api-docs.git /tmp/api-docs cp apps/aehttp/priv/swagger.json /tmp/api-docs/ cd /tmp/api-docs/ git add swagger.json; STATUS=`git status --porcelain` if [ -z "$STATUS" ]; then echo "Nothing to commit, docs did not change"; else git config user.name "CircleC...
true
79dd3e46176d2528dbbc10579eba42141f9365ce
Shell
swftvsn/package-libvips-darwin
/libvips-package-sharp-tar.sh
UTF-8
3,040
3.21875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # Clean working directories rm -rf lib include mkdir lib include # Use pkg-config to automagically find and copy necessary header files for path in $(pkg-config --cflags --static vips-cpp libcroco-0.6 | tr ' ' '\n' | grep '^-I' | cut -c 3- | sort | uniq); do cp -R ${path}/ include; done; rm include/vips...
true
7b676d669d96e03b6f3064c415b2f710bbab7ba3
Shell
zxing2004/docker
/18.09/dind/dockerd-entrypoint.sh
UTF-8
686
3.671875
4
[]
no_license
#!/bin/sh set -e # no arguments passed # or first arg is `-f` or `--some-option` if [ "$#" -eq 0 ] || [ "${1#-}" != "$1" ]; then # add our default arguments set -- dockerd \ --host=unix:///var/run/docker.sock \ --host=tcp://0.0.0.0:2375 \ "$@" fi if [ "$1" = 'dockerd' ]; then if [ -x '/usr/loca...
true
8a1d8890768dad4414f173a15c9bfbc327684dbb
Shell
Urdip7633/COMP2101
/bash/guessinggame.sh
UTF-8
1,574
4.3125
4
[]
no_license
#!/bin/bash # # This script implements a guessing game # it will pick a secret number from 1 to 10 # it will then repeatedly ask the user to guess the number # until the user gets it right # Give the user instructions for the game cat <<EOF Let's play a game. I will pick a secret number from 1 to 10 and you have to...
true