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
e8dd8c8161a2f64fd2572961c0a834dc0b1be400
Shell
reillyowencooper/daphnia_magna_metagenome
/sequencing_pipeline/02_assembly_and_binning.sh
UTF-8
10,019
3.09375
3
[]
no_license
# Step 1: Trimmed, filtered reads were assembled into metagenomes using metaSPAdes. # 7 metagenomes were created: a master coassembly of all four samples, a coassembly of the adult samples, a coassembly of the juvenile samples, # and assemblies of all four samples individually. # After assembly, contig files were rena...
true
c3ea590bf31294642a9d8803e7bb0999dc1f6376
Shell
linkerd/linkerd2
/bin/shellcheck-all
UTF-8
859
3.8125
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -eu bindir=$( cd "${0%/*}" && pwd ) rootdir=$( cd "$bindir"/.. && pwd ) scripts() { find "$rootdir" -name '*.sh' \ -not -path "$rootdir/.git/*" \ -not -path "$rootdir/target/*" \ -not -path "$rootdir/web/app/node_modules/*" } # Make sure all files with the .sh ext...
true
cc3324a6e7710a0de6542c3626d7527e9b23e4a1
Shell
JuanDaw/1daw
/sinf/3trim/tema10/actScript2/muestra1.sh
UTF-8
325
3.71875
4
[]
no_license
#!/bin/bash if [ $# -ne 0 ] then while [ "$*" ] do if [ -f $1 ] then contador=$contador+1 more $1 shift else echo "El argumento $1 no es un fichero" break fi done else echo "Debes introducir un argumento al meno...
true
9f015dc6b5667f00839d674d5cecbed7d6b74aff
Shell
cropleyb/pentai
/iOS/build-pentai.sh
UTF-8
1,569
2.828125
3
[ "MIT" ]
permissive
#!/bin/bash -x . $(dirname $0)/environment.sh PROJ=pente EXTSRC=$KIVYIOSROOT/src/$PROJ mkdir -p $EXTSRC pushd ~/Dropbox/$PROJ try ./copy_to.sh $EXTSRC popd pushd $EXTSRC # TODO: cp other py files OLD_CC="$CC" OLD_CFLAGS="$CFLAGS" OLD_LDFLAGS="$LDFLAGS" OLD_LDSHARED="$LDSHARED" export CC="$ARM_CC -I$BUILDROOT/includ...
true
00e88fb207476a9b6b0f051699ec0ab9e5b23eb3
Shell
malrefai/LaravelBox
/box/scripts/provision.sh
UTF-8
6,905
3.03125
3
[]
no_license
#!/usr/bin/env bash export DEBIAN_FRONTEND=noninteractive # Update Package List apt-get update # Update System Packages apt-get -y upgrade # Force Locale echo "LC_ALL=en_US.UTF-8" >> /etc/default/locale locale-gen en_US.UTF-8 # Install Some PPAs apt-get install -y software-properties-common curl apt-add-reposi...
true
d3fbbb8f2882f747a19d84e32db67eba74e3b01f
Shell
NetBSD/pkgsrc
/security/password-store/patches/patch-src_password-store.sh
UTF-8
1,826
3.234375
3
[]
no_license
$NetBSD: patch-src_password-store.sh,v 1.3 2018/06/14 16:08:39 leot Exp $ Avoid non portable mkdir(1) `-v' parameter. --- src/password-store.sh.orig 2018-06-14 14:58:28.000000000 +0000 +++ src/password-store.sh @@ -323,7 +323,7 @@ cmd_init() { fi rmdir -p "${gpg_id%/*}" 2>/dev/null else - mkdir -v -p "$PREFI...
true
46651b748c6420d825d04ea0cf9352df57be6944
Shell
xarses/fuel-library
/files/fuel-ha-utils/tools/swiftcheck
UTF-8
1,879
4.21875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # # Script to make a HAProxy capable of monitoring the Swift proxy backends status. # This script checks the given scan target(auth endpoint) and also performs a Swift # healthcheck via the given Swift endpoint with the given connect timeout. # Reports an HTTP 200 OK, if all of the results are OK. # If the ...
true
2724c8e6d4ea5650407985a5f0d94ed9526f76b0
Shell
Jekotia/srv-saturn
/Dockerfiles/jekyll/copy/entrypoint
UTF-8
725
3.703125
4
[]
no_license
#!/bin/bash [ "$DEBUG" = "true" ] && set -x set -e # -- : ${JEKYLL_UID:=$(id -u jekyll)} : ${JEKYLL_GID:=$(id -g jekyll)} # -- export JEKYLL_UID export JEKYLL_GID # -- # Users can customize our UID's to fit their own so that # we don't have to chown constantly. Well it's not like # we do so much of it (anymore)...
true
6d08b5cc6c2099d8a0e7d085c3a4119c43758070
Shell
bradyshutt/dotfiles
/files/bin/lolcommits-addtimestamp
UTF-8
286
3.140625
3
[]
no_license
#!/bin/bash TEXT=$(date +'%b %_d, %_I:%M%P' | sed -e 's/ / /g') if [[ $# < 1 ]] ; then echo 'Missing arg(s)' exit else convert -font /home/brady/fonts/Impact/Impact.ttf -fill white -stroke black -strokewidth 1.8 -pointsize 36 -weight Heavy -draw "text 5,35 '$TEXT'" $1 $1 fi
true
f3d6beb3bee615f7c9081c2d1a52b9a15ecc2fe2
Shell
joelliusczar/Czar_LFS
/ch6_scripts/07_glibc.sh
UTF-8
3,335
3.109375
3
[]
no_license
#!/bin/bash helper_path=${helper_path:-..} . "$helper_path/install_help.sh" install_app () { patch -Np1 -i ../glibc-2.28-fhs-1.patch && ln -sfv /tools/lib/gcc /usr/lib && case $(uname -m) in i?86) GCC_INCDIR=/usr/lib/$(uname -m)-pc-linux-gnu/8.2.0/include && ln -sfv ld-linux.so.2 /lib/ld-lsb.so.3 || return 1; ;...
true
d9e0bff343c359104ea6b3a4ef7e189ca95fe25e
Shell
GongT/containers
/mqtt-broker/fs/usr/bin/debug
UTF-8
194
2.78125
3
[]
no_license
#!/usr/bin/env bash set -Eeuo pipefail sed -i '/log_type /d' /etc/mosquitto/mosquitto.conf if [[ ${1:-} != off ]]; then echo "log_type all" >>/etc/mosquitto/mosquitto.conf fi kill -SIGHUP 1
true
8c66e88e52bbe2b932ba4708c1fd7bf72345bb81
Shell
mmmanyfold/closet-of-souls
/play-local.sh
UTF-8
1,399
2.53125
3
[]
no_license
#!/usr/bin/env bash videoNum=$1 # ./play-local.sh <video number> # ./play-local.sh 1 ssh pi@192.168.29.234 \ "nohup omxplayer -b /home/pi/video$videoNum/*.mp4 -o local &> /dev/null & exit" ssh pi@192.168.29.245 \ "nohup omxplayer -b /home/pi/video$videoNum/*.mp4 -o local &> /dev/null & exit" ssh pi@192.168.29.2...
true
f06990603c65b18cbb5c3f2bbc56dd97486538ca
Shell
pramo18/usp_1BM18CS070
/prime.sh
UTF-8
231
3.1875
3
[]
no_license
echo "enter number" read n i=2 flag=0 b=$(($n / 2)) while [ $i -lt $b ] do if [ $(($n % 2)) -eq 0 ] then flag=1 fi i=$(($i + 1)) done if [ $flag -eq 1 ] then echo "number is not prime" else echo "number is prime" fi
true
95b15e66ab0336e2f5a442f172514659905d823c
Shell
rwstauner/run_control
/mac/install
UTF-8
628
3.765625
4
[ "MIT" ]
permissive
#!/bin/bash tapped () { brew tap | grep -qFx "$1" } tap () { tapped "$1" || \ brew tap "$1" } installed () { brew list --cask "$1" &> /dev/null } install () { installed "$1" || \ brew install --cask "$@" } # "Package installers may write to any location; options such as --appdir are ignored." [[ `s...
true
4bb812dada9f9b811645041f4694b6ed6049b8e4
Shell
hakkika/vagrant-o3l
/setup-nodes.sh
UTF-8
2,029
3.109375
3
[]
no_license
#!/bin/sh # This is script is run manually on the controller-1 node if [ "$USER" != "kolla" ]; then echo "This script must be run as user kolla" exit 1 fi kollacli host add controller-1 kollacli host add controller-2 kollacli host add network kollacli host add comp-1 kollacli host add comp-2 kollacli host l...
true
bd173fb7f24c5b2903797b366fd817dc5748e565
Shell
jrahm/Boltsnap
/install
UTF-8
201
2.859375
3
[]
no_license
#!/bin/bash if [[ ! $DAEMON_NAME ]] ; then DAEMON_NAME="boltsnapd" fi if [[ ! $GENCGI_RENAME ]] ; then GENCGI_RENAME="boltgen.cgi" fi sudo cp -v $DAEMON_NAME /usr/bin/ cp -rvf public_html $HOME/
true
7c4031d00e9d7720371cfdbc06a85a106098c5dd
Shell
Gringox/sinatra_mvc
/mvc_sinatra.sh
UTF-8
1,085
3.171875
3
[]
no_license
# Validate that $1 and only $1 exist if [ "$#" -ne 1 ]; then echo "Usage: $0 NAME" exit 1 fi # Validate that "$1" is not repeated if [ -e "$1" ]; then echo "$1 already exist" exit 1 fi # Create models views, controllers and public folders mkdir "$1" "$1"/models "$1"/views "$1"/controllers "$1"/public "$1"/p...
true
241674b668597eae9d28f73fd2275a878e786786
Shell
sorftfaricson/Compilar
/compiler.sh
UTF-8
21,659
3.171875
3
[]
no_license
#!/bin/bash cyan=" \e[36m" blanco="\e[0m" BLACK='\033[30m' RED='\033[31m' GREEN='\033[32m' YELLOW='\033[33m' BLUE='\033[34m' MAGENTA='\033[35m' clear echo -e "$cyan _______" echo -e "$cyan ∆ | |$GREEN ©©©©© ©©©©©...
true
8f21ed6cac111ef62b658bc531f8b3e6fd82079e
Shell
portworx/katacoda-scenarios
/px-k8s-sql-ha/assets/wait4-mssql.sh
UTF-8
229
2.890625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash -e while true; do if kubectl get pods | grep Running > /dev/null then echo SQL Server is Ready break else echo Waiting for SQL Server to be Ready ... sleep 5 fi done
true
d33608a926c087420da5e368731dfae7aec38c45
Shell
imacks/oneplus6
/src/opoverlay/misc/core/system/opoverlay_deepsleep.sh
UTF-8
234
2.59375
3
[ "MIT" ]
permissive
#!/tmp-mksh/tmp-mksh for i in `ls /sys/class/scsi_disk/`; do cat /sys/class/scsi_disk/$i/write_protect 2>/dev/null | grep 1 >/dev/null if [ $? -eq 0 ]; then echo 'temporary none' > /sys/class/scsi_disk/$i/cache_type fi done
true
5c33974d87ec90222b8c754294c7e76aef4eb8d3
Shell
nickbattam/picamon
/camera/simulator/scripts/change_cam_pv.sh
UTF-8
167
3.40625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash if [ -z "$*" ]; then echo "no arguments supplied" exit 1 fi OLD_NAME=$1 NEW_NAME=$2 find $3 -type f -exec sed -i "s/$OLD_NAME/$NEW_NAME/g" {} +
true
ecb4b6466547ae5a40e77b6e55ae287729ad1f66
Shell
dwrolvink/gitautomata
/profile/install.sh
UTF-8
3,014
3.984375
4
[]
no_license
GIT_FOLDER="$HOME/git/gitautomata/profile" GIT_FUNCTIONS_FOLDER="$GIT_FOLDER/functions" GIT_CFG_FOLDER="$GIT_FOLDER/config" FUNCTIONS_FOLDER="$HOME/.local/bin" # Get commandline options # -f: Force, or "redo all", even if e.g. a file already exists. Used for updating mostly # -u: Uninstall, remove gitautomata from the...
true
cfe32b8d7ee963f4a2b2a60002ad67edee374391
Shell
seeseemelk/gnome-1.0
/gnotepad/PKGBUILD
UTF-8
539
2.890625
3
[]
no_license
pkgname=gnotepad pkgver=1.0.8 pkgrel=1 epoch= pkgdesc="GNotepad" arch=(x86_64) url="" license=('GPL') depends=('gtk-old') source=( "https://download.gnome.org/desktop/1.0/1.0/sources/gnotepad%2B-1.0.8.tar.gz" ) md5sums=('7366f8dafdcfea1076cea9c14ace852c') prepare() { cd "gnotepad+-$pkgver" } build() { cd "gnotepad...
true
a0d141e55ad407c7147eacb1a330032e175b80fe
Shell
the-events-calendar/action-s3-utility
/commands/exists.sh
UTF-8
629
4.15625
4
[ "MIT" ]
permissive
#!/bin/sh set -e if [ -z "$FILE" ]; then echo "FILE is not set. Quitting." exit 1 fi echo "Checking for file existence at s3://${S3_BUCKET}/${FILE} at the ${S3_ENDPOINT}" the_command="aws ${S3_PROFILE} ${ENDPOINT_APPEND} s3api head-object --bucket ${S3_BUCKET} --key ${FILE} $*" echo $the_command # Verify file...
true
f41259043f53163abe37a1bd4b40785d90a6dac3
Shell
AlekzNet/Cisco-ASA-ACL-toolkit
/asasearch.sh
UTF-8
458
3.234375
3
[ "Apache-2.0" ]
permissive
#!/bin/ksh # Prints the amount of matching ACLs for the IPs # found in the source and destination # Takes a list of IP's as an argument # E.g. asasearch.sh 10.0.1.64/28,10.0.1.68 IPS=$* for acl in */*.acl do for dir in src dst do eval cnt${dir}=`ipaclmatch.py --noany --permit --$dir -a $IPS $acl | wc -l | awk '{pr...
true
f4ee0abbd93ebd76cedb1000eab752f2dd1cf469
Shell
kchenphy/dotfiles
/bash/bash.d/0_commons.sh
UTF-8
746
3.921875
4
[]
no_license
#!/usr/bin/env bash current_script_dir() { ( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) } die() { local -r message=$1 exit_code="${2:-1}" printf "%s (status code: %d)\n" "$message" "$exit_code" >&2 print_stack_trace >&2 } check_num_args() { local -ri num_args=$1 shift if [[ $# -ne "$n...
true
072a491a565e20d16d43604406d19f5c0588ebde
Shell
ThomasYeoLab/CBIG
/stable_projects/disorder_subtypes/Tang2020_ASDFactors/step3_analyses/bootstrapping/CBIG_ASDf_bootstrappedEst_wrapper.sh
UTF-8
1,038
3.328125
3
[ "MIT" ]
permissive
#!/bin/bash # # Wrapper script to run polarLDA estimate on bootstrapped samples # # Written by Siyi Tang and CBIG under MIT license: https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md # Take input variables input_dir=$1 # absolute directory where the docs are saved out_dir=$2 K=$3 # number of factors N=$4 ...
true
6eb0fd0423a81a4c95e05995d8a0ce72e42c32eb
Shell
gheja/misc
/add_service.sh
UTF-8
458
3.96875
4
[]
no_license
#!/bin/bash if [ $# != 3 ]; then echo "$0 <name> <user> <command>" exit 1 fi name="$1" user="$2" command="$3" file="/etc/systemd/system/$name.service" if [ -e "$file" ]; then echo "$file: exists, exiting." exit 1 fi cat > $file <<EOF [Unit] Description=$name After=network.target [Service] Type=simple User=$us...
true
741bfd7a2ec392aad32dd8f45ffc4187fd887cc6
Shell
bensonnjonjo/phoenix-codedeploy
/deploy/after-install.sh
UTF-8
1,372
3.234375
3
[]
no_license
#!/bin/bash set -e # Find out from CodeDeploy what environment we are in by parsing the APPLICATION_NAME ENVIRONMENT=`echo "$APPLICATION_NAME" | cut -d '-' -f 1 | tr A-Z a-z` # Put the environment in the log echo "Customizing environment: $ENVIRONMENT" # Setup variables depending on what environment case $ENVIRONMENT...
true
529d359f82ea414789aae7b0af8ece279e6bad53
Shell
dell/wsl
/viwsl
UTF-8
248
3.390625
3
[]
no_license
#!/bin/bash # source function library . ${0%/*}/wsl-functions case "$1" in -h|--help|help) $WSCOLORERR echo -e "\n`basename $0` - Utility to create and edit ${MYCONFIG} file\n" $WSCOLORNORM exit 1 ;; esac vi ~/${MYCONFIG}
true
89095f6dd71342ce0bee541a2978c45ca65b9221
Shell
noelnamai/kent
/src/hg/makeDb/doc/hg38/reg.txt
UTF-8
20,219
2.5625
3
[]
no_license
# for emacs: -*- mode: sh; -*- # Regulation tracks for hg38 / GRCh38 ############################################################################# # Building UW DNAse I ENCODE2 tracks (In progress 2014-09-03 Jim Kent) #These tracks contain the results of DNAse I hypersensitivity experiments from the #John Stamatoya...
true
3de2268473124c69be9c1f146d00ba4da030924a
Shell
saga-project/saga-cpp-legacy-adaptors
/aws/trunk/internal/bin/saga_context_init
UTF-8
756
3.453125
3
[]
no_license
#!/bin/sh # allow connections to port 22 in the 'default' instance group auth_return=`$EC2_HOME/bin/ec2-authorize default -p 22 2>&1` echo $auth_return | grep -v 'has already been authorized' > /dev/null if test "x$?" != "x1"; then if test "x$auth_return" != "x"; then echo "could not enable ssh" return 1 f...
true
09ef634a4a3d37093a4961c015296675bb105a35
Shell
kosugi/plurk4ji
/plurk
UTF-8
315
3.546875
4
[ "MIT" ]
permissive
#!/bin/bash if [ -n "$PYENV_ROOT" ]; then PYTHON="$PYENV_ROOT/shims/python" else PYTHON=python fi cd $(dirname "$0") CMD="cmd_$1.py" if [ ! -f "$CMD" ]; then echo usage: $0 command '[args...]' echo commands: $(ls cmd_*.py | sed -e 's/^cmd_\(.*\)\.py$/\1/') exit 1 fi shift $PYTHON $CMD "$@"
true
7ba628c613cf7bc4ff69fc471e31b5b88a01b0b2
Shell
ariofrio/cs160-simple
/tests/run.sh
UTF-8
3,114
4.15625
4
[]
no_license
#!/usr/bin/env bash SIMPLE="./simple $@" indent() { c='s/^/ /' case $(uname) in Darwin) sed -l "$c";; *) sed -u "$c";; esac } report_incorrect() { incorrect=$((incorrect + 1)) tput setaf 1; tput bold echo -n '✘ ' tput sgr0; tput setaf 1 echo $test tput sgr0 [ "$error" ] && echo "$er...
true
4833449807caa69b6c93bff32bb68528da837241
Shell
caichang01/louplus-linux
/11/challenges/02/ddos.sh
UTF-8
746
3.484375
3
[]
no_license
#!/bin/bash # 单个 IP 最多连接数限制 LIMIT=21 # 找出连接数超过限制的 IP,保存到文件中 netstat -na | awk '/ESTABLISHED/{split($5, T, ":"); print T[1]}' | sort | grep -v -E '192.168|127.0' | uniq -c | sort -rn | awk -v limit=$LIMIT '{if($2 != null && $1 > limit) {print $2}}' >/var/log/rejectip for i in $(cat /var/log/rejectip) do # 跳过白名单里的...
true
c12f89d4de89c09d195fcd19c9fd3458bae01bbb
Shell
ValHayot/sparkpilot
/example/hpc_default.sh
UTF-8
1,139
2.8125
3
[]
no_license
#!/bin/bash #SBATCH --account=def-glatard #SBATCH --time=00:05:00 #SBATCH --nodes=5 #SBATCH --mem=20G #SBATCH --cpus-per-task=1 #SBATCH --ntasks-per-node=1 logdir=/scratch/vhayots/sparkpilot/logs mstr_bench=$logdir/hpc_def_${SLURM_JOB_ID}_benchmarks.out spscript="/scratch/vhayots/sparkpilot/example/dummyprogram.py /s...
true
cf19b323db16bef7698b7fe89b523955308487c6
Shell
gvsurenderreddy/magos-linux
/make_MagOS/2_install
UTF-8
4,951
3.546875
4
[]
no_license
#!/bin/bash # License: GPL last version . Лицензия : GPL последней версии # Written: Mikhail Zaripov . Написано: Михаил Зарипов # Last modified: ___ . Исправлено _____ RPMIOPT=" --ignoresize --nodigest --nosignature --nosuggest " #RPMIOPT=" --ignoresize --nosignature --nosuggest " if [ "`id -u`" != "0" ] ;then ec...
true
1aa7bfa767a620cbbaca5e36a19790e29f8512f7
Shell
michael-behrendt/docker
/ambari.sh
UTF-8
3,864
2.796875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # script was inspired by # https://community.hortonworks.com/articles/47170/automate-hdp-installation-using-ambari-blueprints.html if [ -f /etc/yum.repos.d/ambari.repo ]; then echo "$0 skipped, because files already exists" exit 1 fi if [ "$(id -u)" != "0" ]; then echo "$0 has to be run as root, p...
true
c9d009997bec540f39a5a11b72483a6d132f8573
Shell
falenn/k8sPlayground
/examples/storage/weka/genSecret.sh
UTF-8
664
2.71875
3
[]
no_license
#!/bin/env bash # # USERNAME="apiaccess" PASSWORD="mjT8_hw2wV3s:Xm" # default org if only one org ORGANIZATION="Root" ENDPOINTS="192.168.2.111:14000,192.168.2.112:14000,192.168.2.113:14000" SCHEME="http" USERB64=`echo -n "${USERNAME}" | base64` PWDB64=`echo -n "${PASSWORD}" | base64` ORGB64=`echo -n "${ORGANIZATION}"...
true
0e8acecd9d5964e12993317fab35b427e9e5f77f
Shell
bobbae/kubeinfra
/vagrant-k8s-consul/shared/install-k8s-master.sh
UTF-8
1,171
3.1875
3
[ "Unlicense" ]
permissive
#!/bin/sh # must run as root # on the master if [ $# -lt 3 ]; then echo "Insufficient arguments" echo "Need interface-name master-ip my-ip" exit 1 fi INTF=$1 MASTERIP=$2 MYIP=$3 echo "Interface $INTF" echo "Master IP $MASTERIP" echo "My IP Address: $MYIP" nohup consul agent -server -bootstrap-expect=1 -data-dir=/tmp...
true
be811398d8e1b0db6405e2f075111ae973cf4ff5
Shell
nlarosa/Scripting
/Bash/rsh.sh
UTF-8
2,387
4.25
4
[]
no_license
#!/bin/bash introduction() # Displays the command options { clear echo "" echo "Command Action: Command number:" echo "Disk Free 1" echo "Disk Usage 2" echo "List Files 3" echo "Process Status 4" echo "Examine Volume 5" echo "Shell Escape 6" echo "Current Date 7" echo "Exit 8" } prompt() # Prin...
true
d9e5436608c91e07aad6afc6446221c69d31f1c5
Shell
Dakota628/vpnfailsafe
/extras/pkill_hup_openvpn
UTF-8
527
3.640625
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # Save as /etc/NetworkManager/dispatcher.d/pkill_hup_openvpn and make # executable to send SIGHUP to OpenVPN upon reconnection to the underlying # network. # Only tested with OpenVPN started manually, or via systemd. For VPN # connections configured via NetworkManager something else may be needed. ...
true
9a36261ebb5367e3e48a4f0d7fc367ee3ef6ac1a
Shell
search-future/miyou.tv
/miyoutv-agent/tools/chscan.sh
UTF-8
2,034
3.609375
4
[ "Apache-2.0" ]
permissive
#!/bin/sh # Copyright 2016-2023 Brazil Ltd. # # 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 applicable law or agreed ...
true
94acd18069a5bab4cee5578be1a0dbb0c3b2be6d
Shell
DrexelCyberDragons/CCDC2019
/Linux/RHEL/start-fedora.sh
UTF-8
1,945
2.765625
3
[]
no_license
systemctl stop sshd #rm -rf /etc/skel #mv ../config/skel /etc/ useradd alfonzo -m -p '$6$rounds=4096$P65PHjtBjJ6el$r/GIe1OktX/1MpvEXFBazHH0vrN0TpN9xndOkKKd5vRRq4bXNSIT/3BwqLU/16WuE8raX1hq2VlbF8UulLiz31' useradd sam -m -p '$6$rounds=4096$0ut.Q36mgUsrL$dymsL91iTnadEetup04SFXfnLWiOPuhAhxvqueZvLQ2.cCVRy/4kTusY6Cs23u0S.DBl...
true
a12cd175e7bb7f5e5418c137e5f7947a84c8f161
Shell
BackBayRider/zulip-archive
/entrypoint.sh
UTF-8
2,899
3.609375
4
[ "MIT" ]
permissive
#!/bin/bash set -e zulip_organization_url=$1 zulip_bot_email=$2 zulip_bot_api_key=$3 github_personal_access_token=$4 delete_history=$5 archive_branch=$6 checked_out_repo_path="$(pwd)" html_dir_path=$checked_out_repo_path json_dir_path="${checked_out_repo_path}/zulip_json" img_dir_path="${checked_out_repo_path}/assets...
true
b1245a7deb061cc7e84f7dd1ea6dc72432fc8db1
Shell
Freeaqingme/fstest
/tests/chflags/09.t
UTF-8
2,517
2.8125
3
[ "BSD-2-Clause" ]
permissive
#!/bin/sh # $FreeBSD: src/tools/regression/fstest/tests/chflags/09.t,v 1.1 2007/01/17 01:42:08 pjd Exp $ desc="chflags returns EPERM when one of SF_IMMUTABLE, SF_APPEND, or SF_NOUNLINK is set and securelevel is greater than 0" dir=`dirname $0` . ${dir}/../misc.sh require chflags echo "1..102" n0=`namegen` n1=`name...
true
a0c024bab56bc2e417c61c57aa2d9c9269e75fc9
Shell
tkq66/LLVMBasicDifferenceAnalysis
/run.sh
UTF-8
262
2.765625
3
[]
no_license
if [ $1 = "1" ]; then bin/DifferencePass resources/example1.ll c d elif [ $1 = "2" ]; then bin/DifferencePass resources/example2.ll x y else echo "Please enter the option 1 or 2 for the example file you would like to run difference analysis on." fi
true
5b89b72196023b9b60bf56cf9c7693dd4beb3539
Shell
arielorn/goalert
/devtools/ci/tasks/scripts/codecheck.sh
UTF-8
294
3.265625
3
[ "Apache-2.0" ]
permissive
#!/bin/sh set -e NOFMT=$(gofmt -l $(find . -name '*.go' |grep -v /vendor)) if test "$NOFMT" != "" then echo "Found non-formatted files:" echo "$NOFMT" exit 1 fi CHANGES=$(git status -s --porcelain) if test "$CHANGES" != "" then echo "Found changes in git:" echo "$CHANGES" exit 1 fi
true
464eb86824d8ddd4e3db91c7f137f163a7528e75
Shell
ShubhamGG/Anubis
/docs/mermaid/render.sh
UTF-8
549
3.234375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/sh cd $(dirname $(realpath $0)) if [ ! -d node_modules ]; then yarn add @mermaid-js/mermaid-cli fi if [ ! -d ../img ]; then mkdir ../img fi for mmdf in $(find -name '*.mmd'); do if [ ! -f ../img/${mmdf}.png ] && [ ! -f ../img/${mmdf}.svg ]; then echo "mermaid rendering ${mmdf}" no...
true
811786b39dbf62b16a11f55ec7f87f556ca3a858
Shell
nanxinjin/CS252
/lab3/lab3-src/test-shell/test10
UTF-8
659
3.3125
3
[]
no_license
#!/bin/sh rm -f shell-out myname=`whoami` echo "Test10: Zombie processes" before=`/bin/ps -u $myname | grep -c defunc` echo "ls &" > shell-in echo "ls &" >> shell-in echo "ls &" >> shell-in echo "ls &" >> shell-in echo "ls &" >> shell-in echo "ls &" >> shell-in echo "ls &" >> shell-in echo "sleep 5" >> shell-in ../sh...
true
8aafd8270574b451cbdd3d93e14ef1618a64b6e9
Shell
dinfuehr/dora
/bench/fannkuchredux/bench.sh
UTF-8
539
2.671875
3
[ "MIT" ]
permissive
#!/bin/bash RUNS=3 ARG=12 echo "java" 1>&2 javac fannkuchredux.java for i in $(seq 1 $RUNS); do time java fannkuchredux $ARG; done echo echo "dora" 1>&2 pushd ../.. cargo build --release for i in $(seq 1 $RUNS); do time target/release/dora bench/fannkuchredux/fannkuchredux.dora $ARG; done popd echo "cacao" 1>&2 java...
true
b7d9448b0e31e645a617512ca8df2877bcb0ce06
Shell
BristolTopGroup/DailyPythonScripts
/bin/x_01b_all_vars
UTF-8
498
3.15625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash echo "This will take a while ... grab a coffee/tea/water/cocktail" mkdir -p logs N_JOBS=4 i=0 for var in MET HT ST WPT lepton_pt abs_lepton_eta NJets; do echo "Getting ttbar normalisation: $var" nohup time python dps/analysis/xsection/01_get_ttjet_normalisation.py -v $var --visiblePS &> logs/01_${var}_b...
true
57c61ee42867803d3b7610d0e50e1543bb6f3e16
Shell
moskit/m-script
/www/bin/dash.cgi
UTF-8
4,031
3.453125
3
[]
no_license
#!/bin/bash source "$PWD/../../lib/dash_functions.sh" print_cgi_headers Size="Default size" ; Image="Source Image" ; Cloud="Cloud" ; Region="Region" ; Role="Default Role" open_cluster "Cluster" print_cluster_inline "Size" "Image" "Cloud" "Region" "Role" close_cluster_line print_timeline "Server" close_cluster # lo...
true
e0ae6dd4498ec1c9c49291937c5bb76e065ba221
Shell
jition1987/zabbix_install
/Zabbix4.4.1-install/Zabbix-install.sh
UTF-8
10,522
3.515625
4
[]
no_license
#!/bin/sh process() { install_date="zabbix_install_$(date +%Y-%m-%d_%H:%M:%S).log" printf " ####################################################################### # 欢迎使用Zabbix离线一键部署脚本 # # 脚本适配环境CentOS7+/Radhat7+、内存1G+ # # 避免软件包产生冲突建议使用纯净的操作系...
true
c9aada85a72e3992d2ebb3ee5100ed3a0a29218b
Shell
AnthonyAmanse/snap-and-translate
/scripts/build.sh
UTF-8
2,152
3.734375
4
[ "Apache-2.0", "LicenseRef-scancode-dco-1.1" ]
permissive
#!/bin/bash echo -e "Build environment variables:" echo "REGISTRY_URL=${REGISTRY_URL}" echo "REGISTRY_NAMESPACE=${REGISTRY_NAMESPACE}" echo "IMAGE_NAME=${IMAGE_NAME}" echo "BUILD_NUMBER=${BUILD_NUMBER}" # Learn more about the available environment variables at: # https://console.bluemix.net/docs/services/ContinuousDe...
true
80f9de8da4779335bad08bcd1e9e4c91794723e9
Shell
mrakitin/DataCrunching
/ProcessingScripts/report_missing.sh
UTF-8
690
3.84375
4
[]
no_license
#!/bin/bash # # This script takes 2 argument: # # - $1 the file with SMILES strings and IDs # - $2 an optional filename prefix # #. /software/anaconda3/etc/profile.d/conda.sh #conda activate py3 # # Conversion of SMILES string to MOL2: # # - Done one at a time as OpenBabel might crash attempting this # and if that ha...
true
7e385b2a88817c48c307ea90026e12eb4513a765
Shell
lab85-ru/ti-dvsdk_omapl138-evm_04_03_00_06
/setup.sh
UTF-8
833
3.09375
3
[]
no_license
#!/bin/sh echo echo "--------------------------------------------------------------------------------" echo "TISDK setup script" echo echo "This script will set up your development host for dvsdk development." echo "Parts of this script require administrator priviliges (sudo access)." echo "---------------------------...
true
61f4ff5c4a7170f13e107c2de49f9a1238cc3c49
Shell
hpanike/Scripts
/Bash/rsyc_incremental.sh
UTF-8
1,773
3.78125
4
[]
no_license
#!/bin/bash #Variables PATH=$PATH:/bin/usr/bin DATE=`date '+%F'` DIR="<backup_dir>" DATE2=`date '+%F %T'` #Functions function show_time { num=$1 min=0 hour=0 day=0 if((num>59));then ((sec=num%60)) ((num=num/60)) if((num>59));then ((min=num%60)) ((num=num/60)) if((num>23)...
true
68d7677f1e132515496515e9f61179b463720496
Shell
ChinaXing/appcheck
/plugins/check_cpu
UTF-8
953
3.203125
3
[]
no_license
#!/bin/bash ##################################################### # Author : yunxing - yunxing.cyx # Last modified : 2011-12-28 16:53 # Function : show cpu info # Usage : # check_cpu [-h] option # option : like idle,nice,sys,iowait,irq and so on.. ####...
true
ec4908ad1c71b19d50759f9a2ea1e682410f49fd
Shell
haibinyang/JarWrapper
/commonDeamon.sh
UTF-8
3,775
3.796875
4
[]
no_license
#!/bin/bash # # jarWrapper Startup script for the RunDeck Launcher install # paramaters: # - env vars: [] # - standard RDECK_PORT values: [http: 4440, https: 4443] # 主目录 BASE_DIR="/home/yanghaibin/deployWorkspace" # 检查主目录是否可写 [ -w $BASE_DIR ] || { echo "BASE_DIR dir not writable: $BASE_DIR" exit ...
true
b15d3d9fb3c26b9d0a915429f28dc5f2bf804ff4
Shell
feup-infolab/ckan-install-script
/filestore_install.sh
UTF-8
472
2.546875
3
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash sudo mkdir -p /var/lib/ckan/default #add line in ini file sudo vim /etc/ckan/default/development.ini #add after [app:main] #ckan.storage_path = /var/lib/ckan/default #set permissions on the uploads folder #create storage files sudo mkdir -p /var/lib/ckan/resources sudo chmod u+rwx /var/lib/cka...
true
d6f2b9be13af1c5896e9709c0b316af3775450d0
Shell
peterhellberg/dotfiles
/.bashrc
UTF-8
2,809
2.828125
3
[]
no_license
ulimit -n 4096 # Have ctrl-s perform i-search (search forward, complements ctrl-r) stty -ixon # don't put duplicate lines or lines starting with space in the history. # also erase all duplicates # See bash(1) for more options HISTCONTROL=ignoreboth:erasedups # append to the history file, don't overwrite it shopt -s ...
true
d95d9f626b543dda861d0917a3c831fd7270da3c
Shell
flakyhermit/shell
/init
UTF-8
303
2.78125
3
[]
no_license
#!/usr/bin/bash source $HOME/.shell/env # Custom functions # setxkbmap -option 'caps:escape' # Aliases # Git for dotfiles alias dots='/usr/bin/git --git-dir=$HOME/.local/dotfiles --work-tree=$HOME' # Start fish # if [[ $(ps --no-header --pid=$PPID --format=cmd) != "fish" ]] # then # exec fish # fi
true
bd099c96f1bc662b8c9ac96c4bef0103e9d12ab7
Shell
ebindavis17/Shell
/etc.sh
UTF-8
296
2.953125
3
[]
no_license
#!/bin/bash package=dbus-x11_1.2.24-4_amd64.deb if [[ $package =~ .*\.deb ]]; then #if [[ $package =~ (.+)_(.*)_(.*)\.deb ]] echo " Package ${BATCH_MATCH[1]} Version ${BATCH_MATCH[2]} "\ "is for the "${BATCH_MATCH[3]}" architecture " else echo " File \"$package\" doesnot excits" fi
true
396d22b869ac196204914f3c4739a3b70cdc2666
Shell
hapo-anhht/lemp-server
/setup.sh
UTF-8
2,484
3.296875
3
[]
no_license
#!/bin/bash function set_mysql { echo "DB_DATABASE :"; read DB_DATABASE; echo "DB_USERNAME :"; read DB_USERNAME; echo "DB_PASSWORD :"; read DB_PASSWORD; } set_mysql echo "Link git repository :"; read GIT_LINK; echo "Project name: " read PRO_NAME; # Update # apt-get update # Install cURL & ZIP/...
true
6750a1828d28b79773e2a9e5853a7583e331600a
Shell
Bartor/akiso
/3/1.sh
UTF-8
3,743
3.984375
4
[]
no_license
#!/bin/bash width=$1 height=$2 scale=$3 i=0 while [ $i -lt $width ]; do networkInArray+=(0) networkOutArray+=(0) let i=i+1 done function displaytime { local T=$1 local D=$((T/60/60/24)) local H=$((T/60/60%24)) local M=$((T/60%60)) local S=$((T%60)) (( $D > 0 )) && printf '%d days ' $D (( $H > 0 )) &&...
true
4542e02031facddd4305fd21b5d60ad9a66dc7f3
Shell
Cyb10101/docker_backup-tools
/rootfs/opt/docker/bin/functions.sh
UTF-8
1,817
4.25
4
[]
no_license
#!/usr/bin/env bash set -e includeScriptDir() { if [ -d "${1}" ]; then for FILE in "${1}"/*.sh; do echo "-> Executing ${FILE}" . "${FILE}" done fi } cronLog() { echo "$(date '+%F %H:%M') Cron '$(basename ${0})': ${1}" } createFolder() { if [ ! -d ${1} ]; then m...
true
7c0f11b95beb781dc5c0e285508cf3d7d5399fa3
Shell
bpm-rocks/is
/bench-test/is-function
UTF-8
891
3.3125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash . bpm bpm::include bench bpm::include string genTests() { eval " bench::test::$1-function() { $1 isFunctionDeclare } bench::test::$1-variable() { $1 BASH_VERION } bench::test::$1-command() { $1 ls } b...
true
3ce4bfec7e2c876c1ac38be22790816fdcb7785e
Shell
gotswoop/pc-ors_reports
/createReport.sh
UTF-8
339
3.765625
4
[]
no_license
#!/bin/sh if [-z $1 ]; then echo "No report specified. You must enter the name of the new report." fi REPORT = $1 echo "Create new report named '$REPORT'..." RET = `mkdir $REPORT` if ![ $RET == 0 ]; then echo "Error: Report directory already exists." fi echo "Done. Now edit the following:" echo "\treports/$RE...
true
0839f03bd609e8ff037ee80ea45e38133342d3a7
Shell
dbeato/scripts
/Linux/Install-XOA-From-Source.sh
UTF-8
1,037
2.53125
3
[]
no_license
#This script is written to be installed on Debian. #Sources on https://xen-orchestra.com/docs/from_the_sources.html sudo apt-get install -y cifs-utils nfs-common sudo apt-get install -y curl software-properties-common curl -sL https://deb.nodesource.com/setup_8.x | sudo bash - sudo apt-get install -y nodejs sudo npm i...
true
dac321c8e6c6122d7b759c4f3fed63388725d606
Shell
samrocketman/jenkins-bootstrap-shared
/scripts/jenkins_wait_job.sh
UTF-8
1,032
3.203125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash #Created by Sam Gleske (https://github.com/samrocketman/home) #Ubuntu 16.04.2 LTS #Linux 4.4.0-72-generic x86_64 #Python 2.7.12 function json() { python -c "import sys,json;print str(json.load(sys.stdin)[\"${1}\"]).lower()" } MESSAGE='Jobb success.' PIPELINE_INPUT=false count=0 while true; do [ "$("${...
true
ad180cc68948318a234518780e56d8f31960fc96
Shell
tiechui1994/linux-tools
/web/axel.sh
UTF-8
4,188
4.21875
4
[]
no_license
#!/bin/bash #---------------------------------------------------- # File: axel.sh # Contents: axel是一款多线程文件下载器, 可以快速下载文件. # Date: 19-1-18 #---------------------------------------------------- declare -r version=2.16.1 declare -r workdir=$(pwd) declare -r success=0 declare -r failure=1 # log log_error(){ red="\03...
true
3c4a10c785589d1e536639ec85405e1846fd9d0e
Shell
vasanthk8640/dotfiles
/system/ubuntu/scripts/install-ruby.sh
UTF-8
1,447
2.90625
3
[]
no_license
#!/usr/bin/env bash # Some loose inspiration: https://google.github.io/styleguide/shell.xml ruby_install_version=0.5.0 ruby_version=2.2.3 gem_version=2.2.0 chruby_version=0.3.9 chruby_fish_version=0.6.0 mkdir -p "${HOME}/tmp" pushd "${HOME}/tmp" wget -O "chruby-${chruby_version}.tar.gz https://github.com/postmodern/...
true
c597cee5babf589affefa65919690a260475ac61
Shell
luisalima/dotfiles
/install/install_brew.sh
UTF-8
359
3.171875
3
[]
no_license
#!/bin/bash fancy_echo "checking for brew and cask..." if [ -z `which brew` ]; then /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew tap caskroom/cask append_to_shell_config_files 'export PATH="/usr/local/bin:$PATH"' 1 export PATH="/usr/local/bin:...
true
e9ea3d7e11f8f39f12678d7b9ffbd8f1120c83d2
Shell
pcamach2/rsp
/scripts/maskCat
UTF-8
400
3.359375
3
[]
no_license
#!/bin/sh # Input should be the "freeMask" directory within the data folder generated by the Freesurfer_ROIs script. ROIS=$1/rois init=`find $ROIS | grep -v rois$ | head -1` cp $init $(dirname $(dirname $init))/mask.nii.gz mask=$(dirname $(dirname $init))/mask.nii.gz for ROI in `find $ROIS | grep -...
true
6754f42cabe5d189c78496720255f35e9b4f6ac3
Shell
hungtd9/spark-emr
/build-spark-0.7.2-hadoop103.sh
UTF-8
785
2.9375
3
[]
no_license
#!/bin/bash -ev mkdir -p target/spark-0.7.2-hadoop103 cd target/spark-0.7.2-hadoop103 if [ ! -f spark ]; then if [ ! -f spark-0.7.2-sources.tgz ]; then wget http://spark-project.org/files/spark-0.7.2-sources.tgz # Mac OS X: curl http://spark-project.org/files/spark-0.7.2-sources.tgz > spark-0.7.2-sources.tg...
true
34cc79ce630cf7ab2145f1f1108d0c2b67f51ed7
Shell
mhcerri/configs
/home/bin/mutt-check-patch
UTF-8
205
2.703125
3
[]
no_license
#!/bin/bash KERNEL_DIR="$HOME/workspace/linux/torvalds-linux" trap '[ "$temp" ] && rm -f "$temp"' 0 temp=$(mktemp) cat > "$temp" "$KERNEL_DIR/scripts/checkpatch.pl" --color=always "$@" "$temp" | less -R
true
b276d19dc9067aa141700d5045778d9fb3cffb62
Shell
ashish493/Security_Tools
/mac_changer.sh
UTF-8
626
3.5625
4
[]
no_license
#!/usr/bin/env bash set -e INTERFACE="en0" function mac_add_delta() { local mac="0x${1//\:/}" local delta="$2" local new_mac="$(printf "%x" $((mac + delta)))" # no 0x echo "${new_mac:0:2}:${new_mac:2:2}:${new_mac:4:2}:${new_mac:6:2}:${new_mac:8:2}:${new_mac:10:2}" } if [[ $1 == "-d" ]]; then ...
true
ef8273bd26ab8e7ebfba5b25cf9dfa9065b6f1e8
Shell
jeffknupp/crunchy-containers
/tests/openshift/test-watch.sh
UTF-8
1,839
3.125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # Copyright 2016 Crunchy Data Solutions, Inc. # 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 applicable law ...
true
a230525a9179d4a57d209a9cd9be5aec753e8e09
Shell
adkim1190/Summer-SIR
/myscripts/backwardsmyloop.sh
UTF-8
372
2.875
3
[]
no_license
"""for i in {0..100..-2}; do mkdir $i; cd $i; echo "I am in directory: $PWD"; cd ../; done echo "completed""""i """for i in {100..0..2}; do mkdir $i; cd $i; echo "I am in directory: $PWD"; cd ../; done echo "completed"""" for i in {0..100..2}; do mkdir $((100-$i)); cd $((100-$i)); echo "I am in...
true
33fb17f276656d5412a3436c94eb3b68da2f3079
Shell
binakot/My-Student-Projects
/cp1251-utf8-encode.sh
UTF-8
141
2.59375
3
[ "MIT" ]
permissive
#!/bin/sh find . -type f \( -name "*.pas" -o -name "*.cpp" -o -name "*.cs" \) | while read file; do enca -L russian -x UTF-8 "$file"; done;
true
023c44c264bf11f5417ca1e0b1be2410977e124b
Shell
eCONBiL/frontendWebUI
/eCONBiL/startserver.sh
UTF-8
1,441
3.5
4
[]
no_license
#!/bin/bash #Autor: Malte Garmhausen arg=$1 if [ "$arg" == "up" ] then forever start --uid "serve" node_modules/@angular/cli/bin/ng serve --host 192.168.23.229 --public-host http://econbil01.abatgroup.de --port 8002 --prod elif [ "$arg" == "down" ] then forever stop serve rm /home/econ/.forever/serve.log elif [...
true
073a49e7f66264f7e9e8e1064fc5c881b0e1535e
Shell
devanshdalal/Ceph-Setup-Guide
/scripts/helper.sh
UTF-8
232
2.796875
3
[]
no_license
#!/bin/bash echo "Entered" cd ./bundle sudo apt-get update sudo dpkg -i *.deb # sudo apt-get -y install -f # checkin if ceph is installed ceph --version if [ $? = 0 ]; then echo "ceph installed!!"; else echo "FAILED!!!";fi
true
c50fc073577660504310cd85ae45ed537d49284f
Shell
broesler/bash_scripts
/run_case.sh
UTF-8
1,313
3.84375
4
[ "MIT" ]
permissive
#=============================================================================== # File: run_case.sh # Created: 05/30/2017, 14:50 # Author: Bernie Roesler # # Description: Run VLM data case and store output # Usage: ./run_case matlab_file.m # #==================================================================...
true
583e7b8f8deab36f936900dba2ccf67f01fe13fb
Shell
adamzwickey/demo-env
/old/scripts/tmc-namespace.sh
UTF-8
1,387
3.234375
3
[]
no_license
# bin/bash : ${TMC_WORKSPACE?"Need to set TMC_WORKSPACE environment variable"} : ${VMWARE_ID?"Need to set VMWARE_ID environment variable"} if [ ! $# -eq 1 ]; then echo "Must supply cluster name as args" exit 1 fi CLUSTER_NAME=$1 mkdir -p generated/$CLUSTER_NAME/tmc cp -r tkg-lab/tmc/config/ generated/$CLUSTER_NAME...
true
45b614b777dac476a90c9d1841f483448d7d3060
Shell
ErinCGallagher/Quinterac-Course-Project
/frontEndScript.sh
UTF-8
1,543
3.359375
3
[]
no_license
#!/bin/bash for i in testCases/*.txt do #move the valid accounts file for the required test case to the in directory cp testAccount/$(basename $i .txt)_validAccounts.txt in/validAccounts.txt for j in $i do echo $j done | python ../frontEnd.py <$i \ >out/log/$(basename $i .txt).txt.log #moves the transactio...
true
fb4d7e2dbbd071bb8f4ecc96e9322c15ac088da8
Shell
canonw/ansible-provision-ubuntu
/scripts/compile-default-vars.sh
UTF-8
482
3.1875
3
[]
no_license
#!/bin/bash # Update role variables to groups_vars set -o xtrace cd "$(cd "$(dirname "$0")"; pwd -P)/../" [[ -s "group_vars/all.yml" ]] && mv -f "group_vars/all.yml" "group_vars/all.yml~" cat \ <(echo -e "---\n") \ <(cat group_vars/groups.yml | grep -v '^---$' | grep -v '^[[:space:]]*$') \ > group_vars/all.y...
true
3637dfbfa1789281b57e19dc51ee68f00a9da70a
Shell
ailsa-ww/CephEvolution
/Journaling_Tests/install_fs_hdd.sh
UTF-8
659
2.78125
3
[]
no_license
#!/bin/bash WAL=/dev/sdb FS=${1} sudo umount ${WAL} sudo umount ${WAL}1 sudo umount ${WAL}2 sudo umount ${WAL}3 sudo parted ${WAL} mklabel gpt sudo parted ${WAL} unit GB mkpart ${FS} 0 30 sudo parted ${WAL} unit GB mkpart ${FS} 30 60 sudo parted ${WAL} unit GB mkpart ${FS} 60 120 sleep 3 sudo mkdir /media/dbhdd su...
true
35a1e5a3aa0ecd62d070eda7cf0f9dc2c46053ba
Shell
agutierrezrodriguez/restapi
/proxysql/clustercheckcron
UTF-8
815
3
3
[]
no_license
#!/bin/bash ipaddr=$(hostname -i | awk ' { print $1 } ') while true do sleep 5 nowhosts="''" for i in $(curl http://$DISCOVERY_SERVICE/v2/keys/pxc-cluster/$CLUSTER_NAME/ | jq -r '.node.nodes[]?.key' | awk -F'/' '{print $(NF)}') do echo $i mysql -h $i -uroot -p$MYSQL_ROOT_PASSWORD -e "GRANT ALL ON *.* TO '$MYSQL...
true
ac1c97a2ba2f3a7d6dc6cd8a2465de8716132c0f
Shell
jdmoore0883/Checkpoint-Connectivity-Debug
/connCheck.sh
UTF-8
18,674
3.203125
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
#! /bin/bash # Written by: Jon Moore - jdmoore0883@gmail.com # - http://jonmoore.duckdns.org # # This script is provided for debugging purposes only with no warranty, implied or otherwise. # # version 8 - Jan. 3, 2017 - changed 'route' command to 'netstat -nr' # - created a function for the detail gathering # ...
true
76a5052bdb47296cb92570f3257b685927573cea
Shell
Tejaswini-1502/FileSecuritySystem
/decrypt.sh
UTF-8
535
3.625
4
[]
no_license
#!/bin/bash path="$1" file="" touch temp.txt key=`cat $path | wc -l` #echo $key while IFS= read -r line do for (( i=0; i<${#line}; i++ )); do char=${line:$i:1} ascii=$(printf "%d" "'$char") if [ $ascii -ge 0 ] && [ $ascii -lt 32 ] then file+=$char continue else if [ $ascii -lt $key ] then ...
true
bde1f2c3d149a67a8633b47922e701f6a4eaf5e0
Shell
phoukeo/demo-hipster
/hybrid-hipster-deploy.sh
UTF-8
2,986
3.15625
3
[]
no_license
#!/usr/bin/env bash # Copyright 2019 Google LLC # # 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 applicable law or a...
true
02333aa539d6e42e1eb18e2eb8aec3b71ffb9073
Shell
xpotronix/xpotronix-core
/projects/examples/xpotronize-all.sh
UTF-8
124
2.625
3
[]
no_license
for i in `find . -maxdepth 1 -type d \( ! -iname ".*" \)` do echo "transformando aplicacion $i ..." xpotronize $i -f done
true
eec1a43f94ef556a0678339b584dff5248cd8ae0
Shell
wangfuli217/ld_note
/cheatsheet/团队管理的心得.sh
UTF-8
1,466
2.734375
3
[]
no_license
团队管理的心得 1. 团队的流程建设;人才的梯队建设 2. 鼓励向上沟通。多进行内部沟通。 3. 安排任务的方法,总结的挺好: 第一,讲清楚目标与意义,我的期望与衡量标准; 第二,讲清楚做这件事对其个人能力成长有什么帮助; 第三,关于做事情的方法和思路,如何去做,做情景管理,因人而异; 总结: 1,完美之道,不在无可增加,而在于无可删减。在管理上,感觉很忙,琐事很多,而没有成就感,重要的事情没有做, 是不是因为自己“做”得太多?确实要反思自己是不是管的太多,做得太多。关键还没有做到点上。所以要对自己的 事情进行统计,看那些事情可以授权给别人完成,信任别人完成,给别人机会,不是把所有事情都抓在手里,这是 没有安全感...
true
8008e1c4db111592ed9154475af4b36824c9fc45
Shell
YodaEmbedding/frece
/examples/dir_update.sh
UTF-8
415
3.453125
3
[ "MIT" ]
permissive
#!/bin/bash DATA_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/frece" DB_FILE="$DATA_DIR/dir.db" ENTRIES_FILE="/tmp/frece_dir_entries.txt" find "$@" -path '*/\.*' -prune -o -not -name '.*' -type d -print | \ sort > "$ENTRIES_FILE" [ ! -d "$DATA_DIR" ] && mkdir -p "$DATA_DIR" if [ ! -f "$DB_FILE" ]; then frece i...
true
e2a875398ab83bfe5e100eddb06846a34c67196b
Shell
mjuric/ipython_eups
/bin/ipython-eups
UTF-8
4,088
3.9375
4
[ "Apache-2.0", "MIT" ]
permissive
#!/bin/bash # ========================================================================== # # Copyright 2015 Mario Juric <mjuric@astro.washington.edu> and others. # # See the COPYRIGHT file at the top-level directory of this distribution and # at http://github.com/mjuric/ipython_eups/COPYRIGHT # # This file is part of i...
true
da97fc7da2bf07c72f91c831acfbcff5ab853a9f
Shell
fab-du/dotfiles
/install/neovim
UTF-8
190
2.703125
3
[]
no_license
#!/bin/bash ret=`which nvim` [[ $ret=="0" ]] && echo "Neovim already installed"; exit 0 sudo add-apt-repository ppa:neovim-ppa/unstable sudo apt-get update sudo apt-get install neovim -y
true
9641043ed5b623715185af066d34f6fb8ba729ac
Shell
nardstorm/lab_2
/lab2_scripts.sh
UTF-8
881
3.671875
4
[]
no_license
#!/bin/bash # Authors : Joseph McSoud # Date: 2/1/2019 #Problem 1 Code: #Make sure to document how you are solving each problem! echo "Enter regular expression, and then enter file name: " read regex echo "now file name:" read file grep regex file echo echo "Phone number occurences in regex_practice.txt: " grep -c '[...
true
c422efa93fd2c082dc6f7e2f511b41d8e68a526e
Shell
rkswlrbduf/GloballyDynamic
/.circleci/bootstrap_env
UTF-8
830
2.984375
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -e script=$(realpath $0) script_dir=$(dirname "${script}") echo "mkdir -p \${HOME}/secrets" >> ${BASH_ENV} echo "mkdir -p \${HOME}/data" >> ${BASH_ENV} echo "export PATH=${script_dir}:\$PATH" >> ${BASH_ENV} echo "export GCLOUD_CREDENTIALS_FILE=\${HOME}/secrets/gcloud_credentials.json" >> ${B...
true
5d359b7b1751d6b1d52c90a71555bd8c0f1a8786
Shell
loudej/blueprints
/utils/testutils/krmt_helpers.sh
UTF-8
4,311
3.515625
4
[ "Apache-2.0" ]
permissive
#! /bin/bash # Copyright 2021 Google LLC # # 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 applicable law or agreed to...
true