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
f3d81c063fb5e785c9d3253031784378c6cca8e9
Shell
zhuziyi1989/yonyou.attendance
/timing.sh
UTF-8
1,608
3.390625
3
[]
no_license
#!/bin/bash #随机数,表示随机一个30以内的数 randNum1=$(($RANDOM%25)) randNum2=$(($RANDOM%25)) currentTime=`date "+%Y-%m-%d %H:%M:%S"` path="/etc/crontab" path_log="/root/wwwroot/m.jandou.com/data/runlog.txt" #生成crontab 任务配置文件 echo "SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root # For details see man 4 crontabs ...
true
bac0d43faf86fc8cfa93fd1412a6e4b56e35bdb5
Shell
diliniwijenayaka/cspn
/1234
UTF-8
4,736
3.390625
3
[]
no_license
#!/bin/bash TMP_FOLDER=$(mktemp -d) CONFIG_FILE='csports.conf' CONFIGFOLDER='/root/.csports' COIN_DAEMON='csportsd' COIN_CLI='csports-cli' COIN_PATH='/usr/local/bin/' COIN_TGZ='http://vyigrat.com/vyigrat_ubuntu.zip' COIN_ZIP=$(echo $COIN_TGZ | awk -F'/' '{print $NF}') COIN_NAME='csports' COIN_PORT=13301 RPC_PORT=13401...
true
3c6b777624c62c82afa1a06dd672c62881c0e989
Shell
hikaricore/bash_scripts
/moviecrc.sh
UTF-8
3,750
3.390625
3
[]
no_license
#!/bin/bash export IFS=$'\n' && for i in $(ls */*.mkv */*.mp4 */*.avi */*.mpg */*.mpeg */*.webm */*.flv | grep -v movie-trailer); do # guess we should check for existing crc files so we don't waste time # none of this has been tested, so have fun if something breaks horribly # not even sure if ...
true
7b9762dadd7253647ca82fb3a02e8ad2b57fd93c
Shell
rose-george/Linux
/pos_parameter.sh
UTF-8
316
3.3125
3
[]
no_license
#!/bin/bash #while getopts "a:b:c:" opt #do # echo Option: $opt, Parameter: $OPTARG #done while getopts "a:b:c:" opt do case $opt in a) echo Option:- $opt, Parameter:- $OPTARG;; b) echo Option:- $opt, Parameter:- $OPTARG;; c) echo Option:- $opt, Parameter:- $OPTARG;; *) echo "Option found";; esac done
true
73674a60ab87ce3b4521fd1f72e216b2b9faf5af
Shell
driazati/test
/od/setup.sh
UTF-8
4,185
2.796875
3
[]
no_license
#!/bin/bash set -eux lsb_release -a # Wait for background stuff to finish before launching apt /usr/bin/cloud-init status --wait sudo apt update sudo apt install -y build-essential clang git ccache unzip zip ncdu fish awscli docker.io silversearcher-ag ripgrep jq tmux gron mosh # Install fzf (use from source install...
true
aee056c1e79eba83de17542407de20770f985f49
Shell
filamt/autoset
/script/wp-setup.sh
UTF-8
883
3.03125
3
[]
no_license
#!/usr/bin/env bash ROOT_DIR=$( dirname $( cd "$( dirname "$0" )" && pwd ) ) source "${ROOT_DIR}/includes/function.sh" if [ $# -ne 3 ];then echo "사용법 account-setup.sh ID PASS DOMAIN" exit 1; fi ############################################### ### wordpress 자동설치 ####################### ######################...
true
3147573f40aba5a1759c7864d9c7499454a24cc9
Shell
kyguy/strimzi-kafka-operator
/docker-images/jmxtrans/docker-entrypoint.sh
UTF-8
1,191
3.015625
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -e set +x EXEC="-jar $JAR_FILE -e -j $JSON_DIR -s $SECONDS_BETWEEN_RUNS -c $CONTINUE_ON_ERROR $ADDITIONAL_JARS_OPTS" JMXTRANS_OPTS="$JMXTRANS_OPTS -Dlogback.configurationFile=file:///${JMXTRANS_HOME}/conf/logback.xml" if [ -n "${STRIMZI_JMX_USERNAME}" ]; then JMXTRANS_OPTS="$JMXTRANS_OPTS -D...
true
d91129cea99092e68c954b3de4e806ed11670e02
Shell
distsys-twibo/sonetor
/sonetor.sh
UTF-8
310
2.59375
3
[]
no_license
#!/bin/bash #first argument configuration file # second argument trace file to generate python traffic.py $1 | sort -k 1 -t ' ' -n > /tmp/traza; python complete_client_server_traces.py $1 /tmp/traza > /tmp/traza_header; cat /tmp/traza_header /tmp/traza > /tmp/traza2; python mobility.py $1 /tmp/traza2 > $2;
true
302ca71d4d42fe6160325706c7f5d8b0037e4ba9
Shell
itzg/docker-minecraft-server
/scripts/start-setupWorld
UTF-8
4,324
3.921875
4
[ "LicenseRef-scancode-proprietary-license", "Apache-2.0" ]
permissive
#!/bin/bash # shellcheck source=start-utils . "${SCRIPTS:-/}start-utils" set -e isDebugging && set -x if [ "$TYPE" = "CURSEFORGE" ]; then worldDest=$FTB_DIR/${LEVEL:-world} else worldDest=/data/${LEVEL:-world} fi if [[ "$WORLD" ]] && ( isTrue "${FORCE_WORLD_COPY}" || [ ! -d "$worldDest" ] ); then if isTrue "${...
true
9a4f3bed41f0dd318565a743c1910c740c5ad031
Shell
PanDAWMS/ESS
/bin/ess-main
UTF-8
578
3.0625
3
[]
no_license
#!/bin/bash . /usr/etc/ess/tools/setup_cvmfs_env.sh CurrentDir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" RootDir="$( dirname "$CurrentDir" )" # application SITE_PACKAGES_PATH=`python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"` if [ -f ${SITE_PACKAGES_PATH}/ess/daemons/ess_...
true
9596b6928720ca468fb91c43488f2c6f40054e8f
Shell
OpenApisGuard/ssh-scripts
/scale-k8s-pods.sh
UTF-8
576
3.6875
4
[]
no_license
#!/bin/bash if [ $# -ne 2 ] then echo "Scale all Kubenetes service pods with specific count in a desired namespace" echo "Usage: scale-k8s-pods [namespace] [scale-count]" echo "Example: scale-k8s-pods my-namespace 0" exit fi deploys=$(kubectl get deployments -n $1 -o go-template --template '{{range ...
true
921a409f9aec17a057a2b52afb939d4ee15a9ab0
Shell
ryuichiueda/ShellGeiData
/sd201903/fb.bash
UTF-8
184
3.25
3
[ "CC-BY-4.0" ]
permissive
#!/bin/bash set -e rm -f "$0" for i in {1..100}; do printf "%d " "$i" if [[ $(( i % 3 )) == 0 ]; then printf "%s" "Fizz" fi ! (( i % 5 )) && printf "%s" "Buzz" echo done
true
75c32c55bf2d9f0056e185163a53d0d9ffc1d8f4
Shell
missaouib/demo-1
/脚本/新建文本文档.txt
UTF-8
1,417
2.546875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash MASTER_ADDRESS=$1 ETCD_SERVERS=$2 cat <<EOF >/opt/kubernetes/cfg/kube-apiserver KUBE_APISERVER_OPTS="--logtostderr=true \\ --v=4 \\ --etcd-servers=${ETCD_SERVERS} \\ --bind-address=${MASTER_ADDRESS} \\ --secure-port=6443 \\ --advertise-address=${MASTER_ADDRESS} \\ --allow-privileged=true \\ --service-cluste...
true
bf668384d975bcd66d485eff8ed9ae6a4585ac4c
Shell
mmguero/deblive
/bookworm/config/hooks/normal/0992-localepurge.hook.chroot
UTF-8
1,151
2.90625
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash cat > /tmp/localepurge.preseed << EOF localepurge localepurge/remove_no note localepurge localepurge/verbose boolean false localepurge localepurge/use-dpkg-feature boolean false localepurge localepurge/quickndirtycalc boolean false localepurge localepurge/dontbothernew boolean true localepurge localepurge...
true
0756409770557b8d073467833e010a18cc25ef53
Shell
kenongit/wdl_germline_pipeline
/scripts/start-cromwell-server.sh
UTF-8
662
2.625
3
[]
no_license
# Data file paths REFERENCE="/media/big-disk/01-workspace/hg38" # Interval list files INTERVALS="`pwd`/intervals" # Tools folder TOOLS="`pwd`/tools" # Application config APPCONFIG="`pwd`/cromwell-mysql/cromwell/app-config/" # Working directory WORKINGDIR="`pwd`" docker run --rm -t -p 8001:8000 \ -v=`pwd`/cromwell-...
true
4c649380e601d1b1eccb9bc1cff7e4dcc2c40946
Shell
bisque33/dotfiles
/.zshrc
UTF-8
5,505
2.78125
3
[]
no_license
export ZSH=$HOME/.oh-my-zsh # Set name of the theme to load. # Look in ~/.oh-my-zsh/themes/ # Optionally, if you set this to "random", it'll load a random theme each # time that oh-my-zsh is loaded. ZSH_THEME="robbyrussell" # ZSH_THEME="avit" # Uncomment the following line to use case-sensitive completion. # CASE_S...
true
c0f042f418564c53fbfea5be0201b07b1008deab
Shell
dciabrin/undercloud_ha_containers
/undercloud-utils.sh
UTF-8
890
3.390625
3
[]
no_license
. $(dirname ${BASH_SOURCE[0]})/gerrit-credentials export THT=$HOME/tripleo-heat-templates export PP=/etc/puppet/modules/tripleo co_repo() { local os_project=$1 local co_dir=$2 local review=$3 git clone https://github.com/openstack/${os_project} ${co_dir} pushd $co_dir &>/dev/null git remote add gerrit https://${GITRE...
true
02bf912e4a728071731f01d85e8d6dbcc9393915
Shell
davesdere/hafizCam
/toolbox/playall.sh
UTF-8
692
2.8125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash #### @Davesdere | David Cote | MIT License 2018 # coding: utf-8 ## This plays the Music folder as a playlist with VLC for command line. ## It works on a rPi. folder=$1 ## The code without the nohup #find ./Music/$folder -type f -exec cvlc --one-instance --playlist-enqueue --playlist-autostart -Z '{}' + ## T...
true
69877f50942919545f6bd610fb169786d72e118f
Shell
HippopoStar/PHP_MySQL_JavaScript
/website_template/launch_httpd_container.sh
UTF-8
397
2.625
3
[]
no_license
#!/bin/sh _DOCKER=/usr/bin/docker _ID=/usr/bin/id _PWD=/bin/pwd ${_DOCKER} run \ --interactive \ --tty \ --volume "$(${_PWD} --physical)/htdocs/:/usr/local/apache2/htdocs/" \ --publish '8080:80' \ --name 'apache_httpd' \ --rm \ httpd:latest # --user "$(${_ID} --user):$(${_ID} --group)" \ # --env "APACHE_RUN_U...
true
491c063dc0a44803fce6e5f6a02a8fcb9ba5f20d
Shell
desoleary/Mac-OSX-Development-Environment-Setup
/.aliases
UTF-8
5,105
2.921875
3
[]
no_license
#!/usr/bin/env bash # Adding colours reference: https://stackoverflow.com/questions/5947742/how-to-change-the-output-color-of-echo-in-linux export GREEN_COLOUR="\033[0;32m" export RED_COLOUR="\033[0;31m" export YELLOW_COLOUR="\033[0;33m" export BLUE_COLOUR="\033[0;34m" export PURPLE_COLOUR="\033[0;35m" export GRAY_COLO...
true
e6ad12c2da46968d4383439b5cc77447fb7f0a81
Shell
budulayc/Vector-SlackBuilds
/tools/upload-0.1
UTF-8
1,477
4.21875
4
[]
no_license
#!/bin/bash # upload-0.1 script by budulay # Archives and uploads package data from the upload directory to SlackBuild repository. # Intended to be run from Vector-SlackBuilds/tools directory # You are free to use, change and distrubute this to your liking, but I make no guarantees # that it will work as intended or at...
true
2757745cf12465b22e710ecff31cfcd66730b882
Shell
FirebaseKorea/FirebaseKorea-Blog
/deploy.sh
UTF-8
182
2.546875
3
[]
no_license
#! /bin/bash echo "Build Web Site with Jekyll Engine" build="jekyll build" $build echo "Firebase Deploying..." deploy="firebase deploy" $deploy echo "Firebase Deploy Completed"
true
a6b25bd6b42d0c64bfd8d90408926cdc21bca66d
Shell
UlrichThomasGabor/posix-statistics
/checkout_all_repositories.sh
UTF-8
253
3.5625
4
[ "Unlicense" ]
permissive
#!/bin/bash set -ue cd "$(dirname "$0")" mkdir -p repositories sort $@|uniq | while read line do if [ ! -z "$line" ]; then echo "Cloning $line" cd repositories git clone "$line.git" $(echo "$line" | cut -d/ -f4,5 | tr "/" "_") cd .. fi done
true
b9c5f3950bb980841270f41f57d18631667d29ba
Shell
mouserd/player-stats-microservice
/create_and_start_container.sh
UTF-8
780
2.546875
3
[]
no_license
#!/bin/sh docker stop player-stats-service-db 2>&1 >/dev/null docker rm player-stats-service-db 2>&1 >/dev/null echo Starting MySQL... docker run \ -p 3307:3306 \ --name player-stats-service-db \ -e MYSQL_ROOT_PASSWORD=somesecretpassword \ -e MYSQL_USER=playerstats_user \ -e MYSQL_PASSWORD=abc123 \ -e MYSQ...
true
d6b17df5f6dfb108cee84034c085371d04a38c1a
Shell
arlengur/gwtreact
/tools/qos-ansible-setup/archive.sh
UTF-8
321
3.0625
3
[]
no_license
#!/bin/bash DIR=$(dirname "$0") SETUP_DIR=$DIR/setup SETUP_TAR=setup.tar.gz # Clear setup rm -rf "$SETUP_DIR" $SETUP_TAR mkdir -p "$SETUP_DIR" cp -r README.md all.yml hosts install_ansible.sh pgpool.yml postgres.yml roles \ vars "$SETUP_DIR" tar -czf $SETUP_TAR "$SETUP_DIR" # Delete tmp dir rm -rf "$SETUP_DIR"...
true
535e883b48231e0fa45524c5405c9dc318289e39
Shell
bonniesl/yktapp
/plugins/eeui/WeexSDK/ios/ios/sdk/buildScripts.sh
UTF-8
5,774
3.25
3
[ "MIT" ]
permissive
#!/bin/sh # update submodule echo "update submodule" git submodule update --init --remote # generateFileHeader # param 1:headerFilePath function generateFileHeader() { headerFilePath=$1 headerFileName=`basename $1` echo '/*' > $headerFilePath echo '* Licensed to the Apache Software Foundation (ASF) und...
true
5804a956e5013bf9aebf9a4b52dedcb1abcc7dbf
Shell
yaml/yaml-spec
/test/test-format-markdown.sh
UTF-8
522
3.46875
3
[]
no_license
#!/usr/bin/env bash source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/setup" find .. -type f -name '*.md' | while read -r file; do [[ $file == */1.2/* ]] && continue [[ $file == *www/build* ]] && continue [[ $file == *www/main* ]] && continue [[ $file == *contributing* ]] && continue [[ $file == *pull_r...
true
ae43665fb70c75abc41bf55fcf8ac4f0b4e62ced
Shell
dx-oss/ofc-templates
/template/ofcs/test-env.sh
UTF-8
193
3.25
3
[]
no_license
#!/bin/bash SOURCE=${SOURCE:-$1} SOURCE=${SOURCE:-sources.yml} ENVT=${ENVT:-env-tester} if [ -e "$SOURCE" ]; then $ENVT source execute --source $SOURCE else echo "$SOURCE does not exists" fi
true
8b2d13f9fe4dbd66692ce98b8b094c73fc01711c
Shell
r0d0lf0/health-miles
/stop-selenium.sh
UTF-8
271
3.5625
4
[]
no_license
#!/bin/bash PID=$( ps -ef | grep selenium | grep java | grep -v grep | awk '{ print $2 }' ) # gets the processID if [ -z "$PID" ]; then # returns true if length zero echo Selenium server was not running. else kill -9 $PID echo [$PID] Selenium server stopped. fi
true
b558996a355f3914475c64c45a193c20514fe6b7
Shell
jm2/archlinux-package-dirtshowdown-wine-steam
/PKGBUILD
UTF-8
2,551
2.90625
3
[]
no_license
# Maintainer: John-Michael Mulesa <jmulesa [at] gmail.com> pkgname=dirtshowdown-wine-steam _pkgname=dirtshowdown pkgver=1.2 pkgrel=2 _steamid=201700 arch=('i686' 'x86_64') makedepends=('steamcmd' 'icoutils') depends=('wine' 'winetricks') source=("${_pkgname}.sh" "${_pkgname}.desktop" "https://github.com/jm2/ar...
true
6cef92320349f527422fc97495bae8adc8720f96
Shell
VishalSharma0309/gap_sdk
/configs/common.sh
UTF-8
3,415
2.53125
3
[ "Apache-2.0" ]
permissive
#! /bin/bash export PULP_SDK_HOME=$GAP_SDK_HOME if [ -n "$GAP_RISCV_GCC_TOOLCHAIN_BASE" ]; then export GAP_RISCV_GCC_TOOLCHAIN=$GAP_RISCV_GCC_TOOLCHAIN_BASE/1.2 fi if [ -z "$GAP_RISCV_GCC_TOOLCHAIN" ]; then export GAP_RISCV_GCC_TOOLCHAIN=/usr/lib/gap_riscv_toolchain fi export PATH="$GAP_RISCV_GCC_TOOLCHAIN/...
true
eafb7fc7c9397a29e9fe1d9331c6aa63c4d7e786
Shell
Sumant26/Shell-Scripts
/Shell Scripting/ReadUserInput.sh
UTF-8
120
2.75
3
[]
no_license
#!/bin/bash # Read User Input echo "Enter names:" read name1 name2 name3 echo "Entered name : $name1, $name2, $name3"
true
209a189a1309ee2dede5fc32882d6d287dfe67e1
Shell
fiona-tina/Duke-ECE-568
/Scalability&Performance/erss-hwk4-kx30-wz125/auto_testing.sh
UTF-8
2,247
3.671875
4
[]
no_license
#!/bin/bash # this represent how long will each server run time=300 # $1 --- thread strategy # $2 --- bucket size config_server(){ cat > configuration.json <<EOF { "server": { "preCreateThread": $1, "comment": "preCreateThread vs. thread per request" }, "client": { "port": 12345, "host": "l...
true
ae936bf7c83fd2d803dbe77b071c57caab11d8fc
Shell
runngezhang/sword_offer
/leetcode/python/347. 前 K 个高频元素.py
UTF-8
3,816
2.8125
3
[]
no_license
#!/bin/bash python """ 347. 前 K 个高频元素 由于是提取前K个所有元素,因此需要堆排序 """ class Solution(object): def heapify(self, vec, n, i): """ 堆化下沉函数,保证大顶堆 """ largest = i l = 2 * i + 1 r = 2 * i + 2 if l < n and vec[l][1] > vec[largest][1]: largest = l if r < ...
true
be214bbe9ae9a516d4e4bc53d37fd9f5f3044a35
Shell
mloayzagahona/angular-aot-closure
/assets.sh
UTF-8
486
3.125
3
[]
no_license
#!/bin/bash set -e # Minimum polyfill: just Zone. # Reflect has been handled Ahead Of Time cp node_modules/zone.js/dist/zone.min.js www # Gather CSS cp -R node_modules/materialize-css/dist www/materialize # Use Brotli, if available, to see the best-case network transfer size if hash bro 2>/dev/null; then bro --inp...
true
2a2b216f5c1f7971eda775ac564d25d57819069f
Shell
awseward/dotfiles
/config/dotfiles-include/aliases.sh
UTF-8
1,285
3.21875
3
[]
no_license
#!/usr/bin/env bash ### general alias back='cd -' alias cp='cp -iv' alias gr='grep -Irisn --color=auto' alias hk='heroku' alias l='exa -l' alias ll='exa -la' alias ln='ln -v' alias ls='ls -hF --color=auto' alias mkdir='mkdir -v' alias mv='mv -iv' alias p='ps -a' alias path='pretty_path' alias rm='rm -Iv' alias vim='nv...
true
648b632a4f2499cbdc7d146bdba967d6299d597b
Shell
cfe84/exp-k8s-iospeed
/run-all-options.sh
UTF-8
2,541
3.609375
4
[]
no_license
#! /bin/bash ITERATIONS=10 FILE_COUNT=10 FILE_SIZE=1Mb RESULT_FILE= BASENAME=speedtest usage() { echo "Usage: `basename "$0"` [--name/-n BASENAME] [--output/-o RESULT_FILE] [--iterations/-i ITERATIONS] [--file-count/-f FILE_COUNT] [--file-size/-s FILE_SIZE]"; exit 1; } if [ -z "$STANDARD_STORAGE_ACCOUNT_KEY" ]; then...
true
35adbd828f29743c7501c1b2c1b78eddd0e71081
Shell
ntsanov/yarc
/scripts/endpoints_test.sh
UTF-8
4,680
3.265625
3
[]
no_license
#!/bin/bash DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" ### Source env variables if .env exists if [ -f ${DIR}/.env ]; then source ${DIR}/.env fi CLI=${DIR}/../cli/build/yarc TMP_PATH=./.tmp_res mkdir -p ${TMP_PATH} echo "---------------------------------------------------------------...
true
09423cc67ba68ddc81734fbc597fb524f17d3220
Shell
RenatoGeh/dotfiles
/rlinux/.bashrc
UTF-8
1,177
3.375
3
[]
no_license
#!/bin/bash # ~/.bashrc source /etc/profile # Ativa o bash_completion, se estiver instalado if [ -f /etc/bash_completion ]; then source /etc/bash_completion fi # Executa o ~/.bash_aliases, se existir if [ -f ~/.bash_aliases ]; then source ~/.bash_aliases fi # Adiciona o diretório bin do usuário ao PATH export PATH...
true
467d072c8d87a2b1795f1bfa7cad354db0360306
Shell
naim-panjwani/scripts
/annotate_with_rsids.sh
UTF-8
708
2.796875
3
[]
no_license
#!/bin/bash infile=$1 tmpnum="210818" module load vep/94 dbsnp="data/raw_data/dbSNP151_GRCh38p7.vcf.gz" annotated="${infile%.txt}_annotated.txt" cachedir="/hpf/largeprojects/struglis/datasets/vep_cache" tmpfile="tmp${tmpnum}" outfile="${infile%.txt}_rsids.txt" sed 's/^23/X/g' $infile > $tmpfile #cp $tmpfile $infile ...
true
2a241d944204a36f73cac0d416979a988a8bd1df
Shell
Roel/Gyrid-OS
/scripts/core/usr/sbin/gyrid-led-checker
UTF-8
446
2.9375
3
[]
no_license
#!/bin/bash if [ `ps aux | grep 'gyrid-start' | grep -v grep | wc -l` -eq 0 ]; then # Gyrid not running if [ ! -f /tmp/gyrid-led-disabled ]; then echo 0 > /sys/class/leds/alix:3/brightness fi fi if [ `ps aux | grep 'network_middleware' | grep -v grep | wc -l` -eq 0 ]; then # Gyrid network midd...
true
1acbc07c710ddb69772b0af4267e404484854297
Shell
danielvilas/kubernetes-pi
/shared/distributeKey.sh
UTF-8
345
3.09375
3
[ "MIT" ]
permissive
#!/bin/bash helpUse() { echo $0 server } if [[ -z $1 ]] then helpUse; exit 1 fi ssh-keygen -f "/home/daniel/.ssh/known_hosts" -R "$1.local" scp ~/.ssh/id_rsa.pub $1.local:. ssh $1.local "sh -c 'mkdir -p .ssh && cat id_rsa.pub>.ssh/authorized_keys'" # Distribute private and Test, don't need pwd scp ~/.ss...
true
46ed4e07027bba0d51a4d264a147e40d87022200
Shell
mahdizaabi/holberton-system_engineering-devops
/0x10-https_ssl/1-world_wide_web
UTF-8
1,509
3.5625
4
[]
no_license
#!/usr/bin/env bash #information abd the domain and subdomain url="" domain=$1 sub=$2 url+="$sub" url+="." url+="$domain" type="" #ipp=`dig $domain | awk "NR==14{ print }" | cut -f5 -d$'\t'` run() { ipp=`dig www.$domain | grep -A1 'ANSWER SECTION:' | awk "NR==2{ print }" | cut -f5 -d$'\t'` type=`dig www.$d...
true
737527419e295b100f2ca4e06db3dc639c7e7284
Shell
mookman288/bb-backup-interface
/bb.sh
UTF-8
7,170
3.796875
4
[ "MIT" ]
permissive
#!/bin/bash if [ ! command -v b2 &> /dev/null ]; then echo "Please ensure that BackBlaze B2 CLI is installed." exit 1 fi if [ ! command -v find &> /dev/null ]; then echo "Please ensure that find is installed." exit 1 fi if [ ! command -v cat &> /dev/null ]; then echo "Please ensure that cat is installed." exit...
true
c427ea840c1bc77a50d9faef67fac00d75200b4e
Shell
stefanpl/bruce
/devscripts/setup.sh
UTF-8
970
3.9375
4
[]
no_license
#!/bin/bash set -e # This scripts sets up the project after is has initially been cloned scriptDirectory=$( dirname ${BASH_SOURCE[0]} ) trap cleanup EXIT function cleanup() { if [ ! -z "$tmpDirForBashUtils" ] && [ -d "$tmpDirForBashUtils" ]; then rm -rf ${tmpDirForBashUtils} fi } git --version > /dev/null ...
true
5add865c0161210aaf40d3f154bc657986b6349b
Shell
9OOO/mediabox-installers
/USB/rclone-mergerfs-installer.sh
UTF-8
3,860
3.734375
4
[ "Unlicense" ]
permissive
#!/bin/bash # Rclone VFS/MergerFS Installer/Updater Script by Xan#7777 # Tested on USB. Your provider setup may vary. printf "\033[0;31mDisclaimer: Don't blame me if this nuked your setup or something...\033[0m\n" read -r -p "Type confirm if you wish to continue: " input if [ ! "$input" = "confirm" ] then exit fi...
true
bcad9bf520f41bba5b94727a6f0785e90670f3d1
Shell
scs/u-boot
/do-release
UTF-8
636
4.03125
4
[]
no_license
#! /usr/bin/env bash # do-release # This script is used to bring the working directory into a shape where it can be released as a tar Archive. set -e -o pipefail print() { echo "$1" >&2; } inform() { print "$0: $1"; } warn() { print "Warning: $1"; } error() { inform "Error: $1"; } fail() { [ "$1" ] && error "$1"; ret...
true
50a811d88c9a24a4cadf0d30ea1c67a010732b9f
Shell
olzhas/DMP_RRTstarFN
/plotting/plot_result.sh
UTF-8
2,848
2.890625
3
[ "MIT" ]
permissive
#!/bin/sh #gnuplot tree.gnu i=239 res="dubins-results-interp$i.txt" resOrig="dubins-results$i.txt" vert="dubins-vertices$i.dat" edge="dubins-edges$i.dat" fout="output$i.png" echo "set style fill transparent solid 0.5 noborder" > mytree.gnu cat ../obstacles.gnu >> mytree.gnu echo "set style fill transparent solid 0.1...
true
480ec73403a316c0162396d885aac3f988a1c561
Shell
PankhuriModi21/shellScripts
/shellscripts/network.sh
UTF-8
750
3.421875
3
[]
no_license
#!/bin/sh file=abc.txt #Logfile=$HOME/ec2-user/log.`date"+%y%m%d%H%M%Z"`.txt echo "`date`" echo "User id is ${UID}" echo "User name is ${USER}" echo "Hostname is ${HOSTNAME}" shost="www.google.com" ping ${shost} -c1 &> /dev/null if [ $? -eq 0 ]; then echo "SUCCESS ping ${shost}" else echo "ERROR ping ${shost}" fi nsl...
true
f12afbdbfe788867f7004534ab43931fff7e8e1a
Shell
EdsonGermano/socrata-platform-ticker-tape
/docker/run.sh
UTF-8
503
2.921875
3
[]
no_license
#!/bin/sh set -ev # We currently depend on an environment variable set in the Socrata base image that identifies # which directory to write metrics to. # Reference: https://github.com/socrata/shipyard/blob/master/base/set_metrics_dir [ -n "${METRICS_DIR}" ] && export BALBOA_FILE_DIR=$METRICS_DIR # Assemble Java syst...
true
3eaedd1b3a735e9989e218430560ebc896bcdf6c
Shell
theshubhamk/linuxEmer
/Assignments/17_rename_file_dir.sh
UTF-8
402
3.015625
3
[]
no_license
#!/bin/bash arr1=(`find -type d | sed 1d | cut -d/ -f2`) arr2=(`find -type d | sed 1d | cut -d/ -f2 | tr [:lower:] [:upper:]`) arr3=(`find -maxdepth 1 -type f | sed 1d | cut -d/ -f2`) arr4=(`find -maxdepth 1 -type f | sed 1d | cut -d/ -f2 | tr [:upper:] [:lower:]`) y=-1 z=-1 for x in ${arr1[*]} do let y=$y+1 mv $x ...
true
c1f0f28bfc640e622f5450229d0fdbf92ceaae8d
Shell
sung/ObsGynaePipes
/config/chip_seq.config
UTF-8
2,530
2.671875
3
[]
no_license
#!/bin/bash # Author: Sung Gong <ssg29@cam.ac.uk> # First created: 26/Feb/2015 # Last modified: 26/Feb/2015 ##################################################### # GLOBAL # Variables remain same across multiple bash script ##################################################### export TOP=$HOME/Pipelines source $TOP/con...
true
e340923f132f957fb91c8db065d165a35c647be7
Shell
afterbvrner/SimpleBashApp
/interactive.sh
UTF-8
1,104
3.796875
4
[]
no_license
#!/usr/bin/env bash source calculator.sh source reverse.sh source search.sh source strlen.sh source log.sh interactive() { while : do printf "<------------------------------------------------------------------------------>" printf "\nAvailable functions:\n1. calc\n2. search\n3. reverse\n4. strlen\n5. log\n6. exit\...
true
a4866c401fb2a29daea716baf1cec509c7a2e119
Shell
mathias-nyman/blackarch
/archpwn/sshatter/PKGBUILD
UTF-8
826
2.796875
3
[]
no_license
# TODO: make package function pkgname=sshatter pkgver=1.0 pkgrel=1 pkgdesc="Password bruteforcer for SSH" url="http://www.nth-dimension.org.uk/downloads.php?id=34" updateurl="http://www.nth-dimension.org.uk/downloads.php?id=34=>SSHatter-" groups=('blackarch' 'blackarch-password-attacks-attacks') license=('GPL') arch=(...
true
df715089420554e30ca39a7a64325c0e1b661e34
Shell
hacpjc/mydp
/src/misc/general/rc.d/rcapi.tail.sh
UTF-8
192
2.703125
3
[ "MIT" ]
permissive
rcpath="`dirname $0`" rcpfx=${rcpath:-} source "$rcpfx/rcapi.head.sh" case "$rcaction" in start) start ;; stop) stop ;; *) abort "Invalid argument: Try $rccmd <start|stop>" ;; esac #;
true
f329289bd8ed95bb7e3faa13dd6256aae5a5435d
Shell
jesserwen/pub
/init/init_01_server.bash
UTF-8
2,125
2.984375
3
[]
no_license
## This is the first file we need run when we need kick a new cloud on China Telecom or Huawei Cloud ## ## Running the folowing single line on the server is all we need: # wget -O - https://raw.githubusercontent.com/xizhendu/pub/master/init/init_01_server.bash | bash # The following will be executed on the first...
true
37a02de75adedfd7288e9cc83c7002cb0cbe9e6e
Shell
Laduve-prog/dut_classes
/S1/S11/TP7/liredate.sh
UTF-8
375
3.5625
4
[]
no_license
#!/bin/sh # script liredate.sh # script de saisie d'une DATE au format jj/mm/aaaa (une seule chaine) avec # recuperation ds 3 variables # redefinition de la variable IFS (Internal Field Separator) IFS=/ echo -n "Entrez date au format jj/mm/aaaa: " read jour mois annee # nb : pas de verification sur les valeurs sa...
true
68c66a33aadc6750728c285363809bdc95cc6961
Shell
umd-lib/grabbag
/cloc-git/cloc-public-all.sh
UTF-8
1,174
3.78125
4
[ "CC0-1.0" ]
permissive
#!/usr/bin/env bash # Count total files and lines of code in all public repositories for a # GitHub organization # # requires jq and cloc to be installed, eg: # brew install jq # brew install cloc ORG=umd-lib # Get list of all public repositories ## TODO: determine number of pages automatically cat /dev/null > repo...
true
acef037653c4afbe6976948c4f12675382e93527
Shell
rate3-network/dai-ly
/go/database/scripts/reset_dev_db.sh
UTF-8
555
3.25
3
[]
no_license
#!/bin/bash scriptdir=`dirname "$BASH_SOURCE"`; # Default connection parameters. PGHOST="localhost" #safety switch echo "\$PGHOST set to $PGHOST"; PGPORT=${PGPORT:="5432"} echo "\$PG_PORT set to $PGPORT"; echo "Dropping database"; dropdb ${PGDATABASE}; echo "Creating database"; createdb -O ${PGUSER} ${PGDATABASE} ...
true
212a2afc786bb46ef41fd31919f36020a1934bda
Shell
Cox-Automotive/cervidae
/cervidae.sh
UTF-8
11,326
3.875
4
[ "MIT" ]
permissive
#!/usr/bin/env bash APPLICATION="cervidae" if [ -n "$1" ] then APPLICATION="$1" fi ELASTICSEARCH_VERSION="1.7.0" LOGSTASH_VERSION="1.5.3" KIBANA_VERSION="4.1.1" PYTHON_VERSION="3.4.3" ROOT=$(pwd) MKDIR=$(which mkdir) TAR=$(which tar) WGET=$(which wget) HN=$(hostname) SED=$(which sed) PACKAGE_ROOT="$ROOT/packag...
true
2185cb9c027819ba3c35773a9e1c3a729cd26fc8
Shell
ChristianSch/docker-cassandra
/install/common.sh
UTF-8
427
3.890625
4
[ "Apache-2.0" ]
permissive
# test that an image exists function test_image() { version=$1 image=cassandra:$version sudo docker history $image > /dev/null 2> /dev/null if [[ $? != 0 ]]; then echo "Could not find Docker image $image, use 'make image VERSION=$version' to build it" exit 1 fi } # Argc test + usage help function check_usag...
true
5a25a07c726aa1d999d4a70b0c35fc2ca18b3669
Shell
procube-open/hive-builder
/hive_builder/playbooks/roles/zabbix-agent/files/zbx_service_discovery.sh
UTF-8
739
3.546875
4
[ "MIT" ]
permissive
#!/bin/bash service_list=$(systemctl list-unit-files --type service --no-pager --no-legend | awk '$2=="enabled" && $1 !~ "@" {print $1}' ) [[ -r /etc/zabbix/service_discovery_whitelist ]] && { service_list=$(echo "$service_list" | grep -E -f /etc/zabbix/service_discovery_whitelist) } [[ -r /etc/zabbix/service_di...
true
d0ee45c88f3f58a080de446bcfdf3e2e77676da4
Shell
dalzzing2/sunjesoft
/Script/goldilocks_table_count.sh
UTF-8
7,795
3.203125
3
[]
no_license
#!/bin/sh ###################################################################################### # Createion 2018_03_28 18:16 # Made By SH # Record All Tables that belongs to GOLDILOCKS # sh goldilocks_table_count.sh ###################################################################################### FILE_PATH=$(read...
true
b11284dfd3173a201834a5894ba0576970473bea
Shell
mrobakowski/arcon
/execution-plane/arcon/experiments/state-backend-perf.sh
UTF-8
617
3.125
3
[ "AGPL-3.0-only" ]
permissive
#!/usr/bin/env bash cd "${0%/*}" || exit 1 mkdir target echo "Compiling..." # shellcheck disable=SC2068 cargo build --release $@ --bin perf for backend in {rocks,sled,faster}; do echo -n "Warming up ${backend}... " for i in $(seq 1 5); do echo -n "${i} " # shellcheck disable=SC2068 cargo run --release ...
true
9d5c527dd33432d63e93551a2fbe5b59c5a50a1d
Shell
thcp/terraform-docean-pritunl-server
/modules/vpn/scripts/03-pritunl.install.sh
UTF-8
609
3.375
3
[]
no_license
#!/bin/bash set -ex #Download latest version from repository mkdir -p /tmp/setup && cd $_ LATEST_RELEASE=$(curl -s https://api.github.com/repos/thcp/pritunl-compose/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")') curl -L "https://github.com/thcp/pritunl-compose/archive/${LATEST_RELEASE}.tar.gz" | tar xz # Ins...
true
24d6cd21c7df97d872d06bcf04bf66f2aa228a82
Shell
YichenTang97/Maths_Aid_v3
/MagicStaff.sh
UTF-8
428
2.59375
3
[]
no_license
#!/bin/bash record(){ ffmpeg -loglevel quiet -f pulse -i default -t 3 -acodec pcm_s16le -ar 22050 -ac 1 -y $1.wav } replay(){ ffplay -loglevel quiet -autoexit $1.wav; } remove(){ rm -f $1.wav; } speechRecognize() { HVite -H HMMs/hmm15/macros -H HMMs/hmm15/hmmdefs -C user/configLR -w user/wordNetworkNum -o SWT -...
true
01cc9ee75382be60f4378e020a3995dc8712ada6
Shell
guitar1999/blackosprey
/modeling/export_stream_buffers.sh
UTF-8
971
3.03125
3
[]
no_license
#!/bin/bash for t in $1 #for t in $(psql -d blackosprey -t -A -c "SELECT huc_8 FROM nhd_hu8_watersheds h, states_project_area s WHERE ST_Intersects(h.geom, s.geom);") do if [ ! -f huc8_${t}_stream_buffer.shp ]; then echo $t state=$(psql -d blackosprey -t -A -c "SELECT state FROM states_project_are...
true
33fac6e98975f908fe850d752ffdd74d7321dc9a
Shell
ghidra/dotfiles-1
/apps/gmusic/setup.sh
UTF-8
639
2.578125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash CODE_DIR=~/Documents/Code SUBDIR=/repos FINAL_CODE_DIR="$CODE_DIR$SUBDIR/" chmod 600 creds sudo npm install -g gmusic-mpd cd "$FINAL_CODE_DIR" && git clone git@github.com:simon-weber/Unofficial-Google-Music-API.git gmusicapi cd "$FINAL_CODE_DIR"gmusicapi && sudo pip2 install -r "$FINAL_CODE_DIR"g...
true
5e1bddd2570c7b6fc60ddd5c9893de6c397c631c
Shell
jairo-ab/dotfiles
/polybar/.config/polybar/principal/scripts/updates-arch-combined.sh
UTF-8
675
3.125
3
[ "WTFPL" ]
permissive
#!/bin/sh cor=$(awk -F# '/secondary/{print $2;exit}' ${HOME}/.config/polybar/config_modules) if ! updates_arch=$(checkupdates 2> /dev/null | wc -l ); then updates_arch=0 fi if ! updates_aur=$(yay -Qum 2> /dev/null | wc -l); then # if ! updates_aur=$(cower -u 2> /dev/null | wc -l); then # if ! updates_aur=$(trize...
true
a09311e8c1f67f13ba3471ba78e831bb9cad338c
Shell
luiseduardo1/ULTaxi
/scripts/math.bash
UTF-8
215
3.171875
3
[]
no_license
#! /usr/bin/env bash declare -xr is_math_file_loaded=true round_division() { local -ri _numerator=${1} local -ri _denominator=${2} echo $(( (${_numerator} + ${_denominator} / 2) / ${_denominator} )) }
true
f1d57da216607b12dd42dcfb705c5ead6c979293
Shell
TaizWeb/dotfiles
/install.sh
UTF-8
888
3
3
[ "MIT" ]
permissive
#!/bin/bash # Installation script for my dotfiles # NOTE: You need git and coreutils installed for this to work. Execute this script inside the directory it's in (i.e. `./install.sh` should work) # NOTE: Having vim installed already along with xfce is a good idea # Installing Vundle git clone https://github.com/Vundle...
true
d18091426de62a88db3a7d2abcf7653d96e67ae2
Shell
jeremyz/bin
/fix_date
UTF-8
95
3.0625
3
[]
no_license
#! /bin/sh DIR=${1:-$HOME} TMP=/tmp/_date touch $TMP find $DIR -newer $TMP -exec touch '{}' \;
true
778180a911ad47476e1de2fd9fef3da7bedbb3c6
Shell
qrkourier/ziti-doc
/publish.sh
UTF-8
3,109
3.546875
4
[]
no_license
#!/bin/bash set -e mkdir -p ~/.ssh echo running ssh-keyscan to add github.com to known hosts mkdir -p ~/.ssh ssh-keyscan github.com >> ~/.ssh/known_hosts chmod -R 600 ~/.ssh chmod -R 600 ~/.ssh/* pub_script_root="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" echo "publish script located in: $pub...
true
f31f61e70bc2eb4129b9c94fd94f4f374174b1e9
Shell
gradek64/copy_mont_arcadia
/scripts/perf_test.sh
UTF-8
3,489
3.140625
3
[]
no_license
#!/bin/bash source "$(dirname $0)/lib/shell_utils.sh" docker login -u $DOCKER_HUB_USERNAME -p $DOCKER_HUB_PASSWORD eval $(aws ecr get-login --region eu-west-1 --no-include-email) set -x export COMPOSE_PROJECT_NAME=${COMPOSE_PROJECT_NAME:-fullmonty} export FORMATTED_BRANCH_NAME=${BRANCH_NAME//\//-} #replacing '/' wit...
true
086d6bb53ec25de82357139f48f10a8fa8833e59
Shell
rodaan/gitscripts
/gitfinish
UTF-8
767
3.453125
3
[]
no_license
#!/bin/bash set -e branch="$(git branch | grep '^\* .*' | tr -d '* ')" if [ $branch = 'master' ]; then echo -e "\033[1;31mYou cannot run this script on branch master\033[0m" exit 1 fi echo -e "\033[1;35m----FINISHING UP----\033[0m" echo -e "\033[1;35m####current branch is $branch\033[0m" echo -e "\033[32m####git...
true
b6f4e6296bd2403d4574a584ac8f44c51e6b1a46
Shell
ShivamKumarJha/Dummy_DT
/nokia/Beholder/rootdir/bin/atmel_tpselftest.sh
UTF-8
1,099
2.6875
3
[]
no_license
#!/vendor/bin/sh TP_RAWDATA="/data/vendor/misc/touch/TPRawdataFile.txt" patameter_1=$(getprop vendor.sys.fqctouchpanel) setprop vendor.sys.fqctpret 1 mxt-app -W -T46 08 -v 0 mxt-app --backup -v 0 mxt-app --reset -v 0 sleep 0.1 mxt-app -t -v 0 TEST_RESULT=$? sleep 0.2 #Dump raw data mxt-app -v 0 --reference --debug-d...
true
46d61b1b567b3a2076448cd486c48c62eac221e7
Shell
nestoru/pob-recipes
/common/tools/assert-no-big-files.sh
UTF-8
435
3.6875
4
[]
no_license
#!/bin/bash -e # assert-no-big-files.sh # author: Nestor Urquiza # date: 2012013 # description: Returns in stderr those files which have exceeded maximum size parameter maxSize=$1 USAGE="Usage: `basename $0` <maxSize (number of bytes/k/M/G)>" if [ $# -ne "1" ] then echo $USAGE exit 1 fi res=`find / -type f -s...
true
6ef404eec94d570de256f3737bf2ca39ab244c3c
Shell
AppliedLogicSystems/ALSProlog
/core/alsp_src/bin/whichals
UTF-8
649
3.5
4
[ "MIT" ]
permissive
#!/bin/sh # Decides which of the following to run: # bld-port/[alspro, alspro_b] bld-natv[alspro, alspro_b] # $1 = path to als build directory (containing bld-port, bld-natv) # $2 = the args to the alspro... command line to run if [ -f $1/bld-natv/alspro ] ; then echo AA Running $1/bld-natv/alspro $1/bld-natv/alspr...
true
0ca647dea81b1b2c2cbe8e26f9026f892647319d
Shell
RockZombie123/PythonProjects
/games.sh
UTF-8
792
3.46875
3
[]
no_license
#!/bin/bash HEIGHT=15 WIDTH=40 CHOICE_HEIGHT=4 BACKTITLE="< Menu" TITLE="Games" MENU="Choose one of the following Games:" OPTIONS=(1 "Snake" 2 "Simon Says" 3 "Other games") CHOICE=$(dialog --clear \ --backtitle "$BACKTITLE" \ --title "$TITLE" \ --menu...
true
d8b8263fba99ea30d93067d50e24d6699af0d44b
Shell
adriankumpf/dot-files
/.config/yadm/bootstrap
UTF-8
3,269
3.40625
3
[]
no_license
#!/usr/bin/env bash set -eu repo_url="git@github.com:adriankumpf/dot-files.git" main () { if [ ! "$(yadm remote get-url origin)" = $repo_url ]; then echo "Updating the yadm repo origin URL" yadm remote set-url origin $repo_url fi if [ "$(uname -s)" = "Darwin" ]; then if ! command -v brew >/dev/nu...
true
48986b70b711dcd8c1adf2a5ffabfcb02074185b
Shell
yh157612/ADL2016
/hw4/run_translate.sh
UTF-8
162
2.96875
3
[]
no_license
#!/bin/bash # $1: input file # $2: answer file DIR="$(dirname $0)" if [ -f $2 ]; then rm -f $2 fi python3 "$DIR/translate/translate.py" --decode < $1 > $2
true
1ea711e72e6eb47936983a96998a15faa7ccab67
Shell
SefaGuler/MobilePentest
/bin/mpt_verify_sign.sh
UTF-8
121
2.859375
3
[]
no_license
#!/bin/bash if [[ -n $1 ]]; then APKFILE=$1 jarsigner -verify -verbose $APKFILE else echo "Usage: $0 <APK file>" fi
true
90c4fccd513b7a774327b680b9d4289775b68423
Shell
Pythnist/mplayer-streaming-script
/front.sh
UTF-8
471
3.359375
3
[]
no_license
#!/usr/bin/env bash while : do let x=0 link=$(zenity --entry --text "Insert YouTube link:" --title="Link Input") if [ "$(echo "$link"|cut -d"=" -f1 -)" != "http://www.youtube.com/watch?v" ] then if [ "$link" == "" ] then let x=1 exit $x fi zenity --error --text "\"$li...
true
5a13cf84c50ab3bf578b0d577d3be87f9a12e5e7
Shell
VinayMakam/DevOps_Showcase
/BaukDockerSwarm/images/jenkins-master/get_plugins.sh
UTF-8
710
3.109375
3
[ "MIT" ]
permissive
#!/bin/bash # This script will download a lost of plugins from a running Jenkins that you can use for creating a Jenkins image # curl -s -k "http:/${JENKINS_USER}:${JENKINS_PASS}@jenkins:8080/pluginManager/api/json?depth=1" \ # | ./jq -r '.plugins[].shortName' | tee plugins.txt JENKINS_URL=jenkins JENKINS_PORT...
true
f978fbd91c82a4e1ed01aadef60b34c8355f6666
Shell
Starlink/starlink
/etc/init/cshrc.in
UTF-8
21,691
3.234375
3
[]
no_license
#!csh -*- shell-script -*- #+ # Date: 2003-MAY-23 # File: @staretcdir@/cshrc # Version: @VERSION@ # # This file must be sourced before Starlink software can be used. # This script contains alias definitions and hence must be sourced # for each C-shell from which you wish to use Starlink software. # This is most ...
true
1847584bfe9889f2b2cce51c17b0604ef889b1c2
Shell
ryanchapman/go-any-proxy
/debian/postrm
UTF-8
351
3.125
3
[ "BSD-2-Clause" ]
permissive
#!/bin/bash set -e if [ "$1" = "purge" -a -e /usr/share/debconf/confmodule ]; then . /usr/share/debconf/confmodule # remove our changes to the db db_purge fi if [ "$1" = "remove" ]; then . /usr/share/debconf/confmodule # remove start up script update-rc.d -f any_proxy remove # remove cha...
true
5b76e8a79dbaa7bbef630ecc89f1a22fd9793f89
Shell
ymmh123456789/Data_Mining
/Part1/hw1.sh
UTF-8
248
3.265625
3
[]
no_license
# ./hw1.sh sourceDir destinationDir if [ "$2" == " " ] || [ ! -d $2 ] ; then mkdir $2 fi filename=`ls $1` newFilename=0 for i in $filename do newFilename=$(($newFilename+1)) cat $1/$i | grep "oid" > "$2/log$newFilename" done echo "SUCCESSED!"
true
1954771a3a78f9ba4ade8561d5b293a24f7cd97d
Shell
AnthonyNacher/2021-etu-iut-casir-git-tp4
/bash-scripts/oups-oups.sh
UTF-8
348
2.609375
3
[]
no_license
#!/bin/bash if [ -n "$(git status --porcelain)" ]; then echo "Il y a des changements en cours, commitez les d'abord ou supprimez les"; else git remote add fork https://github.com/gbesset-formateur/2021-etu-iut-casir-git-tp4.git git pull fork fork/amend-bis git reset HEAD^ git add src/index.html git commit ...
true
792d7c58aa300478dc261fd7f9472f038685719b
Shell
phpor/shell
/docker/socket.sh
UTF-8
2,134
3.828125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash VOLUME_DIR=/data1/docker_volume MAINSOCKET=/var/run/docker-socket.sock __FILE__=$(cd $(dirname $0) && pwd)/$(basename $0) function main() { for pid in $(getlastpids);do [[ ! $pid -eq $$ ]] && [[ -e /proc/$pid/cmdline ]] && echo Please kill $pid first && exit done exec &>/dev/null exec </dev/null t...
true
2c100e3929458a4311cf97138249ee15f2a8c571
Shell
TeenCorn/Scripts
/default.sh
UTF-8
149
2.9375
3
[]
no_license
#!/bin/bash moz=~/.mozilla/firefox if [[ -d $moz ]] then for d in "$moz"/*.default do [[ -d $d ]] && mkdir "$d"/chrome done fi
true
f90f0897941f2f94dfb7cbac4f1f5cd182f685ea
Shell
huxiaolei1997/spring-boot-kafka-demo-parent
/collector/config/logstash/startLogstash.sh
UTF-8
398
3.25
3
[]
no_license
#!/bin/bash logstashpath=`pwd`/logstash-7.10.0 PID=`jps -mvl | grep "org.logstash.Logstash" | awk '{print $1}'` if [ -n "${PID}" ] then for pid in $PID { echo "logstash process is running, port is $pid" } else nohup $logstashpath/bin/logstash -f $logstashpath/sync/logstash-kafka-sync.conf > $logstashpath...
true
1fef2d4fde1d235dd9410c9b57801b3dc6f80dc7
Shell
JonasSinjan/Linear-Models
/scripts/setup.sh
UTF-8
605
3.3125
3
[ "MIT" ]
permissive
#!/bin/bash # virtual environemnt directory name ENV=".env" # python version # python3 --> 3.6 | python2 --> 2.7 PYTHON="python3" # pip version # pip3 --> python3 | pip2 --> python2 PIP="pip3" # remove virtual environment source scripts/remove.sh # install `virtualenv` to global pip ${PIP} install virtualenv # create...
true
1a2e40c32ef8a5f8a190c5c365915a51922e0314
Shell
milorads/WiFiPresenceLogger
/v3/Bash/sys_time.bash
UTF-8
2,259
3.125
3
[]
no_license
#!/bin/bash dir=$(dirname $(dirname $(readlink -f "$0"))) case "$1" in 0) echo "code 0: setovanje sistemskog vremena i rtc-a sa administratorske aplikacije" #format je ''2018-05-15 11:05:28.081730 echo $2 date -s $2 i2cset -y -f 1 0x68 0x00 0x$(date +"%S") b i2cset -y -f 1 0x68 0x01 0x$(date +"%M") b i...
true
36e7f54828f1a3405b69ac81f5e93b052f31a0a0
Shell
5l1v3r1/NVSM
/NVSM-Prometheus/packaging/DEBIAN/postinst
UTF-8
531
2.90625
3
[]
no_license
#!/bin/bash case "$1" in configure) #Request systemd to reload the unit files afresh systemctl daemon-reload #Set NVSM APIs to automatically start on system boot systemctl enable nvsm-prometheus-exporters #Restart NVSM APIs if a previous instance was running already ...
true
ca1350d50b60b62f73d5d896f0921d0913e8fbdf
Shell
zzm99/FISCO_BCOS_PROJECT
/asset-app/tool/asset_run.sh
UTF-8
1,120
3.03125
3
[ "MIT" ]
permissive
#!/bin/bash function usage() { echo " Usage : " echo " bash asset_run.sh deploy" echo " bash asset_run.sh query asset_account " echo " bash asset_run.sh register asset_account asset_amount " echo " bash asset_run.sh transfer from_asset_account to_asset_account amount " echo " " ...
true
1f6a7e2b1f0283dd14e0d361b7e374ef29d5bb14
Shell
cundd/dup
/shell/cli/plugins/package.sh
UTF-8
4,035
3.921875
4
[ "MIT" ]
permissive
#!/bin/bash # # Plugin to create packages set -o nounset set -o errexit # -------------------------------------------------------- # Commands # -------------------------------------------------------- # Package the database and files into a compressed TAR package function dupcli::package::pack() { if [[ $(dupcli:...
true
1fde367689d062d0adcb99bcff0bd5afa88b1863
Shell
michaelbeaumont/aur-packages
/sops/PKGBUILD
UTF-8
906
2.75
3
[]
no_license
# Maintainer: Michael Beaumont <mjboamail@gmail.com> # URL: https://github.com/michaelbeaumont/aur-packages pkgname=sops pkgver=3.7.1 pkgrel=2 pkgdesc='Editor of encrypted files that supports YAML, JSON and BINARY formats' arch=('i686' 'x86_64' 'aarch64') url='https://github.com/mozilla/sops' license=('MPL2') depends=...
true
50bb2b057bc465ab532e2e45376c20ff3d65f67f
Shell
kmjohny/dotfiles
/tmux/install.sh
UTF-8
324
3.625
4
[ "MIT" ]
permissive
#!/bin/sh # # tmux # # This installs tmux Plugin Manager # Check for tmux and git if test $(which tmux) && test $(which git) then if [ ! -d $HOME/.tmux/plugins/tpm ]; then echo " Installing tpm (tmux Plugin Manager) for you." git clone https://github.com/tmux-plugins/tpm $HOME/.tmux/plugins/tpm fi fi exi...
true
1787b95bffebfb21627ad74ea00069428cd927de
Shell
insanity54/docker-nuget-nginx
/patch-filesize.sh
UTF-8
403
3.0625
3
[]
no_license
#!/usr/bin/env bash DEFAULT_SIZE=20M if [ -z ${UPLOAD_MAX_FILESIZE+false} ] then echo "Using default max upload size: ${DEFAULT_SIZE}" else echo "Using max upload size: ${UPLOAD_MAX_FILESIZE}" # Set filesize to the user's env specification perl -pi -e "s/client_max_body_size(\s*)${DEFAULT_SIZE};/...
true
9d9b7361067a5dd37b2b74e382034ae183a1be5a
Shell
xe1gyp/device_driver_test
/framebuffer/test_code/scripts/helper/susres.sh
UTF-8
2,343
3.15625
3
[]
no_license
#!/bin/sh TEST=$1 $TESTBIN/fbmode 16 if [ $TEST = "1" ]; then echo -n 3 > $FBPWD echo "FB suspended" sleep 2 $FBTEST MSG="Did the test passed without kernel crash or hang and the framebuffer become blank and inoperable?" elif [ $TEST = "2" ]; then echo -n 3 > $FBPWD echo "FB suspended" sleep 2 echo...
true