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
a64e1cd32ad1b48294ce09552702fcbcbf207a19
Shell
qualiaa/simon
/config/simon/functions.sh
UTF-8
623
3.515625
4
[]
no_license
########################## ## functions ########################## # these are the functions available to your profile. # go hog wild! function suspend() { systemctl suspend } function backlight_off() { xset dpms force off } function set_backlight_percent() { xbacklight -set $1 } function get_backlight...
true
97417a35b31c27fd0540ecced7c3853de44177d0
Shell
siphoncode/docker-custodian-cron
/entrypoint.sh
UTF-8
340
3.03125
3
[]
no_license
set -e : ${INTERVAL:?"INTERVAL is not set."} : ${MAX_CONTAINER_AGE:?"MAX_CONTAINER_AGE is not set."} : ${MAX_IMAGE_AGE:?"MAX_IMAGE_AGE is not set."} while [ true ] ; do echo echo "*** Starting docker-custodian ***" echo dcgc --max-container-age $MAX_CONTAINER_AGE --max-image-age $MAX_IMAGE_AGE; sl...
true
34b3db106ea3fa2571d634de2183a3253433a30f
Shell
smaloron/slim-php-vagrant
/install.sh
UTF-8
866
3.25
3
[]
no_license
# Mise à jour de la bibliothèque des logiciels sudo apt-get update sudo apt-get -y upgrade # Variables de l'installation PASSWORD='123' PHPVERSION='7.2' # Apache et PHP sudo apt-get install -y apache2 sudo apt-get install -y php sudo apt-get install -y libapache2-mod-php # Mysql sudo debconf-set-selections <<< "mys...
true
d8bbcf77520bd3b4e5ef15a61183a3b76bcbb877
Shell
husheng0/LockstepPlatform
/Tools/ECSCodeGen.sh
UTF-8
331
2.578125
3
[]
no_license
#!/bin/bash clear dir="$(cd $(dirname ${BASH_SOURCE[0]}) && pwd)" cd $dir pwd cd ./bin/ echo "1.Code gen" mono ./Lockstep.Tools.ECSGenerator.exe ../Config/ECSGenerator/Config.json echo "2.Complile generated code" msbuild /property:Configuration=Debug /p:WarningLevel=0 /verbosity:minimal ../Src/ECS.ECSOutput/ECS.ECSOut...
true
659ce3cbdf90423e55920a66146ef67f9e134a12
Shell
xwang2713/cloud-image-build
/tools/aws/ami_cli.sh
UTF-8
1,557
3.640625
4
[]
no_license
#!/bin/bash # Example: ./ami_cli.sh 7.0.0 delete if [ -z "$1" ]; then echo "Must supply HPCC version" exit 1 fi VERSION=$1 ACTION="list" [ -n "$2" ] && ACTION=$2 ACTION=$(echo $ACTION | tr '[:upper:]' '[:lower:]') # 7.8.x ami_prefix=hpcc-systems # 7.6.x #ami_prefix=hpcc-platform ami_prefix2=${ami_prefix}-c...
true
966f0e35ff689f5a1b8df169a1e672aa5cf5c346
Shell
HaydenElza/MC-Admin
/stop_server.sh
UTF-8
499
3.921875
4
[]
no_license
#!/bin/bash # Load config if [ -f server.config ]; then source server.config else echo "Missing 'server.config'." exit 1 fi # Define function to send commands to server running in screen to_screen() { screen -S $SCREENNAME -p 0 -X stuff "$1^M" } # Stop server { echo "Stopping server..." to_screen "stop" sleep...
true
507a705b2b33bd1dcc117ad8bb3a386697b33477
Shell
GasCan1234/photo-booth
/update.sh
UTF-8
402
3.25
3
[]
no_license
#!/bin/bash echo "##########################" echo "### UPDATE Photo-Booth ###" echo "##########################" git status read -p "Are you sure to overwrite local changes and update? (type: y)" -n 1 -r echo # (optional) move to a new line if [[ $REPLY =~ ^[Yy]$ ]] then echo "### UPDATE START ###" git add . ...
true
bcddeae6c21c99725fece87cc2dff0f5ddf5364b
Shell
Hacker-One/ob-security-conformance-suite-deprecated-production
/httpd/start.sh
UTF-8
240
2.75
3
[ "MIT" ]
permissive
#!/bin/sh project=/etc/apache2/sites-enabled echo $project cd $project echo $OBPTESTSERVICE_NAME sed -i 's/obptestserver.pditdap/$OBPTESTSERVICE_NAME/g' server-static.conf echo "start apache2" apt-get install apache2 apachectl start
true
3bdfdedaadc6c5aba55fbfcde0c2768b0886bb2c
Shell
Rylko/test4
/flipgit.sh
UTF-8
606
3.328125
3
[]
no_license
#!/bin/sh source conf.sh echo status_code=1 rof=$((status_code/100)) while [ $rof -ne 2 ] do echo #echo "Enter your GitHub login: " read -p "Enter your GitHub login: " gh_user echo -n "Password: " read -s password echo read -p "Enter name for new repository: " reponame response=$(curl -u $gh_user:$password \ --wri...
true
ea10c48a42b0f754e8e0753bf734b71aecc2d089
Shell
rezpablo/docker
/mssql-tools/scripts/restoreDb.shBK
UTF-8
629
2.796875
3
[]
no_license
#!/bin/bash set -e echo '=====>' BAK_NAME=$1 DB_NAME=$2 echo '########## ESTA OPERAÇÃO IRÁ DEMORAR... Tenha paciência!' echo 'INICIO: ' `date` echo ${BAK_NAME} echo ${DB_NAME} sqlcmd -S 10.3.0.49 -U 'sa' -P $SA_PASSWORD << EOF USE master RESTORE DATABASE [$DB_NAME] FROM DISK = N'C:\var\opt\mssql\data\dumps\\${BA...
true
b18c31c1578ee0cd3e0bff3756593ee2062c7be2
Shell
metabrainz/musicbrainz-docker
/build/solr/scripts/load-search-indexes.sh
UTF-8
1,446
4.25
4
[]
no_license
#!/usr/bin/env bash set -e -o pipefail -u DUMP_DIR=/media/searchdump DATA_DIR=/opt/solr/server/solr/data OVERWRITE_FLAG=0 SCRIPT_NAME=$(basename "$0") HELP=$(cat <<EOH Usage: $SCRIPT_NAME [<options>] Load MusicBrainz Solr search indexes from fetched dump files. Options: -f, --force Delete any existing data bef...
true
45f12295362289b009fdde703e17443738a58c76
Shell
LuckerYi/espnet
/tools/setup_python.sh
UTF-8
848
4.1875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash set -euo pipefail if [ $# -eq 0 ] || [ $# -gt 2 ]; then echo "Usage: $0 <python> [venv-path]" exit 1; elif [ $# -eq 2 ]; then PYTHON="$1" VENV="$2" elif [ $# -eq 1 ]; then PYTHON="$1" VENV="" fi if ! "${PYTHON}" --version; then echo "Error: ${PYTHON} is not Python?" exit 1 ...
true
10d4c51683622915a4ded3d4c3eea342d7853921
Shell
FutureGateway/PortalSetup
/Ubuntu_14.04/fgSetup.sh
UTF-8
15,314
3.828125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # # Almost automatic FutureGateway setup script(*) # This script can be executed once destination VM has been started # Before execute the script, just provide the VM ip address (VMIP) and # the client machine' SSH public key (SSHPUBKEY). # During the execution destination VM sudo password may be required. ...
true
b0fb94f02a9d1321fc601b0a1525a5dac294238a
Shell
sandipde/free-electron-dft
/input/ginput.sh
UTF-8
1,321
3.28125
3
[]
no_license
#!/bin/sh inf=1 while [ "$inf" = 1 ] do ans=0 ans=$(zenity --list --title "INPUT EDITOR FOR 3D-DFT PROGRAM" --text "\n\n========================================================\n THIS PROGRAM WILL LET YOU EDIT THE INPUTS OF THE 3DDFT PROGRAM \n =======================================================\n\n" --rad...
true
959a830065cc415da6a15d573e1f73f89abaa221
Shell
edmondscommerce/phpqa
/includes/generic/markdownLinks.inc.bash
UTF-8
477
3.515625
4
[ "MIT" ]
permissive
if [[ -f $projectRoot/README.md ]] then linksExitCode=99 while (( linksExitCode > 0 )) do set +e phpNoXdebug -f bin/mdlinks linksExitCode=$? set -e if (( linksExitCode > 0 )) then tryAgainOrAbort "Markdown Links Checker" fi done else ...
true
22164734451c71482c837f5e54e9afb6c988ffd3
Shell
byxorna/scripts
/mysql-dump-backups.sh
UTF-8
2,082
3.734375
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # script to dump mysql DBs # written Apr 29 2010 # _ _ # __| |_ _ _ __ ___ _ __ _ __ ___ _ _ ___ __ _| | # / _` | | | | '_ ` _ \| '_ \ | '_ ` _ \| | | / __|/ _` | | #| (_| | |_| | | | | | | |_) | | | | | | | |_| \__ \ (_| | | # \__,_|\__,_|_...
true
a80052e20a0fd17b86c4e5bbbd26f7a91d972fac
Shell
Jason23347/petunia
/lib/petunia/kernel
UTF-8
2,550
3.765625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash [ -v _MODULE_KERNEL_ ] && return 0 || _MODULE_KERNEL_= [ -f $__DIR__/extends/commands ] && . $__DIR__/extends/commands kernel::abort() { printf "$1\n" >&2 [ $# -lt 2 ] && exit 1 || exit $2 } kernel::excute() { local COMMAND=${1/:/ } shift kernel::commands.$COMMAND $* return ...
true
15a04d26da36f17dac60ad4c4604b80ceb2ad3f3
Shell
chef/automate
/terraform/test-environments/modules/chef_automate_install/templates/install_chef_automate_cli.sh.tpl
UTF-8
12,168
3.40625
3
[ "Apache-2.0", "CC-BY-2.0", "SAX-PD", "MPL-2.0", "Artistic-2.0", "MIT-CMU", "BSD-3-Clause", "0BSD", "CC-BY-4.0", "LGPL-3.0-or-later", "CC0-1.0", "CC-BY-3.0", "BSD-Source-Code", "Apache-1.1", "Ruby", "WTFPL", "BSD-1-Clause", "MIT", "Unlicense", "BSD-2-Clause" ]
permissive
#!/bin/bash set -e # NOTE: This is a terraform template. The ${upgrade} and ${channel} # variables will be replaced with strings at rendering time. Those # are not shell variables. export HAB_NONINTERACTIVE="true" export HAB_NOCOLORING="true" export HAB_LICENSE=accept-no-persist export PATH="/usr/local/bin:$PATH" aut...
true
e8349e768fb11329c137994446cae226504881b7
Shell
aduong/bash-libs
/colruler.sh
UTF-8
544
3.828125
4
[]
no_license
#!/usr/bin/env bash # # prints a column ruler in the terminal allowing the user to easily determine column positioning cols=$(tput cols) output_row=0 for ((c = cols; c > 0; c /= 10)); do output_row=$((output_row + 1)) done while [[ $output_row -gt 0 ]]; do chunk_size=$((10 ** (output_row - 1))) for ((i = 0; i ...
true
71ead03386f81894ecb092648c811163d86c8ab4
Shell
greshem/bin
/qianlong_startup.sh
UTF-8
615
2.59375
3
[]
no_license
#!/bin/bash #change root passwd while [ 1 ] do /bin/change_root_passwd.sh if [ $? -eq 0 ];then break; fi done ###################################### #add qianlong user. echo "user add " while [ 1 ] do /bin/user_add.sh if [ $? -eq 0 ];then break; fi done ###################################### # slave or ma...
true
3ded6dae02cc3c6909f42d3c243e16d5d27a2fe8
Shell
rissson/dotshabka
/soxin/programs/zsh/init-extra.zsh
UTF-8
17,943
3.40625
3
[ "MIT" ]
permissive
##################################################################### # options ##################################################################### if [[ -o interactive ]]; then # If a completion is performed with the cursor within a word, and a full # completion is inserted, the cursor is moved to the end of the ...
true
d6667283f4aa25e61284303c007da2a0aaf22a17
Shell
mrtwistor/Nlang
/compile.sh
UTF-8
2,111
3.890625
4
[]
no_license
#!/bin/bash #Compiler for the N programming language #Version: 0.0 #Author: Jonathan Holland #License: GPL v 2 #Usage: ./compile.sh FILENAME #Compiler for the N language, which is defined as the language #that this compiler compiles (see comments and gcc flags). #To compile an executable, write a separate main func...
true
ba5cce319505b2f04d7509b841d37cf3b2f82174
Shell
praveenclouddot/knowledgescrape
/sshscript
UTF-8
1,322
3.671875
4
[]
no_license
#!/bin/bash set -e # The purpose of this script is to generate tiller certificates for users who are part of the cluster-admin group, since they will have access to the CA key # Genertes helm home folder and copies CA cert and key as well as ssl.conf to generate our cert without user interaction mkdir ~/helm-preprod ...
true
d16cb1fe97dc2c337a8fa9a3a8365354ff67836d
Shell
mathiascode/pkgbuilds
/sdlpop-git/PKGBUILD
UTF-8
1,234
2.96875
3
[]
no_license
pkgname=sdlpop-git pkgver=1.20.r11.g65bc93e pkgrel=1 pkgdesc="An open-source port of Prince of Persia" arch=('i686' 'x86_64') license=('GPL3') url="https://github.com/NagyD/SDLPoP" depends=('sdl2_image' 'sdl2_mixer') makedepends=('git') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") source=("${pkgname%-git}...
true
eb485c5b9ad995fa178679c037a2650138219056
Shell
Y-Suzaki/aws-infra-snippet
/cloudformation/lambda-layer-aws-sam/deploy.sh
UTF-8
1,075
2.9375
3
[]
no_license
#!/usr/bin/env bash s3_bucket="cf-templates-461spye58s2i-us-west-2" # Create a zip file of lambda layer. The directory path must be python/logger/lambda_json_logger.py. mkdir -p python cp -r logger python zip -r lambda-layer.zip python # Generate a cloud-formation template from a sam template. aws cloudfor...
true
6fde8a72f22896a208bec271dd8a4669c13e3115
Shell
henriquegrando/stripe-subscription-lambda
/setupAPI.sh
UTF-8
4,768
3.296875
3
[ "MIT" ]
permissive
#!/bin/bash # Get variables source .env # Create the API API_ID=$(aws apigateway create-rest-api \ --name ${AWS_LAMBDA_FUNCTIONNAME}-api \ --description "Rest API for ${AWS_LAMBDA_FUNCTIONNAME}" | \ python -c "import sys, json; print(json.load(sys.stdin)['id'])") if [ -n ${API_ID} ]; then echo "REST API created....
true
6263e89e5d56907c1f8a377733d8af7d84c3ad9b
Shell
aws-amplify/amplify-flutter
/packages/authenticator/amplify_authenticator/tool/generate_l10n.sh
UTF-8
2,111
3.203125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash HEADER=$(cat <<EOF // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 import 'package:amplify_authenticator/amplify_authenticator.dart'; EOF ) dart run ./tool/generate_country_localization.dart COUNTRY_OUTPUT_FILES=('lib/src/utils/country_code.da...
true
5af5970414de126fa0e3014b51f7f4b4f6cfaa42
Shell
StoffePro/game-servers
/dockerfiles/cs/files/run_server.sh
UTF-8
760
2.875
3
[]
no_license
#!/bin/bash if [ -z "$1" ];then MAP="de_dust" else MAP="$1" fi if [ -z "$2" ];then MODE="normal" else MODE="$2" fi if [ "$MODE" = "normal" ]; then sed -i 's/pb_autokill .*/pb_autokill 1/g' cs/cstrike/addons/podbot/podbot.cfg sed -i 's/mp_timelimit .*/mp_timelimit 20/g' cs/cstrike/server.cfg ...
true
efada410afb3b3dce5d8daf227cb195a78c0af49
Shell
dirkx/gpg-offline-batch-key-
/extract.sh
UTF-8
351
2.84375
3
[ "Apache-2.0" ]
permissive
#!/bin/sh # set -x set -e mkdir extract.$$ && cd extract.$$ git clone https://github.com/dlbeer/quirc.git ( cd quirc && make ) gcc -I quirc/tests -I quirc/lib -o decode \ ../decode.c \ quirc/lib/*.o quirc/tests/dbgutil.o \ -ljpeg -lpng -lSDL # Decode QR code. ./decode ~/Downloads/qr.png > key.raw # Check che...
true
8c04cdbf19a3c17ab8fe299d7350a999c4ff4351
Shell
tonywalker1/cpp_tools
/install_date.sh
UTF-8
2,054
3.375
3
[]
no_license
#!/bin/bash # # MIT License # # Copyright (c) 2018-2021 Tony Walker # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, co...
true
2df8c6deae38a2c6d0c21683c6e016b379019ff4
Shell
boyska/freepto-usb-utils
/makefreepto
UTF-8
7,107
4.0625
4
[]
no_license
#!/bin/bash #uncomment the line below if you want to do heavy debug #set -x makefreepto_usage() { cat <<EOF $0 [ -b ] [ -r ] [-f file_system_type ] [ -s ] [ -p luks_password ] [ -i image_path ] DEVICE Options: -b skip badblocks check -r skip random filling (use only if you know what you are d...
true
f4a8fdf6ae90b077a8eb0e202f6503013388a29c
Shell
Surgo/dotfiles
/.config/zsh/.zshrc
UTF-8
1,356
2.546875
3
[]
no_license
# Paths for Oh My Zsh ZSH="${ZDOTDIR:-$HOME}/ohmyzsh" ZSH_CUSTOM="${ZDOTDIR:-$ZSH}/custom" # Theme ZSH_THEME="powerlevel10k/powerlevel10k" # Configure plugins ## Oh My Zsh DISABLE_AUTO_UPDATE=true ZSH_TMUX_AUTOSTART=true ZSH_TMUX_FIXTERM=true ZSH_TMUX_CONFIG="${HOME}/.config/tmux/tmux.conf" ZSH_TMUX_UNICODE=true ## ...
true
76152438aedd07651ff07a26d2338628b98819f0
Shell
goofiva/docker-sensu-example
/sensu-client/run-sensu-client.sh
UTF-8
676
3.203125
3
[]
no_license
#!/bin/bash usage(){ echo "Usage: $0 SENSU_USER SENSU_PASSWORD CLIENT_NAME" exit 1 } [[ $# -ne 3 ]] && usage SENSU_SERVER=$(grep sensuserver /etc/hosts | awk '{ print $1}') SENSU_USER=$1 SENSU_PASSWORD=$2 CLIENT_NAME=$3 CLIENT_IP_ADDRESS=$(ifconfig|grep eth0 -A 1|grep inet| awk '{print $2}' | sed s/addr://g) cat ...
true
27a293379a6608fd1b8a7bf969f42444c780277b
Shell
astrac-id/files
/test
UTF-8
15,930
3.203125
3
[]
no_license
#!/bin/bash RED=$(tput setaf 1) GREEN=$(tput setaf 2) YELLOW=$(tput setaf 3) BLUE=$(tput setaf 4) BOLD=$(tput bold) RESET=$(tput sgr0) die() { >&2 echo "${RED}Error: $1${RESET}" && exit 1 } log_running() { echo " ${YELLOW}* $1${RESET}" } log_done() { echo " ${GREEN}✓ $1${RESET}" } log_finished() { echo " $...
true
57802b725df3c9dc8ceeb5a2b528b6a47a75861b
Shell
heavyflavor/script
/ShellTest/GetVarLength.sh
UTF-8
181
3.015625
3
[]
no_license
#!/bin/bash . ~/bin/ColorText.sh if [ $# -eq 0 ] then temp="ABCDEFGH" else temp=$1 fi LOG_INFO "Input var is : $temp" LOG_INFO "Input Var Length is : ${#temp}"
true
f9692d9d50ff791ff8da249f1e1c9f465205da5d
Shell
iKrishneel/ubuntu_env_setup
/install-ros.sh
UTF-8
1,011
3.1875
3
[]
no_license
#!/usr/bin/env bash function install-ros() { sudo -v sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' version=melodic sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A389552...
true
8b68221665ca026cdd7dabe33dd4a7f25a0f36e6
Shell
MaybeGoogle/NadekoFiles
/Install Scripts/NadekoService.sh
UTF-8
1,957
3.984375
4
[]
no_license
#!/bin/bash root=$(pwd) unitcfg="/etc/systemd/system/nadeko.service" runfile="NadekoARU_Latest.sh" regrunfile="NadekoARN.sh" clear echo "Welcome to the Nadeko service installer." # Prompt warning if service file exists. Give option to quit. if [ -e $unitcfg ] then echo -e "$unitcfg already exists.\nPress [Y] to ...
true
b8b3f2b38e5b2a1f8c64f59357eaf808fc5ac828
Shell
christoff-buerger/racr
/racr-net/transcribe-racr-core.bash
UTF-8
744
2.75
3
[ "MIT", "X11" ]
permissive
#!/usr/bin/env bash # This program and the accompanying materials are made available under the # terms of the MIT license (X11 license) which accompanies this distribution. # author: C. Bürger # Internal script adding the mutable node-dot-net-instance field to RACR's node record, # such that Scheme nodes know their ...
true
3b418cb483b35f969aeffeb0e7bfe17f3927b603
Shell
gm1357/Exercism-solutions
/bash/acronym/acronym.sh
UTF-8
310
3.78125
4
[]
no_license
#!/usr/bin/env bash main () { phrase=$(replace_symbols "$1") write_acronym "$phrase" } replace_symbols() { string="$1" echo "${string//[-*_]/ }" } write_acronym() { acronym="" for word in $1; do acronym="${acronym}${word:0:1}" done echo "${acronym^^}" } main "$@"
true
2b840338401eac8185e61d4f7d42b5903fd49d30
Shell
DevGautam2000/shell-scripting
/readfiles.sh
UTF-8
318
3.609375
4
[]
no_license
#! /bin/bash fp=files/read.txt while IFS= read -r line do echo $line done < $fp # usage of IFS # ths foo bar is echoed as space is a special character in IFS string="foo bar" for i in $string do echo $i done # using IFS to split the string str=foo:bar:again IFS=":" for i in $str do echo $i done
true
4ccde870fe99374cc3d014dfce77cf2da29b792a
Shell
cnamal/video-INF6803
/TP3/results.sh
UTF-8
331
2.984375
3
[ "MIT" ]
permissive
#!/bin/bash make LOOP=10 for i in {10..200..10} do echo "$i 3500" for (( c=1; c<=$LOOP; c++ )) do ./main at.txt $i 3500 other.txt done echo "" done for i in {2000..4000..100} do echo "50 $i" for (( c=1; c<=$LOOP; c++ )) do ./main at.txt 50 $i other.txt done ec...
true
b8b7f1e6a568668d2f529d7bbe6fcbed88863e64
Shell
Data-Science-Projects/demo-routenet
/bin/get_omnet_data.sh
UTF-8
1,592
2.96875
3
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash # First get the data files and populate the base data directory. # These data sets are from: # https://github.com/knowledgedefinednetworking/NetworkModelingDatasets/tree/master/datasets_v0 rm -rf $OMNET_DATA_DIR mkdir -p $OMNET_DATA_DIR/datasets_v0 cd $OMNET_DATA_DIR/datasets_v0 wget "http://knowled...
true
7ac0fee0ac1064aa8990b1cfdc02af2e191aa758
Shell
WiperDogLabo/Update_mongodb_installing_input_to_default.params
/Test_scripts/test_Restful_invol_functions.sh
UTF-8
5,614
3.765625
4
[]
no_license
#!/bin/bash if [ "$#" == 0 ];then echo "Incorrect script parameters" echo "Usage: ./test_Restful_invol_functions.sh path/to/wiperdog_installer_jar" echo "Example : ./test_Restful_invol_functions.sh wiperdog-0.2.5-SNAPSHOT-unix.jar" exit fi wdInstaller=$1 baseDir=$(pwd) wdDir=$baseDir/wiperdog-0.2.5-SNAPSHOT echo "=...
true
2889372498c245ca1084792b616b99b2839e8c78
Shell
5l1v3r1/iNewCam
/_flash_dump.bin.extracted/jffs2-root/fs_1/bin/vs/vs_auto.sh
UTF-8
681
3.203125
3
[]
no_license
#!/bin/sh VS_SERVER_PATH="`dirname $0`" echo $VS_SERVER_PATH PRO_NAME=vs_server WPA_NAME=wpa_supplicant RUN_SERVER=$VS_SERVER_PATH/$PRO_NAME echo $PRO_NAME NUM=0 $RUN_SERVER & sleep 60 while true ; do ##### 用ps获取$PRO_NAME进程数量 少于1,重启进程 NUM=`ps | grep ${PRO_NAME} | grep -v grep |wc -l` if [ "${NUM}" -lt "1" ]...
true
a5f000c8aa1c5854b1d38feec6a1d67248cbd395
Shell
cavalen/aolab-azure
/deploy-ans/deploy.sh
UTF-8
967
3.390625
3
[]
no_license
#!/bin/bash #RED='\e[0;91m' #REDBL='\e[5;10m' #NC='\e[0m' echo "====================================================" echo "Cual es su Prefix ? (ej, su nombre, o sus iniciales): " echo "Usar maximo 10, solo letras" echo "" read -p "Prefix: " prefix prefix=$(echo "$prefix" | tr -dc '[:alpha:]' | tr '[:upper:]' '[:lower:...
true
719798e9685dba90bdc17df36bfbfcf571d2b6fa
Shell
f-hein/misc-bash-scripts
/arsenal.sh
UTF-8
557
2.546875
3
[]
no_license
wget -q -O arsenal.txt http://kanonierzy.com opponent=$(cat arsenal.txt | grep -m 1 '<span class="teams">'| grep -oP '(?<=">).*(?=</span>)') matchdate=$(cat arsenal.txt | grep -A 1 -m 1 '<span class="teams">'| grep -oP '(?<=">).*(?=</span>)' | tail -1 | awk '{print $1;}') matchtime=$(cat arsenal.txt | grep -A 1 -m 1...
true
66a047bbf1ce1046d224a190c1a8d2bd45de9e57
Shell
wigcheng/tn-fulltest
/tn-fulltest
UTF-8
628
2.953125
3
[]
no_license
#!/bin/bash memtest(){ CPU_NUM=$(nproc) if [[ $CPU_NUM == "1" ]]; then memtest 2> errors.txt elif [[ $CPU_NUM == "2" ]]; then memtest 2> errors.txt elif [[ $CPU_NUM == "4" ]]; then memtest 2> errors.txt fi } clear echo "=========================================" echo "Ma...
true
1c614e0b4e0011721d6a7acb7b0a9ec27234f709
Shell
jdavidavendano/technical-test-ns
/first_task/static-site-troposphere/build.sh
UTF-8
732
3.640625
4
[]
no_license
#!/bin/bash -e STACK_NAME="${STACK_NAME:-staticSiteTroposphere}" # Verify AWS access aws iam get-user &> /dev/null || \ echo "Cannot access AWS." # Go to root of this repo DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd "${DIR}" if [[ ! -d .venv/ ]]; then python3 -m venv .venv . .venv/bin/activate ...
true
a64076850bd3aa64865d6da3a3314596645a7fa7
Shell
chiboubys/Riddim
/scripts/install.sh
UTF-8
403
3.421875
3
[ "MIT" ]
permissive
#!/bin/bash # Installs riddim once configured set -e source scripts/setup_env.sh echo echo Building... cd build && make -j 4 cd .. echo echo Installing... # Std lib mkdir -p "$RID_STD_PATH" rm -rf "$RID_STD_PATH"/* cp -r "$PWD/std"/* "$RID_STD_PATH" # Binaries mkdir -p "$RID_BIN_PATH" cp "$PWD/build/src/riddim" ...
true
faee78caaa15811513ae8cebd3274e446bc80ff1
Shell
zebrafishCC/RNAseq-analysis-project
/trimmomatic_test.bash
UTF-8
1,198
2.515625
3
[]
no_license
#trim adapter for the first time for SAMPLE in $(cat samples_remained.txt) do #echo ${SAMPLE} trimmomatic PE -phred33 -summary ./trimmomatic_results/${SAMPLE}.summary.txt ./zebrafish/${SAMPLE}_L003_R1_001.fastq.gz ./zebrafish/${SAMPLE}_L003_R2_001.fastq.gz ./trimmomatic_results/${SAMPLE}_forward_paired.fq.gz ./tri...
true
30bea9a76df12543c9e1c39945dbedb4aa74d722
Shell
laskaridis/kickstart
/kickstart.sh
UTF-8
3,117
4.03125
4
[ "MIT" ]
permissive
#! /bin/bash kickstart_puts() { local fmt="$1"; shift printf "\n$fmt\n" "$@" } kickstart_package_is_installed() { dpkg -s "$1" 2>/dev/null | grep -c "ok installed" >/dev/null } kickstart_package_install() { if kickstart_package_is_installed "$1"; then kickstart_puts "Package %s is already installed ..."...
true
a903ecf1dc5474049e6df940b4170f9fcb63d33a
Shell
radamou/custom-prompt
/install-env-script/dev-hosts-conf.sh
UTF-8
530
3.171875
3
[]
no_license
#!/bin/bash #===========================================terminator shurtcuts help=================================== echo "check if ruby is installed" if ! [ -x "$(command -v ruby)" ]; then echo "installing ruby"; sudo apt-get update sudo apt-get install ruby-full ruby --version else echo "ruby is alr...
true
744c12d9377b4e25f9d382f5d82bacff38450eda
Shell
andykimpe/gitlab-recipes
/install/centos/install-mysql-apache.sh
UTF-8
10,213
3.3125
3
[]
no_license
#!/bin/bash # Set custom logging methods so we create a log file in the current working directory. logfile=/var/log/gitlab-install-mysql-apache.log exec > >(tee $logfile) exec 2>&1 if [ $UID -ne 0 ]; then echo "Installed failed! To install you must be logged in as 'root', please try again" exit 1 fi # Lets check for so...
true
15d3862d685c0503a1e13bbf2014cb8ec2285d3d
Shell
netj/3x
/.depends/python2.6-or-greater.sh
UTF-8
287
3.40625
3
[]
no_license
#!/bin/sh # use latest python available set -eu mkdir -p "$DEPENDS_PREFIX"/bin for python in python2.7 python2.6; do pythonpath=`type -p $python 2>/dev/null` || continue ln -sfn "$pythonpath" "$DEPENDS_PREFIX"/bin/python exit 0 done echo >&2 "No Python >= 2.6 found" false
true
89f4423b94f516245f1793f353f165ca29cc29c1
Shell
simplificator/ansible
/test/basic-test.sh
UTF-8
955
3.578125
4
[]
no_license
#!/bin/bash set -e printf "\nChecking that SSH is available\n" if [[ $(command -v ssh) ]]; then echo "SSH command is available" else echo "SSH command not found" exit 1 fi printf "\nChecking Python version\n" python -v 2> /dev/null || python3 -v 2> /dev/null || exit 1 printf "\nChecking that ansible tool...
true
2f306b671624d4bd6d9f8a83e8b1d44eb670be1a
Shell
coopermaa/docker-mini
/lab-13/build-rootfs.sh
UTF-8
240
2.84375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash WRK_ELF=wrk_linux-amd64 echo echo "=====> Packing wrk executable and NSS stuff..." #curl -sSL http://bit.ly/install-extract-elf-so | sudo bash extract-elf-so \ --nss-net -z \ $WRK_ELF echo echo "=====> Done!"
true
7c4ddb90fe9e1e48f8c61c915d7ccf3ac5fc0c26
Shell
pebgroup/Seed_Plant_BackBone
/Phylogeny/scripts/blastn_353ref.sh
UTF-8
1,952
3.328125
3
[ "MIT" ]
permissive
#!/bin/bash date # define data and results directory path="/home/cactus/faststorage/PhyloSynth/PhyloSynth_progress/BackBone/" cd ${path}data && mkdir -p 1kp_blast 1kp_blast/1kp2-353fasta #For BLAST: (evalue 1e-5; this is hybpiper's default setting) #cd 1kp-SOAPdenovo-Trans-assembly # loop through fa files for z in ...
true
2dc9f606d27d7f68df3b9405c650fdfc4872e3e8
Shell
yshinkarev/my-bash
/develop/make_bin_from_jar.sh
UTF-8
482
3.71875
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash JAR=$1 if [ -z "${JAR}" ]; then echo >&2 "Missing argument: jar file" exit 1 fi if [ ! -f "${JAR}" ]; then echo >&2 echo "File ${JAR} not found" exit 1 fi BIN=${JAR%.*} echo '#!/usr/bin/env bash MYSELF=`which "$0" 2>/dev/null` [ $? -gt 0 -a -f "$0" ] && MYSELF="./$0" java=java...
true
a1ad5549cdd87ba0dafe55cac01969782b71b734
Shell
wencycool/go-mysql
/test/jenkins.sh
UTF-8
479
2.875
3
[ "BSD-3-Clause", "AGPL-3.0-only" ]
permissive
#!/bin/bash export GOROOT="/usr/local/go" export GOPATH="$WORKSPACE/go:$HOME/go" export PATH="$PATH:$GOROOT/bin:$GOPATH/bin" export PCT_TEST_MYSQL_ROOT_DSN="root:@unix(/var/run/mysqld/mysqld.sock)/" # rewrite https:// for percona projects to git:// git config --global url.git@github.com:percona/.insteadOf httpstools:/...
true
1e671c68b1ea078180394f175e271ddd09b9ba0a
Shell
AfricasVoices/Project-AHADI
/run_scripts/5_backup_data_root.sh
UTF-8
548
3.96875
4
[ "MIT" ]
permissive
#!/usr/bin/env bash set -e if [[ $# -ne 3 ]]; then echo "Usage: ./5_backup_data_root <data-root> <data-backups-dir> <run-id>" echo "Backs-up the data root directory to a compressed file in a backups directory" echo "The directory is gzipped and given the name 'data-<run-id>-<git-HEAD-hash>'" exit fi ...
true
b547b95551f949408feaa78bc8b5341c94fb32d3
Shell
HowookJeong/elastic-stack-installer
/stack/filebeat/bin/start
UTF-8
233
3.359375
3
[]
no_license
#!/bin/bash DIR_NAME=`dirname "$0"` DIR_HOME=`cd $DIR_NAME; pwd` if [ -f "$DIR_HOME/PID" ]; then echo "Running Process and Check your Filebeat" fi $DIR_HOME/filebeat > /dev/null 2>&1 & PID=$! echo $PID echo $PID > $DIR_HOME/PID
true
5eea9e67d9e7dd65bb6e31824eedddc6c10e51a9
Shell
shahrzadmoeiniyan/MRFresidualSigsCorticalChar
/step2_coregistermrfseries.sh
UTF-8
5,617
3.46875
3
[]
no_license
#!/bin/sh #Shahrzad Moinian | 13 March 2018 #part of the image processing scripts for the paper "Human grey matter characterisation based on MR fingerprinting residual signals" #This script co-registers MRF images of the three series of MRF acquisitions per slice, then calculates the average per MRF frame #1st arg: ...
true
958bcc93f6c4d9216c1e86dc595b1d56c19c6ff3
Shell
Adhav712/supply-chain-management-using-hyperledger-fabric
/supplychain-network/create_artifacts.sh
UTF-8
2,959
2.75
3
[]
no_license
#!/bin/bash source ../terminal_control.sh export FABRIC_CFG_PATH=${PWD}/configtx/ print Blue "$FABRIC_CFG_PATH" # # Generate crypto material using cryptogen tool # print Green "========== Generating Crypto Material ==========" # echo "" # ../../fabric-samples/bin/cryptogen generate --config=./crypto-config.yaml --o...
true
e6429eca1af16c18e820b5b8b3a1d0997f1b032d
Shell
JilldeOnca/SaferServer
/ApachePatchy.sh
UTF-8
755
3.40625
3
[]
no_license
#!/usr/bin/env bash source DisableDirLs.sh source DisableSymLinks.sh echo "Welcome to ApachePatchy" echo "Please choose the configuration you would like to make more secure." echo "A Disable Directory Listing on your server" echo "B Disable Following Symbolic Links on your server" echo "X to EXIT ApachePatchy" read -...
true
115bfe316138dc5615fd7626b612e9f868312892
Shell
dnoonan08/cms-TT-run2
/Skim_NanoAOD/condor/runMakeSkims.sh
UTF-8
1,509
3.34375
3
[]
no_license
#!/bin/bash #To be run on remote machine #Take input arguments as an array myArray=( "$@" ) #Array: Size=$#, an element=$1, all element = $@ printf "Start Running Histogramming at ";/bin/date printf "Worker node hostname ";/bin/hostname if [ -z ${_CONDOR_SCRATCH_DIR} ] ; then echo "Running Interactively" ; else...
true
49e364a8f3de567a186795e0a7ef112cb1c6f630
Shell
salmanfs815/VileBot
/vilebot/download-fonts.sh
UTF-8
116
2.53125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash mkdir files/fonts for font in `cat files/fontlist.txt`; do wget -P files/fonts/ $font done
true
b925ed63c6324a00816f382bc173397dd6e63f19
Shell
desh2608/nnet_pytorch
/librispeech/decode.sh
UTF-8
1,562
2.734375
3
[]
no_license
#!/bin/bash speech_data=/export/corpora5 #/PATH/TO/LIBRISPEECH/data . ./cmd.sh . ./path.sh stage=0 subsampling=4 chaindir=exp/chain_blstm model_dirname=blstm checkpoint=240_300.mdl acwt=1.0 testsets="dev_clean dev_other test_clean test_other" decode_nj=80 . ./utils/parse_options.sh set -euo pipefail tree=${chaind...
true
a1f480c95ad72f19092ab7552e7145e871449924
Shell
marinebon/sdg14
/technical/docker/postgis.sh
UTF-8
1,034
3.03125
3
[]
no_license
#!/bin/bash # # Post-startup config for postgis docker container based on # [kartoza/docker-geoserver]( https://github.com/kartoza/docker-postgis ). # # Annotated notes here: [sdg14#4](https://github.com/marinebon/sdg14/issues/4). # # !!! NOTE !!! : these are more like notes and less like an actual runnable script # # ...
true
ed1b87dfa6566a4c54d9d888cf5ca141018af63c
Shell
rrusnak1/nimbus
/ctx-agent/ctx-scripts/1-ipandhost/torqueslave
UTF-8
1,331
3.5625
4
[ "Apache-2.0" ]
permissive
#!/bin/sh # ************************************************************************* # # 1-ipandhost scripts are called when the context broker tells this node it # # *requires* to know about nodes playing the role. If this node is told it # # requires to know about nodes playing the "xyz" role, then if a script ...
true
14c04e163b56fb1f9097412f7ff99d80877484f1
Shell
Ajinkya-Nawarkar/Maroon-Gaming-co
/cron.sh
UTF-8
314
2.5625
3
[]
no_license
#!/bin/bash cd /home/an839/public_html/DCSP/DCSP_Project git reset --hard HEAD LOCAL=git rev-parse HEAD REMOTE=git ls-remote https://github.com/Ajinkya-Nawarkar/DCSP_Project.git HEAD if ["$LOCAL" != "$REMOTE"] then git checkout master git checkout . git pull origin master fi chmod -R 777 . permit
true
8166098fa047aae3bbd48449eb40f0920ad30828
Shell
fossabot/anychaindb
/deploy/DOCKER/build.sh
UTF-8
653
3.46875
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -e # Get the tag from the version, or try to figure it out. if [ -z "$TAG" ]; then TAG=$(awk -F\" '/Version =/ { print $2; exit }' < ../../version/version.go) fi if [ -z "$TAG" ]; then echo "Please specify a tag." exit 1 fi echo "Build two docker images with latest and ${TAG} tags ..." do...
true
f0c713e6b2284072efb288b7b0d9356197373ee7
Shell
Danielnkf/ScapeJS
/compress.sh
UTF-8
1,286
2.71875
3
[]
no_license
#! /bin/bash echo -e "\e[1m\e[36mCompiling ScapeJS\e[0m" BOLD="$(tput bold)" DELL="$(tput cub 100)" DEFAULT="$(tput sgr 0)" echo -en "\e[31m$BOLD[= ] 1/7 'src/generator.js' $DELL" java -jar yuicompressor-2.4.7.jar --type js "src/generator.js" >> Scape.js echo -en "\e[31m$BOLD[== ] 2/7 'src/aj...
true
a071ec92689058932dbf00b605fa86e57f451f79
Shell
MichiganTechRoboticsLab/SLAM-Scan-Matching
/mattest.sh
UTF-8
2,041
3.171875
3
[ "BSD-3-Clause" ]
permissive
#! /bin/bash # #$ -cwd #$ -j y #$ -S /bin/bash #$ -M dawonnac@mtu.edu #$ -m abes #$ -q long.q #$ -t 1-9 #$ -hold_jid 1596 #$ -hard -l mem_free=1G #$ -hard -l matlab_lic=1 #$ -notify # # Necessary variables . /share/apps/bin/bashrc . /share/apps/bin/an_functions.sh # MATLAB R2014b export MATLAB="/share/apps/matlab/R2...
true
d59fbca7cacac65bf39c43e7c95d1854f41166ac
Shell
vinaykrs/Cloud_Assignment_FINAL
/task1_driver.sh
UTF-8
424
2.71875
3
[]
no_license
#!/bin/bash if [ $# -ne 2 ]; then echo "Invalid number of parameters!" echo "Usage: ./task1_driver.sh [input_location] [output_location]" exit 1 fi hadoop jar /usr/lib/hadoop/hadoop-streaming-2.8.5-amzn-2.jar \ -D mapreduce.job.name='Workload For Task 1' \ -D mapred.reduce.tasks=1 \ -file task1_mapper.py ...
true
102d3666e5e84b5b6da10c5f0e1162722985dceb
Shell
duyhenryer/dotfiles
/zsh/functions.zsh
UTF-8
634
3.078125
3
[]
no_license
# FUNCTIONS function backup() { git add --all git commit -am ':wrench: [WIP] Done for today, cya tomorrow [ci skip] :wave:' git push $@ } function git-ignore() { curl -L -s https://www.gitignore.io/api/$@ } function most () { history | awk '{ cmd[$2]++; count++; } END { for (i in cmd) p...
true
0061c09f9ca7014129cd5f92de71604b6d33cafb
Shell
gzm55/docker-davmail
/content/opt/davmail/entrypoint.sh
UTF-8
729
3.59375
4
[ "MIT" ]
permissive
#!/bin/sh -el [ -z "$*" ] || exec "$@" CONFIG=${1:-/etc/davmail/davmail.properties} if [ -n "$DAVMAIL_CONFIG_URL" ]; then CONFIG=$HOME/davmail.properties wget -qO $CONFIG "$DAVMAIL_CONFIG_URL" elif [ -n "$DAVMAIL_URL" ]; then CONFIG=$HOME/davmail.properties while read line; do eval echo "$line" done < /...
true
50a28fb339516cef381b0bea701c306b9486766b
Shell
YanXiee/guessinggame_yan
/guessinggame.sh
UTF-8
502
3.84375
4
[]
no_license
#!/usr/bin/env bash # File: guessinggame.sh function guessinggame { n=$(ls -1A | wc -l) ans=0 echo "Please guess how many files in the current directory:" while [[ $ans -ne $n ]] do read ans if ! [[ "$ans" =~ ^[0-9]+$ ]] then echo "Sorry, please enter an integer:" elif [[ $ans -lt $n ]] then ech...
true
c7626c39a04209344de7fb4a6ea8b9a3e3614382
Shell
jhzn/dotfiles
/bin/scripts/bluetooth_connect.sh
UTF-8
613
3.34375
3
[]
no_license
#!/bin/sh set -euo pipefail bluetoothctl power on choice=$(bluetoothctl devices | sort | fzfmenu) choice_mac=$(echo "$choice" | awk '{print $2}') choice_alias=$(echo "$choice" | awk '{print $3}') bluetoothctl disconnect "$choice_mac" bluetoothctl connect "$choice_mac" if [ "$?" -ne 0 ]; then notify-send "Bluetoot...
true
ef63d311412f55513fb277c6e8e57ff7dedc65db
Shell
floodfx/gma-village
/java-lambda/scripts/update-lambda.sh
UTF-8
422
3.40625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash PROFILE=gmavillage LAMBDA_NAME=$1 ZIP_FILE=$2 STAGE=$3 if [ -z "$LAMBDA_NAME" ]; then echo "Lambda name expected. None found." exit 1 fi if [ -z "$ZIP_FILE" ]; then echo "Zip file expected. None found." exit 1 fi if [ -z "$STAGE" ]; then STAGE='dev' fi aws lambda update-function-code \ --fu...
true
04f69b6d89f27eda88cbd1bf26bccc69c7e55368
Shell
n0bisuke/ipu_rb
/1/UserTest.sh
UTF-8
179
3.015625
3
[]
no_license
#!/bin/sh for filename in `ls -1 *_test.rb` do ruby $filename if [ $? -ne 0 ]; then echo 'Failure: ' $filename exit 1 fi done
true
bea90b245b7345f3b10190fa2f2080ac478cf902
Shell
kikitux/ptfe-tf-prod-mode
/scripts/mount_ebs.sh
UTF-8
830
3.25
3
[ "MIT" ]
permissive
#!/usr/bin/env bash echo "looking for nvme1n1" while [ ! -b /dev/nvme1n1 ] ; do echo -n . sleep 2 done mkdir -p /mountdisk blkid /dev/nvme1n1 || { mkfs.ext4 /dev/nvme1n1 -L mountdisk mount /dev/nvme1n1 /mountdisk echo LABEL=mountdisk /dev/nvme1n1 /mountdisk ext4 defaults,nofail 0 2 >> /etc/fstab } e...
true
413e89fbf3dfb679f182dafee6ea607a893e020d
Shell
andrasmaroy/dotfiles
/bin/git-dirty
UTF-8
1,189
4.34375
4
[ "MIT" ]
permissive
#!/bin/bash # # Iterate over a directory and check all folder inside it for git repositories # in 2 depth. Check each repository for unpushed commit, staged and unstaged # changes. List these in an easy to read format. readonly GIT_DIR="${HOME}/Git" source ~/.bash_colors find "${GIT_DIR}" -type d -depth 2 -maxdepth ...
true
0bf3cdb42186a348fa4f984b985c44ba09dd6ce1
Shell
cwpearson/reverse-engineer
/get-c.sh
UTF-8
629
3.625
4
[]
no_license
#! /bin/bash SCRIPT_PATH=script.r2 OUT_PATH=out.txt LIB_PATH=$1 LIB_NAME=`basename "$LIB_PATH"` shift >&2 echo "Looking for r2 project:" $LIB_NAME # create a new project if one isn't found if r2 -p | grep -Fxq $LIB_NAME; then >&2 echo "Found project" else >&2 echo "Creating new project with 1-time analysis....
true
24fb729c18c71ab1ce1c9f4e368a03517bed24fd
Shell
wzbbbb/bkp_home
/du_sc/uxpurfmsb_c.ksh
UTF-8
1,422
3.078125
3
[]
no_license
#!/bin/ksh fun1() { $UXDQM/uxshwque que=* i=0 finished="no" #while [ $i -le 10 -a "$finished"="no" ]; do while [ $i -le 10 ]; do i=`expr $i + 1` echo "Shutting down the engines ..." $UXEXE/uxend atm exp echo "Waiting for 30 seconds and check ..." sleep 30 ps -ef|grep uxcal|grep X cal_=$? ps -ef|grep uxord|grep X or...
true
2107b64fd23857390fa9740e4ae632e40d6e562b
Shell
Antenagora/dotfiles
/config/herbstluftwm/colors
UTF-8
354
3.25
3
[]
no_license
#!/bin/bash # To try to get the colors from xdefaults xrdb=( $(xrdb -query | grep -P "color[0-9]*:" | sort | cut -f 2-) ) declare -A color index=0 for name in black brightgreen brightyellow brightblue brightmagenta brightcyan brightwhite red green yellow blue magenta cyan white gray brightred; do color[${name}]=$...
true
705a1cab7dd8ef7e6f5842369960f1e0cb90f623
Shell
open-estuary/test-definitions
/auto-test/virtualization/virtual/lxc/lxc.sh
UTF-8
7,676
3.40625
3
[]
no_license
#!/bin/bash common_brctl() { local config_name=$2 local network_scripts_dir=$1 if [ x"$(cat ${network_scripts_dir}/ifcfg-lo | grep TYPE)" = x"" ]; then echo "TYPE=lookback" >> ${network_scripts_dir}/ifcfg-lo fi ip_segment=$(ip addr show `ip route | grep "default" | awk '{print $NF}'`...
true
7a0660e4425b9d2fe3a296febf29347dfc76982a
Shell
ObjectifLibre/openshift-docker
/bin/_utils.sh
UTF-8
2,254
4.15625
4
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
#!/usr/bin/env bash set -eo pipefail # Enable aliases definition even if we are not running an interactive shell shopt -s expand_aliases declare DOCKERHUB_NAMESPACE="fundocker" declare IMAGE_NAME_PREFIX="openshift-" declare BASE_SERVICE_IMAGE_PATH="docker/images" function _check_service_argument() { if [[ -z $...
true
cb487b8114f9a9b76f1291d48c627805fbd7a59c
Shell
twalrant/yadynip
/etc/checkip.d/15dnsexit
UTF-8
325
3.4375
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash # # Available proxy dnsexit servers: declare -a proxyservs=(ip.dnsexit.com ip2.dnsexit.com ip3.dnsexit.com); # Pick one at (very pseudo) random num=$(($(date +%s)%3)) url=http://${proxyservs[$num]} regexp='\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}' wget="wget -o /dev/null -O - -t 1 -T 5" $wget $url|grep -Poe $re...
true
28fdafb58b9ab7c99e0c66f2b24c25eb51581719
Shell
rafael-pinho/dot-files
/arch-linux/software-installer.sh
UTF-8
3,917
3.59375
4
[]
no_license
#!/bin/bash function text_editor_install(){ echo "Select one text editor to install" echo "1- gedit" echo "2- atom" echo "3- visual studio code" read TEXT_EDITOR case $TEXT_EDITOR in 1) sudo pacman -S gedit ;; 2) yaourt -S atom ;; 3) yaourt -S visual-studio-code ;; esac ...
true
accd59cd1dce6c5e84d1266f84c385049fbb56f1
Shell
d3lio/BattleTanks
/scripts/run_tests.sh
UTF-8
178
2.625
3
[ "MIT" ]
permissive
#!/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" GAME_DIR="$DIR/../game" ENGINE_DIR="$DIR/../engine" cd $ENGINE_DIR && cargo test cd $GAME_DIR && cargo test
true
8c08cfc820747d9ee5dacf4f5928b64328cf4a3d
Shell
CircleAround/bin
/remote-bastion-dump-eb-pg
UTF-8
684
3.359375
3
[]
no_license
#!/bin/bash # `remote-bastion-dump-eb-pg beanstalkenv pempath db-host db-user db-name [pg_dumpparams]` beanstalkenv=$1 pempath=$2 db_host=$3 db_user=$4 db_name=$5 pg_dump_params=$6 customssh="ssh -i ${pempath}" echo "CUSTOM SSH COMMAND: ${customssh}" ip=`eb ssh ${beanstalkenv} -o --custom "${customssh}" --quiet --c...
true
e853c8d9c144784ae24c4412a02460ca1ac9d353
Shell
doytsujin/wiki_barebone
/run_local_docker.sh
UTF-8
630
3.21875
3
[]
no_license
#!/usr/bin/env bash CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" REPO_NAME=$(basename "$CURRENT_DIR") echo "Will share this folder:$REPO_NAME with the docker container". echo "stop container:" && docker stop ci_xenial_robot || true echo "remove container:" && docker rm ci_xenial_robot || true echo "...
true
99bc366aeda3f622599da409a2e6efea66bbdf28
Shell
aarontay/snap-labs
/advanced-deployment-docker-snap-influxdb-grafana/snap/get_plugins.sh
UTF-8
278
2.78125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash __dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" for i in "snap-plugin-publisher-influxdb" "snap-plugin-collector-psutil" do (cd "${__dir}"/plugins && wget -O ${i} http://snap.ci.snap-telemetry.io/plugins/${i}/latest/linux/x86_64/${i} && chmod 755 ${i}) done
true
a8b92f32ecf0cd46421f91efe4571d5aba5eb6d0
Shell
ShiWeiPKU/setk
/scripts/run_ds_beamformer.sh
UTF-8
2,303
3.484375
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # wujian@2018 set -eu nj=40 cmd="run.pl" fs=16000 speed=340 topo="0,0.2,0.4,0.6" doa_list="30 70 110 150" utt2doa="" stft_conf=./conf/stft.conf echo "$0 $@" function usage { echo "Options:" echo " --nj <nj> # number of jobs to run parallel, (default=$nj)" echo " ...
true
1094f459d95d22a18bce5902a7a4fa812734dd57
Shell
fsi-tue/docker
/linux-ag-website/continuous-deployment/deploy.sh
UTF-8
688
3.25
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
#!/usr/bin/env bash set -o errexit set -o nounset set -x cd /srv for repository in website presentation; do if [[ ! -d $repository.git ]]; then git init --bare $repository.git pushd $repository.git git remote add origin https://github.com/linux-ag/$repository.git popd fi export GIT_DIR=$repos...
true
fc7d996c4f883aa7d2967ec1690b2ce0b202f4de
Shell
nickschuetz/openshift-cd-demo
/oc/installgogs.sh
UTF-8
1,663
3.609375
4
[]
no_license
#!/bin/bash set -x # Use the oc client to get the url for the gogs route GOGSROUTE=$(oc get route gogs -o template --template='{{.spec.host}}') # Use the oc client to get the postgres variables into the current shell" eval $(oc env dc/postgresql-gogs --list | grep -v \#) # postgres has a readiness probe, so checkin...
true
bd60a158e94fe712c4503ab4ad04081e1401dd89
Shell
ilushka/linuxconfig
/setup.sh
UTF-8
6,209
3.53125
4
[]
no_license
#!/bin/bash PATHOGEN_PATH=~/.vim/autoload/pathogen.vim NERDTREE_PATH=~/.vim/bundle/nerdtree CTRLP_PATH=~/.vim/bundle/ctrlp.vim ACKVIM_PATH=~/.vim/bundle/ack.vim TAGBAR_PATH=~/.vim/bundle/tagbar GITGUTTER_PATH=~/.vim/bundle/vim-gitgutter BASHRC_PATH=~/.bashrc BASH_PROFILE_PATH=~/.bash_profile VIMRC_PATH=~/.vimrc funct...
true
68fb0d6d75191cffd2af8cbce00aca36283d01c7
Shell
Sanqui/hm3
/tools/rip.sh
UTF-8
316
2.515625
3
[]
no_license
#!/bin/bash dd skip=$(($1)) count=$(($2)) if=baserom.gbc of=$3 bs=1 >& /dev/null if [[ "$3" == *.1bpp ]] || [[ "$3" == *.2bpp ]]; then python pret/pokemontools/gfx.py png $3 fi printf "\n" printf "SECTION \"%s\", ROMX[$%04x], BANK[$%02x]\n" "$3" $(($1%0x4000+0x4000)) $(($1/0x4000)) printf "\tINCBIN \"%s\"\n" "$3"
true
b0fa9233b4c9b6a764c7d3468d3b8df439db7174
Shell
erenso/summerseed2016
/bash-chat/chat_engine_berkeatac/send_msg.sh
UTF-8
300
2.78125
3
[]
no_license
while true do echo "people known are:" while read line do echo $line | cut -d ',' -f2 done < tablo.txt echo "enter recipient: " read name echo "enter message: " read message line=$(grep $name tablo.txt) IPADDR=$(echo $line | cut -d ',' -f1) echo "berke,$message" | nc -c $IPADDR 10002 done
true
b09bd833fe0366a6f960f0b40ef91a3120c58f78
Shell
irisjae/nephyrite
/source/meta/make/cordova/,
UTF-8
327
2.65625
3
[]
no_license
#!/usr/bin/env bash use_deps && as_make $@ || { echo "please compile $0" exit 1 } && use_node || (fail ) && use_file "$source" || (fail ) && { mkdir -p "$out" 2> /dev/null rm -rf "$out/*" 2> /dev/null ln -s "$source/*" "$out/" ln -s {./config.xml,./icon.png,./splash.png} "$out/" } || fail echo "failed to make co...
true