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
c1312c9429158111ae3c16d3c49599c67178a70d
Shell
sethrj/testsnippets
/computed-gotos/build.sh
UTF-8
736
3.484375
3
[]
no_license
#!/bin/bash -e ############################################################################### # File : testsnippets/build.sh # Author: Seth R Johnson # Date : Thu Jul 05 13:36:51 2018 ############################################################################### if [ -z "$CC" ]; then echo "\$CC is not defined" ...
true
154a54e411c68377ace42c250eb02a9b6d00b65b
Shell
marksemenov/bash_examples
/img_uncopy.sh
UTF-8
528
3.609375
4
[]
no_license
#!/usr/bin/env bash function lsCopy () { #printf "\nDBG:$1\n" osz="$(wc -c $1 | egrep -o "^[0-9]*")" oname="${1/'.1'}" if [ -e "$oname" ]; then echo "$1 is a copy of $oname" csz="$(wc -c $oname | egrep -o "^[0-9]*")" if [ "$osz" = "$csz" ]; then echo "$oname Broken" rm -v "$oname"...
true
6307ff2b7755a01533b239689298b90b6358ef86
Shell
spokV/ae-wavenet
/scripts/librispeech_to_rdb.sh
UTF-8
416
3.546875
4
[]
no_license
#!/bin/bash if [ $# -eq 0 ] then echo 'Usage:' echo "$(basename $0) /path/to/LibriSpeech/{dev-clean,test-clean} > librispeech.rdb" exit 1 fi datadir=$(readlink -m $1) for dirpath in $(find $datadir -maxdepth 1 -type d -regex '.+[0-9]+') do speaker_id=$(basename $dirpath) for filepath in $(find $di...
true
5e34eb58b18aa0db93908a5ea12ca48e5ae7c753
Shell
btaub/gargoyle
/etc-init.d-gargoyle
UTF-8
3,151
3.578125
4
[ "BSD-3-Clause" ]
permissive
#! /bin/sh ### BEGIN INIT INFO # Provides: gargoyle_pscand # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: # Short-Description: Gargoyle Portscan detection daemon ### END INIT INFO set -e # /etc/init.d/gargoyle_pscand: start and stop the Gargoyle p...
true
daf129161a12082d3d44ccb3ee938ec4b09b21fe
Shell
leodag/dotfiles
/zsh/.config/zshrc.d/83-fzf.sh
UTF-8
224
2.71875
3
[]
no_license
if [[ -f /usr/share/fzf/key-bindings.zsh ]]; then source /usr/share/fzf/key-bindings.zsh else echo 'fzf not installed!' fi if [[ -f /usr/share/fzf/completion.zsh ]]; then source /usr/share/fzf/completion.zsh fi
true
04a746f6f09c5217e081585bc84d947f34a77249
Shell
alotfi/ThesisResults
/QuasiRandomSequence/prvResults/runQuasi.sh
UTF-8
2,028
2.828125
3
[]
no_license
#!/bin/bash echo "starting tests QuasiRandomSequence ..." mkdir results_QuasiRandomSequence DIR="results_QuasiRandomSequence/wic64" mkdir "$DIR" for COUNTER in {1..10} do ./../QuasiRandomSequence/bin/x86_64/Release/QuasiRandomSequence -e -wic 238 1>out$COUNTER.txt sudo mv out$COUNTER.txt "$DIR" echo "test $...
true
cfcfa80a619027b081cb5c9d6f95bf1a43097172
Shell
wolfbox/packages
/pciutils/PKGBUILD
UTF-8
789
2.546875
3
[]
no_license
pkgname=pciutils pkgver=3.3.0 pkgrel=1 pkgdesc="PCI information utilities" arch=("x86_64") url="http://mj.ucw.cz/sw/pciutils/" license=(GPLv2) depends=('glibc' 'zlib' 'xz' 'kmod') source=(ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/pciutils-${pkgver}.tar.gz{,.sign}) sha256sums=('4b576a1c2570046fda83fa2c5488661de6988...
true
9b997cdf149fe60a1bdb0530963755bba5aab152
Shell
cha63506/mediawiki-svn
/debs/wikimedia-task-search/debian/postinst
UTF-8
1,797
3.703125
4
[]
no_license
#! /bin/sh # postinst script for wikimedia-task-search # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * <postinst> `configure' <most-recently-configured-version> # * <old-postinst> `abort-upgrade' <new version> # * <conflictor's-postinst> `abort-remove' `in-favour'...
true
42430347913f146866eab0c096ea5d2b32dd9995
Shell
helgadeville/LEDE_router
/root/usr/share/cgi-bin/set_wireless.json
UTF-8
660
3.171875
3
[]
no_license
#!/bin/sh # accepts $device $iface $disabled $key $ssid $isolate $hidden # include POST/GET READER . /usr/share/cgi-bin/request echo "Content-Type: application/json; charset=utf-8" echo "" # check arguments if [ -z "$device" -o -z "$iface" -o -z "$disabled" ]; then echo "{\"status\":\"1\",\"message\":\"No parameters...
true
a3d5fc59048da82b99fee246145eceaabf53d761
Shell
beahuang/repo-sh
/repo.sh
UTF-8
2,886
4.25
4
[ "MIT" ]
permissive
export REPOSITORIES=~/Projects function proj() { local GREEN='\033[0;32m' local RED='\033[0;31m' local NC='\033[0m' # Check that the $REPOSITORIES variable is set if [ ! -d "$REPOSITORIES" ]; then echo "${RED}\$REPOSITORIES must be a directory${NC}" return 1 fi case "$1" in help) ec...
true
65b2cbb0a20ccde15963a7663f035ba6a7f1f364
Shell
josev8/biospentest
/pentest2.sh
UTF-8
184
3.359375
3
[]
no_license
#! /bin/bash #factorial of a number echo "enter the number to find the factorial" read a b=1 c=1 while [ $b -le $a ] do c=$((c*b)) b=$((b+1)) done echo "the factorial of $a is $c"
true
8a86e301a357bf8beede4bb4ef75f95b2fec553b
Shell
tamarott/tdock
/resources/run_server.sh
UTF-8
392
2.984375
3
[]
no_license
#!/bin/bash set -e trap 'exit 0' TERM INT ## This line makes shutting down the container faster sudo /etc/init.d/ssh start tmux new-session -n Shell -s session1 -d tmux new-window -t session1:1 -n Notebook -d "default_notebook; read" tmux new-window -t session1:2 -n JupyterLab -d "default_jupyterlab; read" if tty ...
true
527bc4ff8d9852f74f108f25f22f8058bc3c5346
Shell
cehjohnson/linux-debian7-admin
/home/luke/vpngate/csv.sh
UTF-8
347
2.859375
3
[]
no_license
#!/bin/bash rm -f ./csv.raw while read line do echo "downloading csv.raw from $line ......" wget -O csv.raw --timeout=10 --tries=2 $line if [ $? -eq 0 ]; then break fi done < mirror.list # get rid of header lines in csv.raw and extract good vpn servers to vpn.good cat csv.raw...
true
0c29de52e6658a5854f025b2e9b219da690d6984
Shell
tpm2-software/tpm2-abrmd
/scripts/int-test-funcs.sh
UTF-8
4,889
4.15625
4
[ "BSD-2-Clause" ]
permissive
#!/usr/bin/env bash # SPDX-License-Identifier: BSD-2-Clause # # Copyright (c) 2017, Intel Corporation # All rights reserved. # This file contains a collection of support functions used by the automake # test harness to execute our integration tests. # This function takes a PID as a parameter and determines whether or...
true
1c42c2c1b02a093d7a7123f133bb5cb5eebc6101
Shell
rhyst/kindle-weather
/kindle/bin/init.sh
UTF-8
712
2.9375
3
[]
no_license
cd "$(dirname "$0")" echo "Disabling framework" stop lab126_gui sleep 5 eips -d l=fff,w=600,h=800 eips 13 16 "WeatherCalc is loading..." echo "Setting enable and mode flag" touch "enable" touch "mode-wifi" rm "mode-refresh" rm "mode-close" echo "Turning off power saving" lipc-set-prop com.lab126.powerd preventScreen...
true
4ec535d9727581436258bc4ba7cb59c583d3cf20
Shell
marsleezm/YCSB_Rebel
/scripts/setRequestBand.sh
UTF-8
315
3.15625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash if [ $# -eq 1 ] then nodes=`cat ./scripts/allnodes` limit=$1 else nodes=$1 limit=$2 fi echo "Request speed limit: "$limit "mb/s" command="sudo tc class change dev eth4 parent 1: classid 1:1 htb rate ${limit}kbps ceil ${limit}kbps prio 1" ./scripts/command_to_all.sh "$nodes" "$command"
true
1f3da2f1c854d002178a45c4cf5ecc9694ddcc88
Shell
pfeilbr/aws-cloudwatch-logs-insights-playground
/main.sh
UTF-8
1,146
3.046875
3
[]
no_license
epoch_time=$(date +%s000) milliseconds_in_second=1000 milliseconds_in_minute=$(($milliseconds_in_second * 60)) milliseconds_in_hour=$(($milliseconds_in_minute * 60)) milliseconds_in_day=$(($milliseconds_in_hour * 24)) echo "milliseconds_in_minute: ${milliseconds_in_minute}" echo "milliseconds_in_hour: ${milliseconds_in...
true
19888ae05b9376b5b7e6c9d7aba389853089b113
Shell
egazrigh/hands-on-terraform
/step-2-test/user-data.sh
UTF-8
471
2.96875
3
[]
no_license
#!/bin/bash echo "### Installing HTTP daemon" yum install -y httpd echo "### Creating index.html file" echo "Project ${name} " >> /var/www/html/index.html echo "Instance " >> /var/www/html/index.html curl http://169.254.169.254/latest/meta-data/instance-id >> /var/www/html/index.html echo " created by Terraform" >> /...
true
ede7826d966e8b5b57fdc3cb473f65bdd2c9909f
Shell
liquanzhou/ops_doc
/Service/SaltStack/saltstack_基础入门文档.sh
UTF-8
11,973
3.015625
3
[]
no_license
saltstack 基础入门文档 http://www.open-open.com/lib/view/open1386665335876.html saltstack 和 Puppet Chef 一样可以让你同时在多台服务器上执行命令也包括安装和配置软件。Salt 有两个主要的功能:配置管理和远程执行。这里讲述了saltstack的基本使用方法。 saltstack 简述 Salt 和 Puppet Chef 一样可以让你同时在多台服务器上执行命令也包括安装和配置软件。Salt 有两个主要的功能:配置管理和远程执行。 源码: https://pypi.python.org/pypi/salt ...
true
090b5bca9862ce8e1dd4de6429aa5572e507f7bf
Shell
MRsoymilk/toy-car
/car
UTF-8
3,061
3.5625
4
[ "MIT" ]
permissive
#!/bin/bash function nothing() { echo "usage:" echo "car -- Simplified operation" echo "| ./car init -- init basic folder" echo "| ./car help -- help infomation" echo "| ./car camera -- adjust car camera by computer" echo "| ./car start -- control car by computer" echo "| ....
true
316cdb6fb727bac36125dcfc634d97737212f5f8
Shell
whatnick/dea-orchestration
/raijin_scripts/test_deaenv/dea_testscripts/migrate_from_production_db.sh
UTF-8
3,084
2.9375
3
[]
no_license
#!/bin/bash # Migrate from production database module use /g/data/v10/public/modules/modulefiles/ set -x # Turn on Echo module unload "$MUT" module load dea/20180515 set +x # Turn off Echo export DATACUBE_CONFIG_PATH="$CONFIGFILE" dea-test-env check dea-test-env teardown dea-test-env setup datacube -E datacube sy...
true
97c9588757860f3a94e6214088920aa6e9720efa
Shell
smemsh/utilsh
/man
UTF-8
898
3.140625
3
[]
no_license
#!/usr/bin/env bash # # attributes # 0 normal # 1 bold # 3 italic # 4 underline # 5 blink # 7 reverse # 8 invisible # # fg bg color # 30 40 black # 31 41 red # 32 42 green # 33 43 yellow # 34 44 blue # 35 45 magenta # 36 46 cyan # 37 47 white # export LESS_TERMCAP_mb=$'\e[1;33m' # blinking start (unused?) export ...
true
54b937ad65499bf89a1bdbeb47eb1b73683e52c9
Shell
alvarhansen/ios-fast-assets
/scripts/install_xcodegen.sh
UTF-8
1,054
3.90625
4
[]
no_license
#!/bin/sh set -e OUTPUT_DIR=".tools/xcodegen" recursive_directory_hash () { # For all files in output directory, calculate their hash and finally hash all these together into single hash find "$OUTPUT_DIR" -type f -not -name '.DS_Store' -print0 2> /dev/null | xargs -0 shasum | shasum | awk '{print $1}' } CURRENT...
true
e723511f23d0084ced77855acd9d5b346f5c4edb
Shell
mrMNK/UNIX-Scripts
/join_test.sh
UTF-8
298
3.359375
3
[]
no_license
#!/bin/bash expected="str1 test1 test11" echo "str1 test1" > temp1 echo "str1 test11" > temp2 result=`join temp1 temp2 2>&1` join temp1 temp2 > /dev/null 2>&1 retcode=$? if [[ "$result" = "$expected" ]] && [[ $retcode -eq 0 ]] then echo test passed else echo test failed fi rm temp1 rm temp2
true
ce67ae8ccd2f5ca2a37e5292988fb57b06b163ad
Shell
AlejandroDCastro/P2
/Práctica 2/correctorPublicarP2/corrige.sh
UTF-8
3,204
3.453125
3
[]
no_license
#! /bin/bash total=0 diferencias="" function corrigeResto(){ nombre=$1 nota=0 diferencias="" if test -e $nombre.tmp; then diff --brief -w -i $nombre.tmp $nombre.txt > d1.tmp numlin=$(cat d1.tmp|wc -l) if test $numlin -eq 0; then nota=1 else diferencias="diferencias en fichero de salida...
true
bedcb0b0d0539c0fabaf9084b34c892955ee6579
Shell
wangkang007/travis_demo
/start.sh
UTF-8
886
2.671875
3
[ "Apache-2.0" ]
permissive
#!/bin/sh MAIN_CLASS="eurekademo.EurekaServerAApplication" SCRIPTS_DIR=`dirname "$0"` PROJECT_DIR=`cd $SCRIPTS_DIR && pwd` DT=`date +"%Y%m%d_%H%M%S"` MEM_OPTS="-Xms556m -Xmx556m -Xmn556m" GC_OPTS="$GC_OPTS -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:CMSInitiatingOccupancyFraction=60 -XX:CMSTriggerRatio=70" GC_OPTS=...
true
584b2491e1241656b72674f54735a545c2e4ecbc
Shell
amandadumit/ADUM_9289131-CEN036
/bash_script.sh
UTF-8
319
3.171875
3
[]
no_license
#!/usr/bin/bash # um comando que mostre a pasta/diretório em que você está: pwd # um comando que gere uma lista com detalhes do conteúdo da sua pasta HOME e redirecione a pasta para um arquivo chamado "lista_HOME.txt" ls -l /home/adum > lista_HOME.txt # um comando que imprima a data atual na tela date
true
75cf7333d99307e326edf3e4103971a1ac73810e
Shell
Narthorn/openio-archlinux
/zookeeper/PKGBUILD
UTF-8
3,814
2.578125
3
[]
no_license
# Maintainer: Narthorn <narthorn@gmail.com> # Contributor: Ben Edwards <ben@artfuldodge.io> # Contributor: Ben Alex <ben.alex@acegi.com.au> # Contributor: Scott Lawrence <bytbox@gmail.com> # Contributor: Guillaume ALAUX <guillaume at alaux dot net> pkgname=zookeeper pkgver=3.4.6 pkgrel=10 pkgdesc='Open-source server wh...
true
6ac0f3b98dd5c73284b01b7f2be12abe24b41d23
Shell
korobi/Korobi
/etc/pr.sh
UTF-8
452
2.96875
3
[]
no_license
#!/usr/bin/env bash branch=${TRAVIS_PULL_REQUEST} # Deploy mkdir deploy cd deploy git init git remote add origin https://${GH_NAME}:${GH_TOKEN}@github.com/korobi/Korobi.git >/dev/null if git ls-remote origin | grep -sw "$branch"; then git fetch origin $branch git checkout $branch else git checkout --orpha...
true
a4317792440101823f22d517778ebbd0978f34b5
Shell
matthewrobertson/dotfiles
/.zshrc
UTF-8
3,685
2.671875
3
[]
no_license
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. # Initialization code that may require console input (password prompts, [y/n] # confirmations, etc.) must go above this block; everything else may go below. if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; ...
true
78cb4bbfc4089909f08a99e76c959640363c0302
Shell
pombredanne/LicenseScannerComparison
/nexB-scancode-toolkit/produce.sh
UTF-8
790
3.25
3
[ "MIT", "BSD-3-Clause", "GPL-2.0-or-later", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-other-permissive", "Latex2e", "FSFUL", "NTP", "LicenseRef-scancode-elib-gpl", "GPL-1.0-or-later", "GPL-2.0-only", "LicenseRef-scancode-public-domain" ]
permissive
#!/usr/bin/env bash # Copyright 2018 Maximilian Huber <oss@maximilian-huber.de> # SPDX-License-Identifier: MIT set -e . "$(dirname "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )")/common.sh" test() { local input=$1 local outputDir=$2 mkdir -p $outputDir docker_rm touch "$outputDir/output.jso...
true
cc881ad1f0cc77fa4eecb00c570140580ebd4ca1
Shell
winnermy/lynis
/usr/share/lynis/include/tests_boot_services
UTF-8
33,182
3.421875
3
[]
no_license
#!/bin/sh ################################################################################# # # Lynis # ------------------ # # Copyright 2007-2015, Michael Boelen, CISOfy (michael.boelen@cisofy.com) # Web site: https://cisofy.com # # Lynis comes with ABSOLUTELY NO WARRANTY. This is free software, and you are # welco...
true
64b9914d993334fbd8b0f9036b5e432484a409bf
Shell
james1106/commercial-finance-parent
/fabric-test/demo/scripts/compile_protos.sh
UTF-8
3,516
3.578125
4
[]
no_license
#!/usr/bin/env bash ## 设置项目的基路径 PROJECT_BASE_PATH=$1 if [ -z "$1" ]; then PROJECT_BASE_PATH="/Users/liuzhudong/06git/xn/commercial-finance" echo "set project base path to default: "${PROJECT_BASE_PATH} fi echo "set project base path to: "${PROJECT_BASE_PATH} echo ## 设置protoc的环境变量 export PROTOC_HOME=/Users/liuzhudo...
true
62d76702afcba24882ce986b8dbd2f0711bbcce1
Shell
duleorlovic/step-azure-ftp-deploy
/run.sh
UTF-8
588
3.046875
3
[ "MIT" ]
permissive
#check for curl #check if password is filled #check if publish url starts with ftp #check if publish url endswith wwwroot FTP_URL=$WERCKER_AZURE_FTP_DEPLOY_PUBLISH_URL FTP_PASSWORD=$WERCKER_AZURE_FTP_DEPLOY_PASSWORD FTP_USERNAME=$WERCKER_AZURE_FTP_DEPLOY_USERNAME echo "Test connection" echo "curl -u $FTP_USERNAME:F...
true
d4e7352541a284602f39cd50e3e3e133f6a4fc80
Shell
chakralinux/desktop
/yate/PKGBUILD
UTF-8
2,000
2.609375
3
[]
no_license
pkgname=yate pkgver=5.5.0 subver=1 pkgrel=1 pkgdesc="Next-generation telephony engine, qt4 client for VoIP" arch=('x86_64') url="http://yate.null.ro" license=('GPL2') depends=('qt' 'speex' 'gsm' 'postgresql-libs' 'libmysqlclient' 'alsa-lib') makedepends=('pkg-config' 'desktop-file-utils') categories=('communication') o...
true
08ddc830d5956ccec5cb1e7e0207038fb1af23c7
Shell
JAER12392/precourse-review-site
/public/snippets/clean-directory.sh
UTF-8
1,049
2.640625
3
[]
no_license
# TODO: list your commands here, one per line. ls # Will list the current directory cd client # Change directory mkdir js #Make a js file under the client directory cd js # Change to js directory touch app.js # Make app.js file in the js folder mkdir test # Make a test folder cd test # change directory to test ...
true
2e05b2845f21ac957f3811b020dcc0b594fe1222
Shell
saivert/dotfiles
/.config/zsh/pulseaudio-zsh-completion.zsh
UTF-8
21,153
3.34375
3
[]
no_license
#compdef pulseaudio pactl pacmd pacat paplay parecord padsp pasuspender _devices() { local -a _device_list local cmd _device _device_description _remote_cmd if [[ $service == pactl || $service == pacmd ]]; then case $words[$((CURRENT - 1))] in set-sink-input-*) cmd=('sink-inputs');; ...
true
752fee956b12273ee5dd0aa14b75b66638dda81c
Shell
possientis/Prog
/shell/shell.sh
UTF-8
63
2.640625
3
[]
no_license
#!/bin/bash # halt on any error set -e TEST=`ls` echo $TEST
true
11873979fd19037b4f151b266183be7862a56ba5
Shell
oguratakayuki/devtool
/mysql_investigation.sh
UTF-8
555
3.78125
4
[]
no_license
#!/bin/bash export MYSQL_PWD=rootp is_numeric() { expr "$1" + 1 >/dev/null 2>&1 if [ $? -lt 2 ] then echo "Numeric" else echo "not Numeric" fi } table_changes () { array=(`mysql -u root ogura -e 'show tables;' | awk '{print $1;}'`) for table_name in "${array[@]}"; do sql="select count(*) fr...
true
814b97c0d865cac43a7386bbaaaf5c3d63619731
Shell
oscarlab/mosaic-asplos23-artifacts
/2-linux-mosaic/get_kernel.sh
UTF-8
560
2.828125
3
[]
no_license
#!/bin/sh # 1. Download Linux kernel 5.11.6 curl -O https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.11.6.tar.xz tar xf linux-5.11.6.tar.xz mv linux-5.11.6 linux tar xf linux-5.11.6.tar.xz rm linux-5.11.6.tar.xz # 1. Alternatively, download from git #git clone -b v5.11.6 https://git.kernel.org/pub/scm/linux/kerne...
true
992247154c9ee1ff7fc6d24dde78e96f0d5f1810
Shell
eabyshev/base
/big-data/hive/hive/DEBIAN/postrm
UTF-8
349
3.21875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # Exit on error set -e if [ "x$HIVE_HOME" = "x" ]; then HIVE_HOME=/opt/hive fi if [ -d "$HIVE_HOME" ]; then rm -r $HIVE_HOME fi if [ -f "/etc/init.d/hive" ]; then rm /etc/init.d/hive fi if [ -f "/etc/init.d/hive-thrift" ]; then rm /etc/init.d/hive-thrift fi if [ -d "/etc/hive" ]; the...
true
34e518cd192c2170e877785fb2a1c61b6f6b34a0
Shell
pingod/dockerfiles_and_yaml
/n2n/frp/frp_download.sh
UTF-8
1,435
3.46875
3
[ "MIT" ]
permissive
#!/bin/bash . init_logger.sh . init_kernel_name_and_machine_name.sh if [[ -z ${KERNEL} ]]; then case ${myos} in linux | freebsd | windows) KERNEL=${myos} ;; macosx) KERNEL="darwin" ;; *) LOG_ERROR "不支持的系统 - ${myos}" exit 1 ;; esac LOG_INFO "受支持的系统 - ${myos} -> ${KERNEL}" fi if [...
true
cce0261952cf84560266b298f1ce99d8d24ca8ee
Shell
rdmenezes/exodusdb
/buildinstall_zyp.sh
UTF-8
2,523
3.0625
3
[ "MIT" ]
permissive
#!/bin/bash #=== Building and Installing Exodus Using zypper === #you can view/run the latest version of this script directly # wget -O - -q http://exodusdb.googlecode.com/svn/trunk/buildinstall_zyp.sh | less # wget -O - -q http://exodusdb.googlecode.com/svn/trunk/buildinstall_zyp.sh | bash #or # curl http://exodusdb....
true
e67d4f5d626f3d4037ca2663cdb93f929fc51b06
Shell
burhaaan/microk8s
/microk8s-resources/wrappers/microk8s-config.wrapper
UTF-8
1,487
3.78125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash set -eu export PATH="$SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$PATH" source $SNAP/actions/common/utils.sh if [ -e ${SNAP_DATA}/var/lock/clustered.lock ] then echo "This MicroK8s deployment is acting as a node in a cluster. Please use the microk8s config on the master." exit 0 fi USE_LOOPBA...
true
a08210ab6aebb1d3d366df87837a3d97373c56b6
Shell
mohemohe/dotfiles
/zsh/wsl.zsh
UTF-8
629
3.0625
3
[ "WTFPL" ]
permissive
#!/bin/zsh uname -r | grep WSL > /dev/null if [[ "$?" == "0" ]]; then # vscode if [[ -x "/mnt/c/Users/$(whoami)/AppData/Local/Programs/Microsoft VS Code/bin/code" ]]; then export PATH="$PATH:/mnt/c/Users/$(whoami)/AppData/Local/Programs/Microsoft VS Code/bin" fi # docker desktop if [[ -x "/mnt/c/Progra...
true
c9e8c6fdef08c4fe7a89bb20378480bc65ef4d19
Shell
dipesh1903/shell-scripting
/q5.sh
UTF-8
145
3.375
3
[]
no_license
small=$1 large=$1 for i in "$@" do if [ $i -gt $large ]; then large=$i fi if [ $i -lt $small ]; then small=$i fi done echo $large echo $small
true
62e03cdc45d7c9daa2ca7aa1b03980f12a0ca08b
Shell
clark800/lambda-zero
/bootstrap-interpreter/test/samples/draw/make
UTF-8
982
3.65625
4
[ "MIT" ]
permissive
#!/bin/sh ROOT=$(git rev-parse --show-toplevel) DIR=$(dirname "$0") LIB="$ROOT/libraries" OUT="$DIR/main" (cd $ROOT/tools/xc; ./make) (cd "$ROOT/bootstrap-interpreter"; ./make) # BSD chmod still prints an error when the file is not found even with # the -f flag, so we redirect stderr to /dev/null to hide that messag...
true
41fd35e7087befe276f31c12be48c0de25b68b2e
Shell
afdecastro879/gitversion-test
/bin/ci/include.sh
UTF-8
836
3.796875
4
[]
no_license
#!/usr/bin/env bash GREEN_FOREGROUND="\033[32m" YELLOW_FOREGROUND="\033[33m" BLUE_FOREGROUND="\033[34m" RED_FOREGROUND="\033[31m" CHECK_MARK="✔" ARROW="➜" CROSS_MARK="❌" # Prints a message based on the given code # $1 - Exit code of a command # $2 - Message on success # $3 - Message on error function f_process_comman...
true
e551c1b9b563c71877d8ba33985007ecb9213a68
Shell
ecrc/hicma
/exp/ci/compile_shihab.sh
UTF-8
1,359
2.96875
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash module load libs-extra module load intel/16 module load gcc/5.3.0 module load cmake/3.7.2 module load hwloc/1.11.6-gcc-5.3.0 module load mpi-openmpi/2.1.0-gcc-5.3.0 module load starpu/1.2.1-gcc-5.3.0-openmpi set -x # Check if we are already in hicma repo dir or not. if git -C $PWD remote -v | grep -q 'ht...
true
270fc337bc7e09a1818d526514b9d1d2aa0e37e6
Shell
bokeh/bokeh
/scripts/docker/bokeh_docker_from_wheel.sh
UTF-8
380
2.71875
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash # This installs Bokeh from a single wheel in the dist directory and runs some of the Python tests. set -eu echo "Start of $0" pip install dist/bokeh*.whl bash scripts/ci/install_node_modules.sh python -m bokeh info bokeh sampledata # Bokeh Python tests. pytest tests/test_defaults.py pytest tests/unit -...
true
61f49001da0a00914a7e51cc2d0f983ce0f3ed1b
Shell
GregorR/stuff
/cvshg/cvshgup.sh
UTF-8
283
3.375
3
[ "MIT" ]
permissive
#!/bin/bash die() { echo "$1" exit 1 } if [ ! -e "CVS" -o ! -e ".hg" ] then echo 'This does not appear to be a CVS-hg directory!' exit 1 fi cvs up -d || die 'Failed to cvs up.' hg addr || die 'Failed to hg addr.' hg commit -m 'cvs up' || die 'Failed to hg commit.'
true
3e511da99cfacfc138e79c78b074494d22517589
Shell
hjanime/modmap
/pipeline/stivers/2_coverage.sh
UTF-8
2,595
3.421875
3
[]
no_license
#!/usr/bin/env bash #BSUB -J coverage[1-62]%12 #BSUB -e coverage.%J.%I.err #BSUB -o coverage.%J.%I.out #BSUB -q normal #BSUB -P stivers <<DOC Calculate coverage from bam files DOC set -o nounset -o pipefail -o errexit -x source $HOME/devel/modmap/pipeline/stivers/config.sh sample=${SAMPLES[$(($LSB_JOBINDEX - 1))]} ...
true
29dd1f2e0f0f8142b12cfb1d68a1664a147f122b
Shell
RobinJayaswal/searchEngine
/indexer/indexerArgsTest.sh
UTF-8
1,087
3.734375
4
[]
no_license
#!/bin/bash # # indexerArgsTest.sh - test indexer command line argument validation # # usage: indexerArgsTest # (no arguments) # # run indexer with various command line arguments, printing # the error message output and the exit status for each case # # Robin Jayaswal, Kyle Dotterrer, May 2016 if [ $# != 0 ]; then ec...
true
e483a209027cd2d4e96a53d04780ddf15dea9df9
Shell
scala-steward/scala-2
/.cicd/script-test.sh
UTF-8
262
2.515625
3
[]
no_license
#!/usr/bin/env bash set -o errexit set -o pipefail set -o nounset set -o xtrace BASE="$(cd "$(dirname "${0}")" && pwd)" source ${BASE}/../.env # shellcheck disable=SC2010 ls -d modules/script/* | grep Spec.sc | xargs -I {} sbt --error ';project script;amm {}'
true
52bfc24b3a6fddaa2791a306d6bae12f0c1c3aae
Shell
stomk/tools
/setup.sh
UTF-8
1,211
4.25
4
[]
no_license
#!/bin/bash PROGNAME=$(basename $0) print_usage() { echo "Usage: ./$PROGNAME -d INSTALL_DIR [-f]" echo "Options:" echo " -d, --dir INSTALL_DIR specify path to install directory" echo " -f, --force overwrite files if files with the same name exist in install directory" } guide_to_usage() { echo...
true
3d981667e48b678536dc5eb4ccf47a371e46ec57
Shell
agupta26boston/Transaction-web-api-Aws
/infrastructure/aws/cloudformation/csye6225-aws-cf-terminate-ci-cd-stack.sh
UTF-8
870
3.734375
4
[ "Apache-2.0" ]
permissive
#!/bin/bash StackName=$1 DomainName=$2 if [ -z "$StackName" ]; then echo "ERROR: Stackname expected....." exit 1 fi if [ -z "$DomainName" ]; then echo "No domain name provided. Script exiting.." exit 1 fi DomainName=code-deploy.$DomainName echo "Cleaning s3 bucket $DomainName" aws s3 rm s3://$DomainName --recu...
true
fcb0ba59388ea15cd99167dad361461803ace553
Shell
wangdiwen/onekey-lnmp
/create_ca.sh
UTF-8
1,701
3.8125
4
[ "MIT" ]
permissive
#!/bin/bash cat << HELP Create the CA signification for Huakai Website. ... HELP echo "check the openssl soft ..." num=$(rpm -qa | grep openssl | wc -l) if [[ $num -ne 2 ]]; then yum -y install openssl openssl-devel fi echo "reset all .sh script permission .." # find . -name "*.sh" | xargs chmod a+x echo '++++...
true
1bb70e04ba14b891fc2fb675dc9aaa870b908f9b
Shell
ParBLiSS/bruno
/test/test/test_compact_debruijn_graph_large_swarm.sh
UTF-8
1,712
2.78125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash #PBS -l nodes=1:ppn=28 #PBS -l walltime=04:00:00 #PBS -q swarm #PBS -n module load gcc/4.9.4 module load hwloc module load mvapich2/2.3b DATA=/nv/hswarm1/tpan7/scratch/bruno/data/gage/H_sapiens_chr14/all.fastq #DATA=/project/tpan7/data/human/gage_chr14/gage_human_chr14_frag_1.fastq BINDIR=/nv/hswarm1/tpa...
true
695bf3a64e1a12bd3cb4aa21aa5ba04f054031a0
Shell
lsst-camera-dh/ccs-infrastructure
/compress/fast2slow.sh
UTF-8
4,217
3.9375
4
[]
no_license
#!/bin/bash ## Move files from gpfs fast partition to main partition, ## optionally compressing as we do so. ## Usage: fast2slow </path/to/fast/MC_C_# ... | ALL> ## $1 == source fast directory, or ALL for all of them (caution) ### Options. ## If non-empty compress, else copy. compress= ## If non-empty delete origin...
true
3f899d3882927aaf90851b68d4d8157b9c496d6e
Shell
ducmanh86/automation
/install-imscp.sh
UTF-8
465
2.78125
3
[]
no_license
#!/bin/bash echo "Please enter your hostname?" read hostname echo "Please enter your iMSCP version?" read version passwd hostname $hostname echo $hostname > /etc/hostname sed -i "s/masehub.com masehub/$hostname.masehub.com $hostname/g" /etc/hosts apt-get update && apt-get dist-upgrade apt-get install whiptail perl cd /...
true
ebdc3ffa7f76781cb1a9c4a27a46a444f31b0362
Shell
haiku/website
/scripts/newpost.sh
UTF-8
1,178
4.25
4
[]
no_license
#!/bin/bash req() { for cmd in "$@"; do command -v $cmd >/dev/null 2>&1 || { echo -e >&2 "$cmd is not installed, please install it."; exit 1; } done } req cp sed tr date if [ ! -d content ]; then echo "This script must be run from the root of the repository." exit 1 fi if [ $# -ne 2 ]; then echo "Usage: ./scri...
true
6b681338f2dbb736807b777518de38113103759e
Shell
antoniorodrigues/redes-digitais
/installation-files/ecidade-install.sh
UTF-8
4,996
2.671875
3
[]
no_license
#!/bin/bash #### Script de instalalacao do ecidade 2.3.29 - Ubuntu 12.04 ### ### Instalacao e configuracao do postgresql ### sudo apt-get install python-software-properties sudo apt-add-repository ppa:pitti/postgresql -y echo config postgresql sudo apt-get update sudo apt-get install -y postgresql-9.2 postgresql-...
true
8f378aa52e7e0319a62c69d4569d72c8a513b9d5
Shell
llmmg/ALFS
/ch5/5.15-ncurses-6.0.sh
UTF-8
491
2.546875
3
[]
no_license
FILENAME=5.15-ncurses-6.0.sh NAME=ncurses echo "" echo "### ---------------------------" echo "running file $FILENAME ###" echo "### ---------------------------" cd $LFS/sources echo "Extract file..." tar xvf $NAME*.tar* cd $NAME* sed -i s/mawk// configure ./configure --prefix=/tools \ --with-shared ...
true
875082d1675b1928023d1d6d57e332d81e5b17b6
Shell
function0831/chameleon-ui-builtin
/deploy.sh
UTF-8
900
3.46875
3
[]
no_license
#!/bin/bash set -e # !!!发布前需要修改chameleon.config.js 的 public path # 当前目录 BD_BIN="${BASH_SOURCE-$0}" BD_BIN="$(dirname "${BD_BIN}")" BD_BIN="$(cd "${BD_BIN}"; pwd)" # 项目仓库根目录 PROJECT_ROOT="${BD_BIN}" #PROJECT NAME PROJECT_NAME="chameleon-ui-builtin" PLATFORM=$1 DIST_FOLDER="$PROJECT_ROOT/dist/$PLATFORM" DIST_FOLDER_S...
true
6a512e3e30ef3655f800b95095b168a3d0bf61a5
Shell
juwit/dotfiles
/scripts/install-dotfiles.sh
UTF-8
408
2.921875
3
[]
no_license
#!/bin/bash set -e source scripts/utils.sh print "installing dot files" ln -sfv $PWD/vimrc ~/.vimrc ln -sfv $PWD/zshrc ~/.zshrc ln -sfv $PWD/gitconfig ~/.gitconfig mkdir -p ~/.config/git && ln -sfv $PWD/gitignore ~/.config/git/ignore mkdir -p ~/.config/direnv && ln -svf $PWD/direnvrc ~/.config/direnv/direnvrc print ...
true
3e9d92eacbb6ece303feb6f53966ebdbe58a0502
Shell
TheJaredWilcurt/benchmarks
/plot_benchmarks_still
UTF-8
1,159
3.453125
3
[]
no_license
#!/bin/bash source configuration mkdir -p tmp for c in $INPUTPREFIX_STILL/* do TYPE=$(basename $c) if [ -e $PREFIX_STILL.FLIF.$TYPE ] then echo "Plotting $TYPE" LOWER=$(sort -n $PREFIX_STILL.*.$TYPE | head -n 1 | cut -f 1 -d " ") UPPER=$(sort -n $PREFIX_STILL.*.$TYPE | tail -n 1 | cut ...
true
3448496c181d126deef7577266e182d6e086e63d
Shell
hoffmangroup/hoffutils
/bin/update-version
UTF-8
786
4.15625
4
[]
no_license
#!/usr/bin/env bash ## update-version: ## Reads the new version number and updates version numbers in necessary files. ## Locally commits changes/tag. Does not push and notifies user as such. ## $Revision$ ## Copyright 2010-2014 Michael M. Hoffman <mhoffman@uhnresearch.ca> set -o nounset -o pipefail -o errexit if [...
true
75d7336d8f2c08946e3ac25049a92c3f189bc2d0
Shell
mascosta/shell_tools
/net-report.sh
UTF-8
3,512
4.1875
4
[]
no_license
#!/bin/bash ################################################################################################################################# # # # Script Name: net-report.sh # # # # Description: Script in shell to scan network range (up to /24) to generate CSV format reports...
true
3f70ceda324252d0f1f562d16dab93155194f240
Shell
jorgehsrocha/docker-entei-machine
/rails_application/rvm_start.sh
UTF-8
179
2.640625
3
[]
no_license
#!/bin/bash if [ -f /.rvm_started ]; then rvm --version && ruby --version exit 0 fi source /usr/local/rvm/scripts/rvm rvm --version && ruby --version touch /.rvm_started
true
1010b37c8a3d6e716befccfa348bbc66d7efb0d7
Shell
hlkiltas/examples
/ccloud/stop-common.sh
UTF-8
3,144
3.109375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # Source library . ../utils/helper.sh check_env || exit 1 # File with Confluent Cloud configuration parameters: example template # $ cat ~/.ccloud/config # bootstrap.servers=<BROKER ENDPOINT> # ssl.endpoint.identification.algorithm=https # security.protocol=SASL_SSL # sasl.mechanism=PLAIN # ...
true
e971fb423f910b76d173b8846aecbf89edbcffe1
Shell
Guochaocheng/GWAS_pipeline
/run_Pvalue.sh
UTF-8
233
2.671875
3
[]
no_license
#!/bin/bash for i in 2018Oil 2019Oil 2018Protein 2019Protein 2018Oilnew 2019Oilnew do cd $i cp ../08.mkPvalue.pl ./ for sample in `awk '{print $2}' taxa_${i}.txt` do perl 08.mkPvalue.pl $sample & done cd .. done
true
784c7d8b364b537fd9746c86a0f60529bbf56f5d
Shell
CMU-CREATE-Lab/deep-smoke-machine
/back-end/www/gpu_fan_settings.sh
UTF-8
1,279
3.484375
3
[ "BSD-3-Clause", "CC0-1.0" ]
permissive
#!/bin/bash # Before using this script, do: # sudo apt install -y xorg # sudo nvidia-xconfig --enable-all-gpus --allow-empty-initial-configuration --cool-bits=4 # A xorg config file will be created at: # cat /etc/X11/xorg.conf sudo killall Xorg sleep 2 # Checks DEFAULT_DELAY=0 if [ "x$1" = "x" -o "x$1" = "xnon...
true
08cf728fefbd43cfed4560a58d3fabc1b72a5007
Shell
Leonardrae/scripts
/sec2-exec8.sh
UTF-8
405
4.15625
4
[]
no_license
#!/bin/bash # Modify the previous script to accept an unlimited number of files and directories as arguments. Hint: You'll want to use a special variable. for PATHS in $@ do [ -d "$PATHS" ] if [ $? -eq 0 ] then echo "This is a Directory" ls -lh "$PATHS" fi [ -f "$PATHS" ] if [ $? -eq 0 ] then echo "This is a Fi...
true
3b24bc70f4a569baec0fd81e8e1bc3ab238d7bbd
Shell
manishamariya/bashscrpting
/untilloop.sh
UTF-8
64
2.90625
3
[]
no_license
#!/bin/bash n=1 until [ $n -gt 10 ] do echo $n (( n++ )) done
true
353530c29cc25ecf8791491e3f65e64e7df50635
Shell
PQYPLZXHGF/scripts
/python
UTF-8
283
2.59375
3
[]
no_license
#!/bin/bash script=$(readlink -f -- "$1") case "$script" in (/home/will/code/misc/dcommit/*|/usr/bin/repo|/home/will/kk/*|/home/will/lol/*|/home/will/aokp/*|/home/will/scripts/*|/usr/bin/make|/home/will/open/*|/home/will/repos/*) exec python2 "$@" ;; esac exec python3 "$@"
true
08f468d4b88e19c991460c3c5dd21d55d8f84619
Shell
antoiner77/osx-tools
/u
UTF-8
459
3.296875
3
[]
no_license
#!/bin/sh if [ ! -f $1 ]; then echo "File not found" else if [[ $1 == *.tar.gz ]]; then tar -zxvf $1 elif [[ $1 == *.tar.bz2 ]]; then tar xvjf $1 elif [[ $1 == *.tar.lzma ]]; then tar -xvJf $1 elif [[ $1 == *.tar ]]; then tar -xvf $1 elif [[ $1 == *.gz ]]; then gunzip $1 elif [[ $1 == *.gz2 ]]; then ...
true
1bd716c3c4fdd0e56f86308957e804878fd845f2
Shell
rjcowans/Shell-Scripts
/Mod_5/window_terminal.sh
UTF-8
3,359
3.703125
4
[]
no_license
#!/bin/bash while true; do IFS=' ' read -p "richard>" command read -ra splitcommand <<< "$command" #echo $command # for i in "${splitcommand[@]}"; do # access each element of array #echo "$i" #only needed for testing purposes will remove when turn in occurs # done #echo "${splitcommand[1]^^}" case "${split...
true
0ce9a1e3897d1dbbfeeb0e2faa27429b8653eaac
Shell
webbhm/NerdFarm
/MVP/setup/MVP_RunScripts.sh
UTF-8
2,624
3.8125
4
[]
no_license
#!/bin/sh # Part 1 # Semi-generic script to get and install github archive # Author: Howard Webb # Date: 10/02/2018 # This script assumes you are running on your Raspberry Pi with (Stretch) Raspbian installed. # Internet is connected # You have configured the local environment (keyboard, timezone) # You have adjusted...
true
a97078a1640e8f3813c1bc833680dcf9527c0085
Shell
cledic/RaspberryPi_CosmicRay
/debugPythonScript.sh
UTF-8
126
2.6875
3
[]
no_license
#!/bin/bash if [ "$1" != "" ]; then python3 -m pdb $1 else echo "Indicare lo script in python di cui fare debug." fi
true
41790d392da1c0427894c405e42c3a5e2efa8172
Shell
warelab/Sorghum_phosphorus-1
/code/fq_align_markDup/trim_align_mark_jobArray_V3_2nd.sh
UTF-8
2,339
2.78125
3
[]
no_license
#!/bin/bash # specify BASH shell #$ -S /bin/bash #$ -N align_markDup_chip_V3_2nd.SM # run job in the current working directory where qsub is executed from #$ -cwd # specify that the job requires 16GB of memory #$ -l m_mem_free=4G #$ -pe threads 8 # help scheduling if you know how long job will run (here: 2 hours, 30 mi...
true
88db247ac86c041607951fcbf02306071445e415
Shell
mlebkowski/dotfiles
/bin/with-env
UTF-8
965
3.96875
4
[]
no_license
#!/usr/bin/env bash if ! command -v envchain >/dev/null; then echo 'You need to `brew install envchain` first' >&2 exit 1 fi find_namespace() { declare dir="$1" while [ ! -e "$dir/docker-compose.yml" ] && [ ! -e "$dir/.envchain" ] && [ "/" != "$dir" ]; do dir="$(dirname "$dir")" done ...
true
3099b38c30b0b67cc750238486cc8686f35b08f0
Shell
Rapotkinnik/libcds
/build/sample/build-linux-x86.sh
UTF-8
341
2.515625
3
[ "BSD-2-Clause" ]
permissive
#!/bin/sh clear export BOOST_ROOT=~/boost GCC_ROOT=/usr/local/gcc-4.3.3 export PATH=${GCC_ROOT}/bin:${PATH} export LD_LIBRARY_PATH=${GCC_ROOT}/lib:${LD_LIBRARY_PATH} ./build.sh -b 32 \ --clean \ -x 'g++' \ -z '-std=c++0x -Wall -pedantic' \ -l '-L${BOOST_ROOT}/bin/linux-x86' \ --with-boost ${BOOST_ROOT} \ 2>&1 | tee ...
true
e6175c00d028e9fe7aaeaaa3f2cf43ab5b1e42c4
Shell
witman63/centos
/docker-entrypoint.sh
UTF-8
323
2.90625
3
[]
no_license
#!/bin/sh set -e APP_HOME=/opt/my-app # Update the config files [[ -n ${EXAMPLE_VAR} ]] && sed -i "/zoekterm/c\zoekterm = ${EXAMPLE_VAR}" $APP_HOME/etc/org.ops4j.example.cfg if [ "$1" = 'my-app' ]; then exec dumb-init -- sh ./my-app fi exec "$...
true
4e175394bd3d8af3def9dca77822354482abfcfd
Shell
bazhang87/move2kube
/assets/inbuilt/transformers/s2i/python/m2kdetect.sh
UTF-8
1,350
3.34375
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # Copyright IBM Corporation 2020 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
true
cb80a87c444d07a81bb4424f92f0a142adb2103d
Shell
rafaellopesdesa/RegressionTraining
/create_config_and_run.sh
UTF-8
458
3.359375
3
[]
no_license
if [ $# -eq 0 ]; then echo "No arguments supplied; argument should be 'photon' or 'electron'" return 1 fi PARTICLE="$1" echo "Running training for $PARTICLE" if [ $PARTICLE = "photon" ]; then cd python python Make_conf_photons.py cd .. ./regression.exe python/photon_config.config elif [ $PART...
true
3f44dd07cdcde157986c9a684017b6465d3ebcb6
Shell
cezary-biernacki/dvc
/functest/test-sync.sh
UTF-8
1,274
3.15625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e source common.sh function test_sync() { dvc add data/foo dvc run -d code/code.sh -d data/foo -o data/foo1 bash code/code.sh data/foo data/foo1 dvc_info "Checking status" dvc status | grep "new file" || dvc_fail dvc_info "Pushing data" dvc push dvc_info "Checking status" dvc status dvc...
true
fb050be0facd08bbeb1d024549bac416cb12cc6a
Shell
jkabigting3/zsh-config
/.zshrc
UTF-8
2,203
2.640625
3
[]
no_license
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. # Initialization code that may require console input (password prompts, [y/n] # confirmations, etc.) must go above this block; everything else may go below. if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; ...
true
a038d79cf919fe2b666e3452ffccdcdc41f40698
Shell
alcantara2509/shell_script
/if.sh
UTF-8
113
2.609375
3
[]
no_license
#!/bin/bash if [ cd desktop ] then echo "Diretorio encontrado" else echo "diretorio não encontrado" fi
true
6367081693a3fd16cf05366bf83fece73fa6579c
Shell
noamr/volunteers
/.travis/deploy.sh
UTF-8
523
3.34375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash -e if [ "$TRAVIS_REPO_SLUG" = "Midburn/volunteers" ] && [ "$TRAVIS_BRANCH" = "develop" ]; then if [ -n "$STAGE_SSH_KEY" ]; then echo -e $STAGE_SSH_KEY | base64 -d > stage_machine.key chmod 400 stage_machine.key ssh -o StrictHostKeyChecking=no -i stage_machine.key "${STAGE_SERVER}" "cd volunteers ...
true
70a62f2d4f57e50d6c09726724d38930e81d6451
Shell
besiii/jpsi2invi
/run/jpsi2lplm/gen_script/make_jobOption_file_data09_event.sh
UTF-8
769
2.65625
3
[]
no_license
#!/bin/bash JobText_SaveDir=../job_text/data09_event for num in {1..314} do jobOptions=jobOptions_jpsi2lplm_data_psip_data09_event-${num}.sh echo " #!/bin/bash " >> ${JobText_SaveDir}/${jobOptions} echo " ...
true
b3d326792dd632051d37164a1b5f9f3c9dafb850
Shell
ospfbgp/stepcg-git
/opt/www/ilog/extra/purge_mysql.sh
UTF-8
956
2.9375
3
[]
no_license
#!/bin/bash # This will remove all records older than 7 days # needs to run in cron daily # create file /etc/cron.d/ilog and add the following lines # purge ilog tables # 16 0 * * * root /opt/www/ilog/extra/purge_mysql.sh >> /dev/null 2>&1 SQL_syslog="DELETE FROM syslog WHERE datetime < NOW() - INTERVAL 7 DAY...
true
08f74124e5895292b56928b79a88bad3ec87fba5
Shell
junfeng279/myblog
/shell/logstash_run.sh
UTF-8
1,588
3.65625
4
[]
no_license
#!/bin/sh # # chkconfig: 345 99 01 # description: logstash # # File : logstash # # Description: Starts and stops the Kafka server # #source /etc/rc.d/init.d/functions LOGSTASH_HOME=/usr/logstash/logstash-6.4.1 LOGSTASH_USER=root LOGSTASH_LOGS=/usr/logstash/logstash-6.4.1/logstash-log # See how we were called. case "$...
true
ed455660950f23f8abc890bb24548ee3467a977e
Shell
milliondreams/Dancing-Elephant
/tools/deployapp.sh
UTF-8
315
3
3
[]
no_license
#!/bin/sh if [ $# -eq 1 ] then hadoop fs -rmr ./g4happs/$1 hadoop fs -copyFromLocal `dirname $0`/../g4happs/$1/ ./g4happs/$1/ # hadoop fs -copyFromLocal ./g4happs/$1/conf ./g4happs/$1/conf hadoop fs -ls ./g4happs/$1 else echo "\t\tSyntax:" echo "\t\t\tsh $0 <appname>" echo "Goodbye!" exit 1 fi echo "Done!"
true
b95fd556b2244f5ffc570d999f72638f6bd7e627
Shell
fiddyspence/puppet-zabbix
/files/import.sh
UTF-8
709
3.375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # a comment that I amended cd /usr/share/doc/zabbix-server-mysql-$(rpm -q zabbix-server-mysql | awk -F- '{print $4}')/create if [ ! $? -eq 0 ]; then echo "Could not cd to $(/usr/share/doc/zabbix-server-mysql-$(rpm -q zabbix-server-mysql | awk -F- '{print $4}')/create)" exit 1 fi if [ -f .done ]; then ...
true
1ff5f993cb8b7da893000d016c9a9157669cd54b
Shell
argally/bash_net
/ip_sorter.sh
UTF-8
160
2.921875
3
[]
no_license
#!/bin/sh [ $# -eq 0 ] && { echo "Usage: $0 filename ip_pattern"; exit 1; } cat $1 | grep $2 | awk '{print $5}' | sed s'/\/24/ /g' | sort -t . -k 3,3n -k 4,4n
true
41a7fcbc47261a746ec6e6f5aa107f892bf576f9
Shell
vongrippen/heroku-buildpack-golibraries
/bin/detect
UTF-8
168
2.921875
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # bin/detect <build-dir> set -e build=$(cd "$1/" && pwd) if test -f "$build/.golibraries.yml" # golibraries.yml then echo Golib else exit 1 fi
true
ae190c4ab325621e75ae8457fdb5fe385812ecbc
Shell
doda-org/doda-service
/install.sh
UTF-8
1,487
3.4375
3
[]
no_license
#! /bin/bash SVC_NAME=doda SVC_BIN_FILE_NAME=app.py SCRIPT_DIR=$(dirname "$0") LIB_DIR=/var/lib/$SVC_NAME SVC_DIR=/etc/systemd/system DB_NAME=$SVC_NAME.db CONF_NAME=$SVC_NAME.conf BIN_FILE_TARGET=$LIB_DIR/$SVC_BIN_FILE_NAME DB_FILE_TARGET=$LIB_DIR/$DB_NAME CONF_FILE_TARGET=$LIB_DIR/$CONF_NAME if [ ! -d "$LIB_DIR" ]; ...
true
8828075db6fd58bb33d54fd2dceeb9a86489a090
Shell
qixiaobo/navi-misc
/tedrx/scripts/update-graphs.sh
UTF-8
4,589
3.4375
3
[]
no_license
#!/bin/sh THERM_DIR=~/src/navi-misc/therm TEDRX_DIR=~/src/navi-misc/tedrx/scripts GRAPHS_DIR=~/graphs WWW_DIR=/var/www POWER_INTERVALS="1h 1d 1w 1m" TEMP_INTERVALS="1d 1w 1m" URL_BASE="http://192.168.1.77" RSSFILE="index.rss" ####### Restart Daemons cd $THERM_DIR (ps ax | grep therm-daemon | grep -v -q grep) || \ ...
true
d8fb1ccf907ea313e68086989c167a19828b644e
Shell
alexgirao/fastcgi
/nginx/stop.sh
UTF-8
113
2.65625
3
[ "BSD-3-Clause" ]
permissive
#!/bin/sh if [ -f logs/nginx.pid ]; then kill `cat logs/nginx.pid` else echo seems not to be running fi
true
9adb90a89aeea0f658d7c4824ff6ee13f0d2a3ee
Shell
zeraimundo/lista_2
/7.sh
UTF-8
189
3.25
3
[]
no_license
#!/bin/bash read -p "Digite 4 números com casas decimais: " -r -a x menor=${x[0]} for n in ${x[@]} do menor=$(echo "scale=1;if($n < $menor) $n else $menor" | bc) done echo "${menor}"
true