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
9a239d2000b0214bae68b8218908bc246ccd009f
Shell
NGTS/zlp-script
/testing/test_add_sysrem.sh
UTF-8
1,369
3.53125
4
[]
no_license
#!/usr/bin/env sh set -eu BASEDIR=$(dirname $0)/.. find_file() { find testing/data -name $1 } does_file_exist() { FNAME=$(find_file $1) if [ -z ${FNAME} ]; then return 1 else return 0 fi } run_test() { readonly outputname=$1 readonly tamname=$2 readonly test_fname=...
true
dc48659f9da94bb7c7bff0a0bfc2fce68a586075
Shell
thirumurthy/dbbackup
/backupdb.sh
UTF-8
493
3.09375
3
[ "MIT" ]
permissive
#! /bin/sh cd $(dirname $0) DB=$1 DBUSER=$2 DBPASSWD=$3 HOST=$4 FILE=$DB-$(date +%F).sql mysqldump --routines "--user=${DBUSER}" -h $HOST --password=$DBPASSWD $DB > $PWD/$FILE gzip $FILE echo Created $PWD/$FILE* # Code Copied from https://stackoverflow.com/questions/5075198/how-to-export-mysql-database-with-triggers-a...
true
512d771b71a5d7551e741cd2175620c24e54bb91
Shell
LeonWilzer/unix-scripts
/Bash/passer
UTF-8
961
4.59375
5
[ "MIT" ]
permissive
#!/bin/bash # This is a script which runs a command after an optional countdown if the provided passphrase has been correctly entered. # If that is not the case, it will merely print "Wrong pass!" # Standard Variables COUNT=0 RUN="echo Pass is correct!" Pass="" # These equal to the option flags: # -t 0 # -r "echo Pa...
true
6983fcf0e4f2219370407c29f46faca1f1267296
Shell
yaofan97/centos7-auto-config-shell
/centos7ไธ€้”ฎ้…็ฝฎ/scripts/configure_rsyslog.sh
UTF-8
4,247
3.421875
3
[]
no_license
#!/bin/bash ############################################################### #File Name : configure_rsyslog_for_server.sh #Arthor : kylin #Created Time : Tue 22 Sep 2015 03:47:57 PM CST #Update Time : Fri Nov 20 22:49:39 CST 2015 #Email : kylinlingh@foxmail.com #Github : ht...
true
39da074d5a335659952f64b9f14aa29e7253758c
Shell
Fmajor/Configuration
/script/setup_script.sh
UTF-8
2,149
3.703125
4
[]
no_license
#!/bin/sh #=============================================================================# # Vonng's Bash Profile Setup script # Author: vonng (fengruohang@outlook.com) # Run this script to setup configurations #=============================================================================# #โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”...
true
a76f9e6100e4caa6e979769bc22ce155ed0b545d
Shell
penguinlinux/penguinscripts
/old_cool_scripts/weborama/url.sh
UTF-8
172
2.8125
3
[]
no_license
until ! read curLine do desc=`echo "$curLine" | cut -d"|" -f1` url=`echo "$curLine" | cut -d"|" -f2` echo "<a href=\"${url}\">${desc}</a>" # >> output.txt done
true
e2afa837c2d1616978c61125cc7295df92080fe0
Shell
crichardson332/uscxml
/contrib/local/bcp-boost.sh
UTF-8
509
3.5625
4
[ "BSD-2-Clause", "Apache-2.0", "BSD-3-Clause" ]
permissive
#!/bin/sh set -e ME=`basename $0` DIR="$( cd "$( dirname "$0" )" && pwd )" CWD=`pwd` BOOST_DIR=$1 if [ ! -d "$BOOST_DIR" ] || [ ! -x "$BOOST_DIR" ]; then echo "First argument is supposed to be the path to the boost source code" exit fi cd $BOOST_DIR ./bootstrap.sh ./b2 tools/bcp cd ${DIR} SOURCE_FILES=`find ${DI...
true
34caab916ae2518291084e34ec1b4f7c7d3804e2
Shell
200360828/COMP2101
/bash/systeminfo.sh
UTF-8
3,579
3.90625
4
[]
no_license
#!/bin/bash # Bash Assignment Monday Morning Class # Sukhpreet Singh # Student ID- 200360828 # Declare variables and assign any default values rundefaultmode="yes" # command line options to narrow down the Output field function helpcmds { echo " Output can be one or more for the following: ...
true
5f05f466e6eff0a4e95be0db74273497bbc7a697
Shell
elsudano/Fedora
/server-scripts/testspeed.sh
UTF-8
1,386
3.53125
4
[ "MIT" ]
permissive
#!/bin/bash PROVIDERS=(#"testvelocidadeu.mismenet.net" \ "speedtestbcn.adamo.es" \ "speedtestbcn.adamo.es" \ "testvelocidad.eu/speed-test" \ "testvelocidad.eu/speed-test" \ "speedtest.conectabalear.com/ba/") DEBUG=0 MIN=6 # minimum value for the longitude of random value of salt MAX=8 # maximum value for the longitu...
true
5bced6fb0b73577c2d6ba2494e5cc28d1ea22dcc
Shell
Trietptm-on-Security/el_harden
/fixes/repo/disable_users_coredumps.sh
UTF-8
274
2.8125
3
[]
no_license
#!/bin/bash # SID: CCE-27033-0 { : ${LIMITS_CORE:=0} ## # Just zap the entry if it exists and readd sed -Ei "/\*\s+hard\s+core\s+/d" /etc/security/limits.conf echo "* hard core ${LIMITS_CORE}" >> /etc/security/limits.conf } &>> ${LOGFILE}
true
f71b9aadc9aec91b91e297b03898e26031206a90
Shell
diagramatics/dotfiles
/.dotfiles-files/.aliases.sh
UTF-8
302
2.765625
3
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
#!/usr/bin/env bash alias g="git" alias ls="ls -lah" alias cd..="cd .." alias ..="cd .." alias ...="cd ../.." alias ....="cd ../../.." alias .....="cd ../../../.." alias ......="cd ../../../../../" alias ~="cd ~" # `cd` is probably faster to type though # Enable hub aliasing eval "$(hub alias -s)"
true
c1933be97a38da4d5535ac0f254005842c0d171b
Shell
stereotype441/mesa-tools
/bin/build-mesa
UTF-8
150
2.53125
3
[]
no_license
#!/bin/bash set -e cd ~/mesa git tag -d build || true git tag build `git-commit-working-tree` num_jobs=`getconf _NPROCESSORS_ONLN` make "-j$num_jobs"
true
53a82cae7523e97f2622b7b5fcfbcd19529af4be
Shell
abfleishman/active-learning-detect
/train/active_learning_eval.sh
UTF-8
3,487
3.171875
3
[ "MIT" ]
permissive
#!/bin/bash # Source environmental variables set -a sed -i 's/\r//g' $1 . $1 set +a # Updating vars in config file envsubst < $1 > cur_config.ini # Update images from blob storage # echo "Updating Blob Folder" # python ${python_file_directory}/update_blob_folder.py cur_config.ini # # Create TFRecord from images + csv f...
true
f87419928b9b496741225750b991e72998909a29
Shell
qovalenko/docker
/firefox-with-java6.sh
UTF-8
2,075
3.59375
4
[]
no_license
#!/usr/bin/env bash # Old Firefox with JRE 6 for managing HP servers # https://www.reddit.com/r/linuxquestions/comments/2oebqn/problems_using_ilo_java_interface_with_java_7_and/ image=$(basename $0 .sh) user=${USER:-root} home=${HOME:-/home/$user} uid=${UID:-1000} gid=${uid:-1000} tmpdir=$(mktemp -d) escape_me() { ...
true
5c64c0874320cb69611c1a92ed7b51aa85287082
Shell
571451370/virtual_media
/mount_media.sh
UTF-8
2,861
3.09375
3
[]
no_license
IPMI_LOCATION=192.168.86.61 USERNAME=ADMIN PASSWORD=ADMIN NFS_IP=192.168.86.57 ISO_LOCATION=/var/nfsshare IMAGE_NAME=$1 function do_sleep () { sleep 5 } #1. Power off server ipmitool -I lanplus -H $IPMI_LOCATION -U $USERNAME -P $PASSWORD chassis power off do_sleep #2. Enable virtual media support ipmitool -I lanplu...
true
db0ddc1310e2ddddb6173c3283e77c815c607713
Shell
knktkc/spine-collective_export_shell
/export.sh
UTF-8
780
3.734375
4
[ "Apache-2.0" ]
permissive
#!/bin/sh set -e # MacใฎSpineใฎใƒ‘ใ‚น SPINE_EXE="/Applications/Spine/Spine.app/Contents/MacOS/Spine" echo "Spine exe: $SPINE_EXE" echo "" files="./20_ใ‚ขใƒ‹ใƒกใƒผใ‚ทใƒงใƒณ/*" fileary=() directory=() spines=() for filepath in $files; do if [ -d $filepath ] ; then directory+=("$filepath") fi done for i in ${directory[@]}; do ec...
true
edc0b9ec9539a41d7f2c3927c379c20bc1b6a17e
Shell
zalora/microgram
/pkgs/retry/retry
UTF-8
1,491
4.1875
4
[ "MIT" ]
permissive
#! /bin/sh # # usage: retry COMMAND [ARGS...] # # Retry to run a command successfully with configurable delays between runs. # # Notice that the command won't receive any data via standard input. # set -euf export PATH=@coreutils@/bin"${PATH+:$PATH}" # By default try to run command 10 times with a delay of 3s between...
true
4c836a799aa8c38feb6b8375514129857b8544d1
Shell
pablox-cl/dotfiles-b
/tag-gui/config/bspwm/panel/panel
UTF-8
1,499
3.171875
3
[ "MIT" ]
permissive
#! /bin/sh PANEL_FIFO=${TMPDIR}/bspwm-panel-fifo PANEL_WIDTH=$(xrandr | grep \* | cut -d x -f1) PANEL_HEIGHT=20 PANEL_FONT="-*-terminus-medium-*-*-*-14-*-*-*-*-*-iso8859-*" PANEL_WM_NAME=bspwm_panel if xdo id -a "$PANEL_WM_NAME" > /dev/null ; then printf "%s\n" "The panel is already running." >&2 exit 1 fi ...
true
75a731d445a60094bd946fa593bef31932e6c97e
Shell
SiteView/ecc82Server
/SiteviewLic/licwangzhenm/test.sh
UTF-8
678
2.984375
3
[]
no_license
ERL=/usr/lib/erlang/bin/erl HOSTNAME='localhost' export HEART_COMMAND="$PWD/test.sh start" case $1 in start) $ERL -smp -heart -detached -sname test -setcookie 3ren -pa $PWD/ebin -boot start_sasl -s test echo "Starting ..." ;; debug) $ERL -smp -sname test -setcookie 3ren -pa $PWD/ebin ...
true
193553b6356494a989c5ad520763c96c2786d8a9
Shell
bigpoppa-sys/syscoin-governance-update
/script.sh
UTF-8
4,163
3.640625
4
[]
no_license
#!/bin/bash # Only run as a root user if [ "$(sudo id -u)" != "0" ]; then echo "This script may only be run as root or with user with sudo privileges." exit 1 fi HBAR="---------------------------------------------------------------------------------------" # import messages source <(curl -sL https://raw.gith...
true
512bbe23fe6b2738a71667c5472958f437a5b152
Shell
gnos-project/gnos-gnowledge
/src/core/core-init.bash
UTF-8
3,391
2.921875
3
[]
no_license
######## # INIT # ######## Init () { ## BASE PRODUCT_NAME=gnos PRODUCT_VERSION=19.07.1 INSTALL_VERSION=$PRODUCT_VERSION INSTALL_DATE=$( date +%Y%m%d ) TARGET=/mnt/target ## BOOTCLONE BOOTCLONE_ROOT=/bootclone-root # DOC DSET root-repo, relative to ZFS_POOL_NAME BOOTCLONE_...
true
9ae3f150b593a6a585a3a152d9f6eb070133196f
Shell
kai-uofa/dockerized-php-rails-postgres
/dev_bootstrap.sh
UTF-8
4,745
3.890625
4
[]
no_license
#!/bin/bash # Usage: # chmod +x ./dev_bootstrap.sh # ./dev_bootstrap.sh $DATABASE_BACKUP_PATH $RAIL_GIT_URL $RAIL_BRANCH $API_GIT_URL $API_BRANCH $RUBY_VERSION $RUBY_RAIL_GEMSET $RUBY_API_GEMSET DATABASE_BACKUP_PATH=$1 if [[ ${2} == http* ]] || [[ ${2} == git* ]]; then RAIL_GIT_URL=$2 else echo "[WARNING...
true
4364bf1895968e16be5732a69d0071e058be8cd0
Shell
maxfierke/dotfiles
/script/setup
UTF-8
1,146
3.640625
4
[ "Unlicense" ]
permissive
#!/bin/zsh # # Stolen from holman's dotfiles: # https://github.com/holman/dotfiles/blob/8d4881a5adec944b3a8dea1e769a3cbdd7e7bbb6/script/install cd "$(dirname $0)"/.. export DOTFILES_ROOT=$(pwd -P) export ZSH="$DOTFILES_ROOT/vendor/.oh-my-zsh" export ZSH_CUSTOM="$DOTFILES_ROOT/zsh/oh-my-zsh" source $DOTFILES_ROOT/uti...
true
ebf418a61b9efd96b880c29ed892807b037f064a
Shell
CodoCodo/data_bank
/script/get_file_type.sh
UTF-8
318
3.984375
4
[]
no_license
#!/bin/bash file_path=$1 if [ -z ${file_path} ]; then echo "Please specify file path" exit fi ext_name=${file_path##*.} file_type="" case $ext_name in "mp4" | "avi") file_type="video" ;; "jpg" | "bmp" | "png") file_type="image" ;; * ) file_type="unknown" ;; esac echo $file_type
true
970973b31f335b2f71e327f7a16a6b26687dae4e
Shell
seismicindustries/modeswitch
/mini_install.sh
UTF-8
914
2.921875
3
[]
no_license
#!/bin/bash echo " installing apache from apt repository" sudo apt-get install apache2 cho " installing hostapd from apt repository" sudo apt-get install hostapd echo "" echo "" echo "" echo -e "[ \033[1m\033[96mdude\033[m ] Install wlan mode switching script into systemctl's realms -------------" echo "" sudo ...
true
896d0241b1a44eb47caf7eabc7bfec0055065e72
Shell
cotterjd/courses
/bash/bash_course/loops/for_loop.sh
UTF-8
138
2.6875
3
[]
no_license
#!/bin/bash for (( i = 1; i <= 5; i++ )); do echo $i done echo for (( i = 1, j=10; i <=3 && j<=20; i++, j+=10)); do echo $i $j done
true
1a31b36dc71d63209d6f5dd7dab30e64a62339ae
Shell
JiaweiChen110/lab02
/largest.sh
UTF-8
488
3.796875
4
[]
no_license
#!/bin/bash if [ $# -ne 3 ] then echo "$0: number1 number2 number3 are not given" >&2 exit 1 fi n1=$1 n2=$2 n3=$3 if [ $n1 -gt $n2 ] && [ $n1 -gt $n3 ] then echo "$n1 is Biggest number" elif [ $n2 -gt $n1 ] && [ $n2 -gt $n3 ] then echo "$n2 is Biggest number" elif [ $n3 -gt $n1 ] && [ $n3 -gt $n2 ] then echo ...
true
9692c19d4347c8bd2c3c2a9ce7a26ac9512e455a
Shell
ghstanu/compciv
/homework/buzzfeed-listicle-title-parsing/lister.sh
UTF-8
359
2.71875
3
[]
no_license
d_start='2014-01-01' d_end='2014-12-31' days_diff=$(( ( $(date -ud $d_end +'%s') - $(date -ud $d_start +'%s') )/ 60 / 60 / 24 )) #Listicle tiles = pup 'li.bf_dom a text{}' for num in $(seq 0 $days_diff); do # DO YOUR WORK HERE pup 'li.bf_dom a text{}'| grep -oE '^[[:digit:]]+' | sort -rn | uniq -c date ...
true
4f0420e0ef8bf63a079450854036f85ac145dab3
Shell
saityucel/docker-sync-tutorial
/compare.sh
UTF-8
493
2.71875
3
[]
no_license
#/usr/bin/env bash docker-sync start -d --no-logd rm -rf app/vendor t1=$(date +%s) docker-compose -f docker-compose.yml run --rm app install t2=$(date +%s) rm -rf app/vendor t3=$(date +%s) docker-compose -f docker-compose-mac.yml run --rm app install t4=$(date +%s) duration1=$((t2-t1)) duration2=$((t4-t3)) echo ...
true
f09d8bd899e78c1bf6d7d306e4579c5eb5a0e9fe
Shell
yyzybb537/rapidhttp
/scripts/extract_http_parser.sh
UTF-8
1,692
3.28125
3
[]
no_license
#!/bin/sh dest=$1/include/rapidhttp/layer.hpp echo "#pragma once" > $dest cat $1/third_party/http-parser/http_parser.h >> $dest sed -i 's/extern\ "C"/namespace rapidhttp/g' $dest last_include=`grep "^\#include" $1/third_party/http-parser/http_parser.c -n | tail -1 | cut -d: -f1` tail_start=`expr $last_include + 1` h...
true
3ce61128c1fa0f1fab46904169360d259b5e8c2b
Shell
1054/Crab.Toolkit.PdBI
/bin/pdbi-uvt-go-subtract
UTF-8
5,097
3.59375
4
[]
no_license
#!/bin/bash # # Input a line cube uvt, and a continuum uvt # Output uvt = the line cube uvt subtract the continuum uvt # # Last update: # 2017-03-30 using "pdbi-uvt-core-arg-v4" # 2017-03-30 using "pdbi-uvt-core-arg-v5" # 2018-02-16 using "pdbi-uvt-core-arg-v8", cleaning more files # # # # Uage # usag...
true
2e3b5fee008895ffb51ef8f1887c9e733a5fc6a1
Shell
mikefarah/yq
/scripts/acceptance.sh
UTF-8
242
2.59375
3
[ "MIT" ]
permissive
#! /bin/bash set -e for test in acceptance_tests/*.sh; do echo "--------------------------------------------------------------" echo "$test" echo "--------------------------------------------------------------" (exec "$test"); done
true
b5f602d6db616fa8ae554a7bceb145135b2a2ace
Shell
thu-spmi/CAT
/egs/TEMPLATE/local/lm_data.sh
UTF-8
796
3.625
4
[ "Apache-2.0" ]
permissive
set -e -u dir="data/local-lm" n_utts=50000 url="https://www.openslr.org/resources/11/librispeech-lm-norm.txt.gz" [ $n_utts -le 500 ] && { echo "#utterances must > 500 for spliting train & dev" >&2 exit 1 } mkdir -p $dir cd $dir if [ ! -f .completed ]; then # download and process data echo "Start down...
true
e7d064620ffd1272083f26d5b2fa1f5582d40279
Shell
th3architect/ui
/scripts/build-static
UTF-8
1,508
3.984375
4
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
#!/bin/bash set -e # cd to app root CWD=$(dirname $0) if [ `basename $(pwd)` = 'scripts' ]; then cd ../ else cd `dirname $CWD` fi #BRANCH=$(echo $GIT_BRANCH | sed -e 's/^origin\///') #if [ "$BRANCH" = "HEAD" ]; then # BRANCH="master" #fi VERSION=$(cat package.json | grep version | cut -f4 -d'"' | sed 's/-/_/g')...
true
0317f8424f50ee2f87e0ca02275f272c6c22b384
Shell
bundgaard/QuickInstallFolsom
/computenode.sh
UTF-8
2,150
2.609375
3
[]
no_license
#!/bin/bash apt-get -y install nova-compute nova-network nova-api-metadata read "Is your internal network card eth1? (y/n): " network if network == y then eth1=$(/sbin/ifconfig eth1| sed -n 's/.*inet *addr:\([0-9\.]*\).*/\1/p') else eth1=$(/sbin/ifconfig eth0| sed -n 's/.*inet *addr:\([0-9\.]*\).*/\1/p') fi . comp...
true
34d3085004cbbe6fae42b8f6fa7f8c0191285a17
Shell
Jroque/CyberSec
/syvars.sh.save
UTF-8
327
2.609375
3
[]
no_license
#!/bin/bash #demo one of the class printf "Current Working Dir:<033[0m'\t%s\n'\033[34;40mHostName:\033[0m'\t%s\n'Bash Version':\t%s\n""\033[0m" $PWD $HOSTNAME $BASH_VERSION #echo "Hostname: $HOSTNAME" #echo "Bash Version: $BASH_VERSION" #$echo "Time (seconds): $SECONDS" #echo "Machine Type: $MACHTYPE" #echo "Filenam...
true
461859c50cd303ffa60e87afb6d66e3b2f3ba362
Shell
leifliddy/salt
/pkg/osx/sign_binaries.sh
UTF-8
5,260
4.03125
4
[ "Apache-2.0", "MIT", "BSD-2-Clause" ]
permissive
#!/bin/bash ################################################################################ # # Title: Binary Signing Script for macOS # Author: Shane Lee # Date: December 2020 # # Description: This signs all binaries built by the `build_env.sh` script as # well as those created by installing salt. It ass...
true
696b866c3c235ddb0f120dc248b48184ee98ec7e
Shell
wiedehopf/piaware-support
/scripts/generate-usb-mount
UTF-8
847
3.921875
4
[]
no_license
#!/bin/sh # This script is called by udev when a partition on a # removable USB block device is added or changed. # It creates a readonly mount unit via systemd and starts it. # systemd will handle the removal itself. action=$1 devpath=$2 devunit=$(systemd-escape --path --suffix device $devpath) mountpoint=/media/usb...
true
a6d2a4373d439b6eb1fbcffb8429457094f8bcbb
Shell
mohamed-arradi/AirpodsBattery-Monitor-For-Mac
/AirpodsPro Battery/AirpodsPro Battery/Resources/battery-airpods-monterey.sh
UTF-8
2,349
3.234375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # Airpods.sh # Output connected Airpods battery levels via CLI BT_DEFAULTS=$(defaults read /Library/Preferences/com.apple.Bluetooth) SYS_PROFILE=$(system_profiler SPBluetoothDataType 2>/dev/null) MAC_ADDR=$(grep -b2 "Minor Type: "<<<"${SYS_PROFILE}"|awk '/Address/{print $3}') regex_connected="(Con...
true
e86d0a87553459e935f82fb0416a58f43e94f1d7
Shell
tsingui/build-raycloud-rtd1296
/build-alpine.sh
UTF-8
1,287
3.3125
3
[ "MIT" ]
permissive
#!/bin/bash [ "$EUID" != "0" ] && echo "please run as root" && exit 1 set -e set -o pipefail os="alpine" rootsize=700 origin="minirootfs" target="raycloud" tmpdir="tmp" output="output" rootfs_mount_point="/mnt/${os}_rootfs" qemu_static="./tools/qemu/qemu-aarch64-static" cur_dir=$(pwd) DTB=rtd-1296-raycloud-2GB.dtb...
true
993690c151b1373a6cb624689e0834f052d224b7
Shell
mstenback/references
/bash/3-fibonacci_index/fibonacci_index.sh
UTF-8
1,370
4.25
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # Mark Stenbรคck, 2019 (https://github.com/mstenback/practice_bash) # # Excercise 3: Calculate F(n) - Fibonacci value for the given number. # E.g. the 6th Fibonacci (n=6) is 8. # The maximum Fibonacci that can be calculated with a signed 64-bit integer # is the 92th Fibonacci, 7540113804746346429. INDEX=0 M...
true
356ff0e83c32ed6a53927dc048eb3092b2679e2f
Shell
alexmavr/netmg
/sources_and_sinks/lab1.sh
UTF-8
755
3.265625
3
[]
no_license
#!/usr/bin/env bash outfile="lab1_output.text" #question_template: "command | tee -a $outfile" questions=( #Q_1_a,c {'ping -c 4','traceroute -P udp','traceroute -P icmp'}" www."{'esa.int','grnet.gr','stanford.edu','wikipedia.org','facebook.com'}" | tee -a $outfile" #Q_1_b "ping -c 4 -s "{'64','1400'}" www."{'esa.in...
true
bb913fb99fe564004311460887736b04342ecfdf
Shell
florianutz/orange-box
/usr/bin/orange-box-add-physical-nodes
UTF-8
1,493
3.375
3
[]
no_license
#!/bin/bash # # orange-box-add-physical-nodes - add all local nodes in the micro-cluster # Copyright (C) 2014 Canonical Ltd. # # Authors: Dustin Kirkland <kirkland@canonical.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public Licens...
true
c17ca08909263f0ab99ee20f87f088cfe4d915f7
Shell
dhruv395/Apache-tomcat
/How to Change JVM Heap Setting (-Xms -Xmx) of Tomcat โ€“ Configure setenv.sh file โ€“ Run catalina.sh
UTF-8
973
2.828125
3
[]
no_license
https://crunchify.com/how-to-change-jvm-heap-setting-xms-xmx-of-tomcat/ -Xmx: Specifies the maximum size, in bytes, of the memory allocation pool. This value must a multiple of 1024 greater than 2MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 64MB. The upper...
true
72b89fd515c9ed2cc528b0eb26cdd4973a4f354f
Shell
lexahall/dotfiles
/zshrc
UTF-8
3,578
2.859375
3
[]
no_license
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. plugins=( git z zsh-autosuggestions col...
true
3d043acfa04001a3cfe615f8b005868610451cde
Shell
nathayush/CS-304
/Lab Assignment 1/Q3.sh
UTF-8
155
3.1875
3
[]
no_license
#!/bin/bash cat q3_words.txt | while read line; do for word in $line do res=$(grep -o "$word" q3.txt | wc -l) echo "$word -> $res" done done
true
c63208e41a746dd6f516930743b07c890bdb16ed
Shell
kkoomen/dotfiles-i3
/.bash_aliases
UTF-8
2,137
2.96875
3
[]
no_license
shopt -s expand_aliases # GENERAL alias dsize='du -hs' alias mkdir='mkdir -pv' alias vi='vim' alias ls='ls -l --color=auto' alias sl='ls' alias tree='tree -C' alias pcinfo='inxi -Fx' alias calc='bc -l' alias cb="xclip -selection clipboard" alias yt-dl='youtube-dl --extract-audio --audio-format mp3 -o "%(title)s.%(ext)...
true
40fafd765f3b412d36f27411e9dbfe133f2aee94
Shell
sundewang/shells
/batch_run.sh
UTF-8
383
3.84375
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # ๆ‰น้‡่ฟ่กŒrun.sh # ้ๅކๆŒ‡ๅฎšๆ–‡ไปถๅคน๏ผŒ็„ถๅŽ่ฟ่กŒๅ…ถไธญ็š„run.sh่„šๆœฌ # check parameters if [ $# -ne 1 ] then echo Please input directory exit 1 fi dir=$1 for d in $dir/* do if [ -d $d ] then echo start $d/run.sh cd $d bash run.sh else echo $d is not directory fi done...
true
9789356bdb4fc1b7db7289ac096645290e63b5a5
Shell
Jim-RM-zz/mac_setup
/general.sh
UTF-8
1,191
2.796875
3
[]
no_license
#!/bin/bash # Installs Homebrew - will install xcode command line tools if missing /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" # Installs brew casks / apps brew install --cask google-chrome brew install --cask slack brew install --cask 1password brew install --cask ...
true
1e9f88e2b353f6afcc93a294792c11baa8460ef5
Shell
kuaikuai/doc
/org/set_rps.sh
UTF-8
435
3.390625
3
[]
no_license
#!/bin/bash # Enable RPS (Receive Packet Steering) rfc=4096 cc=$(grep -c processor /proc/cpuinfo) rsfe=$(echo $cc*$rfc | bc) sysctl -w net.core.rps_sock_flow_entries=$rsfe for fileRps in $(ls /sys/class/net/eth*/queues/rx-*/rps_cpus) do echo ffffffff > $fileRps done for fileRfc in $(ls /sys/class/net/eth*/queues...
true
52347caead6e1bb05401f2d96efb1965b52762a5
Shell
1edenec/ledoland
/.config/bspwm/scritpts/scratch_gui
UTF-8
146
2.828125
3
[]
no_license
#!/usr/bin/env bash id=$(xdotool search --class "$1" | awk 'NR == 1') if [ "$id" != "" ] then bspc node "$id" --flag hidden -f else $1 & fi
true
1c8ee218c39c5a7b66d997049a289dc9cfcb2890
Shell
jondkelley/cisco-unifi-controllable-switch
/src/shinc/common.sh
UTF-8
2,758
3.78125
4
[]
no_license
# # UniFi controllable switch - common functions # [ -z "$ROOT" ] && echo "Set ROOT before sourcing common.sh" 1>&2 if [ -e /var/etc/persistent ]; then DEVEL= # use /tmp to avoid littering persistent config # the controller re-adopts the device on reboot when needed # and this allows forgetting the device...
true
37937c775386efea66461a8266f6a5f27579b126
Shell
streemline/LinuxScripts
/Arch/Install/asUser/rslsync.sh
UTF-8
416
2.796875
3
[ "MIT" ]
permissive
#!/usr/bin/env bash set -e EXPLICIT=( rslsync ) ./installWithAurHelper.sh "${EXPLICIT[@]}" sudo pacman -D --asexplicit --quiet "${EXPLICIT[@]}" mkdir -p ~/.config/rslsync mkdir -p ~/.cache/rslsync cat > ~/.config/rslsync/rslsync.conf << EOF { "device_name": "$HOSTNAME", "storage_path": "$HOME/.cache/rslsync/", ...
true
f297d8bb9327a21d0ae23a154f573b758f5fc83b
Shell
rjmholt/dotfiles
/package_install.sh
UTF-8
1,048
3.640625
4
[]
no_license
#!/bin/bash set -e APT_PACKAGES=<<EOF vim \ wget \ open-ssh EOF APT_GUI_PACKAGES=<<EOF vlc \ wine \ texlive \ cairo-dock \ build-essential \ clang \ clojure \ python3 \ ipython3 \ ruby \ haskell-platform EOF case $OSTYPE in darwin*) # Install homebrew /usr/bin/ruby -e "$(curl -fsSL https://raw.gi...
true
785df5b9c592be3f065d08f2f891b0b60deb3ea6
Shell
onfsdn/atrium-onos
/tools/dev/bin/onos-app
UTF-8
2,038
4.03125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # ----------------------------------------------------------------------------- # Tool to manage ONOS applications using REST API. # ----------------------------------------------------------------------------- node=${1:-$OCI} cmd=${2:-list} app=${3} export URL=http://$node:8181/onos/v1/applications expor...
true
c594cd77aca37555b9b73d99927037a675e0d55e
Shell
ystia/forge
/org/ystia/logstash/linux/bash/relationships/elasticsearch/configure.sh
UTF-8
2,026
3.390625
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # # Ystia Forge # Copyright (C) 2018 Bull S. A. S. - Bull, Rue Jean Jaures, B.P.68, 78340, Les Clayes-sous-Bois, France. # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. # source ${utils_scripts}/utils.sh log begin lock "$(basename $0)" [ -z ${LOGST...
true
9981bfdd352c1ed6c47526c8cc8484366341daeb
Shell
AidanHilt/CSC412Final
/Projects/Prog_03/Code/script.sh
UTF-8
1,251
3.84375
4
[]
no_license
if [ $# -ne 2 ]; then echo You provided an invalid number of arguments. Please provide two directories, the first of which contains TGA images. exit -1 fi if [ ! -d "$1" ]; then echo The first argument is not a valid directory exit -1 fi if [ ! -d "$2" ]; then echo The second argument is not ...
true
90e462966db33dad88d16388892c9fb1650c8510
Shell
centreon/centreon
/centreon/libinstall/CentStorage.sh
UTF-8
6,526
3.421875
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash #---- ## @Synopsis Install script for CentStorage ## @Copyright Copyright 2008, Guillaume Watteeux ## @Copyright Copyright 2008-2020, Centreon ## @license GPL : http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt ## Install script for CentStorage #---- ## Centreon is developed with GPL Licence 2.0 ...
true
72a5387c11979ca3680e029bde1f3430399064e3
Shell
snoopcatt/win_customize
/bashrc
UTF-8
371
2.703125
3
[]
no_license
[ -z "$PS1" ] && return HISTCONTROL=$HISTCONTROL${HISTCONTROL+:}ignoredups HISTCONTROL=ignoreboth shopt -s histappend shopt -s checkwinsize PS1='\[\033[01;31m\]\h\[\033[01;34m\] \w #\[\033[00m\] ' PS1="\[\e]0;\u@\h: \w\a\]$PS1" alias ls='ls --color=auto -B --group-directories-first --hide="NTUSER*" --hide="ntuser*"...
true
f6e4b426af4a0e52d3a9f40da8711be2284ed1ca
Shell
kundan-chaulya/shell-scripts
/ScriptTemplate.sh
UTF-8
5,457
3.9375
4
[]
no_license
#!/bin/sh ################################################################################ # Name : ScriptTemplate.sh # # Author : Kundan Chaulya # # Description : ...
true
2342f9a3f9639c3ed8fe0c4ee3186337a4e60beb
Shell
Sumanshu-Nankana/Linux
/Bash/Display an element of an array.sh
UTF-8
133
2.640625
3
[]
no_license
# https://www.hackerrank.com/challenges/bash-tutorials-display-the-third-element-of-an-array/problem array=($(cat)) echo ${array[3]}
true
b4aee13a06f58f61fe16032dd78928b31d8692f2
Shell
beentaken/sgt
/local/pid
UTF-8
351
3.375
3
[]
no_license
#!/bin/sh # Similar to the "pidof" utility I've got used to from Debian, but # only returns process IDs I can strace or kill. I hope. Also, this # one is implemented as a wrapper on pgrep, which is available on # more systems than the Debian-specific pidof. uid=`id -u` if test "$uid" = 0; then exec pgrep "$@" else ...
true
603584b043f63a0f73905e11eb00682e331d1c0d
Shell
elmomk/openshift
/wait.sh
UTF-8
420
3.59375
4
[]
no_license
#!/bin/bash show-stack () { aws cloudformation describe-stacks --output table --stack-name $1 } INFRA_ID=$(jq -r .infraID metadata.json) STAGE=$1 NU=1 if [ -z $STAGE ] then echo "set the stage variable" exit fi while [ $NU = 1 ];do show-stack $INFRA_ID-$STAGE | grep CREATE_IN_PROGRESS && echo in_progress...
true
91c86d008647fe82be763a5af62136af5261522a
Shell
isabella232/mesos-systemd
/v3/setup/proxy_setup.sh
UTF-8
473
2.9375
3
[]
no_license
#!/bin/bash -x source /etc/environment if [ -f /etc/profile.d/etcdctl.sh ]; then source /etc/profile.d/etcdctl.sh fi if [ "$NODE_ROLE" != "proxy" ]; then exit 0 fi PROXY_SETUP_IMAGE=behance/mesos-proxy-setup:latest docker run \ --name mesos-proxy-setup \ --log-opt max-size=`etcdctl get /docker/co...
true
2c68df0cf78e6e60e7adbff7aa0ebde6a7e6794e
Shell
aswroma3/asw-2018
/projects/asw-830-java-rmi/b-counter-rmi/resources/server/start-rmiregistry.sh
WINDOWS-1252
607
2.78125
3
[ "MIT" ]
permissive
#!/bin/bash # Script per l'avvio del registry RMI. # Uso: start-rmiregistry # Nota: si potrebbe specificare la porta, ma non l'indirizzo del server. echo Starting rmiregistry # determina il path assoluto in cui si trova lo script # (rispetto alla posizione da cui stata richiesta l'esecuzione dello script) R...
true
0e160b72b26d7897336ac9d3464bdabfbe58e930
Shell
sihrc/blebot
/scripts/setup.sh
UTF-8
1,095
2.703125
3
[]
no_license
#!/bin/bash sudo apt-get update sudo apt-get install -y git sudo apt-get install -y apt-transport-https ca-certificates sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D sudo mkdir -p /etc/apt/sources.list.d/ sudo echo "deb https://apt.dockerproject.o...
true
f88c0474598fb2687fc90e37d4c3d872dae6dfcc
Shell
TechByTheNerd/SysAdminConfigAndScripts
/src/scripts/bash/all-jails.sh
UTF-8
352
3.296875
3
[ "MIT" ]
permissive
#!/bin/bash JAILS=$(fail2ban-client status | grep "Jail list" | sed -E 's/^[^:]+:[ \t]+//' | sed 's/,//g') INDEX=1 for JAIL in $JAILS do echo "" echo -n "${INDEX}) " fail2ban-client status $JAIL ((INDEX++)) done echo "" echo "$(find /var/log/syslog -type f -mtime -1 -exec grep "UFW BLOCK" {} \; | wc -l) blocks...
true
2ab95571ea4a1e5af64fe227ce90313c363cd856
Shell
nico2sh/dotfiles
/restore.sh
UTF-8
1,361
3.890625
4
[]
no_license
#!/usr/bin/env bash ########################### # This script restores backed up dotfiles # @author Adam Eivy ########################### ################################# # Move to the directory ################################# SOURCE="${BASH_SOURCE[0]}" while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file i...
true
a24e6b212ed746c83e722a58f4180a46544612df
Shell
pdbrito/laravel-cloud-run
/devops/docker/entrypoint.sh
UTF-8
624
3.28125
3
[ "MIT" ]
permissive
#!/bin/bash set -e role=${CONTAINER_ROLE:-app} env=${APP_ENV:-production} migrate=${DB_MIGRATE:-0} if [[ "$role" = "app" ]]; then if [[ "$migrate" = "1" ]]; then php /var/www/html/artisan migrate --force fi docker-php-entrypoint apache2-foreground elif [[ "$role" = "worker" ]]; then echo "...
true
2daa2568352e9dcd8efa9aae628e8a7a943a5cbb
Shell
redbear/STM32-Arduino
/test.sh
UTF-8
801
3.875
4
[ "MIT" ]
permissive
#!/bin/bash # # Script for copy to arduno15 folder # # For Linux root: $ sudo test.sh root # os=`uname` if [ $os == 'Darwin' ]; then board_path=~/Library/Arduino15/packages/RedBear/hardware/STM32F2 elif [ $os == 'Windows' ]; then board_path=~/Library/Arduino15/packages/RedBear/hardware/STM32F2 elif [ $os=='Linu...
true
a4895e3cfe03c1d56dfb657a3f6c38725e19b805
Shell
rvdhoek/Raspberry-MRTG
/testport.sh
UTF-8
339
3.34375
3
[]
no_license
#!/bin/sh TESTIP=$1 #check if symlink exists if [ "$1" = "" ]; then echo "Test TCP port required" exit 1 fi TESTIP=$(dig +short myip.opendns.com @resolver1.opendns.com) #nc -w 1 $TESTIP $1 nc -n -z -w 1 $TESTIP $1 > /dev/null if [ $? -eq 0 ]; then #Succes echo "1" echo "1" else #No succes echo "0"...
true
fd95fc34a59f16fd78fdb922d89e0af86bdb26f5
Shell
PaaS-TA/PAAS-TA-TAIGA-RELEASE
/jobs/taiga/templates/devel/setup-devel.sh
UTF-8
1,540
2.578125
3
[]
no_license
#!/bin/bash echo ****************setup-devel echo ${JOB_NAME} echo ${JOB_DIR} echo ${PKG_DIR} echo ${HOME} echo ************devel pushd ${HOME} mkdir -p logs mkdir -p conf popd # Bootstrap # source ./scripts/setup-vars.sh echo ********************************setup-config source /var/vcap/jobs/${JOB_NAME}/devel/scrip...
true
5666f11aeae1f8761b0dddb27a1616abe1e0cc10
Shell
bensimner/litmus_example
/bin/run.sh
UTF-8
929
2.609375
3
[]
no_license
date LITMUSOPTS="${@:-$LITMUSOPTS}" SLEEP=0 if [ ! -f SB.no ]; then cat <<'EOF' %%%%%%%%%%%%%%%%%%%%%%%%% % Results for SB.litmus % %%%%%%%%%%%%%%%%%%%%%%%%% X86 SB "Fre PodWR Fre PodWR" {x=0; y=0;} P0 | P1 ; MOV [x],$1 | MOV [y],$1 ; MOV EAX,[y] | MOV EAX,[x] ; exists (0:EAX=0 /\ 1:EAX=0) Gen...
true
495ad0dc7cd3416e068c964e3c6464cbc77eb2ca
Shell
natesilva/wireguard-qnd
/update-config
UTF-8
697
3.921875
4
[ "MIT" ]
permissive
#!/bin/bash umask 077 echo "Using configuration found in vpn.conf to rebuild server" \ "configuration file wg0.conf." # The base directory for the config scripts dir=$(cd -P -- "$(dirname -- "${0}")" && pwd -P) scriptsdir=$dir/scripts userdir=$dir/users vpnconf=$dir/vpn.conf # Generate any missing users; usercoun...
true
cebb2e5481803ff79da7f5c032cd744314fb9d0e
Shell
jm42/webdown
/webdown
UTF-8
2,609
4.0625
4
[ "WTFPL" ]
permissive
#!/usr/bin/env sh # # webdown -- static website generator from markdown sources # . . # . , _ |_ _| _ . ,._ # \/\/ (/,[_)(_](_) \/\/ [ ) # # Copyright (C) 2012-2013 Juan M Martรญnez # # This program is free software. It comes without any warranty, to the extent # permitted by applicable law. You can ...
true
f0282d1042177312d70846248dc35464fe561fd2
Shell
Jeffrey-P-McAteer/ptrack
/deploy.sh
UTF-8
836
2.765625
3
[]
no_license
#!/bin/sh # Uses state on Jeff's machine, not really scaleable deploy_new_vm() { gcloud compute instances create "ptrack" \ --image-project=arch-linux-gce \ --image-family=arch \ --machine-type=e2-small \ --zone=us-east1-b \ --network-tier=STANDARD \ --boot-disk-size=32GB \ --hostname="p...
true
7e5bbe7579683becac0c967703bac6cbe4b46f30
Shell
paranoid-and-roid/deployment_project
/system_tests.sh
UTF-8
329
2.65625
3
[]
no_license
VAR=$(ps -ef | grep apache2 | wc -l) echo There is/are $VAR apache2 processes running VAR=$(ps -ef | grep mysql | wc -l) echo There is/are $VAR mysql processes running VAR=$(ps -ef | grep http | wc -l) echo There is/are $VAR http processes running VAR=$(ps -ef | grep tcp | wc -l) echo There is/are $VAR TCP processes...
true
225f42ed53b7a11bd0ca5e1052cf3586fc54d06a
Shell
aminedada/projets
/projet_unix/plusoumoins/.svn/pristine/22/225f42ed53b7a11bd0ca5e1052cf3586fc54d06a.svn-base
UTF-8
1,392
2.75
3
[]
no_license
#!/bin/sh ## menu6.sh for menu6 in /home/friaa_a/projet/plusoumoins ## ## Made by FRIAA Amine ## Login <friaa_a@etna-alternance.net> ## ## Started on Wed Nov 5 09:35:31 2014 FRIAA Amine ## Last update Wed Nov 5 16:54:41 2014 FRIAA Amine ## echo -e "\033[31;5mโ–‘โ–ˆโ–€โ–€โ–ˆ โ”€โ–ˆโ–€โ–€โ–ˆ โ–‘โ–ˆโ”€โ”€โ”€ โ–€โ–€โ–ˆโ–€โ–€ โ–‘โ–ˆโ–€โ–€โ–ˆ โ–€โ–ˆโ–€ โ–‘โ–ˆโ–„โ”€โ–‘โ–ˆ โ–‘โ–ˆโ–€โ–€โ–ˆ โ–‘โ–ˆโ”€โ–‘โ–ˆ ...
true
af339e568bbb8fb9bcb1565a658409a1f03776b6
Shell
donrast41/OS
/week5-master/(ex2)with_race.sh
UTF-8
119
2.96875
3
[]
no_license
for i in `seq 1 1000`; do last_number=`tail -1 num` last_number=$((last_number + 1)) echo $last_number >> num done
true
ef315b35c6288c7cb235e74de5e1a708217e7b7a
Shell
vslakshmi/sample-java-project
/worls_of_numbers.sh
UTF-8
146
2.5625
3
[]
no_license
#!bin/bash echo "Please enter a" read a; echo "Please enter b" read b; echo $((a+b)); echo $((a-b)); echo $((a*b)); echo $((a/b)); echo $((a%b));
true
7e0be8f50687f5d82d77c47061b8826fe97a3a7c
Shell
EricssonIoTaaS/DeviceOnBoardingExamples
/raspberryPi/temperatureSensor/sendTempDataWithHTTP.sh
UTF-8
361
2.90625
3
[]
no_license
#!/bin/bash while true; do temp=$(./readTempData.sh) now=$(date +%d.%m.%y-%T) cat blank.json | sed 's/T1/'$temp'/g; s/D1/'$now'/g'> \ send.json json=$(cat send.json) echo $json curl -X PUT \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d "$json" \ http://iot-api-gw.ericsson.net:3001/resources...
true
37729fe235789b0e51a5c87da33099766ec8a418
Shell
djmattyg007/arch-adminer
/setup/root/install.sh
UTF-8
424
2.921875
3
[ "Unlicense" ]
permissive
#!/bin/bash # Exit script if return code != 0 set -e source /root/functions.sh echo "Install dhcpcd package without udev support" aur_start aur_build dhcpcd-without-systemd aur_finish echo "Install and configure additional PHP packages" source /root/php.sh echo "Download adminer" curl -L -sS -o /srv/http/adminer.p...
true
6e576d3fc6d24740f875781f634803f6e065c0cc
Shell
sudnya/video-classifier
/lucius/experiments/mnist/train-mnist.sh
UTF-8
2,074
2.921875
3
[]
no_license
#!/bin/bash SCRIPT_DIRECTORY="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" CUDA_DEVICES="0" INPUT_TRAINING_DATASET="/Users/gregdiamos/temp/mnist/train/database.txt" INPUT_VALIDATION_DATASET="/Users/gregdiamos/temp/mnist/test/database.txt" LOGS="NesterovAcceleratedGradientSolver,BenchmarkImageNet,LabelMatchResul...
true
72eb276126e627ced05bcd7c9c16d09ee4a02e5d
Shell
thecotne/stateless-app
/statelessup
UTF-8
779
2.734375
3
[]
no_license
#!/usr/bin/env bash set -e SELF_PATH=$(cd -P -- "$(dirname -- "$0")" && pwd -P) && SELF_PATH=$SELF_PATH/$(basename -- "$0") SELF_DIR=$(dirname $SELF_PATH) RSYNC_COMMAND="rsync -vaz --exclude node_modules --exclude tsconfig.tsbuildinfo" eval "$RSYNC_COMMAND $SELF_DIR/workspaces/blessing/ ./workspaces/blessing/" eval ...
true
598a934d3eaa093f5600d43782a99503e9385839
Shell
maxgallo/dotfiles
/more/mas.sh
UTF-8
481
3.28125
3
[]
no_license
#!/bin/bash source ../utils/confirm.sh source ../utils/brew-utils.sh source ../utils/log.sh # "mas search xzy" to search for packages mas_packages=( 668208984 # GIPHY Capture. The GIF Maker 467040476 # HiddenMe 1497506650 # Yubico Authenticator ) # Make sure homebrew is installed first mandatoryBrew lo...
true
0ee626b86096ba2dcb9fb62e759634bda6ba6a75
Shell
bharathmighty248/shell_programming
/forloop/primenum.sh
UTF-8
220
3.640625
4
[]
no_license
#!/bin/bash -x read -p "Enter the num :: " n c=0 for ((i=1; i<=n; i++)) do b=$(($n % $i)) if [ $b == 0 ] then c=$(($c+1)) fi done if [ $c == 2 ] then echo $n is prime number else echo $n is not prime number fi
true
c4909fdcd9a6c0378f12b1b4437c15b9687df247
Shell
scenario-test-framework/stfw
/src/bin/lib/stfw/usecase/scenario/scenario_inputport
UTF-8
4,265
3.515625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash #=================================================================================================== # # scenario inputport # #=================================================================================================== . "${DIR_BIN_LIB}/stfw/domain/service/scenario_service" #----------------------...
true
6c8a44c96eea2caa26814a4de275d50c696df898
Shell
cliu1/lorelei-amdtk
/recipes/CHN_DEV_20160831/utils/phone_loop_train.sh
UTF-8
2,828
3.703125
4
[]
no_license
#!/usr/bin/env bash # # Train the inifinite phone-loop model. # if [ $# -ne 4 ]; then echo "usage: $0 <setup.sh> <niter> <in_dir> <out_dir>" exit 1 fi setup="$1" niter="$2" init_model="$3/model.bin" out_dir="$4" source $setup || exit 1 if [ ! -e $out_dir/.done ]; then mkdir -p "$out_dir" # Fir...
true
0a05e8011db3c0c0bfba614f156c20b90e9eb621
Shell
tianyaleixiaowu/pinpoint-agent
/configure-agent.sh
UTF-8
937
2.515625
3
[]
no_license
#!/bin/bash set -e set -x COLLECTOR_IP=${COLLECTOR_IP:-127.0.0.1} COLLECTOR_TCP_PORT=${COLLECTOR_TCP_PORT:-9994} COLLECTOR_UDP_STAT_LISTEN_PORT=${COLLECTOR_UDP_STAT_LISTEN_PORT:-9995} COLLECTOR_UDP_SPAN_LISTEN_PORT=${COLLECTOR_UDP_SPAN_LISTEN_PORT:-9996} cp -R /assets/pinpoint-agent /assets/pinpoint-agent cp -f /as...
true
a4ee9278df69557ed9eb0ac6e8d273d146e51988
Shell
rbudiharso/asdf
/lib/commands/command-local.bash
UTF-8
645
3.6875
4
[ "MIT" ]
permissive
# -*- sh -*- # shellcheck source=lib/commands/version_commands.bash source "$(dirname "$ASDF_CMD_FILE")/version_commands.bash" local_command() { local parent=false local positional=() while [[ $# -gt 0 ]]; do case $1 in -p | --parent) parent="true" shift # past value ;; ...
true
7518ff6a2df1f3d49cec60c8e846797adb25567b
Shell
NobukoYoshida/ocaml-mpst
/examples/run_oauth.sh
UTF-8
832
2.921875
3
[]
no_license
#!/bin/bash cd "$(dirname "$0")" set -e set -v opam switch ocaml-mpst-lwt eval `opam env` dune build @oauth/all # Starting the OAuth server. # An HTTPS-enabled web server is required. # Add the following configuration to your HTTPS server: # # ProxyPass /scribble http://127.0.0.1:8080/scribble # ProxyPassReverse /scr...
true
2caec772ff94624acff8dc6e6e206cf88dfc6785
Shell
barklyprotects/homebrew-barkly
/projects/base/files/env/functions.sh
UTF-8
362
3.984375
4
[ "MIT" ]
permissive
#!/bin/bash # Get current timestamp. Use option '-c' to copy to clipboard. function ts { local iso_stamp=`date +"%Y-%m-%d %H:%M:%S"` if [ "$1" == "-c" ]; then echo -n $iso_stamp | pbcopy echo "[$iso_stamp] copied to clipboard." else echo $iso_stamp fi } function tmpname { local name=`date +"%Y-%...
true
ae40d867edcaf078d322d711328bfeceb92515e3
Shell
itsShnik/dotfiles
/.bash_aliases
UTF-8
532
2.578125
3
[]
no_license
shopt -s autocd shopt -s cdspell # my new alias alias open='xdg-open' alias bashrc='vim ~/.bashrc' alias ll='ls -alh' alias la='ls -A' alias l='ls -CFlh' alias lsd="ls -alF | grep /$" alias srcbash='source ~/.bashrc' alias als='cat ~/.bash_aliases' # git aliases alias adda="git add -A" alias pull="git pull origin mas...
true
0f52ac9a549f9a36a586b2cb78288fa6cc35b8ff
Shell
vasanthkumart007/Software_AG_Vasanth
/dockerex/docker-ex3-folder/docker-ex3
UTF-8
381
2.828125
3
[]
no_license
#!/bin/bash #Author: VASANTH #Date: May 2 2021 echo "THIS SCRIPT WILL CREATE A CONTAINER NGINX:1.19.10" echo "--------------------" sleep 1 echo "IT WILL LISTENS TO THE PORT http://localhost:8080" echo "--------------------" docker-compose -f ex3-compose.yml up sleep 1 echo echo "-------------------" echo "CONTAINER...
true
5711385f3266a1edd1c1c67a80d2579319dccbff
Shell
ricardoribas/bash-commands
/bin/request-volume-expansion.sh
UTF-8
779
3.4375
3
[]
no_license
#/bin/bash EC2_INSTANCE_ID=$1 EC2_ACCOUNT_USER=$2 EC2_KEY_LOCATION=$3 # Retrieve information about the instance volumes EC2_INSTANCE_INFO=$(aws ec2 describe-instances --instance-id $EC2_INSTANCE_ID) EC2_VOLUME_ID=$(echo $EC2_INSTANCE_INFO | jq '.Reservations[0].Instances[0].BlockDeviceMappings[0].Ebs.VolumeId' | tr -...
true
4ab8783c8356c21cb5e1632bd5198f32c95fb712
Shell
lanl/SICM
/contrib/identify_numa
UTF-8
962
3.9375
4
[ "BSD-2-Clause" ]
permissive
#!/usr/bin/env bash ROOT="$(dirname ${BASH_SOURCE[0]})" declare -A mapping nodes=$(${ROOT}/list_numa_nodes | awk '{ print $1 }') # start with assumption that all numa nodes are dram for node in ${nodes} do mapping["${node}"]="DRAM" done # run all memory type detectors in the identify_numa.d directory for detec...
true
05ddc558dc7ba159e784df240bfc451e784cbb5c
Shell
kbschliep/Serverless-WebApp
/wait-for-localstack-ready.sh
UTF-8
409
3.640625
4
[]
no_license
CONTAINER=$(docker ps -q) if [ -z $CONTAINER ]; then echo "Couldn't find running Docker container." docker --version docker ps exit 1 fi echo "waiting for Localstack to report 'Ready.' from container $CONTAINER" while true; do LOGS=$(docker logs $CONTAINER --since 1m) if echo $LOGS | grep 'Ready....
true
77a92f7b0cec7eb22c72f20503a8a97be98c3eb2
Shell
MicahElliott/dotfiles
/bin/ecd.sh
UTF-8
8,054
3.765625
4
[]
no_license
# ecd โ€” Enhanced CD (for bash) # # Author: Micah Elliott http://MicahElliott.com # License: WTFPL http://sam.zoy.org/wtfpl/ # # Usage: source .../ecd.sh; cd ... # (Donโ€™t try to run this file; it is to be sourced) # # Useful aliases: # alias cdl='cd -l' # alias cde='vim -o2 .enterrc .exitrc' # # NOTE: I no longer use t...
true
7595a177d1bf882421d0e0596b33372d0d06fe72
Shell
probe36/network-switch
/corn-test/dailybackup.sh
UTF-8
766
2.859375
3
[]
no_license
#Purpose: make dauily backup from DC to Office #Revised: 20200420 #Version control #Git name #!bin/bash #Home dir BACKUPHOME=/backup/ETNbackup #Source dir SDIR1=192.168.0.55:/home/ETN_Documents/SdDocument SDIR2=192.168.0.55:/home/ETN_Documents/SdDocumentAddendum #Destination dir DDIR=$BACKUPHOME/ETN_Documents #Excl...
true
a27e297fe0f1576e53eaa9947a831d84bc0cbae8
Shell
prague-dev/sas-creator
/android-emulator-creator.sh
UTF-8
366
2.703125
3
[]
no_license
#!/bin/bash sz="$(stat -c %s s.img)" sz=$((sz/512)) sz=$((sz + 2048 )) sz=$((sz / 2048 )) sz=$((sz * 2048 )) sum=2048 newsum=$((sum+sz+2048)) rm -f system-gpt truncate -s $((newsum*512)) system-gpt /sbin/sgdisk -C system-gpt /sbin/sgdisk --new=1:2048:+$sz system-gpt /sbin/sgdisk --change-name=1:system system-gpt dd i...
true