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
beab68c83a3c889a7d55132337c3c8e10bf930ec
Shell
Wakemakin/wakemakin-ci
/puppet/sync_config.sh
UTF-8
440
3.390625
3
[]
no_license
#!/bin/bash if [[ $UID -ne 0 ]]; then echo "$0 must be run as root" exit 1 fi DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" MANIFEST_DIR="/etc/puppet/manifests" MODULE_DIR="/etc/puppet/modules" if [ -d "$MANIFEST_DIR" ]; then rm -rf $MANIFEST_DIR fi if [ -d "$MODULE_DIR" ]; then rm -rf $MODULE...
true
ec687b1f064c4dd3a82a6d4dae70c5cd39f7c1c6
Shell
BritoO97/NJCU_Linux_Class
/Week7/MelvynDrag/myhash.sh
UTF-8
581
2.78125
3
[]
no_license
# # myhash.sh # Melvyn Drag # 6 March 2019 # # Reference: # https://stackoverflow.com/questions/806906/how-do-i-test-if-a-variable-i s-a-number-in-bash inputVal=$1 echo "myhash being run with $inputVal" STRING_HASH_VAL=0 EVEN_HASH_VAL=1 ODD_HASH_VAL=2 NUMBER_RE='^[-]?[0-9]+$' EVEN_RE=__TODO__REGEX_FOR_EVEN_NUMBER if [...
true
49fd2a427d11b6a150a480c1658981ad70df0ae0
Shell
stenzel65/Projet-Linux
/montage.sh
UTF-8
674
2.84375
3
[]
no_license
#!/bin/bash #Installation du package nécessaire apt-get install mailutils libsasl2-2 ca-certificates libsasl2-modules apt install lvm2 apt-get install mdadm apt-get install msmtp touch ~/.msmtprc chown $USER ~/.msmtprc #Création du Raid5 mdadm -C /dev/md5 -n 5 -l raid5 /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf ...
true
7ec086191511e7f283178b5015ed698e5dc95df9
Shell
JAChapmanII/bin
/mkproj
UTF-8
393
3.65625
4
[]
no_license
#!/bin/bash # mkproj: make a project name using /dev/urandom. # defaults to being just :lower: and 4 long, with 'oy' in it. The first # argument is a substitute alphabet, the second is a substitute length, and # the last a substitute for a 'must match' pattern SET="${1-[:lower:]}" LEN="${2-4}" KEY="${3-oy}" ...
true
7ec54e2c0e3d447e37d0e38c906e30793266cc5c
Shell
JinfengChen/Docker_Container
/images/pull_images.sh
UTF-8
700
2.734375
3
[]
no_license
#!/bin/bash #SBATCH --nodes=1 #SBATCH --ntasks=1 #SBATCH --mem=10G #SBATCH --time=9:00:00 #SBATCH --output=pull_images.sh.%A_%a.stdout #SBATCH -p fast,all #SBATCH --workdir=./ #sbatch --array 1 run_speedseq_qsub.sh start=`date +%s` CPU=$SLURM_NTASKS if [ ! $CPU ]; then CPU=2 fi N=$SLURM_ARRAY_TASK_ID if [ ! $N ...
true
1d2a5a12ecc0b4ec9f989c5f462e732557570e53
Shell
bensie/packer-templates
/user_data/elasticsearch.sh
UTF-8
821
3.125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash ############################################################## # Begin generic commands run across all roles ############################################################## # Copy SSH keys for authentication username=deploy su $username -c "mkdir -p /home/$username/.ssh" su $username -c "touch /ho...
true
9934d4fbc1de8edf065e82c72f05b4f5c3ec0e51
Shell
vgteam/gfakluge
/test/gfa_test.t
UTF-8
1,668
3.09375
3
[ "MIT" ]
permissive
#!/bin/bash BASH_TAP_ROOT=./bash-tap . ./bash-tap/bash-tap-bootstrap plan tests 8 ## Importing a GFA file in GFA1 and converting it to GFA2 is $(./gfak convert -S 2.0 data/v1.gfa | md5sum | awk '{ print $1 }') "268e075f19c7600304b51247b11e5f0f" "Importing a GFA file in GFA1 and converting it to GFA2" ## Importing...
true
415c5881bd60d6abb97553c5c8479feb503ba98c
Shell
Jamiewarb/myconf
/.zshrc
UTF-8
7,598
2.796875
3
[]
no_license
# If you come from bash you might have to change your $PATH. export PATH="/sbin" export PATH="/usr/sbin:$PATH" export PATH="/bin:$PATH" export PATH="/usr/bin:$PATH" export PATH="/usr/local/sbin:$PATH" export PATH="/usr/local/bin:$PATH" export PATH="/usr/local/opt:$PATH" export PATH="$HOME/bin:$PATH" export PATH="$HOME/...
true
e484ce61987ddce7fd8a90c8e5d7703d96a93b5a
Shell
fzinfz/docker-images
/init.sh
UTF-8
5,438
3.515625
4
[]
no_license
#!/bin/bash [ -f /data/conf/init.sh ] && . /data/conf/init.sh [ -f ../scripts/lib/docker.sh ] && . ../scripts/lib/docker.sh || source /dev/stdin <<< "$(curl -sSL https://raw.githubusercontent.com/fzinfz/scripts/master/lib/docker.sh)" if [ -z "$docker_user" ]; then read -p "DockerHub user name: " docker_user fi mode...
true
cf75215bcfedf3e617fd48eff1b24e11619942a1
Shell
raghugorthy/BASH-Scripts
/arguments.sh
UTF-8
132
2.609375
3
[]
no_license
#!/bin/bash #Simple arguments file : ${3?"Usage: $1 ARGUMENT $2 ARGUMENT $3 ARGUMENT"} echo " I got all the three arguments !! "
true
fb55903b9cc6108e1472f3612cea1bb8a706c5f3
Shell
unders/anycast
/bin/convert.sh
UTF-8
1,131
2.890625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash compress_all() { images=$1 imageOptim --directory ${images} --quit --verbose } main() { dir=$1 convert ${dir}/design_crop.jpg -quality 60 -resize 13% ${dir}/design_max.jpg convert ${dir}/design_crop.jpg -quality 60 -resize 13% ${dir}/design_max.webp compress_all ${dir} }...
true
599f0e0cdf51332c19ef6d8dc924cd5db211e4c6
Shell
DiamondLightSource/DosNa
/run_tests.sh
UTF-8
638
3.3125
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -e SDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" if [ "$#" -eq 0 ]; then echo "Unittest discovery mode" echo "========================================" PYTHONPATH=. python -m unittest discover -s "${SDIR}/dosna/tests" -v else echo "Unittest manual mode:" $@ for sc...
true
ac9b170124f19c3e586447b55ffbec10e94eb8cb
Shell
WestleyR/list-files
/package.sh
UTF-8
1,826
4
4
[ "BSD-3-Clause-Clear" ]
permissive
#!/bin/sh # Created by: WestleyR # Email: westleyr@nym.hush.com # Url: https://github.com/WestleyR/list-files # Last modified date: 2020-08-16 # # This file is licensed under the terms of # # The Clear BSD License # # Copyright (c) 2019-2020 WestleyR # All rights reserved. # # This software is licensed under a Clear BS...
true
ced8ca409ffea1ff708e8ea161976ad407320f13
Shell
luohao-brian/node-creator
/node-creator
UTF-8
3,201
3.65625
4
[]
no_license
#!/bin/bash # Copyright (C) 2010, Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. # # This program is distributed in the hope that it will be useful, #...
true
5ef03d6027bd613e6357c28fa711da8fb30b1b4e
Shell
gerhumphries/optware
/sources/endor/cat-supervisor
UTF-8
389
2.609375
3
[]
no_license
#! /bin/sh exitStatus=1 export MONO_GC_PARAMS=nursery-size=32m while [ $exitStatus -ne 0 ] do mono /opt/lib/endor/Calnex.Cat.RemotingServer.exe > /dev/null 2>&1 exitStatus=$? if [ $exitStatus -ne 0 ] then psql -d endor -c "insert into ic_error (time_stamp, error_class, handled, msg) VALUES (now(), 'Error', '...
true
a36c7c4a5d5dc8d712fc5116894377f5ae1b1ef4
Shell
walaj/SeqLib
/.travis.scripts/publish-doxygen.sh
UTF-8
1,030
3.03125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash ## only build for one compiler if [ "$COMPILER" == "g++-4.9" ] && [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo -e "Downloading latest Doxygen..."; cd ${HOME}; wget ftp://gsapubftp-anonymous@ftp.broadinstitute.org/travis/doxygen_1.8.8-1_amd64.deb ...
true
64331958c376cc95fd707589599e721a386cc150
Shell
kshvmdn/dotfiles
/bin/run
UTF-8
691
3.453125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # Bash wrappers for `docker run` commands. __black() { docker run -it --rm \ -v "$PWD":/code \ jbbarth/black "$@" } __clang-format() { docker run -it --rm \ -v "$PWD":/workdir \ -w /workdir \ unibeautify/clang-format "$@" } __jekyll() { docker run -it --rm \ -v "$PWD":...
true
93bace0cd39c72f335df73be0b8f2b3d723590aa
Shell
maurya/deb-mechanismimporter
/debian/postinst
UTF-8
622
3.359375
3
[]
no_license
#!/bin/sh MIDIR=/var/lib/mechanismimporter # Create mechanism importer user USER=$(id -u mechanismimporter &>/dev/null) if [ ! $USER ] then echo "Creating mechanismimporter user..." useradd -d /var/lib/mechanismimporter -s /bin/sh -U mechanismimporter fi # create logs dir mkdir -p ${MIDIR}/logs/ # Use npm to insta...
true
77376b31d9244eb22cfe1292371a394d863eed96
Shell
leopord/i3wm
/sh/config.sh
UTF-8
975
2.96875
3
[]
no_license
#!/bin/bash # Create direcotories if [ ! -d ~/.logs/i3 ]; then mkdir -p ~/.logs/i3 fi if [ ! -d ~/.logs/mpd]; then mkdir -p ~/.logs/mpd fi if [ ! -d ~/screenshots ]; then mkdir -p ~/screenshots fi if [ ! -d ~/softwares ]; then mkdir -p ~/softwares fi if [ ! -d ~/projects ]; then mkdir -p ~/projects fi i...
true
1363bd624d74ce01c6cc2817f85990897415a71c
Shell
LWJTT/WireGuard
/WireGuardMultiuser
UTF-8
4,851
3.203125
3
[]
no_license
#!/bin/bash # 更新软件包源 apt update # 安装和 linux-image 内核版本相对于的 linux-headers 内核 apt install linux-headers-$(uname -r) -y # Debian9 安装后内核列表 dpkg -l|grep linux-headers # 添加 unstable 软件包源,以确保安装版本是最新的 echo "deb http://deb.debian.org/debian/ unstable main" > /etc/apt/sources.list.d/unstable.list echo -e 'Package: *\nPin: re...
true
60cc417bc7498d96b5b3709fa947d3ac9503f5f6
Shell
FutureApp/a-bench
/dir_bench/a-bench_connector/experiments/env-run-experiment/env_definition_template.sh
UTF-8
4,084
3.828125
4
[ "MIT" ]
permissive
#!/usr/bin/env bash LB='\033[1;34m' RR='\033[1;31m' NC='\033[0m' # No Color # dep-locations exutils="../../utils/exutils.sh" # imports source $exutils bench_tag=${LB}[A-Bench]${NC} ex_tag="experiment#01" function check_query_number () { queryLikeToRun=$1 if [ -z "$queryLikeToRun" ]; then echo "Er...
true
d457b9d9cc16b968e10b16a402a746010eac0763
Shell
jeremyevans/openbsd-postgresql-ports
/11/pkg/postgresql_11.rc
UTF-8
505
2.890625
3
[]
no_license
#!/bin/ksh daemon="${TRUEPREFIX}/bin/${POSTGRESQL_DIR}/pg_ctl" daemon_flags="-D ${DATA_DIR} -w -l /var/postgresql/logfile" daemon_user="_postgresql" . /etc/rc.d/rc.subr rc_usercheck=NO rc_check() { rc_exec "${daemon} status ${daemon_flags}" } rc_reload() { rc_exec "${daemon} reload ${daemon_flags}" } rc_start()...
true
f03f3b163c39d36f80db0ec4eccdf1784f66b0d7
Shell
Nishant-Joshi-Bose/Product-Docker
/scripts/create-hsp-ipk
UTF-8
7,124
4.21875
4
[]
no_license
#!/bin/bash # # Create an IPK file for installing Riviera HSP with opkg. # # To install: # opkg install -d bose hsp.ipk # # The file /etc/opkg/opkg.conf should contain this line: # dest bose /opt/Bose # # To uninstall: # opkg remove hsp # # CAUTION: HSP IPK, if interrupted / have issues, # can corrupt th...
true
f857b124e3f77cedb42ff1ff7661468c30ee39f5
Shell
orcguru/pid_monitor
/workload/spark/resources/sqlgen/scripts/convert_to_hive_orc_lzo_table.sh
UTF-8
439
3.0625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash if [ $# -lt 2 ] then echo "Usage: ./convert_to_hive_orc_lzo_table.sh <HDFS source folder> <hive DB name>"; exit 1 fi HDFS_LOC=$1 HIVE_DB=$2 TEXT_DB=${HIVE_DB}_text hive -i load-flat.sql -f alltables.sql -d DB=${TEXT_DB} -d LOCATION=${HDFS_LOC} hive -i load-partitioned.sql -f os_order.sql -d DB=${...
true
8b6900981a81c8908e0064ac19c8ada134fe21f6
Shell
Andersbakken/plast
/bin/create-package.sh
UTF-8
2,359
4.0625
4
[]
no_license
#!/bin/bash function usage () { echo "create-package.sh" echo " --help|-h" echo " --repo=...|-r=..." echo " --no-build|-n" echo " --no-push|-p" echo " --build-flags|-b" echo " --message=...|-m=..." } BUILD=1 PUSH=1 REPO= BUILD_FLAGS="$MAKEFLAGS" MESSAGE= while [ -n "$1" ]; do case...
true
564b2adc0c980e08f9a952ffe7d65d8a6359a52a
Shell
abstractguy/EMG2629
/Desktop/EMG2926/_V1.00(AAVK.4)C0.bin.extracted/jffs2-root/fs_1/bin/wps_conf_5G
UTF-8
2,342
3.28125
3
[]
no_license
#!/bin/sh . /etc/functions.sh include /lib/config #last_chksum=$(cat /tmp/conf_chksum_24G) #current_chksum=$(chksum /tmp/hostapd/hostapd-ath0.conf | grep "checksum" | awk '{print $4}') wps_status_old=$(cat /tmp/wps_chk_status_5G) wps_status=$(hostapd_cli -p /tmp/run/hostapd-wifi1/ -i ath10 get_config |grep wps_state=...
true
a1ef2a144e1b98f11dbd4437e667fc1f72054d64
Shell
Simphi/heasy
/heasy/src/herest.sh
UTF-8
3,219
3.25
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # # Copyright 2013 CSIR Meraka HLT and Multilingual Speech Technologies (MuST) North-West University # # 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.a...
true
da13e73776837f5b937b1ba4b3281dc02186b112
Shell
vivisystems/roundrock
/os/scripts/update_usb_modem
UTF-8
2,222
3.84375
4
[]
no_license
#!/bin/sh echo `date` $@ >> /tmp/update3g.log if [ $# -ne 3 -o -z "$1" -o -z "$2" -o -z "$3" ]; then echo "usage: $0 action target device" exit fi TARGET=$2 DEVICE_MARKER=/tmp/3g-modem.device.${TARGET} PIN_FILE=/etc/modem.pin if [ -r ${PIN_FILE} -a -f ${PIN_FILE} ]; then PIN=`cat ${PIN_FILE}` else P...
true
ed905fe1d4265c44b3fc044a699d85f938868a3f
Shell
1link-education/stnread_w3m
/stenoread_to_pcap.sh
UTF-8
404
2.765625
3
[]
no_license
#! /bin/bash echo echo "making stenoread write new pullled packets to usable .pcap files each 3 minutes..." #filename=/home/mongodb/stenoread_output/stenoread_all while [ true ] do echo date stenoread 'after 3m ago' -w /home/mongodb/stenoread_output/stenoread_allpkt-$(date +"%Y%m%d%H%M%S").pcap # -w /home/mongodb...
true
2e95d411a0f0d97d0e2908b68378536c0d3259ef
Shell
MastersAcademy/devops-course-2019
/Lesson 4/yaroslav.partyckyi/docker_sailor.sh
UTF-8
742
3.15625
3
[]
no_license
#!/bin/bash if [ "$EUID" -ne 0 ] then echo ' . . . permission denied, please run as root' exit fi echo -e "\n . . . remove/install docker\n" sudo apt-get update sudo apt-get remove docker docker-engine docker.io containerd runc sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent softwar...
true
c09b929719044971bb77e919f6a190fd5d8c8c6d
Shell
survivant/mongodb-redpanda-example
/run.sh
UTF-8
2,530
3.703125
4
[]
no_license
#!/bin/bash set -e ( if lsof -Pi :27017 -sTCP:LISTEN -t >/dev/null ; then echo "Please terminate the local mongod on 27017, consider running 'docker-compose down -v'" exit 1 fi ) echo "Starting docker ." docker-compose up -d --build sleep 5 echo "\n\nWaiting for the systems to be ready.." function test_syste...
true
02f49d5ce67c52a573f679b5ac354687f9204829
Shell
PennBBL/ONM
/scripts/DWI/dwi_mask_images.sh
UTF-8
2,016
3.90625
4
[]
no_license
#this script masks the dwi images using the iterative mask chosen from Mark Elliott's iterative masking script dwi_iterative_masking.sh. It is to be run after the dwi_iterative_masking.sh script as well as after you have chosen the appropriate mask and marked it down in the mask_list.txt #for every subject in ONM... f...
true
b6b36e5b43414874f0184a09cc809bb59218b22e
Shell
george24601/notes
/specific/tidb/binlog
UTF-8
1,468
3.03125
3
[]
no_license
#!/bin/bash #sample config printf > tidb.toml %s\\n 'store="tikv"' 'path="127.0.0.1:2379"' '[log.file]' 'filename="tidb.log"' '[binlog]' 'enable=true' printf > drainer.toml %s\\n 'log-file="drainer.log"' '[syncer]' 'db-type="mysql"' '[syncer.to]' 'host="127.0.0.1"' 'user="root"' 'password=""' 'port=3306' #Use the fol...
true
7422edb118b4a847419e0bda291f3cb809d17e5a
Shell
rahulkolan/SSH-Rekey
/keygen_v2.0.sh
UTF-8
1,135
3.734375
4
[]
no_license
#!/bin/bash #Script generate the ED25519 keys in respective home folders. #Script validate users from /etc/passwd & /home directory #Script append the userid & key in /tmp/userkeys.csv #Script do labelling for respective users key #Usage sh keygen.sh # 2018-09-10 / 1.0.0 / Rahul Kolan : Creation FILENAME=/etc/passwd ...
true
8637579b75c2af5b6d6c884617350af5c2280f95
Shell
gitter-badger/Transcode-1
/Finder Services/vtService.sh
UTF-8
4,961
3.359375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin export PATH # set -xv; exec 1>>/private/tmp/transcodeServiceTraceLog 2>&1 #----------------------------------------------------------------------------------------------------------------------------------- # vtService # Copyrigh...
true
3e1278ec825db2a8067b62e45c4deac777b0e4fe
Shell
souffle-lang/benchmarks
/benchmarks/sequences/gen_facts.sh
UTF-8
462
3.3125
3
[]
no_license
# include general utilities . `dirname $BASH_SOURCE[0]`/../utils.sh # destinguish benchmark sizes case $SIZE in small) N=652 ;; medium) N=4602 ;; large) N=11571 ;; xlarge) N=5000 ;; custom) N=${N:=1000} echo "Custom pr...
true
b3b9c987a46700f59cf0961189bab65f0d963b60
Shell
onap/ci-management
/jjb/vnfrqts/post-upload-artifact.sh
UTF-8
940
2.984375
3
[]
no_license
#!/bin/bash set -e -o pipefail set -- $ARTIFACT_NAME if [ -z "$ARTIFACT_NAME" ] then echo "ERROR NO ARTIFACTS ENTERED" else if [ -z "$2" ] then cd $WORKSPACE/docs/data echo "-n --upload-file $ARTIFACT_NAME https://nexus.onap.org/content/sites/raw/$PROJECT_ID/$GERRIT_BRANCH/$ARTIFACT_NAME" ...
true
018789c12ddc760638e80b61370d203136583e19
Shell
kryptikpunani/dotfiles-5
/polybar/scripts/updates.sh
UTF-8
605
3.5
4
[]
no_license
#!/usr/bin/env bash warning_color='#f44336' normal_color='#fabd2f' no_connection_color='#373737' # Arch updates includes ruby gem updates as well (little did you know, huh?) arch_updates=$(checkupdates 2>&1) if [[ $arch_updates =~ '==>' ]]; then echo "%{F${no_connection_color}}%{F-}" exit fi aur_updates=$(pikau...
true
b8a0b5d9c054b7428af9ed37a632b0c63b610ab9
Shell
katylava/dotkyl
/lib/090-prompt.zsh
UTF-8
1,935
3.703125
4
[]
no_license
eval "$(starship init zsh)" function _mypwd { local dir_limit="2" local truncation="⋯" local trunc_part="" local part_count=0 local formatted_cwd="" local dir_sep="  " local tilde="~" # this file expansion syntax will give us a path that uses bookmark names local first_dir="${(%)...
true
f1a9810ed2359843b130cf26f316cfba3772e10d
Shell
fransixles/admin-scripts
/reboot-required.sh
UTF-8
292
3.234375
3
[ "MIT" ]
permissive
#!/bin/bash # checks if the system is pending a reboot if [ ! -e /etc/apt/apt.conf.d/50unattended-upgrades ]; then echo >&2 "This script depends on the 'unattended-upgrades' package." exit 1 fi if [ -f /var/run/reboot-required ]; then cat /var/run/reboot-required exit 0 fi exit 1
true
2d13352ca074838a66cc444c1bc8abb7bb70e9d0
Shell
hechenyu/book_code
/expert_shell/Chapter_14/bash_urlvalidator
UTF-8
2,443
4.0625
4
[]
no_license
#!/bin/bash #set -x # # Validate URL's that are found based on a top level URL that is passed # to the script # read_pipe=/tmp/read_pipe write_pipe=/tmp/write_pipe for file in $read_pipe $write_pipe do if [ ! -p $file ] then mkfifo $file fi done LOGFILE=/tmp/valid_url.log if [ -f $LOGFILE ] then rm $LOG...
true
6ca9453c8c87273e0eb577877b3251b76ee9ad04
Shell
Arstman/dotfiles
/.local/bin/blocks/internet
UTF-8
683
3.28125
3
[]
no_license
#!/bin/sh # Can either display Ethernet or WiFi connection status (with signal strength in the latter case) color="-c 5" if [ $(cat /sys/class/net/e*/operstate) = "up" ]; then icon='󰌗' elif [ $(cat /sys/class/net/w*/operstate) = "up" ]; then quality="$(grep "^\s*w" /proc/net/wireless | awk '{printf "%-3i\n", ...
true
93a7c3b506990c9672c21e45bff90dc8b0c06f5f
Shell
atkins126/odoo12-cookbook
/Chapter02/odoo-install.sh
UTF-8
4,023
3.328125
3
[]
no_license
#!/bin/bash ################################################################################ # Script for installing Odoo 12 with standardized structure # Author: Alan Hou # Website: https://alanhou.org #------------------------------------------------------------------------------- # sudo chmod +x odoo-install.sh && b...
true
35d376e506b1c491e7c16387348a6a83ba3e9184
Shell
caipre/dotfiles
/zsh/prompts.zsh
UTF-8
498
3.03125
3
[]
no_license
autoload -U colors && colors function short_prompt () { local pyenv='' if [[ -n "${PYENV_VERSION}" ]]; then #pyenv="${PYENV_VERSION} " fi PROMPT="$pyenv%{$fg_bold[white]%}%(!.#.$)%{$reset_color%} " LONG_PROMPT=false } function long_prompt () { local pyenv='' if [[ -n "${PYENV_VERSION}" ]]; t...
true
8861b81a6171d27326acc9e7bfb6d5f74a3fda52
Shell
spawn3/uss
/ussadmin/script/ssh_nopass_test.sh
UTF-8
480
3.25
3
[]
no_license
#!/usr/bin/env bash ECHO=magicAA55 HOST=$1 USER=$2 PASSWORD=$3 ssh_test() { expect <<- EOF spawn -noecho ssh $USER@$HOST echo $ECHO expect { "*yes/no" { send "yes\r"; exp_continue } "*password:*" { send "$PASSWORD\r"; expect { "denied" {exit 1} eof ...
true
3dbe41f47af0b24b4ef378a613ffee712c4e7162
Shell
SNeuroble/cluster_power_failure
/simulation_study/run_cluster_failure_sim.sh
UTF-8
2,054
3.53125
4
[]
no_license
#!/bin/bash #set +x ######################################################################################### # Usage: run_cluster_failure_sim.sh cfg.sh <first_cmID> <last_cmID> <WB_test_number> # Randomly permute subjects into two groups and perform group contrast test (FPR). # Optionally add activation to one group b...
true
8b4b3bf00dcfa3fe45e532f9992d9d51357206a6
Shell
osbuild/osbuild-composer
/schutzbot/slack_notification.sh
UTF-8
653
3.09375
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash set -eux if [ -z "${SLACK_WEBHOOK_URL:-}" ]; then echo "INFO: Variable SLACK_WEBHOOK_URL is undefined" exit 0 fi COMPOSE_ID=$(cat COMPOSE_ID) COMPOSER_NVR=$(cat COMPOSER_NVR) MESSAGE="\"Nightly pipeline execution on *$COMPOSE_ID* with *$COMPOSER_NVR* finished with status *$1* $2 \n QE: @atodorov,...
true
3376d077f057d27a6a3b500f04d1659597a00a6f
Shell
JuryA/dist-haproxy
/build.sh
UTF-8
1,359
3.265625
3
[]
no_license
#!/bin/bash cd /srv last_release=$(wget -qO- http://www.haproxy.org/ | grep "Stable version" -B 10 -m1 | grep -o "/download.*tar.gz") release_n=$(echo "$last_release" | sed -r 's/.*-(.*).tar.gz/\1/') # assets=$(wget -qO- https://api.github.com/repos/$TRAVIS_REPO_SLUG/releases/latest | jq -r '.assets[].name') last_r=$(...
true
0972ea703f55c7783a5ac37223bde385423ca16d
Shell
ssh352/OrderBook-5
/src/test/bash/run_multi_scenarios.eay.sh
UTF-8
2,359
3.609375
4
[ "MIT" ]
permissive
#!/bin/bash SCRIPT_START_DIR=`pwd` DIRNAMECMD="/usr/bin/dirname" MYSCRIPTDIR=`(cd \`${DIRNAMECMD} ${0}\` ; echo \`pwd\`)` function run_single_case(){ local tmp_jarfile_full_path=$1 local tmp_interfaceType=$2 #TCP or FIX local tmp_duration_in_seconds=$3 local tmp_bg_client_num=$4 local tmp_bg_r...
true
903b0b8770031f5b09c08d76fba0df9225c1ad23
Shell
axv0419/stream-transform
/k8s/bin/create_k8.sh
UTF-8
921
3.21875
3
[]
no_license
#!/bin/bash export BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )/../.." >/dev/null 2>&1 && pwd )" #project_config_file="project_config.yaml" # #if [ ! -f ${BASE_DIR}/${project_config_file} ]; then # echo "Project config file ${project_config_file} missing in current directory" # exit 0 #fi # #echo . #echo "...
true
681f62c8f5ded7caed381b033f29dd16517399bb
Shell
pulcy/vault-monkey
/deps/github.com/hashicorp/consul/scripts/dist_build.sh
UTF-8
1,238
3.71875
4
[ "MPL-2.0", "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -e # Get the parent directory of where this script is. SOURCE="${BASH_SOURCE[0]}" while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )" # Change into that dir because we expect that. cd $DIR # Make sure build tools are available. ...
true
dd3f9d788a1307d2e253753bf3b6644f3a924089
Shell
ganttlab/ganttlab-live
/bootstrapIt.sh
UTF-8
807
3.5
4
[ "MIT" ]
permissive
#!/usr/bin/env bash echo -n "Please type in your GitLab instance URL (default: https://gitlab.com): " read GITLAB_URL if [ -z "${GITLAB_URL}" ]; then GITLAB_URL=https://gitlab.com fi echo -n "Now provide your GitLab token: " read GITLAB_TOKEN if [ -z "${GITLAB_TOKEN}" ]; then echo "You need to provide a token to...
true
16d3c700bf782387134213f26fc20180d2652117
Shell
Craftworks/dotfiles
/_install.sh
UTF-8
309
3.75
4
[]
no_license
#!/bin/sh BACKUPDIR=$HOME/.dotfiles-bak TARGET=$1 cd $(dirname $0) CURDIR=$(pwd) if [ ! -d $BACKUPDIR ]; then set -x mkdir $BACKUPDIR set +x fi if [ \( ! -L $HOME/$TARGET \) -a -e $HOME/$TARGET ]; then set -x mv $HOME/$TARGET $BACKUPDIR/ set +x fi set -x ln -fs $CURDIR/$TARGET $HOME/
true
dfcf5f6ec4c521266f289425bc6f590729311775
Shell
ArchiveTeam/googleplus2-grab
/warrior-install.sh
UTF-8
163
2.796875
3
[ "Unlicense" ]
permissive
#!/bin/bash PIP=pip if type pip3 > /dev/null 2>&1 then PIP=pip3 fi echo "Installing warcio" if ! sudo $PIP install warcio --upgrade then exit 1 fi exit 0
true
06013121f455f1dc7ba4cefc30192a25914a4731
Shell
shlok97/Terraform-Setup-Demo
/installer.sh
UTF-8
773
2.953125
3
[]
no_license
#!/usr/bin/env bash sudo apt-get install unzip echo 'installing terraform' wget https://releases.hashicorp.com/terraform/0.12.6/terraform_0.12.6_linux_amd64.zip unzip terraform_0.12.6_linux_amd64.zip sudo mv terraform /usr/local/bin/ terraform --version echo 'installed terraform' echo 'installing terraform-inventory...
true
c4a4e821d48746214109cda900ab31c5eb14c049
Shell
javaelk/apache_solr_scripts
/wliu.cleanupall.sh~
UTF-8
651
2.6875
3
[]
no_license
#!/bin/bash -xv echo "this script will clean up everything" TESTSUBJECT="apache-solr_snapshots-TM" TESTSUBJECT_ALT="apache-solr_snapshots" SVNNAME="solr" echo "remove all build class and source files in versions.alt" echo "remove all trace results" rm -rf $experiment_root/$TESTSUBJECT/versions.alt/orig/* for VER in...
true
0f25e4e1f60f173b418f945c97456214ca2bb67a
Shell
ghostbar/dotfiles
/zshfiles/zsh/functions/mcd.sh
UTF-8
193
3.421875
3
[ "CC0-1.0" ]
permissive
# Make directory and change into it # # text - directory to be created # # Example # # mcd this-directory # % => $PWD = $PWD/this-directory function mcd() { mkdir -p "$1" && cd "$1"; }
true
4420f17531047e079ea6c2b62c6bfcf4cce4afc6
Shell
sshyran/cloudfoundry-cli
/bin/replace-sha
UTF-8
628
3.171875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash CURRENT_SHA=$(git rev-parse --short HEAD) CURRENT_VERSION=$(cat VERSION) VERSION_STRING="${CURRENT_VERSION}+${CURRENT_SHA}" if [ $(uname) == darwin ]; then DATE_STRING=$(date -u +"%Y-%m-%d") sed -i "" -e "s/BUILT_FROM_SOURCE/$VERSION_STRING/g" $(dirname $0)/../cf/app_constants.go sed -i "" -e ...
true
fbb046c4720f36e620fd1632cf005d2be0304c98
Shell
yongjianchn/kint_s2e_autotestkernel
/onlykint.sh
UTF-8
1,111
3.15625
3
[]
no_license
#!/bin/bash #判断当前目录是否是linux tree# if [ -f "README" ] then echo "========== File 'README' exist" else echo "========== Not in kernel" exit fi iskernel=`grep "Linux kernel release" README | wc -l` if [ $iskernel -eq 0 ] then echo "========== Not in kernel" exit else echo "========== IN Linux kernel" fi Inserted...
true
6294094f86bec643d54eed9cbb9e229e1dd62379
Shell
tooky/cucumber-rspec
/test/run
UTF-8
397
3.359375
3
[ "MIT" ]
permissive
#!/bin/bash gemfile_dir=$1 gemfile="$gemfile_dir/Gemfile" echo echo "Testing with $gemfile..." cd $gemfile_dir bundle update result="$(bundle exec cucumber --strict --require code ../features)" status=$? if [[ $status -ne 0 ]]; then echo echo "=> FAIL: Expected zero exit status" echo echo "Output was:" ec...
true
3851d87ed09efe3625bf98d7646284531e5d328c
Shell
konstruktoid/hardening
/tests/resolvedconf.bats
UTF-8
737
2.9375
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bats load test_helper @test "Verify a DNS server is set in $RESOLVEDCONF" { run bash -c "grep '^DNS=...' $RESOLVEDCONF" [ "$status" -eq 0 ] } @test "Verify a FallbackDNS server is set in $RESOLVEDCONF" { run bash -c "grep '^FallbackDNS=...' $RESOLVEDCONF" [ "$status" -eq 0 ] } @test "Verify t...
true
f01d8b1c94fddae7eb1bba44ccf86fd881e928f3
Shell
petronny/aur3-mirror
/genplaylist-git/PKGBUILD
UTF-8
692
3.203125
3
[]
no_license
pkgname=genplaylist-git pkgver=20110218 pkgrel=2 pkgdesc="Playlist Generator for MPD using Last.fm data" arch=('i686' 'x86_64') url="https://github.com/kornKoala/genPlaylist" depends=('mpd' 'ruby' 'ruby-librmpd') makedepends=('git') license=('GPL') source=() md5sums=() _gitroot="git://github.com/kornKoala/genPlaylist....
true
d4624c57ac9e48a544d6efdcc590b0fe860c95ba
Shell
alamsarker/pipeline
/jenkins/deploy.sh
UTF-8
970
3.53125
4
[]
no_license
#!/bin/bash export ENV_SERVER=$1 echo 'Preparing Deployment...' PROJECT_NAME="isalebd-core" BUILD_TAR_FILE="$PROJECT_NAME.tar.gz" REMOTE_SERVER="root@104.131.57.194" if [[ -z $ENV_SERVER ]] then echo "Skipped Deploy due to empty param provided." exit fi APP_DIR="/var/www/html/$ENV_SERVER/$PROJECT_NAME"...
true
fe4bd796440e27a01f7a7d9df09ec493496431be
Shell
staehle/usbos
/defines.sh
UTF-8
844
3.078125
3
[]
no_license
#!/bin/bash _usbos_path=$(realpath $(dirname "${BASH_SOURCE[0]}")) CNORMAL="\033[1;0m" CSTRONG="\033[1;1m" CRED="\033[1;31m" CGREEN="\033[1;32m" CYELLOW="\033[1;33m" CPURPLE="\033[1;35m" CCYAN="\033[1;36m" function _echo_title() { echo echo -e "$(date +%T)| ${CSTRONG}*** ${CYELLOW}$@${CNORMAL} ***" } function _echo...
true
04d8b8208cd4e7e16da7e7326be65d07cde4392a
Shell
covener/ihs-tools
/letsencrypt_2_gskit.sh
UTF-8
1,107
3.46875
3
[ "Apache-2.0" ]
permissive
#!/bin/sh -x # This script copies a letencrypt-downloaded certificate, chain, and key into a # GSKit-compatible CMS file. DOMAIN=www.example.com IHSROOT=$HOME/ihs90 cd /etc/letsencrypt/live/$DOMAIN echo "Fetching root letsencrypt CA" wget -q https://letsencrypt.org/certs/isrgrootx1.pem -O $PWD/isrgrootx1.pem ls -l...
true
231b9a521d6aa9231a9a445629661956585e6a98
Shell
gradyzhuo/Matcha
/modules/Files/dir_operation
UTF-8
887
3.625
4
[]
no_license
#!/bin/bash # # Files/dir_operation # # Matcha 1.0, Created by gradyzhuo, enoch_lee. # Copyright © 2017, Matcha Inc. All rights reserved. # declare -f mkdirFolder declare -f mkdirs declare -f open_finder declare -f switch_dir_to declare -f restore_dir function mkdirFolder() { for mf in "$@" do if [ ! -d "$mf...
true
f652339e2b5c0c2c1a434ad43ed9fd9934516e79
Shell
ltoniut/generic-rest-template
/src/schematics/rest-service/files/ts/scripts/npmLogin.sh
UTF-8
502
2.953125
3
[]
no_license
# DESC: Main control flow # ARGS: $@ (optional): Arguments provided to the script # OUTS: None function main() { # shellcheck source=source.sh source "$(dirname "${BASH_SOURCE[0]}")/functions.sh" trap script_trap_err ERR trap script_trap_exit EXIT script_init "$@" parse_params "$@" cron_in...
true
29b730d04857006cec659864e6003e25204e2da7
Shell
haizawa/workshop
/apps/lsw1/lsw1.sh
UTF-8
1,276
2.515625
3
[]
no_license
#!/bin/sh ## remove proxy unset http_proxy FORMAT="\n%{url_effective}, %{response_code}\n\n" ADDRESS=0.0.0.0 #sleep 1 # view ComponentManagers curl http://$ADDRESS:10080/systemmanager/component_managers | python -mjson.tool # create Components curl -w "$FORMAT" http://$ADDRESS:10080/systemmanager/components/network...
true
ced3e90182ffec7ba88066a50dfd315b65168962
Shell
t-kimball/.trash
/cars.sh
UTF-8
806
2.921875
3
[]
no_license
#!/bin/bash curl -A 'Mozilla/4.0 (MSIE 6.0; Windows NT 5.0)' 'http://www.carqueryapi.com/api/0.3/?cmd=getMakes' | jq '.Makes[]' | jq '{country: .make_country, cars_released: .make_country, model: .make_display}' | jq -s 'sort_by(.country, .model) | reverse' > cars.json REPLACEMENTS=$(cat cars.json | grep country | awk...
true
397bfb02915031ccb61730a880eccf8c486dd611
Shell
diptipawar/Centos6-Python-Oracle-Connectivity-
/Oracle_Python_Connectivity_Centos6.sh
UTF-8
2,242
2.828125
3
[]
no_license
#install cx_Oracle on CentOS 6 #cx_Oracle is a Python extension module that allows access to Oracle databases and conforms to the Python database API specification. The cx_Oracle module must be imported as it's not part of the core Python language. #Lets start the installation yum install libaio #1. Download and ...
true
a4565c17094f2eed9509474b91109b70fe05dd44
Shell
iemejia/k8s-bigdata
/helm/minio/undeploy.sh
UTF-8
213
2.734375
3
[]
no_license
#!/bin/bash if [ $(helm list --namespace minio | wc -l) -eq 2 ] then helm uninstall minio --namespace minio fi kubectl get namespace minio >& /dev/null if [ $? -eq 0 ] then kubectl delete namespace minio fi
true
61b236dca10e95a425cd4b2872bdbe8527f3e504
Shell
influx6/btclistings
/migrations/setup_db.sh
UTF-8
1,949
2.765625
3
[]
no_license
#!/bin/bash set -e echo "Starting migration setup script" PGPASSWORD="$POSTGRES_PASSWORD" psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-SQL -- Create database CREATE DATABASE btc_listings owner $POSTGRES_USER; \connect btc_listings; -- NOT ANYMORE: Register timescale...
true
bc1e489929f9b58cee324021fc497f217e537a89
Shell
conjurdemos/conjur-intro
/demos/aws-cluster/0_terraform_aws
UTF-8
361
2.6875
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash -eu echo "Creating temporary directory for terraform plan..." mkdir -p ./tmp/terraform # Make sure terraform dependencies and modules are loaded terraform init # Generate the terraform execution plan terraform plan -out=./tmp/terraform/conjur-ha.plan # Execute the plan to create the AWS resources terraf...
true
728fb2366a4658778f7f3d0d5818752bad87c097
Shell
vgadreau/demo
/chef-bookbooks/P/platformstack/templates/default/service_mon.sh.erb
UTF-8
292
3.546875
4
[]
no_license
#!/bin/bash if [ -z "$1" ] then echo "USAGE: ./service_mon.sh <service>" fi service $1 status > /dev/null 2>&1 ret=$? if [[ $ret != 0 ]] then echo "status error: service $1 not running" echo "metric status string CRITICAL" else echo "status ok" echo "metric status string OK" fi
true
3a9acff3d78891367f76a59b07f5296e3fabfd86
Shell
fhoehle/MyMCatNLO
/install.sh
UTF-8
616
3.09375
3
[]
no_license
#!/bin/bash mainDir=$PWD installDir=$mainDir/MCatNLO_3_4_1_Base tarBallDir=$mainDir/mcatnlo_341_tarBall if [ "X$1" == "X" ]; then mkdir $tarBallDir cd $tarBallDir wget http://www.hep.phy.cam.ac.uk/theory/webber/MCatNLO/Package341.tar.gz mkdir $installDir cd $installDir tar -xzf $tarBallDir/Package341.tar.gz ...
true
dea76448b44fe720d39db68196fe9f85e7b18f1e
Shell
reznikmm/ada_ru
/bin/build_img.sh
UTF-8
1,125
2.921875
3
[]
no_license
#!/bin/sh MY_BIN=`dirname $0` . $MY_BIN/my_conf mkisofs -J -R -f -o$BUILD/ada-ru.iso $CD [ -d $FILES ] || mkdir -p $FILES [ -f $FILES/ada-ru.jigdo ] && rm -f $FILES/ada-ru.jigdo [ -f $FILES/ada-ru.template ] && rm -f $FILES/ada-ru.template [ -f $BUILD/ada-ru.jigdo ] && rm -f $BUILD/ada-ru.jigdo cat > $BUILD/ada-ru....
true
87ab3970e7c4f4854561c176209c3ed62ce6efa2
Shell
timm/crusty
/bash/sigs
UTF-8
120,922
2.75
3
[]
no_license
#!/bin/bash if [ $1 = "-s" ] then Header=0 else Header=1 fi # Begin a new function. pick1() { # Use gawk to parse some text. gawk -v Seed="$RANDOM" \ 'BEGIN { srand(Seed); RS="" } Header && NR==1 { print $0 "\n" } NR>1 { Recs[rand()] = $0 } END ...
true
543780f0958b07853599a127990690eeb453f451
Shell
AmundsenJunior/d3-test
/build/na-convert-json.sh
UTF-8
1,379
2.828125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash if [ ! -d "data/geo/geojson" ]; then mkdir data/geo/geojson echo "geojson directory created" fi if [ ! -d "data/geo/topojson" ]; then mkdir data/geo/topojson echo "topojson directory created." fi ogr2ogr \ -f GeoJSON \ -where "ADM0_A3 IN ('USA', 'CAN', 'MEX')" \ data/geo/geojson/sub...
true
b6c418251559b888a04d5d82af78683afb026871
Shell
vaibhav1706/tools
/bin/backup
UTF-8
7,228
3.921875
4
[]
no_license
#!/bin/sh ## ## Incremental Backup Script ## by Andriy Berestovskyy ## BACKUP_DIR_FMT="%Y%m%d-%H%M" BACKUP_DIR_DATE_LEN="8" ## excluding time, i.e. just len of %Y%m%d REQUIRES="rsync" usage () { echo "Incremental Backup Script: local directories -> remote host" echo "Requirements:" echo " apt install ...
true
783f909b39f489de1dad890665b130cebbabaf8a
Shell
hufman/ceph-rebuild
/build-current-directory
UTF-8
2,249
3.703125
4
[]
no_license
#!/bin/bash set -e # Builds the .dsc file located in the current directory # Requires the release, releasenum, and variant variables # arch - armel or armhf # release - wheezy # releasenum - d7, or other identifier for the package version # variant - debian or raspbian [ -z "$arch" ] && echo 'Please set $arch to somet...
true
e1e5e3c3169b03c76e3708be6a0a3b7d33554e42
Shell
gec1124/iitm_btp
/trunk/workspace/kaldi_Au4/steps/train_phoneTxCAT.sh
UTF-8
11,759
2.65625
3
[]
no_license
#!/bin/bash # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # SGMM training, with speaker vectors. This script would normally be called on # top of fMLLR features obtained from a conventional system, but it also works # on top of any type of speaker-independent features (based on # de...
true
22aec440e2bf368155f88309f587dacb50380c81
Shell
freedaxin/maya
/test/benchmark/server-log-pickup.sh
UTF-8
1,206
3.25
3
[ "MIT" ]
permissive
#!/bin/sh num=1 #log=/usr/local/sina_maya/logs/maya.log log=../../logs/maya.log middle_host=10.210.214.125 corrency=`ssh amoblin@$middle_host "tail -1 benchmark-config" | awk '{print \$1}'` count=`ssh amoblin@$middle_host "tail -1 benchmark-config" | awk '{print \$2}'` step=`ssh amoblin@$middle_host "tail -1 benchma...
true
4d92ef7f52d8c1143683165008ab4c141bfa2787
Shell
reduce-algebra/reduce-historical
/r38/lisp/csl/util/boot38.sh
UTF-8
471
2.734375
3
[ "BSD-3-Clause" ]
permissive
#! /bin/sh # boot38 --- Build REDUCE 3.8 under Linux/Unix etc using CSL. # Author: Arthur C Norman # This takes around 4 minutes on a P6-400 or 30 secs on an Athlon64 3200+ # This script may be passed a directory as arg1, but if not it expects # to find my source files in "../cslbase" if test -n "$1" then srcdir="...
true
491f0ace1b4c3477035764489f335f80bf24c7a3
Shell
bensonfx/codeserver
/gerrit/update_version
UTF-8
518
3.5
4
[ "MIT" ]
permissive
#!/bin/bash CWD=$(cd `dirname $0`;pwd) COMPOSE_FILE=${CWD}/docker-compose.yml DOCKER_FILE=${CWD}/image/Dockerfile BUILD_SCRIPT=${CWD}/build-gerrit if [ $# -eq 0 ];then echo "$0 new_version" fi new_version=$1 sed -ri "s@bensonfx/gerrit:.*[^\"]@bensonfx/gerrit:${new_version}@g" ${COMPOSE_FILE} sed -ri "s@GERRIT_V...
true
5388abe1d7cd90cfd90df990fcd9de6e3f6c7f51
Shell
niklasweimann/hackerrankchallenges
/Linux Shell/Bash/Comparing Numbers.sh
UTF-8
155
3.171875
3
[]
no_license
read a read b if (( $a < $b )); then echo 'X is less than Y' elif (( $a > $b )); then echo 'X is greater than Y' else echo 'X is equal to Y' fi
true
ddbcaec667d177bc8b86d6ffa56fbb28cb494268
Shell
DSouzaM/mesh-testsuite
/time-analysis/measuremysql/getycsbtimes.sh
UTF-8
942
3.375
3
[ "Apache-2.0" ]
permissive
set -euo pipefail sudo su -c 'echo 655350 > /proc/sys/vm/max_map_count' sudo cpupower frequency-set -g performance 2>/dev/null || true COUNT=20 # Directory to store output DIR="." MALLOCLIBS=("/usr/lib/x86_64-linux-gnu/libjemalloc.so" "malloc" "/usr/lib/libmesh.so") #associative array to help with file names declare...
true
2e52eca694ada94e6b8f800795a6f9aafe8c46e3
Shell
raycast/script-commands
/commands/apps/dnd-me/stop-dnd-me.sh
UTF-8
460
2.65625
3
[ "MIT" ]
permissive
#!/bin/bash # Install DND Me from https://runtimesharks.com/projects/dnd-me?ref=producthunt # Required parameters: # @raycast.schemaVersion 1 # @raycast.title Stop DND # @raycast.mode silent # Optional parameters: # @raycast.icon 🔔 # @raycast.packageName DND Me # Documentation: # @raycast.description Stops DND via...
true
0082c3034f130f2614ec1210d618e48324181bca
Shell
Tarkiyah/googleResearch
/dql_grasping/run_train_collect_eval_oss.sh
UTF-8
1,723
2.703125
3
[ "Apache-2.0" ]
permissive
# Copyright 2019 The Google Research Authors. # # 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 agree...
true
97e0b9742d8e0516c4ddc96ed019a28a780f9077
Shell
mannv/makePackage
/docker/nginx/startup.sh
UTF-8
555
3.09375
3
[]
no_license
#!/bin/bash env=$1 DOMAIN_FRONTEND="www.vitop.vn" DOMAIN_EMPLOYER="employer.vitop.vn" if [ $env = 'local' ]; then DOMAIN_FRONTEND="local.vitop-career.com" DOMAIN_EMPLOYER="employer.local.vitop-career.com" elif [ $env = 'staging' ]; then DOMAIN_FRONTEND="staging.vitop.vn" DOMAIN_EMPLOYER="employer-stag...
true
3f6045382b902347b28e8202b28f6002a555b73c
Shell
powerpoint0/lem_in
/cmake-build-debug/gen.sh
UTF-8
954
3.359375
3
[]
no_license
#!/bin/zsh var=$1 h1="--flow-one" # : generates an ant farm with distinctive path and [1] ant in it h10="--flow-ten" #: generates an ant farm with distinctive path and approximately [10] ants in it h100="--flow-thousand" #: generates an ant farm with distinctive path and approximately [100] ants in it h1000="--big" #...
true
6020c302a5ad0b8404e6ea5eed1e535bc5b923e9
Shell
jgleba/zfs
/zpoolstatus.sh
UTF-8
878
3.109375
3
[]
no_license
#!/bin/bash #Justin Gleba #April 18, 2017 #FreeNAS daily zpool status run. Runs a bunch of ZFS info and status commands, outputs to a text file, emails contents of file and deletes file. #Schedule through cron #Uses FreeNAS email system #Get pool name poolname=$(zpool list | grep -v freenas-boot | grep -v NAME | awk ...
true
6c89ec77fdc9d7306a876a994cbe0d83372a1ddc
Shell
icaliskanoglu/notionfy
/scripts/release.sh
UTF-8
535
3.171875
3
[]
no_license
#!/bin/bash echo "Running script to create release .zip" if [ `uname` = "Darwin" ] then mkdir release cp .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/notionfy-exe/notionfy-exe ./release/notionfy &&\ cd release &&\ zip notionfy_mac.zip notionfy tar -zcvf notionfy_mac.tar.gz notionfy rm notionfy cd ....
true
33ad1ae727ecf1e585a8356daefb2ec55325a7ab
Shell
kovimallik/Cas9Enrichment
/SV_calling/runSNIFF.sh
UTF-8
1,287
3.203125
3
[]
no_license
#!/bin/bash -l ###### # this code is for running the minimap2 aligner followed by the Sniffles SV caller # ..NOTE sniffles was originally designed for use with the NGMLR alignment tool , # so when running with minimap2, you have to have use the --MD flag .. also make sure you are using the latest v. of min...
true
a8f38d4b0951e0aa64eb92765dd7741458c37442
Shell
ChandraAddala/blueflood-es-reindex
/scripts/init_index_metric_tokens.sh
UTF-8
1,354
2.625
3
[]
no_license
DEFAULT_WAIT_PERIOD="10s" WAIT_PERIOD=${1:-$DEFAULT_WAIT_PERIOD} echo "**** Creating index with parent child relationship ****" curl -XDELETE 'http://localhost:9200/metric_tokens' echo "Waiting ${WAIT_PERIOD}..." sleep ${WAIT_PERIOD} curl -XPUT 'http://localhost:9200/metric_tokens' echo "Waiting ${WAIT_PERIOD}..."...
true
7af4341e51aa96753ba66f0f2d63c65f3a1758d1
Shell
peterrehm/php-test
/bin/run_static_analysis.sh
UTF-8
630
3.109375
3
[]
no_license
#!/bin/bash # Get the parent directory BINDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" DIR="$(dirname "$BINDIR")" # Adjust to base path when this library is installed using composer DIR=${DIR/\/vendor\/peterrehm\/php-test} # Prepare the build directories mkdir -p $DIR/build cd $DIR $DIR/bin/phpcs --stand...
true
1c9124a3064923581c0c590013330ac1bc255a62
Shell
kaze/command-line
/zsh-custom/custom/kaze.zsh-theme
UTF-8
1,762
3.578125
4
[]
no_license
function precmd () { setprompt } function preexec () { setopt extended_glob clear local CMD=${1[(wr)^(*=*|sudo|-*)]} echo -ne "\ek$CMD\e\\" } function divider () { # create a $fill of all screen width minus the path, the time string and a space: # -9 because: hh:mm:ss and a space before it let fill...
true
3dc56395655bd0001133d2abbc94cee7f5d12291
Shell
melonicecream/Hands-on-with-Jenkins-Blue-Ocean
/_setup/scripts/docker_username_configuration.sh
UTF-8
200
3.1875
3
[]
no_license
#!/bin/bash ### docker_username_configuration.sh # This shellscript adds every argument passed to it to the Docker user group. for username in "$@" do sudo usermod -aG docker "$username" done
true
5381ba5de3f00743d29b86186d3f3d6bce8aff29
Shell
dakenblack/COMP2041
/week5/test_shuffle.sh
UTF-8
391
3.328125
3
[]
no_license
#!/usr/bin/sh for f in "shuffle.pl" "echon.pl" ; do if ! [ -f "$f" ] ; then echo " missing File: $f" exit 1 fi done req_output=`echo -e "hello\nhello\nhello\nhello\nhello"` echo -e "with input:\nhello\nhello\nhello\nhello\nhello" output=`echo -e "hello\nhello\nhello\nhello\nhello" | ./shuffle.pl` if [ "$ou...
true
4f2d1913602405d2361e639d1235212d349da186
Shell
316higgs/bbgAnalysis
/bbgAnalysis/TestbbgProcessor/run/back_up/250GeV_eL_restorer/full_run/sub.sh
UTF-8
206
2.65625
3
[]
no_license
#!/bin/bash for i in {1..9} do name=7637_0000$i cp 250GeV_eeqq_restorer_0.xml 250GeV_eeqq_restorer_$name.xml #echo "7637_0000"$name sed -i -e 's/xNAMEfile/'$name'/g' 250GeV_eeqq_restorer_$name.xml done
true
729c675202551f905c9eea8340d3613d73d37e32
Shell
steakunderscore/dotfiles
/shell/functions/tmp.sh
UTF-8
267
3.515625
4
[ "MIT" ]
permissive
function tmp() { tmp="${tmp:=$(mktemp -d)}" if [ "${PWD}" != "${tmp}" ] then cd "${tmp}" fi } function untmp() { if [ -z ${tmp+x} ] then return fi if [[ "${PWD}" == "${tmp}" ]] then cd "${HOME}" fi rm -rf "${tmp}" unset tmp }
true