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
4cd6d7339778eb3f4b4e0164a2c1d28f07051cbb
Shell
schanur/libbivalvia
/bivalvia/color.sh
UTF-8
645
3.59375
4
[ "MIT" ]
permissive
declare -A COLOR_TABLE COLOR_TABLE['red']=31 COLOR_TABLE['green']=32 COLOR_TABLE['yellow']=33 COLOR_TABLE['blue']=34 COLOR_TABLE['magenta']=35 COLOR_TABLE['cyan']=36 COLOR_TABLE['white']=37 COLOR_TABLE['color_reset']=0 function color_name_to_color_code { local COLOR_NAME="${1}" echo ${COLOR_TABLE["${COLOR_...
true
520ed110a8fa71fbd29a1a1141e25e78e471608b
Shell
udhayakumar2507/run-time-scripts
/acr-auto-build.sh
UTF-8
451
2.640625
3
[]
no_license
#!/usr/bin/env bash docker_imagename="httpd" ecrRepoName="node-api" ecrURL="xxxxxxxxx.dkr.ecr.eu-west-1.amazonaws.com" awsECR="$ecrURL/$ecrRepoName" docker pull $docker_imagename docker tag $docker_imagename $awsECR aws ecr get-login-password --region eu-west-1 | docker login --username AWS --password-stdin $ecrURL doc...
true
418eb46e37ead04fed0513793b47099eccd436c9
Shell
ololduck/Dotfiles
/install.sh
UTF-8
1,273
3.3125
3
[ "MIT" ]
permissive
#!/bin/sh export PATH=$HOME/.local/bin:$PATH PREFIX=$HOME/.local SRC_SOFTS=$PREFIX/src install_dotfiles() { if test -d ~/dotfiles; then echo "dotfiles already there" return 1 fi pip install --user dotfiles git clone https://github.com/paulollivier/Dotfiles.git ~/dotfiles dotfiles -s...
true
a95f39f39360993cfeccb95f19c88e131b833a7e
Shell
Dyr-El/advent_of_code_2017
/tethik-python3/tests/12a.bats
UTF-8
229
2.609375
3
[]
no_license
@test "12a.py sample 1" { input=$(cat << EOF 0 <-> 2 1 <-> 1 2 <-> 0, 3, 4 3 <-> 2, 4 4 <-> 2, 3, 6 5 <-> 6 6 <-> 4, 5 EOF ) output=$(cat << EOF 6 EOF ) result=$(echo "$input" | python 12a.py) [[ "$result" == "$output" ]] }
true
de22d6e0ec08e61eb83e7a67d3ddf586c76448a3
Shell
jafingerhut/clojure-benchmarks
/bin/tmcurve-all.sh
UTF-8
4,541
3.1875
3
[ "BSD-3-Clause" ]
permissive
#! /bin/bash # Uncomment this line to make the script only do echoing, no "real work" #ECHO_ONLY="echo" # Uncomment this line to make the script do real work ECHO_ONLY="" ROOT=`pwd` # 1>&2 echo "usage: `basename $0` [ benchmark-name ... ]" if [ $# -ge 1 ]; then BENCHMARK="$@" else BENCHMARK="binarytrees ...
true
850b1bade3c2bec6a43c4fee6406802bad6b495f
Shell
hanksudo/osx-wifi-proxy-switch
/osx-wifi-proxy.sh
UTF-8
687
4.09375
4
[]
no_license
#!/bin/sh # Set paths to our utilities NETWORKSETUP=/usr/sbin/networksetup usage () { echo 'Usage :' echo "\t$0 on" echo "\t$0 off" exit } current_state () { echo 'Web Proxy(HTTP) state:' echo `$NETWORKSETUP -getwebproxy wi-fi` echo '\r' echo 'Secure Web Proxy(HTTPS) state:' echo `$NETWOR...
true
6a397da23f44edd6a2108d378a8698bf14d80231
Shell
jusa/utils
/vim-grep
UTF-8
6,013
3.65625
4
[]
no_license
#!/bin/bash # Works with any editor but best with vim :) # # Add to your .vimrc: # # au BufRead *.gitopenbuffer set filetype=gitopenbuffer # au BufRead *.gitopenbuffer hi openbuffer_left ctermfg=lightblue # au BufRead *.gitopenbuffer syn match openbuffer_left /\zs.*:[0-9]*: \ze/ # autocmd FileType gitopenbuffer map <b...
true
f317c91a679b57298e639b0a879eaa27a530021d
Shell
ChrisGottsacker/concept_demos
/bash/functions.sh
UTF-8
149
2.59375
3
[]
no_license
# Easy double-spaced printing function printds { echo -e $* \\n } printds Dear bash printds "I'm sorry it turned out this way" echo love, echo Mom
true
aa3ea8e2cffab98188f1daab53b5ba139427daec
Shell
hminh0407/dotfiles
/scripts/installation/tmux.sh
UTF-8
740
3.203125
3
[]
no_license
#!/usr/bin/env bash install () { echo "... Installing Tmux ..." sudo apt-fast install --no-install-recommends -y tmux echo "... Installing Tmux Plugin Manager ..." git cl https://github.com/tmux-plugins/tpm.git ~/.tmux/plugins/tpm echo "... Installing Tmux Plugins ..." ~/.tmux/plugins/tpm/bin...
true
7ac67076fbaa586dbfa8a269c8f7a7711a3bcf9c
Shell
movabletype/mt-docs-data-api-reference
/redoc-build.sh
UTF-8
356
2.5625
3
[]
no_license
#!/bin/sh for v in v1 v2 v3 v4 v5 v6; do \ npx redoc-cli build src/openapi/${v}.json \ --template src/openapi/data-api-redoc.hbs \ --disableGoogleFont \ --title "Movable Type Data API ${v}" \ --templateOptions.metaDescription "Movable Type Data API ${v}" \ --options.sortTagsAlphabetically=true \ ...
true
bdb4a69aec78cd503474bc1fc87ee0679eef8309
Shell
ziseputi/upf-epc
/scripts/build.sh
UTF-8
378
2.515625
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # SPDX-License-Identifier: Apache-2.0 # Copyright(c) 2019 Intel Corporation set -o errexit set -o pipefail set -o nounset : "${MAKEFLAGS:=-j$(nproc)}" : "${DOCKER_BUILDKIT:=1}" export MAKEFLAGS export DOCKER_BUILDKIT docker build --pull --build-arg MAKEFLAGS --target=bess -t spgwu . docker build -...
true
025c53e85f05539f38c5e999a5c017e5769b6077
Shell
bjucps/cps209-tests
/lab2/_lab2.sh
UTF-8
643
2.59375
3
[]
no_license
require-src-folder copy-gradle-buildfiles cat >> build.gradle <<EOF // Fail unit tests that do not complete within specified duration test { timeout = Duration.ofMillis(6000) testLogging { events "passed", "failed" } } EOF do-compile gradle jar || exit echo -e "\nExecuting your tests..." run-pr...
true
5cd87ae2fb59a6e404a4bd2408d3c3fa8581bf52
Shell
TunisianWhiteHatSecurity/R2ES-Reverse_Engineering_Environment_Setup
/main.sh
UTF-8
3,970
3.203125
3
[]
no_license
#!/bin/bash #Global Variables WORKING_DIRECTORY=${PWD} tabToInstall=() tabDependencies=() tabToInstall[0]="NoThing" tabDependencies[0]="NoThing" #includes source Colors.sh source Check_installation.sh source Install_tools.sh vMain_iAppendToolsToInstall() { if [ ${WINE_IS_INSTALLED} == "YES" ]; then echo -e "\t$...
true
ca8c9d219b05469c7ed1c55ca62b8a366d1f250e
Shell
erikarn/freebsd-wifi-build
/build/files/rc2.11a
UTF-8
2,261
2.921875
3
[]
no_license
#!/bin/sh # This is run once rc has setup /tmp, /etc and /var; it's our # responsibility to set things up to run. # Directories echo "*** Populating /var .." mkdir -p /var/run/hostapd mkdir -p /var/log mkdir -p /var/tmp mkdir -p /var/db mkdir -p /var/empty mkdir -p /var/cron mkdir -p /var/cron/tabs echo "*** settin...
true
69a67ebb41dfedc5c02ddcd721b73b6ccd4718a4
Shell
petronny/aur3-mirror
/libopensync-plugin-sunbird/PKGBUILD
UTF-8
755
2.703125
3
[]
no_license
# Contributor: Andreas Schönfelder <passtschu@freenet.de> pkgname=libopensync-plugin-sunbird pkgver=0.22 pkgrel=1 pkgdesc='Sunbird plugin for OpenSync' url='http://www.opensync.org/' license=('LGPL') arch=('i686' 'x86_64') depends=('libopensync') source=(http://www.opensync.org/attachment/wiki/download/$pkgname-$pkgver...
true
83e8d2dffb5528f68476e440678095e4cf989d12
Shell
vdmeer/project-manager-maven-plugin
/src/main/bash/skb-bin/create-env-settings.sh
UTF-8
2,024
3.15625
3
[ "MIT", "Apache-2.0" ]
permissive
#!/usr/bin/env bash ## Copyright 2014-2016 Sven van der Meer <vdmeer.sven@mykolab.com> ## ## 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....
true
719ab9d4946fb204efe6e28dc6e212c85bf634c3
Shell
Tristan2252/.dotfiles
/install/roles/setup/files/scripts/de_connect.sh
UTF-8
349
3.078125
3
[]
no_license
#!/bin/sh CONTAINER=CSE-326 STATE=$(lxc info $CONTAINER | grep -o Running) if [ "$STATE" = "Running" ]; then lxc exec $CONTAINER -- sudo --login --user ubuntu -i env DISPLAY=$DISPLAY bash exit 0 fi lxc start $CONTAINER echo "Connecting..." sleep 2 lxc exec $CONTAINER -- sudo --login --user ubuntu -i env DI...
true
234e43f5e54814d71cd8d8509da118e7fb3d312c
Shell
msneddon/search
/scripts/start_service.sh
UTF-8
989
3.21875
3
[]
no_license
#!/bin/bash echo echo " _ ______ _____ _ " echo " | |/ / _ \ / ____| | | " echo " | ' /| |_) | __ _ ___ ___ | (___ ___ __ _ _ __ ___| |__ " echo " | < | _ < / _' / __|/ _ \ \___ \ / _ \/ _' | '__/ __| '_ \ " echo ...
true
30e2b05fbb554f3ce9714c2a1840179d993f5cc4
Shell
Dynamedia/docker-redis
/entrypoint.sh
UTF-8
558
2.796875
3
[]
no_license
#!/bin/sh REDIS_MAXMEMORY=${REDIS_MAXMEMORY:-64M} REDIS_MAXMEMORY_POLICY=${REDIS_MAXMEMORY_POLICY:-allkeys-lfu} # Modify the redis config sed -i "s#REDIS_MAXMEMORY_PLACEHOLDER#maxmemory $REDIS_MAXMEMORY#g" /usr/local/etc/redis/redis.conf sed -i "s#REDIS_MAXMEMORY_POLICY_PLACEHOLDER#maxmemory-policy $REDIS_MAXMEMORY_...
true
1177e4a9adc9a86d4790567130ade6eadcf19611
Shell
lucaswannen/source_code_classification_with_CNN
/dataset_v2/bash/4956517.txt
UTF-8
993
2.703125
3
[]
no_license
#!/bin/bash echo “Stopping any Firefox that might be running” sudo killall -9 firefox echo “Removing any other flash plugin previously installed:” sudo apt-get remove -y –purge flashplugin-nonfree gnash gnash-common mozilla-plugin-gnash swfdec-mozilla libflashsupport nspluginwrapper sudo rm -f /usr/lib/mozilla/plugin...
true
2c850aadde27bb671bc947d2342d74ef933e7aa9
Shell
disableNoise/bash-login-script
/sshd and httpd checker
UTF-8
320
3.265625
3
[]
no_license
#!/bin/bash apache=`ps aux | grep httpd | awk '{ print $11 }' | grep -v grep -` sshd=`ps aux | grep sshd | awk '{ print $11 }' | grep -v grep -` if [ -n "$sshd" ]; then echo "sshd is active" else echo "sshd is NOT active" fi if [ -n "$apache" ]; then echo "httpd is active" else echo "httpd is NOT active" fi
true
09fe09b2319984c30eb6b656ea3472b9eebf5efa
Shell
aks60808/COMP9044
/9044AS1/legit/test03.sh
UTF-8
447
2.734375
3
[]
no_license
#!/bin/dash # author: Heng-Chuan Lin (z5219960@unsw.edu.au) # class: 9041 soft-con # file description: error test for branch and status # written in 14/07/2019 if [ -d .legit ] then rm -r .legit #just in case fi ./legit-init touch a ./legit-branch b1 ./legit-status # error occured : didn't create such folders insi...
true
63c373408490f810da7cddcb5e8ccbcfa6c6ea9b
Shell
yomox9/nmrih
/c.sh
UTF-8
355
2.875
3
[]
no_license
#!/bin/sh while : do printf "`date +%Y%m%d_%H%M%S`" if [ -e nmrih_d.lock ];then printf " lock O" else printf " lock X" fi #ps -ef|grep -v grep|grep srcds_linux|cut -d " " -f 14,15,16 p=`ps -ef|grep -v grep|grep srcds_linux|cut -d " " -f 15` if [ "$p" = "./srcds_linux" ];then printf " proc O" else printf...
true
4f62981d3ebb18e3cc1ed358f610b03c662c650b
Shell
eol-uchile/backup-container
/scripts/services/mongodb_comments.sh
UTF-8
874
3.1875
3
[]
no_license
#!/usr/bin/env bash set -eu folder=$1 remote_folder=$2 # Dump mongodb mongodump --host "$PLATFORM_MONGODB_HOST" --port $PLATFORM_MONGODB_PORT --username "$PLATFORM_MONGODB_USER" --password "$PLATFORM_MONGODB_PASSWORD" --authenticationDatabase edxapp --archive --db cs_comments_service | gzip > $folder/mongodb_cs_comme...
true
9000f50dc9598d3629a99fb863f497912e63bd03
Shell
atorero/sp
/deploy.sh
UTF-8
213
2.609375
3
[]
no_license
FOLDER=$(cat DEPLOY_PATH) git pull ./sbt dist DISTPATH=target/universal/ DISTNAME=$(basename $(find $DISTPATH -name "*.zip")) mv $DISTPATH$DISTNAME $FOLDER unzip $FOLDER$DISTNAME -d $FOLDER rm -f $FOLDER$DISTNAME
true
9addb3a6b76aea33e0e406f21726afae74f9021c
Shell
MarkAYoder/BeagleBoard-exercises
/setup/setMandi.sh
UTF-8
127
2.578125
3
[]
no_license
#!/bin/bash # Copy remote's Mandi server date to local REMOTE=14.139.34.32 DATE=`ssh yoder@$REMOTE date` sudo date -s "$DATE"
true
0fb8f0a8c6f78eccbb899bda91653eada837d3f1
Shell
AlexRogalskiy/shell
/case_30.sh
UTF-8
216
2.5625
3
[ "MIT" ]
permissive
#!/bin/bash echo "Parent process (PID=$pid) is running" case_01 & pid=$! echo "CHild process (PID=$pid) is running" sleep 20 wait $pid echo "Parent process: child process is finished" echo "Parent process: exit"
true
81e91df64cbd7799df96861e77c278396563af52
Shell
prhys/commandgui
/scripts/Operations with files/linux .txt files into windows .txt files.sh
UTF-8
228
3.03125
3
[]
no_license
#!/usr/bin/env bash #Description = This command will turn plain text files (like .txt) made in Linux into a format that can be read on Windows #Danger = None #Risks = None #Commands awk 'sub("$", "\r")' "$1" > "$2" exit "$?"
true
d1126a06a2d013e9c8885bbd7743dfd7c189ae1e
Shell
rojajullapalli/Batch325
/day5/weekdisplay.sh
UTF-8
1,017
3.296875
3
[]
no_license
#!/bin/bash -x echo "enter the number to display week" read number if [ $number -eq 1 ] || [ $number -eq 8 ] || [ $number -eq 15 ] || [ $number -eq 22 ] || [ $number -eq 29 ] then echo "sunday" elif [ $number -eq 2 ] || [ $number -eq 9 ] || [ $number -eq 16 ] || [ $number -eq 23 ] || [ $number -eq 30 ] then ...
true
de3fb0178580af9bbd82f0272875dac42bbc76ba
Shell
Ivanyanqi/shell-learn
/简单语法/iteartor.sh
UTF-8
826
3.875
4
[]
no_license
#!/bin/bash #对一系列值进行迭代,循环非常有用,bash提供了多种类型的循环 #for 循环 #for var in list #do # commands 使用变量$var #done #list可以是一个字符串,也可以是一个序列 #我们可以轻松地生成不同的序列 #echo {1..50}能够生成一个从1~50的数字列表 echo {1..50} #生成字母序列 echo {a..z} echo {A..Z} echo {A..z} #for循环也可以采用C语言中for循环的格式。例如: ## for((i=0;i<10;i++)) { # commands; #使用变量$i #} #while循...
true
3fa9f45875030e7c6b4784f6cea17b955cdc3e30
Shell
declanmalone/ODROID-SHOW
/example/images.sh
UTF-8
868
2.734375
3
[]
no_license
#!/bin/bash flag=0 serial="/dev/ttyUSB0" trap "flag=1" SIGINT SIGKILL SIGTERM ./port_open & subppid=$! sleep 0.1 echo -ne "\ec\e[0r" > $serial sleep 0.3 while true do if [ $flag -ne 0 ] ; then echo -ne "\ec\e[1r" > $serial kill $subppid exit fi echo -ne "\e[0r" > $serial sleep 0.2 echo -ne "\e[0;0,23...
true
a347ab8e2a86ffa29442efd8301bedfe120c4de6
Shell
diadatp/nasti-ddrx-mc
/install-verilator.sh
UTF-8
365
3.1875
3
[]
no_license
#!/bin/sh set -e if [ ! -d "${HOME}/verilator/bin" ]; then wget https://github.com/diadatp/verilator/archive/verilator_3_882.tar.gz tar -xzvf verilator_3_882.tar.gz && cd verilator-verilator_3_882 autoconf && ./configure --prefix="${HOME}/verilator" && make && make test && make install else echo "Usin...
true
3d3ac0cc84ad306a3bb0e72c24ac28df8cb74b95
Shell
jessedmarshall/MarkerBasedImputation
/mbi/cluster/submit_training_gpu_requeue.sh
UTF-8
1,816
2.84375
3
[]
no_license
#!/bin/bash #SBATCH -J MultiGpuTrain #SBATCH -p gpu_requeue # partition (queue) #SBATCH -N 1 # number of nodes #SBATCH -n 2 # number of tasks #SBATCH --gres=gpu:4 # number of total gpus #SBATCH --mem 160000 # memory for all cores #SBATCH -t 0-7:00 # time (D-HH:MM) ...
true
47f53cee590097685cfb38ea3782f054d0c8e7f6
Shell
century-arcade/src
/c64/vice-2.4/src/arch/sdl/make-bindist_dingoo.sh
UTF-8
2,443
3.5
4
[ "GPL-2.0-or-later", "GPL-1.0-or-later", "GPL-2.0-only", "MIT" ]
permissive
#!/bin/sh # make-bindist.sh for the DINGOO SDL port # # written by Marco van den Heuvel <blackystardust68@yahoo.com> # # make-bindist.sh <strip> <vice-version> <--enable-arch> <zip|nozip> <top-srcdir> # $1 $2 $3 $4 $5 STRIP=$1 VICEVERSION=$2 ENABLEARCH=$3 ZIPKIND=...
true
3a6476864e11ba762dcc8efef460f8063e747916
Shell
jleluyer/sibship_SNPpanel
/00_scripts/01_makevcf_freebayes.sh
UTF-8
830
2.65625
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
#!/usr/bin/env bash #PBS -N trimmomatic__BASE__ #PBS -o freebayes.out #PBS -q omp #PBS -l walltime=36:00:00 #PBS -l ncpus=2 #PBS -l mem=20g cd $PBS_O_WORKDIR #Working directories, input and output files data=list.bam.files outdir=02_data ref="reference.fa" tag="output" ls "$outdir"/*bam >01_info_files/"$data" #Fr...
true
f04c6d23d5ee42b946e268d15241d20a22bae528
Shell
cedric-dufour/custom-conf
/generic/all/custom-conf-docker/usr/share/custom-conf-docker/config/etc/iptables/hooks.d/ipv4/post-start.d/50_custom-conf-docker
UTF-8
395
2.921875
3
[ "CC-BY-4.0", "LicenseRef-scancode-public-domain" ]
permissive
#!/bin/sh ## CUSTOM-CONF: File automatically created/updated [custom-conf-docker] # (Please use 'dpkg-reconfigure custom-conf-docker' to change this setting) %{CUSTOM_CONF_DOCKER_IPTABLES_MANUAL_EXIT} # Start Docker daemon [ -e /var/run/iptables-control.hook.docker ] || exit 0 echo "WARNING: Docker daemon service MUS...
true
6ca2c3d4df3a1f2648e496235192039467b208cf
Shell
CloudSen/archlinux_installer_vm
/install.sh
UTF-8
433
2.96875
3
[ "MIT" ]
permissive
#!/bin/bash # Author: CloudS3n https://yangyunsen.com # Description: Install daily soft source ./conf/config.sh source ./src/post_install.sh ROOT_UID=0 function checkConfig() { if [[ "$UID" -ne "$ROOT_UID" ]]; then echo "[ POST-INSTALL ] Must be root to run this script!" >> ./log/error.log killa...
true
182791145e5260c765af7471294746b95efcd357
Shell
habitat-sh/core-plans
/luajit/tests/test.bats
UTF-8
252
2.78125
3
[ "Apache-2.0" ]
permissive
source "${BATS_TEST_DIRNAME}/../plan.sh" @test "Version matches" { result=$(luajit -v | awk '{print $2}') [ "$result" = "${pkg_version}" ] } @test "Hello World" { result=$(luajit -e 'print("Hello Habitat")') [ "$result" = "Hello Habitat" ] }
true
5a1d69575233686ecf590e9cc552a75d319ad0af
Shell
probonopd/Tools
/dies/dies
UTF-8
5,038
4.125
4
[ "MIT" ]
permissive
#!/bin/bash # dies # v1.0.1 # (C) 2017 Joss Brown # Shell script utility to convert English to Latin weekday names LANG=en_US.UTF-8 VERSION="1.0.1" DATE="2017.08" echoerr() { echo "$1" 1>&2 } usage() { echo "dies v$VERSION ($DATE) by Joss Brown" echo "Shell script utility to convert English to Latin weekday ...
true
02dcf52b6f277064d494a31f837056403497e612
Shell
r2p2/dot
/zsh/install.sh
UTF-8
254
3.359375
3
[]
no_license
#!/bin/bash DATE=`date +%Y-%m-%d:%H:%M:%S` if [ -h ~/.zshrc ]; then echo "Your zshrc is a link: removed" rm ~/.zshrc fi if [ -f ~/.zshrc ]; then echo "Create backup of ~/.zshrc" mv ~/.zshrc ~/zshrc_backup_$DATE fi ln -s ~/dot/zsh/zshrc ~/.zshrc
true
ce0fcb0e42a48c57d3867d09287309967a263b25
Shell
zhangsirsdo/openstack-install
/roles/role-controller/install.sh
UTF-8
9,263
3.515625
4
[]
no_license
#!/bin/bash readValue(){ if [ "$1"x = "null"x ];then echo $2 else echo $1 fi } ADVERTISEMENT_URL=`cat ../global.conf |grep ADVERTISEMENT_URL|awk -F '=' '{print $2}'` ADVERTISEMENT_URL=${ADVERTISEMENT_URL:=127.0.0.1:2379} compose_path="/etc/docker_compose/" if [ ! -x "$compose_path" ]; then mkdir -p $c...
true
b2dafeecb76d146c7aed2e530b147de6962655c0
Shell
HiMyNameIsIlNano/linux-makemkv-lite
/oss/play-stream
UTF-8
2,014
3.484375
3
[]
no_license
#!/bin/sh # # Depends on mpv/mplayer. # # Revision History: # # 26-MAY-2016: Initial release. # # Begin functions # Print out the help usage(){ echo "usage: play-stream [-fp value] | [[-h]]" } # End functions INSTALL_PATH=/usr/local/bin FP_FLAG=0 TIMESTAMP=$(date +%s) LOG_FILE="make_mkv-$TIMESTAMP" while [ "$...
true
93ce763a68566303f6a0be0236a797bc85d904e7
Shell
ProbablePattern/Teaching
/OpenBB/install.sh
UTF-8
641
2.5625
3
[]
no_license
#!/bin/bash # Instructions from https://docs.openbb.co/terminal/quickstart/installation # Linux sudo apt install -y gcc cmake # MacOS brew install cmake # Clone the repository cd ~/ git clone https://github.com/OpenBB-finance/OpenBBTerminal.git OpenBB # Create Virtual Environment cd OpenBB/ conda env create -n OpenBB...
true
a0b0aa6687891bf21e090c6ed71d53b61a3b1014
Shell
parantapa/dotfiles
/bin/sample-lines-whead
UTF-8
240
3.390625
3
[]
no_license
#!/bin/bash # # Randomly sample lines from files # http://stackoverflow.com/a/692321 if [[ -z $1 ]] ; then echo "Need sampling fraction" exit 1 fi frac=$1 awk 'BEGIN {srand()} !/^$/ { if (rand() <= '$frac' || FNR==1) print $0}'
true
93e4556b4584e8b36a10963a734c4c1bcc2ae9f6
Shell
cysce/grafana-ppc64le
/k8s/start.sh
UTF-8
1,513
3.609375
4
[]
no_license
#!/bin/bash while [ $# -gt 0 ]; do case "$1" in --base=*) base="${1#*=}" ;; --host=*) host="${1#*=}" ;; *) printf "***************************\n" printf "* Error: Invalid argument.*\n" printf "***************************\n" exit 1 esac shift done echo ...
true
e4f98245c5f9c15ad98e5db0b6c8483ce17b49f3
Shell
cPJerry/Tweaks
/installAutoSSH
UTF-8
1,214
3.140625
3
[]
no_license
#!/bin/bash sudo mv /usr/bin/telnet /usr/bin/telnet.bak sudo echo '#!/bin/bash if [ "$2" == "ticket" ]; then ~/bin/t $3 $4; else /usr/bin/telnet.bak $@ fi;' > /usr/bin/telnet chmod 755 /usr/bin/telnet mkdir ~/bin chmod 755 ~/bin echo '#!/usr/bin/expect -f set ticket [lrange $argv 0 0] set server [lrange $argv 0 1] ...
true
b45f7516522ae93c63e4308c14cc57456dc779ee
Shell
fizzoo/dotfiles
/.zshrc
UTF-8
7,281
2.828125
3
[ "MIT" ]
permissive
# If AUTO_TMUX is set (probably as part of ssh command sent to the remote desktop), exec tmux in a default session. if [[ -n "$AUTO_TMUX" ]] && WHICH_FISH=$(whence -p fish); then echo "Starting tm(ux) through fish." export WHICH_FISH exec "$WHICH_FISH" -i -c "tm new -A -s main" fi # start fish shell if interacti...
true
5adbb37e5840e914904653c35357e4f492603641
Shell
tiagoaf5/lambda-zsh-theme
/tiagoaf5-lambda.zsh-theme
UTF-8
976
3.40625
3
[ "MIT" ]
permissive
MNML_ELLIPSIS_CHAR="${MNML_ELLIPSIS_CHAR:-..}" function mnml_cwd { local echar="$MNML_ELLIPSIS_CHAR" local segments="${1:-2}" local seg_len="${2:-0}" local _w="%{\e[0m%}" local _g="%{\e[38;5;244m%}" if [ "$segments" -le 0 ]; then segments=0 fi if [ "$seg_len" -gt 0 ] && [ "$se...
true
59c942ff68ed4d262267b6807449abdc43d20759
Shell
clamsey/dotfiles
/bash/shortcuts.bash
UTF-8
456
2.84375
3
[ "MIT" ]
permissive
# helpful commmand line shortcut aliases # get out of directories quickly alias ..="cd .." alias ...="cd ../.." alias ....="cd ../../.." alias .....="cd ../../../.." # do openssl hashing easily alias sha1="openssl sha1" alias md5="openssl md5" # don't type sudo <package manager> every time alias yum="sudo yum" alias...
true
6b64013ede5e737e6c0f6cddf12f1481f6519c60
Shell
tenk224/newton
/controller.sh
UTF-8
16,765
2.53125
3
[]
no_license
#!/bin/bash ipadd=$1 ifname=$2 #---------------------------------------------------------------------------------- yum install mariadb mariadb-server python2-PyMySQL \ rabbitmq-server \ memcached python-memcached \ openstack-keystone httpd mod_wsgi \ openstack-glance \ openstack-nova-api openstack-nova-conductor \ op...
true
f0a66d885ccd4b88b263db7109e2be3fe7050d27
Shell
michalsarna/docker-useful-scripts
/clean_none_images.sh
UTF-8
229
3.296875
3
[]
no_license
#!/bin/bash LIST=$(sudo docker images | grep none | awk '{print $3}' | xargs) if [[ -z $LIST ]]; then echo "Nothing to remove from exited list" else echo "Removing <none> images" sudo docker rmi $LIST fi
true
6f2af5072b8e65494c9ac098de8254321048a05c
Shell
sunnysideup/silverstripe-easy-coding-standards
/bin/sake-ss-dump-database
UTF-8
1,097
3.765625
4
[]
no_license
#!/bin/bash ############################################ BASICS SCRIPT_DIR="$COMPOSER_RUNTIME_BIN_DIR" WORKING_DIR=$(pwd) source $SCRIPT_DIR/sake-self-methods ############################################ DIR dir='./' ############################################ SETTINGS source $dir/.env help='no' name="$SS_DATABAS...
true
6939c769f25d218f4bb8043f0f256cb23df401d5
Shell
neilgiri/PhylodynamicSimulation
/scripts/calib.sh
UTF-8
8,219
4.21875
4
[]
no_license
#!/bin/bash # Global variables for min, max, and step values specific to this # script. These values are changed in main() and setupRange() function. paramFile="" param="?" min=0 max=0 step=0 country="" refPhyTree="" reps=20 # Import the shared variables and file names between qsub_job.sh and # calib.sh (to keep nam...
true
c8b65fc74aaf9a60fd49f581f30f9a517048dc3c
Shell
strbum/webc
/lib/live/config/1030-gnome-power-manager
UTF-8
1,085
3.8125
4
[]
no_license
#!/bin/sh ## live-config(7) - System Configuration Components ## Copyright (C) 2006-2015 Daniel Baumann <mail@daniel-baumann.ch> ## ## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING. ## This is free software, and you are welcome to redistribute it ## under certain conditions; see COPYING for d...
true
e69c285cad12d8fbd6cb5f3372a6d974d3fcc24e
Shell
t2t-io/toe-example-plugins
/scripts/run-sensorweb3
UTF-8
3,780
3.421875
3
[ "MIT" ]
permissive
#!/bin/bash # function generate_sensorweb3_communicator_connection { cat <<__EOF__ { "enabled": true, "url": "tcp://$1:$2", "channel": null, "broadcast": false } __EOF__ } function generate_sensorweb3_sock { cat <<__EOF__ { "uri": "tcp://0.0.0.0:10000", "line": true } __EOF__ } function generate_sensorwe...
true
039314f3986e8d9c46ebcce84b34dd4a0e8e5365
Shell
ushavyas/data-extract
/shell/cited_refs_script.sh
UTF-8
915
3.640625
4
[]
no_license
############################################### # # # Name : cited_refs_script.sh # # Desc : Executes cited_refs.py # # # ############################################### PYTHON_DIR="/home/usha/wos/pyth...
true
6ff5640083a5b3099b3dd5f3ccfc09190f43322d
Shell
Python-tao/Linux_learn
/shell_scripts/add_even_odd_number.sh
UTF-8
515
3.703125
4
[]
no_license
#!/bin/bash #求100以内奇数Odd之和。 declare -i sum=0 for i in $(seq 1 2 100); do #echo "\$sum is $sum,\$i is $i" sum=$[$sum+$i] done echo "With For loop,result is $sum" ##While循环## declare -i sum=0 declare -i i=1 while [ $i -le 100 ]; do #echo "\$sum is $sum,\$i is $i" sum=$[ $sum+$i ] let i=$i+2 done echo "With While...
true
45af075e6046e20ebf37b94680fb062ae8539a59
Shell
snarfmason/dotfiles
/bashrc
UTF-8
173
2.625
3
[ "MIT" ]
permissive
if [ -d ~/.asdf ]; then . $HOME/.asdf/asdf.sh fi if [ -e /usr/local/bin/direnv ]; then eval "$(direnv hook bash)" fi export PS1='\[\033[01;32m\]\w\[\033[00m\] bash: '
true
c439c306b0e11acd0819ad316ce5920f39df89be
Shell
Shivanirudh/UNIX
/ShellScript/passCheck.sh
UTF-8
191
3.25
3
[]
no_license
#!/bin/bash read -p "Enter password " pw if [[ $pw =~ [0-9]+ && $pw =~ [a-z]+ && $pw =~ [A-Z]+ && $pw =~ ^[A-Za-z0-9]{8,} ]]; then echo "Strong password " else echo "Weak password " fi
true
3e47d41551af90eb94b3e359efc6b840f4b4d7cc
Shell
fnord0/blackarch
/packages/tiger/PKGBUILD
UTF-8
1,305
2.734375
3
[]
no_license
pkgname=tiger pkgver=3.2.3 pkgrel=1 epoch=100 groups=('blackarch' 'blackarch-scanner' 'blackarch-automation') pkgdesc="A security scanner, that checks computer for known problems. Can also use tripwire, aide and chkrootkit." arch=('i686' 'x86_64' 'armv6h' 'armv7h') url='http://www.nongnu.org/tiger/' license=('GPL') dep...
true
dd018206e1b047505f1482fd1f268788cab2e8b3
Shell
Monkey0720/Singularity
/updatebuild.sh
UTF-8
5,387
3.96875
4
[]
no_license
#!/bin/bash # Default parameter build='new'; URLBase='https://www.phenix.bnl.gov/WWW/publish/phnxbld/EIC/Singularity'; sysname='x8664_sl7' DownloadBase='cvmfs/eic.opensciencegrid.org'; CleanDownload=false # Parse input parameter for i in "$@" do case $i in -b=*|--build=*) build="${i#*=}" shift # past argu...
true
797922c8c468ed13caf3f8501f8c61993e1920a6
Shell
vyesubabu/WF1
/AOD2BUFR/run_check_modis.ksh
UTF-8
406
3.03125
3
[]
no_license
#!/bin/ksh set -euax day=20190806 for hh in 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 do file="AOD.Prepbufr.${hh}.QC00" if [[ -f ../Data/PrepBUFR/${day}/$file ]]; then ln -sf ../Data/PrepBUFR/${day}/${file} AODbufr aod_decode.x > log.${file}.${day} 2>&1 grep h...
true
8868ed68f971dd6a1bf1aeeae10b99fc3194c4fd
Shell
mlpinit/dotfiles-1
/bin/rio
UTF-8
1,853
3.546875
4
[ "MIT" ]
permissive
#!/bin/bash # Rio: Load CSV from stdin into R as a data frame, execute given commands, and get the output as CSV or PNG on stdout # # Example usage: # curl -s 'https://raw.github.com/pydata/pandas/master/pandas/tests/data/iris.csv' > iris.csv # < iris.csv Rio 'summary(df)' # < iris.csv Rio -s 'sqldf("select Name from d...
true
de493310b198b4f02a16710bd47de1cab396abbc
Shell
Romop5/holoinjector-tests
/dataset_helpers/nehe/nehe.sh
UTF-8
386
3.453125
3
[]
no_license
#!/bin/bash SCRIPT_PATH=`dirname $0` ABS_PATH=`realpath -s ${SCRIPT_PATH}` if [[ -z $1 ]] then echo "USAGE: $0 <ID>" echo "where ID is number from 1-30" exit 1 fi LESSON_ID=`printf "%2d" $1 | tr " " "0"` LESSON_NAME=$(echo "lesson${LESSON_ID}") START_DIR=`pwd` LESSON_PATH=`echo "${ABS_PATH}/linuxglx/${...
true
342efe8dec3f25d47eecb33b1bcf14f2336a3a1d
Shell
openshift/release
/ci-operator/step-registry/network/conf/enable-nm-trace/network-conf-enable-nm-trace-commands.sh
UTF-8
864
3.171875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -o nounset set -o errexit set -o pipefail nm_config=$(cat <<EOF | base64 -w0 [logging] level=TRACE EOF ) for role in master worker; do cat << EOF > "${SHARED_DIR}/manifest_${role}-networkmanager-configuration.yaml" apiVersion: machineconfiguration.openshift.io/v1 kind: MachineConfig metadata: ...
true
faec6f9a647352964e53115cc9200981a8ce1634
Shell
Branchout/branchout
/output/escape-text
UTF-8
229
3.40625
3
[]
no_license
#!/bin/bash for each in $(find output -name *.txt); do mkdir -p $(dirname "target/${each}") while IFS= read -r line; do echo -e "$line"; done < "$each" | sed -e "s,BASE_DIRECTORY,$(pwd)," > "target/${each%.txt}.output" done
true
d1ae43e4fc184b23c27e66aa2eec460254949fd7
Shell
Azintelecom/azcloud-apps
/modules/mariadb/main
UTF-8
497
2.84375
3
[]
no_license
#!/usr/bin/env bash azapps_databases_mariadb() { AZCLOUD_APPS_STORAGE="/var/lib/mysql" export AZCLOUD_APPS_STORAGE DB_PASS="$(_get_db_args)" export DB_PASS PROXY="$(get_proxy)" export PROXY set_proxy setup_app_storage 'mariadb' \ && stage_finished setup_app_storage setup_firewall_and_selinux...
true
95d234d489858f19826baf63bd992e140efc5ee7
Shell
cameronbracken/sites
/cb/files/swfit.sh
UTF-8
192
2.828125
3
[]
no_license
#!/bin/bash for file in pdf/*.pdf do base=$(basename $file .pdf) pdf2swf $file -o swf/$base.swf swfcombine -X 600 -Y 800 swf/rfxview.swf swf=swf/$base.swf -o swf/$base.swf done
true
96f553736d56b617c223a8848b7814913b1a2907
Shell
raphigaziano/.dotfiles
/scripts/getpkgs.sh
UTF-8
699
3.703125
4
[]
no_license
#! /bin/bash # # Automagically install the listed packages. # Update the package list below accordingly. # # Should run on any Debian-like system (needs apt-get) # # raphigaziano <r.gaziano@gmail.com> # Created: 05-22-2013 # ############################################################################## packages=( ...
true
ce7e7a9db1029ca6173a88d3f9cde51bc5cb5c89
Shell
jrjhealey/BadassBash
/BadassBash.sh
UTF-8
5,555
4.375
4
[]
no_license
#!/bin/bash # An all-singing, all-dancing example script to write pretty and versatile commandline scripts # A useful construct to control flow in the script (the script will exit if any processes within # fail or exit abnormally. set -eo pipefail # Make your output colorful! This checks to see that there is an activ...
true
4301ed932e3eab1d62ea32531b6dca716331c533
Shell
link-webcreations/moonlight-config
/autostart.sh
UTF-8
322
2.59375
3
[ "BSD-2-Clause" ]
permissive
#!/bin/bash # Start PC wakeonlan D4:3D:7E:4D:DD:13 # Wait until steam is reachable echo Connecting to the PC ... while ! nc -z -w5 192.168.1.221 47989 &>/dev/null; do :; done # Start Moonlight echo "PC available, starting moonlight" cd ~/git/moonlight-config moonlight -mapping xbox_one.map -60fps stream 192.168.1.22...
true
a966c90ed381306ec7ca0aebe1a15975c3c50b75
Shell
ahorn/benchmarks
/sw-hw/linux/tmp105_x86/get_result.sh
UTF-8
1,799
4.1875
4
[]
no_license
#!/bin/sh outputFolder=$1 if [ -z $1 ] then echo "Error: requires one parameter: $0 [Data folder]" exit fi if [ ! -d $outputFolder ]; then echo "ERROR: Folder $outputFolder doesn't exist." exit fi # Compute total runtime in average sum=0 size=`ls $outputFolder/data* | wc -l` tmpFile=bc_tmp.txt for f in `...
true
4a18a4bd6155d3572a80068bf8aed3684b92c142
Shell
hyleung/docker-multi-app
/start.sh
UTF-8
1,064
3.078125
3
[]
no_license
if [[ -z "$1" ]]; then echo -e "Usage: ./start.sh <repository prefix>" echo -e "\twhere 'repository prefix' is the bit before the slash." echo -e "\te.g../start.sh jsmith => start all your containers assuming they are named jsmith/<something>" else #Start the Redis cluster docker run -d -h redis_...
true
26a5db2e23d2c3d02ce430572d1acd76b8af5cf4
Shell
FauxFaux/debian-control
/s/solid-pop3d/solid-pop3d_0.15-30_amd64/prerm
UTF-8
327
3.25
3
[]
no_license
#!/bin/sh # pre-removal script for Solid POP3 set -e # Automatically added by dh_installinit/11.3.5 if [ -x "/etc/init.d/solid-pop3d" ] && [ "$1" = remove ]; then invoke-rc.d solid-pop3d stop || exit 1 fi # End automatically added section case "X$1" in Xupgrade|Xremove) update-inetd --disable pop3 ;; *) ;...
true
5873acffa9538383517c97f27cc61a5d56ea09d0
Shell
solutionDrive/docker-composer-container
/docker-test.sh
UTF-8
822
3.078125
3
[]
no_license
#!/usr/bin/env bash set -e ATTRIBUTES_TEMPLATE_FILE="tests/inspec/composer-container/attributes.yml.template" ATTRIBUTES_FILE="tests/inspec/composer-container/attributes.yml" cp ${ATTRIBUTES_TEMPLATE_FILE} ${ATTRIBUTES_FILE} printf '%s\n' ",s~{{ composer_version }}~${COMPOSER_VERSION}~g" w q | ed -s "${ATTRIBUTES_FIL...
true
67cc78526695aa82ce867547cf9d15c2ed5e81b1
Shell
ishine/kaldi_offline
/model_SAD_diarize_transcribe_v2.sh
UTF-8
5,704
2.515625
3
[]
no_license
#!/bin/bash AUDIODIR='/opt/aspire/audio' TRANSCRIPTDIR='/opt/aspire/transcripts' mkdir -p /opt/aspiretemp TEMPDIR='/opt/aspiretemp' paste <(ls $AUDIODIR/*.wav | xargs -n 1 basename | sed -e 's/\.wav$//') <(ls -d $AUDIODIR/*.wav) > $TEMPDIR/wav.scp && \ paste <(ls $AUDIODIR/*.wav | xargs -n 1 basename | sed -e 's/\.w...
true
2b935a29692bf24f0a4d01b5c97179721bb2d704
Shell
RakhithJK/Octopus-1
/Subsystem_WIN.sh
UTF-8
3,783
3.828125
4
[]
no_license
#!/bin/bash ######################################################################################################################################## # # This script is made for installing the dependencies necessary for Octopus for Windows systems which run Kali Linux from the subsystem. # # @Author : UnknowUser50 # # ...
true
0b96ef1bf706b2f887e504ba7dbbd92b0e4bca2f
Shell
Stale-1/V2ray
/domain.sh
UTF-8
291
2.765625
3
[]
no_license
#!/bin/bash clear echo "Enter your server hostname or domain" echo "" echo -e "Enter your response \c" read -r n case $n in $n) sed -i "s/stale_domain/$n/g" /root/v2ray.sh && clear sed -i "s/hostname/$n/g" /root/v2rayserver && cd /root && ./uuid.sh;; esac
true
8f7e936cfe9917050c02137b60213ec9626dacf9
Shell
nikotrone/Linux-Scripts
/newFedora_installation.sh
UTF-8
1,170
3.828125
4
[]
no_license
#!/bin/bash # In order to run the script needs the sudo password as the first argument in the command line # TODO: check that the password is provided #if[ $? ] echo -e "Welcome to your new Fedora environment!\\n" # Upgrading system echo -e "Upgrading the system\\t\\t" if [[ $("echo -e $0 | sudo -S dnf -y update | ...
true
ecdd6fb42684b4c5d2fcd795bf9b727c9b4c4a63
Shell
hezhaoqing/Shell
/YJ/history.sh
UTF-8
628
3.078125
3
[]
no_license
编辑/etc/profile文件,在文件末尾加入下面代码: [root@~ /]# vim /etc/profile history USER=`whoami` USER_IP=`who -u am i 2>/dev/null| awk '{print $NF}'|sed -e 's/[()]//g'` if [ "$USER_IP" = "" ]; then USER_IP=`hostname` fi if [ ! -d /var/log/history ]; then mkdir /var/log/history chmod 777 /var/log/history fi if [ ! -d /var/log/history/...
true
d677cb31c30ecde8f97c9aca9a01fcaa68ca12bf
Shell
delight09/gadgets
/filter/bilivideo_resource_filter.sh
UTF-8
1,899
3.734375
4
[ "MIT" ]
permissive
#!/bin/bash -- # Filter cURL commands of bilibili video webpage # return cURL commands with all slices from video resource # Filter keywords FILTER_SITE_METADATA="api.bilibili.com|data.bilibili.com|live.bilibili.com|cnzz.com|qq.com" FILTER_TYPE_METADATA=".css|.js|.png|.gif|.webp|.jpg" FILTER_CONTENT_METADATA=";base64|...
true
6df03bd259fd1220790ab9679f99e489957d8987
Shell
dmbursty/school
/3B/cs343/A3/test.sh
UTF-8
1,272
2.90625
3
[]
no_license
echo "Testing no arguments" ./tokenring 2> myout ./q1 2> out diff myout out echo "Testing too many arguments" ./tokenring 1 2 3 4 5 6 7 2> myout ./q1 1 2 3 4 5 6 7 2> out diff myout out echo "Testing bad input file" ./tokenring 1 xxxxxxx 2> myout ./q1 1 xxxxxxx 2> out diff myout out echo "Testing bad number of stati...
true
84d93f81a4413b132963d9abd33929334cf5affb
Shell
aditya21891/LearnBash
/shellscript/loop.sh
UTF-8
171
2.75
3
[]
no_license
# this shell script is top practise linux performance tuning #! /bin/bash while true do x=$((x+1)) /bin/pwd > /dev/null if [ $x -gt 50000 ] then exit fi done
true
5f24a7a0e62fbb64932e32d49b3ea4867cbade3a
Shell
sguermond/offerup
/django-python3-vagrant/vagrant_bootstrap.sh
UTF-8
1,098
3.40625
3
[]
no_license
#!/bin/bash # Install git for version control, pip for install python packages echo 'Installing git and python3-pip...' sudo apt-get -qq install git python3-pip > /dev/null 2>&1 # Install virtualenv / virtualenvwrapper echo 'Installing virtualenv and virtualenvwrapper...' pip3 install --quiet virtualenv pip3 install ...
true
8607ef011694df7754ce787982e5b58f1ce3b5dc
Shell
agladstein/AJ_ABC
/run_post_process.sh
UTF-8
1,069
3.359375
3
[]
no_license
#!/usr/bin/env bash IN_PATH=$1 OUT_PATH=$2 for MODEL in {1..3} do if (( ${MODEL}==1 )); then HEADER=header_M${MODEL}_222.txt else HEADER=header_M${MODEL}.txt fi for BUCKET in $(ls ${IN_PATH}/sim_values_AJ_M${MODEL}) do echo "python /vol_c/src/macsswig_simsaj/post_process.py...
true
e4935baf4fdc8bea7ccd5605b51dc2c596ef25f8
Shell
radanalyticsio/oshinko-s2i
/test/travis-help/travis-check-pods.sh
UTF-8
2,104
2.90625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash oc login -u system:admin oc project default while true; do V=$(oc get dc docker-registry --template='{{index .status "latestVersion"}}') P=$(oc get pod docker-registry-$V-deploy --template='{{index .status "phase"}}') if [ "$?" -eq 0 ]; then echo phase is $P for docker-registry deploy ...
true
dd4781248329bb31c2edcad98822fc08d9e7658c
Shell
ekumenlabs/roscpp_android
/get_ros_stuff.sh
UTF-8
749
3.640625
4
[]
no_license
#!/bin/bash # Abort script on any failures set -e my_loc="$(cd "$(dirname $0)" && pwd)" source $my_loc/config.sh source $my_loc/utils.sh if [ $# != 1 ] || [ $1 == '-h' ] || [ $1 == '--help' ]; then echo "Usage: $0 prefix_path" echo " example: $0 /home/user/my_workspace" exit 1 fi cmd_exists git || die ...
true
c6b3b4af6c77ecd57ab8663be0d4938564698cf4
Shell
googledatalab/datalab
/containers/gateway/prepare.sh
UTF-8
1,586
3.53125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash -e # Copyright 2015 Google Inc. All rights reserved. # # 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 applica...
true
50072ed14e3adb608c1e2af142df6b4c982be85b
Shell
GauravWalia19/TETRIS
/conf/release.bash
UTF-8
693
2.734375
3
[ "MIT" ]
permissive
#!bin/bash # this script is used for releasing new tetris jar file for use cd ../build # move to build directory for application build bash build.bash # build the whole application cd ../bin ...
true
9728964887a6c7b3c717d88d00a03e50c0d91e96
Shell
waldirio/errata_report
/errata_report.sh
UTF-8
1,169
3.671875
4
[]
no_license
#!/bin/bash # Waldirio M Pinheiro <waldirio@gmail.com> / <waldirio@redhat.com> # Some variables FULL_LIST="/tmp/full_list.log" FULL_PARSED_LIST="/tmp/full_list_parsed.log" ERRATA_CH="/tmp/errata_ch.log" # Zeroing all the files >$FULL_LIST >$FULL_PARSED_LIST >$ERRATA_CH # Script to generate a complete Errata Report...
true
b9c62c2692d1f4e20ea5d1ae23353c7bfa54680b
Shell
ComplianceAsCode/content
/linux_os/guide/system/network/network-ipv6/disabling_ipv6/grub2_ipv6_disable_argument/tests/wrong_value_etcdefaultgrub_recovery_disabled.fail.sh
UTF-8
1,022
3.296875
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash # platform = Red Hat Enterprise Linux 7 # Break the ipv6.disable argument in kernel command line in /etc/default/grub if grep -q '^GRUB_CMDLINE_LINUX_DEFAULT=.*ipv6\.disable=.*"' '/etc/default/grub' ; then # modify the GRUB command-line if an ipv6.disable= arg already exists sed -i 's/\(^GRUB_CMDLINE_LI...
true
e4b3b53a3d75a26e8bc0b26c6bf7d431d3189b4e
Shell
pengdan01/spider
/crawler/crawler2/general_crawler/tools/deploy_crawler/deploy_scheduler.sh
UTF-8
784
2.875
3
[]
no_license
#!/bin/bash # 本脚本生成 scheduler 运行时目录. # 注意: 有两个符号链接 # 1. data/bin_index_model: 指向 ../../../dict/bin_index_model # 2. web: 指向 ../../../dict/web rm -rf scheduler # bin mkdir -p scheduler/bin && cp /home/pengdan/workplace/wly/.build/opt/targets/crawler2/general_crawler/scheduler scheduler/bin/ # shell mkdir -p schedule...
true
a12a55f2c846ac9f16e7e8855aff71bc24a994b4
Shell
ppassion/myShell
/bin/all-check.sh
UTF-8
904
3.578125
4
[]
no_license
#!/bin/bash ### # @Author : chyh # @Date : 2021-04-07 22:03:20 # @LastEditTime : 2021-04-23 22:27:36 # @Description : 调用其他脚本,检查所有组件的启动情况 ### # hadoop ./hadoop/hadoop-check.sh >/dev/null hadoop_result=$? #zookeeper ./zookeeper/zookeeper-check.sh > /dev/null zookeeper_result=$? #mysql ./mysql/mysql-che...
true
52a1583184be24c85d0ad553b31f52ecb40619ff
Shell
STAMP-project/evosuite-runner
/pitest/scripts/bash/parsing.sh
UTF-8
1,476
3.515625
4
[]
no_license
## inputs pid=$1 execution_id=$2 project=$3 classPaths=$4 outDir=$5 target_class=$6 sourceDirs=$7 mutableCPs=$8 logFile="$9" resultDir="${10}" outDir="${11}" ## ## wait for the process to finish while kill -0 "$pid"; do sleep 1 done exists=$(python pitest/scripts/python/exists_in_file.py "$logFile" "did not pass...
true
9926635748ae78573127d4e187a07eef603297d4
Shell
amezin/zdotdir
/zprofile.d/50prezto.zsh
UTF-8
253
2.734375
3
[]
no_license
# # Executes commands at login pre-zshrc. # # Authors: # Sorin Ionescu <sorin.ionescu@gmail.com> # # # Language # if [[ -z "$LANG" ]]; then export LANG='en_US.UTF-8' fi # # Paths # # Ensure path arrays do not contain duplicates. typeset -gU cdpath fpath mailpath path
true
3d644125cc6f7f6930b689bb71753ce44114c886
Shell
NaokiMizutani/FirewallSetting
/dns_a.sh
UTF-8
565
3.671875
4
[]
no_license
#!/bin/sh HOST=$1 NEST=$2 # DNSレコードを取得します DNS=$(dig a $HOST | grep "^$1") if [ "$DNS" = "" ] ; then [ $NEST -eq 1 ] && echo "[$HOST] DNS does not exist!" exit fi # DNSレコードからipsetのTRUST-LISTにエントリを追加します IFS_BACKUP=$IFS IFS=$'\n' for LINE in $(echo "$DNS" | sed "s/[[:blank:]]\+/ /g"); do TYPE=$(echo $LINE | cut -d "...
true
61c639ff6a848c689ab0785df6dfd713e19da5cf
Shell
sagravat/gistic-x
/average.sh
UTF-8
144
2.8125
3
[]
no_license
#!/bin/sh total=18743 for i in {1..22} do count=`cut -d"," -f2 same_corr.csv | sort | grep "^${i}$" | wc -l` echo "$count/$total" done
true
cc7550675e70eedec786e33b47a4242b208fc3ad
Shell
ballestr/play_vagrant
/netbox_demo/bootstrap_common.sh
UTF-8
5,736
3.796875
4
[]
no_license
#!/usr/bin/env bash ## original from https://github.com/ryanmerolle/netbox-vagrant ## Port to Centos7, sergio.ballestrero@protonmail.com, January 2018 PATH=$PATH:/usr/local/bin/ NETBOX_BRANCH=master if [ -e /etc/redhat-release ] ; then ## Assume Centos7 OS=Centos7 CFG="/tmp/netbox-vagrant/config_files_$OS" ## for...
true
69be6cb0ddd2dcd6f3da98a27c45ccc71fae5e20
Shell
levasc/docker-icinga2
/install.sh
UTF-8
5,526
2.65625
3
[ "MIT" ]
permissive
#!/bin/sh export DEBIAN_FRONTEND=noninteractive #Initial install apt update apt upgrade -y apt-get install -y --no-install-recommends apache2 ca-certificates curl dnsutils gnupg locales lsb-release mailutils mariadb-client mariadb-server php-curl php-ldap php-mysql procps pwgen supervisor unzip wget libdbd-mysql-perl...
true
0da1c7c2734c214e264050bc8503f9180630b531
Shell
rafaqz/.dotfiles
/bin/mdinit
UTF-8
935
4.15625
4
[]
no_license
#!/bin/bash # Copy startup markdown files and rename as the current dir name. set -e yaml=~/Uni/Templates/yaml.md template=~/Uni/Templates/template.md rsetup=~/Uni/Templates/r_setup.rmd makefile=~/Uni/Templates/Makefile # Filetype is set in first argument filetype=${1:-md} # Repo is the present working directory repo...
true