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
f12e1350369e2c04a28a4f0a2f0135814f139004
Shell
josh-martin989/BioperlClass
/week07/q1.sh
UTF-8
134
2.90625
3
[]
no_license
#!/bin/sh for j in $(seq 1 4); do touch q1_file$j done mkdir -p q1_test for i in $(seq 1 4); do mv ./q1_file$i ./q1_test/ done
true
fb9539ddafe31ada17870f774f0a1a76aa63d8f4
Shell
bernEsp/algorithms
/zshrc
UTF-8
1,553
2.609375
3
[]
no_license
# @author Sebastian Tramp <mail@sebastian.tramp.name> # # @license http://opensource.org/licenses/gpl-license.php # # # # the main RC file (will be linked to ~/.zshrc) # # # # # first include of the environment # source $HOME/.config/zsh/environment.zsh # # typeset -ga sources # sources+="$ZSH_CONFIG/environment...
true
1ba2f40f88fbba63c4646aa33260ddf8be2c181e
Shell
HayrapetyanSV/lab_OSS
/lab3/2.5.sh
UTF-8
211
2.8125
3
[]
no_license
#!/bin/bash find ~ -type f -name "*.txt" find ~ -type f -name "*.txt" -exec cat {} >> /tmp/file2.5.txt \; echo "Всего строк:" cat /tmp/file2.5.txt | wc -l echo "Размер:" du -b /tmp/file2.5.txt
true
4f657c2c4033923484853dc57c9abf468dd746fb
Shell
domitry/exp_c
/build.sh
UTF-8
145
2.546875
3
[ "MIT", "CC-BY-2.0" ]
permissive
#!/bin/sh src="../ex${1}.c" dst="./ex${1}.out" cd compiled gcc $src -o $dst -lm -lGL -lglut -Wall echo "builded :)" $dst echo "done :-)" cd ..
true
6c3c7ee6d55351007be7a83da1d8f772cf4a201a
Shell
viniciusesteter/WordPress_Zabbix
/iniciar_wordpress.sh
UTF-8
2,514
3.1875
3
[]
no_license
#!/bin/bash cd /tmp #Ir ao diretório /tmp sudo yum install -y https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/linux_amd64/amazon-ssm-agent.rpm #Baixar e instalar o SSM Agent sudo systemctl enable amazon-ssm-agent #Iniciar com a instância o SSM Agent sudo systemctl start amazon-ssm-agent #Iniciar com ...
true
76ffeebc122ce1d75ae39ff65f24ec348c860e39
Shell
ybz216/exonum-java-binding
/.travis/run_python_tests.sh
UTF-8
946
3.03125
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/usr/bin/env bash # Runs unit tests of exonum_launcher_java_plugins. # Fail immediately in case of errors and/or unset variables set -eu -o pipefail # Echo commands so that the progress can be seen in CI server logs. set -x cd "${TRAVIS_BUILD_DIR}/exonum-java-binding" # Generate protobuf files needed for plugins ...
true
0119908bcded7a64673cb376b6202af8166aaf13
Shell
ddkits/cli
/ddkits-files/ddkits/ddk-git.sh
UTF-8
6,455
3.234375
3
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
#!/bin/sh # Script.sh # # PHP7 # # This system built by Mutasem Elayyoub DDKits.com # delete the old environment yml file if [[ -f "${DDKITSFL}/ddkits.env.yml" ]]; then rm $DDKITSFL/ddkits.env.yml fi # delete the old environment yml file if [[ -f "${DDKITSFL}/ddkitsnew.yml" ]]; then rm $DDKITSFL/ddkitsnew.yml fi...
true
16ecab0e7f132654cbb1935ebf936d36e7f95710
Shell
rjmeats/AWS-Trials
/AWSTrials/CLI/websites/setupSimpleS3Bucket.sh
UTF-8
1,405
3.421875
3
[]
no_license
. ../aws_env_setup.sh . ./env.sh echo echo $SHELL at $(date) MY_BUCKET="${SIMPLE_S3_BUCKET_NAME}" echo echo "S3 bucket is ${MY_BUCKET}" echo "Bucket region is ${BUCKET_REGION}" echo "Source files are under ${SIMPLE_SITE_FILES}" if [[ -z "${MY_BUCKET}" ]] then echo "Bucket name not defined" exit 1 fi # Tell S3 ...
true
226f70a4a29cf20f75572bbbcdf7b0e21f4e2a9d
Shell
eemed/tmux-picker
/tmux-picker.sh
UTF-8
3,038
3.671875
4
[ "MIT" ]
permissive
#!/usr/bin/env bash CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" function init_picker_pane() { local picker_ids=$(tmux new-window -F "#{pane_id}:#{window_id}" -P -d -n "[picker]" "/bin/sh") local picker_pane_id=$(echo "$picker_ids" | cut -f1 -d:) local picker_window_id=$(echo "$picker_i...
true
98a1dc8c291531241786ab85476286d3c4e23d95
Shell
aosp-tissot/local_manifest
/patch.sh
UTF-8
1,206
3.296875
3
[]
no_license
#!/bin/bash set -e patches="$(readlink -f -- $1)" wget https://github.com/aosp-tissot/local_manifest/raw/aosp-11.0/sooti-patches.zip unzip sooti-patches.zip for project in $(cd $patches/patches; echo *) $(cd $patches/sooti-patches; echo *) ;do p="$(tr _ / <<<$project |sed -e 's;platform/;;g')" [ "$p" ...
true
2b283f2fcf0a8f4b4014a8b89281bfcf47ea1815
Shell
OragamiSwami/Piss_Scraper
/pull_piss_links.sh
UTF-8
1,726
3.53125
4
[]
no_license
#author :OragamiSwami #date :20210605 #version :0.1 #notes :Install curl and unrealircd (https://www.unrealircd.org/download) #usage :pull_piss_links.sh cd "$(dirname "$0")" log="pull.log" hubfile="hubs.conf" linkfile="links.conf" unreal_dir="/home/ircd/unrealircd/" echo "Start @ `date`" &>> $...
true
0ddbf549b2f5189e0d489640fcb0491ce463dadc
Shell
ravitomar2010/hello-world
/a2i-devops/tools/manage_redshift/modifyBatchAccess.sh
UTF-8
12,758
3.46875
3
[]
no_license
#!/bin/bash ####################################################################### ########################### Global Variables ########################## ####################################################################### filename=tmpAccessList.txt ##################### Test Parameters ############## dbClient...
true
9c5fccbac35f34cd3b3c3748f8fca8fdadacb71f
Shell
micydog/javaexample
/linuxexmp/usbshell
UTF-8
342
3.140625
3
[]
no_license
#!/bin/bash #autousb echo "welcome to use sutousb" echo "do you want load usb(y/n)?" read ans if [ $ans = "Y" -o $ans = "y" ] then if [ -d "/mnt/usb" ] then mount -t vfat /dev/sdb1 /mnt/usb else mkdir /mnt/usb if [ $? qe 0 ] then echo "create /mnt/usb sucess" mount -t vfat /dev/sdb1 /mnt/...
true
b5ebce1d9255d60f62d3502801caa40f9fe36a61
Shell
mjbright/christian-posta.kube-demos
/util.sh
UTF-8
2,527
3.953125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash NS="demos" readonly color_reset=$(tput sgr0) readonly red=$(tput bold; tput setaf 1) readonly green=$(tput bold; tput setaf 2) readonly yellow=$(tput bold; tput setaf 3) readonly blue=$(tput bold; tput setaf 4) readonly magenta=$(tput bold; tput setaf 5) readonly cyan=$(tput bold; tput ...
true
ba961dccb99cc6adccb3aa812e2a485b8bafb13c
Shell
hochwagenlab/General_HiSeq_Functions
/Sam2Bedgraph.pbs
UTF-8
1,215
2.875
3
[]
no_license
#!/bin/bash #PBS -l nodes=1:ppn=1,walltime=3:00:00 #PBS -N Sam2Bedgraph #PBS -M ${USER}@nyu.edu #PBS -m abe #PBS -o localhost:/scratch/${USER}/${PBS_JOBNAME}.o${PBS_JOBID} #PBS -e localhost:/scratch/${USER}/${PBS_JOBNAME}.o${PBS_JOBID} module load samtools/intel/1.2 module load bedtools/intel/2.23.0 # Purpose: to co...
true
69ae2ea45cf392205a43fc8788645c38d1e8fff1
Shell
oracle/vagrant-projects
/OracleDatabase/18.4.0-XE/scripts/install.sh
UTF-8
4,403
3.375
3
[ "UPL-1.0", "MIT", "Ruby", "BSD-2-Clause" ]
permissive
#!/bin/bash # # LICENSE UPL 1.0 # # Copyright (c) 1982-2018 Oracle and/or its affiliates. All rights reserved. # # Since: July, 2018 # Author: gerald.venzl@oracle.com # Description: Installs Oracle database software # # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. # # Abort on any error set -e echo 'INS...
true
24cdf9ea38f4f62ccfbada3c5b87d08f76f30228
Shell
PlayFab/SDKGenerator
/SetupScripts/testInit.sh
UTF-8
1,685
3.75
4
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e # USAGE: testInit.sh if [ -f "util.sh" ]; then . "./util.sh" 2> /dev/null . "./sdkUtil.sh" 2> /dev/null elif [ ! -z "$WORKSPACE" ]; then . "$WORKSPACE/SdkGenerator/SetupScripts/util.sh" 2> /dev/null . "$WORKSPACE/SdkGenerator/SetupScripts/sdkUtil.sh" 2> /dev/null fi CheckVerticaliz...
true
f04c245aa84c638fb7366d94803a9a60c0973761
Shell
kkysen/BashConfig
/functions/moveTo.sh
UTF-8
98
2.765625
3
[ "MIT" ]
permissive
moveTo() { mv "${2}" "${1}" } export -f moveTo mvTo() { moveTo "${@}" } export -f mvTo
true
4407ba3957fdfb65ac2e9a9d59c495bb3af04d58
Shell
serdarakis/PackagingChallenge
/Scripts/publish.sh
UTF-8
235
2.921875
3
[]
no_license
#!/bin/bash API_KEY="<Api-Key>" FOLDER="../Packages/" SOURCE="https://api.nuget.org/v3/index.json" for entry in "$FOLDER"* do echo "$entry" dotnet nuget push "$entry" --api-key "$API_KEY" --source "$SOURCE" --skip-duplicate done
true
f81f0f47f763642385fda9be9af04e7bb1c9ea9b
Shell
sittim/configs
/.config/i3/xrandr_deamon.sh
UTF-8
753
3.765625
4
[]
no_license
#!/bin/bash onConnection() { echo onConnection xrandr --output eDP1 --auto xrandr --output DP1 --off } onDisconnection() { echo onDisconnection xrandr --output eDP1 --off xrandr --output DP1 --auto } ######################### statefile="`mktemp`" quit() { rm "$statefile" exit 1 } tra...
true
f2bfbf58f2ef2850a5ecec86dead371eba481cc9
Shell
cih9088/dotfiles
/config/yabai/yabairc
UTF-8
3,572
2.78125
3
[]
no_license
#!/usr/bin/env sh # # the scripting-addition must be loaded manually if # one is running yabai on macOS Big Sur. # for this to work one must configure sudo such that # it will be able to run the command without password # # see this wiki page for information: # - https://github.com/koekeishiya/yabai/wiki/Installing-y...
true
908b9fc21bba98881143f3aa0583e2ee0c5b23fb
Shell
aws/aws-ec2-instance-connect-config
/debian/postinst
UTF-8
2,087
3.65625
4
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
#!/bin/sh set -e #DEBHELPER# case "$1" in configure) EXEC_OVERRIDE='ExecStart=/usr/sbin/sshd -D -o "AuthorizedKeysCommand /usr/share/ec2-instance-connect/eic_run_authorized_keys %%u %%f" -o "AuthorizedKeysCommandUser ec2-instance-connect" $SSHD_OPTS' modified=1 # If there is nothing in t...
true
a4029996804bb70272dbff3576ca52c670e32e0f
Shell
allenai/zest
/bin/train_bart_run_eval.sh
UTF-8
1,652
2.65625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # ./bin/train_bart_run_eval.sh /path/to/zest/data learning_rate num_epochs DATADIR=$1 shift; LR=$1 shift; EPOCHS=$1 conda activate zest_bart OUTDIR=bart_large_${LR}_${EPOCHS}epochs_smoothing0.1 echo "TRAINING $LR $EPOCHS $OUTDIR" python bin/fine_tune_bart.py \ --task=zest \ --data_dir=$DATADIR...
true
6f0af5959486d0bd7250916691d0976eb6794829
Shell
h2kfl/TAOS-CI
/ci/taos/config/config-plugins-audit.sh
UTF-8
3,622
2.671875
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash ## # Copyright (c) 2018 Samsung Electronics Co., Ltd. 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...
true
a1a69ba491bc07ea4dc8a4de0c04bf82c8efcd27
Shell
containers/automation
/common/test/console_output_test_helper.sh
UTF-8
690
3.1875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # This helper script is intended for testing several functions # which output calling context. It is intended to only be used # by the console-output unit-tests. They are senitive to # the both line-positions and line-content of all the following. SCRIPT_DIRPATH=$(dirname "${BASH_SOURCE[0]}") AUTOMATION...
true
ede5f7ef76850f73fcbf66f604d06797a64e54f6
Shell
UbikZ/dockerz
/convert/entrypoint.sh
UTF-8
346
3.625
4
[]
no_license
#!/usr/bin/env bash cd /home/workspace/ffmpeg function usage() { echo " usage: convert <options>" echo "" echo " -v show versions." echo " -h show usage." exit 1 } case "$1" in -v) ( echo "imageMagick : $(convert -version)" ) ;; -h) usage ;; *)...
true
8c179532daf4f4554883cae6d205ffe8bff3b021
Shell
leon66666/ShellProgram
/dmlnew.sh
UTF-8
2,577
3.109375
3
[]
no_license
#!/bin/bash stty erase ^H MYSQL_HOST30=127.0.0.1 MYSQL_HOST24=192.168.1.24 MYSQL_USER=root PORT=3306 MYSQL_PASSWORD='password' MYSQL_DATABASE30='26 27 28 29 31 32 33 34 35 36' MYSQL_DATABASE24='hoomxb_anqi hoomxb_hehuanhuan hoomxb_liuyan hoomxb_luzongwei hoomxb_tianye hoomxb_wanghaiyang hoomxb_wanghuidong hoomxb_wangto...
true
d97bc95c2973647a624aef7f285b0660e5d8d1e2
Shell
ciaranmcnulty/octopi
/power_switch.sh
UTF-8
275
2.9375
3
[]
no_license
#!/bin/bash URL="http://$POWER_HOST:$POWER_PORT/plugs/$POWER_DEVICEID" case "$1" in "on") wget -qO - "$URL/on" > /dev/null ;; "off") wget -qO - "$URL/off" > /dev/null ;; *) wget -qO - "$URL" | grep '"relay_state":1' > /dev/null exit $? ;; esac
true
358573d8f4cd6d9bea2e338df5bca398919580a4
Shell
TheStrix/dotfiles
/bin/startgui
UTF-8
402
2.78125
3
[]
no_license
#!/usr/bin/env bash # Start sddm service, if it exists. if service --status-all | grep -Fq 'sddm'; then sudo service sddm start fi # Start lightdm service, if it exists. if service --status-all | grep -Fq 'lightdm'; then sudo service lightdm start fi # Start gdm service, if it exists. i...
true
f74cf0bb6dc91cee18e0aa19d5a849f2e4dbe346
Shell
SamJones1331/Personal-Project
/startup.sh
UTF-8
400
2.578125
3
[]
no_license
sudo apt-get update #curls the cript from a webpage and then passes it through bash curl https://get.docker.com | sudo bash sudo usermod -aG docker $(whoami) echo "Preparing to log you out" sleep 1 echo "Remember to log back in once the terminal closes" sleep 1 echo "Logging you out in 3" sleep 1 echo "Logging you out ...
true
b1a0eb3d49ececb41e427f1dc7d439e5037973a1
Shell
sfazli96/CS166-Phase3
/lab6/lab5/startPostgreSQL.sh
UTF-8
458
3.328125
3
[]
no_license
#! /bin/bash folder=/tmp/$LOGNAME echo folder #Clear Folder rm -rf $folder #Initialize folders mkdir $folder cd $folder mkdir -p test/data mkdir sockets #Initialize the Database export PGDATA=/tmp/$LOGNAME/test/data sleep 1 #Initialize DB initdb sleep 1 #Starting Database export PGPORT=5432 pg_ctl -o "-c unix_s...
true
aa1b7532b4aed8b5eed0b673f8cdb89d2e0fad2f
Shell
geta6/dotfiles
/bin/setup-os
UTF-8
2,628
2.84375
3
[]
no_license
#!/bin/zsh set -eu BASE_DIR=$(dirname $(cd $(dirname $0); pwd)) if [[ "$OSTYPE" == "darwin"* ]]; then #==============================# echo "--> setup macOS settings" #==============================# [[ ! -d ~/Developer ]] && mkdir ~/Developer [[ ! -d ~/Sites ]] && mkdir ~/Sites cp -f ${BASE_DIR}/lib/com...
true
060994f607273680985db30bc0f627a4cad2bf63
Shell
Jacquimo/cs352-projects
/project1/p1_tests_updated/tests.sh
UTF-8
620
3.515625
4
[]
no_license
#!/bin/bash PATH=./tests/ FILES=./tests/* BFILES=./tests2/* ERROR="Syntax error" echo -e "\033[1;4mTesting valid syntaxes:\033[0m" for f in $FILES do echo "Running $f:" OUTPUT=`./parser $f` if [[ $OUTPUT =~ $ERROR ]]; then echo -e "\033[1;31mTest Failed\033[0m" echo "$OUTPUT" else echo -e "\033[1;32mTest Pas...
true
658a4d6c4db2fb13b612e33f8a3652fac94b7ef6
Shell
robin-vip/shell_scripts
/shell_scripts/remote_copy_files.sh
UTF-8
1,491
3.734375
4
[]
no_license
#!/bin/sh # Function: Remote copy files via scp tools # Author: Ward write at 07/24/2014 # Version: v1.00(inital) echo -e "##################################################################################" echo -e "################################################################################...
true
921e25dec71fe141e37578288b3ac2df6c4612c4
Shell
cncf/devstats
/util_sh/current_company_repos.sh
UTF-8
423
3
3
[ "Apache-2.0" ]
permissive
#!/bin/bash if ( [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ] || [ -z "$4" ] ) then echo "$0: required DB name, event types, company name(s) and CSV file output, for example allprj \"'PushEvent', 'IssuesEvent'\" \"'ZTE', 'ZTE Corporation'\" output.csv" exit 1 fi GHA2DB_LOCAL=1 GHA2DB_SKIPTIME=1 GHA2DB_SKIPLOG=1 GHA2DB...
true
c016c361c52dff7e44a4505142e2cadb556ab55d
Shell
SKA-ScienceDataProcessor/integration-prototype
/sip/tango_control/flask_master/util/mkstate
UTF-8
554
3.96875
4
[ "BSD-3-Clause" ]
permissive
#!/bin/bash # Command line utility to create a new SDP State. # Uses jq. myname=${0##*/} while getopts cds10?h name do case $name in c) jqOpt="-cM" ;; d) state=disable ;; s) state=standby ;; 0) state=off ;; 1) state=on ;; \?|h) printf "Usage: %s: -0 | -1 | -s | -d \n" $myname ...
true
8ae3c88af0f684e7295a496ed2bd8cae2abec683
Shell
rekirt/shell
/bookdemo/chapter16/test8.sh
UTF-8
232
3.109375
3
[]
no_license
#!/bin/bash # 全局变量 # 局部变量 # local 全局变量可以把全局变量私有化,转换为局部变量 function db1 { value=$[ $value * 2 ] } read -p "Enter a value:" value db1 echo "the new value is $value"
true
3dff9c26ac6435a8a0aa92457a618e58a9f08237
Shell
rockstar-project/continuous-delivery
/continuous-deployment/swarm/vb/setup.sh
UTF-8
1,903
2.984375
3
[]
no_license
#!/bin/bash STACK_NAME=$1 SWARM_PORT=2377 # Create the docker swarm manager node first. docker-machine create --driver virtualbox vb-${STACK_NAME}-swarm-manager # Get the IP address of the manager node. SWARM_MANAGER_IP=$(docker-machine ip vb-${STACK_NAME}-swarm-manager) # Create the three worker nodes. docker-machi...
true
bf21e70894c85fe4c6b456696c7e358ec5bef39e
Shell
cbosdo/my-media-center
/bin/vlc-wrapper
UTF-8
296
2.9375
3
[]
no_license
#!/bin/sh set -x args= url=$1 case "$url" in cdda://*) track=$(echo "$url" | sed 's;cdda://local/0*\([0-9]\+\).cdda;\1;') args="--cdda-track $track" url="cdda://" ;; *) exit 1 ;; esac /usr/bin/cvlc --extraintf=rc --rc-host localhost:4321 --play-and-exit $args $url
true
6dee36e208a5085ae251cae538ce326be72e58a8
Shell
dxw/rails-template
/script/all/process-script-args
UTF-8
416
3.578125
4
[]
no_license
#!/bin/sh # Source this in a script to process standard arguments for it. set -e echo "==> Loading command line options..." DOCKER=${PREFER_DOCKER_FOR_DXW_RAILS:-0} for arg in "$@" do case $arg in --docker) DOCKER=1 ;; --no-docker) # shellcheck disable=SC2034 DOCKER=0 ;; *...
true
e2f87e1b916fdd5be1d6eb61622f153aea1dca6b
Shell
yemin7/cis
/sce/etc_group_chk.sh
UTF-8
905
4
4
[]
no_license
#!/usr/bin/env sh # CIS-CAT Script Check Engine # # Name Date Description # ------------------------------------------------------------------- # E. Pinnell 07/15/20 Check existence of /etc/passwd groups in /etc/group # passing="" output="" EPG="" EGG="" EPG=$(cut -d: -f4 /etc/passwd | uniq) EGG=$(...
true
76522ddcbaeef9337f191a89b30b7a7c8fd0fb62
Shell
ucarion/wikiracer
/integration_test.sh
UTF-8
1,401
3.4375
3
[]
no_license
#!/bin/bash go get ./wikiracer go install ./wikiracer bold=$(tput bold) red=$(tput setaf 1) reset=$(tput sgr0) assert_output_equals() { if [[ "$1" == "$2" ]]; then echo "${bold}Assertion passed: output did equal: ${2}${reset}" else echo "${bold}${red}Assertion failed: output did not equal: ${...
true
8ca43c4d06ec16ff40af9c2df923f3c53410d1ea
Shell
ZbZn905888/redisson
/create_orgs_repo.sh
UTF-8
423
2.65625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash USER_NAME="rollenholt" ORGS_NAME="rollenholt-SourceReading" PROJECT_NAME="redisson" PROJECT_DESCRIPTION="redisson 源码阅读" git init git add . git commit -m 'first commit' curl -u $USER_NAME https://api.github.com/orgs/"$ORGS_NAME"/repos -d "{\"name\":\"$PROJECT_NAME\", \"description\": \"$PROJECT_DESCRIPTI...
true
a9566f6d1bfd36698a3b0259af5181b5a579cdf1
Shell
amirkarimi/cas
/ci/tests/webapp/validate-embedded-webapp.sh
UTF-8
2,809
3.78125
4
[ "LicenseRef-scancode-free-unknown", "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
#!/bin/bash gradle="./gradlew " gradleBuild="" gradleBuildOptions="--build-cache --configure-on-demand --no-daemon " webAppServerType="$1" echo -e "***********************************************" echo -e "Gradle build started at `date` for web application server ${webAppServerType}" echo -e "***********************...
true
b5dfd607d0ce4a70d6dedb0e7306990b3638dd5b
Shell
StephenBrown2/dotfiles
/tag-i3blocks/config/i3blocks/blocks/weather
UTF-8
2,983
2.859375
3
[]
no_license
#!/usr/bin/env bash # Based on http://openweathermap.org/current API_KEY="8a16c18406dea239a9a5cbd13eac8707" MURICA=true URGENT_LOWER=273 URGENT_HIGHER=310 UNITS="kelvin" SYMBOL="K" if [[ "${MURICA}" = true ]]; then URGENT_LOWER=32 URGENT_HIGHER=100 UNITS="imperial" SYMBOL="℉" SYMBOL="°F" elif [[...
true
f0379b94c26edf3afa6c45d75aadd88f3ce0b9cc
Shell
GrowSense/Index
/test-monitor.sh
UTF-8
366
2.578125
3
[]
no_license
MONITOR_LABEL="MyMonitor" MONITOR_DEVICE_NAME="mymonitor" MONITOR_PORT="ttyUSB0" echo "----------" && \ echo "Testing monitor scripts" && \ echo "----------" && \ sh clean.sh && \ sh remove-garden-devices.sh && \ echo "" && \ echo "Creating garden monitor services" && \ echo "" && \ sh create-garden-monitor.sh $MON...
true
0040b0ac1d52febb55d3667c53ae18b231a8588c
Shell
liujiamingustc/phd
/docker/water/delft3d/docker-hub/DOCKER_CFD-deltares-delft3d-master/make.sh
UTF-8
1,793
3.765625
4
[ "LicenseRef-scancode-public-domain", "Apache-2.0" ]
permissive
#!/bin/bash set -e function print_help { printf "Available Commands:\n"; awk -v sq="'" '/^function run_([a-zA-Z0-9-]*)\s*/ {print "-e " sq NR "p" sq " -e " sq NR-1 "p" sq }' make.sh \ | while read line; do eval "sed -n $line make.sh"; done \ | paste -d"|" - - \ | sed -e 's/^/ /' -e 's/function run_//' -e 's/#...
true
141b45ce56e298b47341c5c8cd06447292cb62e5
Shell
XuQiao/HI
/CMSSW_4_4_7/src/flowAnalysis/SkimTrack/test/pbs/submitall.sh
UTF-8
412
2.84375
3
[]
no_license
#!/bin/bash nfiles=`cat filelistAll.dat | wc -l` nfilesperjob=20 njobs=`echo "$nfiles/$nfilesperjob" | bc` echo "split into $(($njobs+1)) jobs, $nfilesperjob files per job" for i in $( seq 0 $njobs );do #if [[ $i == 0 ]];then begin=`echo "$i*$nfilesperjob" | bc` end=`echo "($i+1)*$nfilesperjob" | bc` if [[ $i == $njob...
true
8b70ceca2ef3a38f2dfdb6e092a86704c404c163
Shell
zorille/php_depot
/monitoring/hobbit/alert.sh
UTF-8
1,050
3.375
3
[]
no_license
#!/usr/local/bin/bash DOSSIER_CONFIG=/home/hobbit/server/etc/config function envoi_mail { INFO=$1 COLOR=$2 #echo "$BBALPHAMSG" | ${MAIL} "Hobbit [${ACKCODE}] ${BBHOSTSVC} ${INFO} (${COLOR})" tech-exploitation@client.com echo "$BBALPHAMSG" | ${MAIL} "Hobbit [${ACKCODE}] ${BBHOSTSVC} ${INFO} (${COLOR})" dv@client.c...
true
e16d5574193dbd9c39abdc0d1fec84f4812b1d2f
Shell
agilebeat-inc/maprover--data-amass
/pkginstall.sh
UTF-8
792
4
4
[]
no_license
#!/usr/bin/env bash if ! [[ -d 'pipe1' ]]; then >&2 echo "This script must be run from the main repo directory!" exit 1 fi # remove any existing 'dist' files in case there are old versions: if [[ -d 'dist' ]]; then rm -r ./dist fi # create the blob that pip can install res=$(python3 setup.py sdist) if [...
true
953408cbc65c919927d4b50edab2137229a293f9
Shell
mujingyuan/ansible_resource
/scripts/create_mongodb_replicas.sh
UTF-8
625
2.78125
3
[]
no_license
#!/usr/bin/env bash ansible_resource_dir=/data/www/ansible_handler/ansible_resource environment=$1 project=$2 mongodb_master_target=$3 mongodb_replicas_target=$4 inventory_file=${ansible_resource_dir}/data/inventory/${environment}/${project} playbook_file=${ansible_resource_dir}/playbooks/deploy_mongodb.yml key_file=${...
true
ba8b401c7b8e9b4631a28b263df0905fb450c92d
Shell
jrussell9000/NeuroScripts
/old/DWI_Processing_v1/Old/multifiber.sh
UTF-8
7,445
3.3125
3
[]
no_license
#!/usr/bin/env bash set -e # preproc_done_dir=$1 # working_dir=$2 # anat_dir=$3 #Directory to the OASIS Templates from the ANTs GitHub page (MICCAI2012-Multi-Atlas-Challenge-Data) INPUT_DIR="/home/jdrussell3/ceda_scans/1000_C1/dicoms" ANTSTEMPLATES="/home/jdrussell3/apps/ants/ants-templates/MICCAI2012-Multi-Atlas-Cha...
true
8e601e15bd7a2576b06988515890b6c3f34c3144
Shell
indigo-iam/iam-deployment-test
/generate_deploy_files.sh
UTF-8
351
3.4375
3
[]
no_license
#!/bin/bash set -xe if [ -z ${BROWSER+x} ] || [ -z ${DOCKER_REGISTRY_HOST+x} ] || [ -z ${IAM_IMAGE+x} ]; then echo "Environment variables BROWSER, DOCKER_REGISTRY_HOST, IAM_IMAGE are mandatory" exit 1 fi for file in `find kubernetes/ -type f -name *.tmpl`; do newfile=`basename -s .tmpl ${file}` envsubst < ${file...
true
978bfa55e61debdcc0c42499f4bb00bc1c0f331f
Shell
maureliofs/exercicios-shell-script
/Lista2/GeraBackupHome.sh
UTF-8
3,558
4.21875
4
[]
no_license
#!/bin/bash ######################################################################################################################################### #2. Crie um script que gere um arquivo compactado de backup de todo o diretório home do usuário atual (/home/<usuario>). Considere que: # #• O arquivo de backup será cri...
true
fcd80ac0c0066c654ef5d8d79298e87ce9f2a32d
Shell
nuniesmith/Scripts
/script8-2-4a
UTF-8
291
2.671875
3
[]
no_license
#!/bin/bash #This program requires that you enter arguments for item name, cost, #selling price and inventory number on the command line. echo -e "$1 \t $2 \t $3 \t $4" >> ~/hardware.database sort ~/hardware.database > /tmp/$$.tmp rm ~/hardware.database mv /tmp/$$.tmp ~/hardware.database
true
0cae7aa21128f9b5f9da8a757351035a50c299be
Shell
ychen-sps/mesos-framework-demo
/runtime/provision/install_mesos_dns.sh
UTF-8
1,194
2.90625
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -o errexit set -o nounset set -o pipefail sudo su systemctl status mesosdns >/dev/null 2>&1 && echo "Mesos DNS already installed" && exit 0 echo "Downloading Mesos DNS" go get github.com/mesosphere/mesos-dns mkdir -p /opt/mesosdns/bin export GOPATH=$HOME/go mv $GOPATH/bin/mesos-dns /opt/mes...
true
d31de1c82aeaa96e042b3910264fa99b61c53c57
Shell
virgo-agent-toolkit/virgo-base-agent
/pkg/sysv-redhat/agent
UTF-8
1,088
3.75
4
[ "Apache-2.0" ]
permissive
#!/bin/sh # # Startup script for $SHORT_DESCRIPTION # # chkconfig: 345 85 15 - start or stop process definition within the boot process # description: $SHORT_DESCRIPTION # processname: $PKG_NAME # pidfile: /var/run/$PKG_NAME.pid NAME=$PKG_NAME DAEMON=/usr/bin/$PKG_NAME PIDFILE=/var/run/$PKG_NAME.pid LOG=/var/log/$...
true
91574880e523794e746616cfd3d523a68ab1ad71
Shell
hemanth22/k8s_Learnings
/kubernetesprov.sh
UTF-8
2,086
2.9375
3
[]
no_license
echo "Initialized Prerequistie tools." yum -y install epel-release yum -y install wget sudo* yum -y install figlet vim yum -y install qemu-kvm libvirt libvirt-daemon-kvm yum -y install ansible* echo "Completed Prerequistie tools installation." | figlet echo "Initialized Docker Provision." | figlet wget -O- https://get....
true
568776eef1acec4e51e61ce0c3c45bc4619ac012
Shell
guiquanz/lemon
/tools/configure.sh
UTF-8
7,402
3.375
3
[]
no_license
# Copyright (c) 2013-2014 The lemon Authors. All rights reserved. # Use of this source code is governed by GPL license that can be # found in the LICENSE file. See the AUTHORS file for names of contributors. ############################################################################### #!/bin/sh # # Detects OS we're c...
true
b17c46f4db0615f769f01e3635363ebb324679b4
Shell
neufbox/misc
/efixo-base-files/files/main/etc/init.d/wan
UTF-8
995
3.140625
3
[]
no_license
#!/bin/sh /etc/rc.common boot() { # IGMP DSCP/MARK iptables -t mangle -A OUTPUT -p tcp -m dscp --dscp 0x2d -j MARK --set-mark 3 iptables -t mangle -A OUTPUT -p udp -m dscp --dscp 0x2d -j MARK --set-mark 3 # Femtocell [ -e /etc/init.d/adsl ] && { femto_port=`nvram get femto_port` for gw in `nvram list_long fe...
true
77fb373c639a7c6e6693a3137eed2a87e7c92131
Shell
Bramha-N/linuxShell
/d10-11-programing_construct/d10_flip_coin_simulation/UC1-flipCoinSimulator.sh
UTF-8
251
2.890625
3
[]
no_license
#!/bin/bash -x Heads=0 Tails=0 Flip_Coin=$(($RANDOM%2)) if [[ $Flip_Coin -eq 0 ]] then echo "Head" ((Heads++)) else echo "Tails" ((Tails++)) fi
true
292eaf9cdbb3ed1bcdba239e534235cff0aa6b0e
Shell
overvenus/ticdc
/tests/syncpoint/run.sh
UTF-8
5,406
3.296875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e CUR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) source $CUR/../_utils/test_prepare WORK_DIR=$OUT_DIR/$TEST_NAME CDC_BINARY=cdc.test SINK_TYPE=$1 CDC_COUNT=3 DB_COUNT=4 # The follow `sleep 2` make sure the ddl and dml operation can always execute during the test. # So every syncpoint will ha...
true
f1d3e153b0c6ceba833d0786732104aebe255879
Shell
flaviovdf/webp2p-ufcg
/WebP2P-Simulator/sim_plotter.sh
UTF-8
898
4.03125
4
[]
no_license
#!/bin/sh find_self() { SELF=`dirname $0` } usage() { echo "usage $0 <sim.properties files> <sim type> <param to vary> < values[] || -seq <first> <last> <inc> >" exit 1 } #MAIN if [ $# -lt 3 ]; then usage fi find_self FILE=$1 TYPE=$2 PARAM=$3 OPTION=$4 if [ ! -r $FILE ]; then echo "cannot read $FILE" ex...
true
a3190a350c44a3b274be64f2cb72baebef5a4ee8
Shell
tadasv/git-hooks
/post-commit
UTF-8
828
3.71875
4
[]
no_license
#!/bin/sh # # An example hook script that is called after a successful # commit is made. # # To enable this hook, rename this file to "post-commit". # Keep history of commits # TODO move this into a separate script . git-sh-setup TOTAL_DIFF=`git diff-tree --no-prefix -r HEAD | { total=0 while read A B C D M P ...
true
eb6bf2fb7e78f5eb86808cb908cd66c12d9e9657
Shell
joelmahoney/discoverbps
/.gems/gems/unicorn-4.8.2/t/t0007-working_directory_no_embed_cli.sh
UTF-8
925
2.890625
3
[ "GPL-3.0-or-later", "GPL-1.0-only", "GPL-2.0-only", "GPL-1.0-or-later", "LicenseRef-scancode-public-domain", "GPL-3.0-only", "LicenseRef-scancode-warranty-disclaimer", "GPL-2.0-or-later", "MIT" ]
permissive
#!/bin/sh . ./test-lib.sh t_plan 4 "config.ru inside alt working_directory (no embedded switches)" t_begin "setup and start" && { unicorn_setup rm -rf $t_pfx.app mkdir $t_pfx.app cat > $t_pfx.app/config.ru <<EOF use Rack::ContentLength use Rack::ContentType, "text/plain" run lambda { |env| [ 200, {}, [ "#{\$mast...
true
fceed27116de321da76c81bc050efc763e8b222d
Shell
durianpeople/SoalShift_modul1_E03
/soal3.sh
UTF-8
510
3.46875
3
[]
no_license
#!/bin/bash choose() { echo ${1:RANDOM%${#1}:1} $RANDOM; } pass="$({ choose '0123456789' choose 'abcdefghijklmnopqrstuvwxyz' choose 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' for i in $( seq 1 $(( 9 )) ) do choose '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' done } | sort -R | awk '{pri...
true
8ad4ae42eecd376ca2e5f7e477dbac88bb2ff224
Shell
JaganMandalapu/websphere_automation
/was/deploy/deployApp.sh
UTF-8
2,191
3.78125
4
[]
no_license
#!/bin/bash # This scripts calls installApp.py script to install an application to a JVM source /data/shared_scripts/resources.sh ID=`id -un` WAS_VERSION=$2 #was9 APP_NAME=$3 BUSINESS_AREA=$4 JNDI=$5 DB_USER=$6 DB_PASSWORD=$7 APP_SERVER_NAME=${APP_NAME}_appserver HOST_NAME=`hostname -s` NODE_NAME=${...
true
70025f884edcb09d515078caa9c0a3ea8e11ce96
Shell
hacktoolkit/mac-bootstrap
/bin/ssh-start.sh
UTF-8
640
3.59375
4
[]
no_license
#!/bin/bash if [ -z $SSH_AGENT_FILENAME ]; then SSH_AGENT_FILENAME="$HOME/.ssh-vars.$HOSTNAME.sh" fi; touch $SSH_AGENT_FILENAME; ssh-agent -s > $SSH_AGENT_FILENAME chmod a+x $SSH_AGENT_FILENAME perl -i -n -e 'print $_ unless /^echo/' $SSH_AGENT_FILENAME source $SSH_AGENT_FILENAME #ssh-add KEYS="$HOME/.ssh/*.pub" ...
true
b5bd8e6f7c48d3657aa550425cf07bbce5fc5ca0
Shell
rogeriopradoj/dunit-images
/vectorface-dunit/build-all.sh
UTF-8
1,799
2.96875
3
[ "MIT" ]
permissive
#!/bin/bash docker pull debian:squeeze docker pull debian:wheezy # php 5.2 docker build -t vectorface/php5.2 ./php5.2 docker save `docker history -q vectorface/php5.2 | head -n 1` | sudo TMPDIR=/var/run/shm docker-squash -t vectorface/php5.2 -from `docker history -q debian:squeeze | head -n 1` | docker load docker pus...
true
0969ea71d330ded080567ccc69543cbf9b08a2dc
Shell
seanpm2001/GNUStep_Tools-Installers
/nsis/native-compile.sh
UTF-8
10,910
3.609375
4
[]
no_license
#!/bin/sh # Semi-automatic, useful reminder for how to native compile packages # Work in progress. Need to clean this up and make it useful... # # Usage: # ./native-compile.sh [gnustep] [all | libffi | objc | make | base | gui | back] # - default (no args) compile only dependencies (xml, etc) # gnustep - co...
true
cc7af27ac7ea31a51b443e5dfcdffcb3831ffa6b
Shell
casjay-dotfiles/scripts
/helpers/man/anime-dl
UTF-8
3,833
3.4375
3
[ "WTFPL" ]
permissive
#!/usr/bin/env bash # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # This is what I use for my system scripts # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ##@Version : 202207042244-git # @Author : Jason Hempstead # @Contact : jason@ca...
true
da01054d5f8b8eb9d91265b524075cf5e9be55f8
Shell
tataranovich/mc-buildbot
/target-build.sh
UTF-8
4,014
4.03125
4
[]
no_license
#!/bin/bash SUPPORTED_TARGETS="jessie-i386 jessie-amd64 stretch-i386 stretch-amd64 buster-i386 buster-amd64 bullseye-i386 bullseye-amd64 sid-i386 sid-amd64 trusty-i386 trusty-amd64 xenial-i386 xenial-amd64 bionic-i386 bionic-amd64 focal-amd64 groovy-amd64 hirsute-amd64" UNCLEAN_BUILD=0 die() { warn "$1" exit 1 ...
true
a71fb4bf3f74008457748c021da7cd1a3a76b489
Shell
Hazelfire/Haskell-OpenAPI-Client-Code-Generator
/.circleci/test_golden
UTF-8
945
3.171875
3
[]
no_license
#!/bin/bash set -e actualDir=actual expectedDir=expected [[ -d /root/.stack/snapshots/x86_64-linux/d2f1d79601122b1003c68e260f770c1d32d5fe7a028973b8192e738556d0b8b3 ]] && cp -Rn /root/.stack/snapshots/x86_64-linux/d2f1d79601122b1003c68e260f770c1d32d5fe7a028973b8192e738556d0b8b3 /root/.stack/snapshots/x86_64-linux/711...
true
038c1bb89eedae71ebfd4c333dc7e587c9deb27c
Shell
hlecuanda/zconf
/local.d/UserPrefs/functions/ixng.zsh
UTF-8
1,666
3.234375
3
[ "BSD-2-Clause" ]
permissive
#!/usr/bin/env zsh # _ _ # (_)_ __ (_) ___ # | \ \/ / | |/ _ \ # | |> < _| | (_) | # |_/_/\_(_)_|\___/ # h@h-lo.me 20190927 144132 -0700 PDT 1569620492 d(-_- )b... # Zsh implementation of the ix.io pastebin client. Now does more shit # than the bash version ftw! # local opts local OPTIND setopt localoptions s...
true
b5d4e773b56c7be914d081bf2865229811678e33
Shell
arturomunoztolosa-bc/ksz9897_workaround
/setup_fixup.sh
UTF-8
2,076
4.15625
4
[]
no_license
#! /bin/bash SERVICE_FILE="./workarounds/ksz9897r-rev.A1-fixup.service" FIXUP_FILE="./workarounds/ksz9897r-rev.A1-fixup.py" SERVICE_DST_DIR="/etc/systemd/system/" FIXUP_DST_DIR="/etc/ksz9787_revA1_fixup" check_or_install_pkg() { local required_pkg=$1 local pkg_ok=$(dpkg-query -W --showformat='${Status}\n' ${...
true
a8a3904d16162a7a7c48077468eeba882a250bf4
Shell
rushioda/PIXELVALID_athena
/athena/HLT/HLTTestApps/python/tests/test_lib.sh
UTF-8
846
3.265625
3
[]
no_license
#!/bin/bash # author Andre Anjos <andre.dos.anjos@cern.ch> # author Ricardo Abreu <ricardo.abreu@cern.ch> thisdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd -P )" testdir="$thisdir/../HLTTestApps" echo $testdir function runtest() { echo echo "===============================================================" ...
true
04b9b0bb09a63211a5e64bf575b94fa48477e967
Shell
LigeiramenteDesidratado/config
/.local/bin/winspawn
UTF-8
717
3.671875
4
[]
no_license
#!/bin/bash # Use -n= to give a name [ -z "$1" ] && exit PNAME=$1 POSITIONAL=() for i in "$@" do case $i in -n=*|--name=*) PNAME="${i#*=}" shift ;; *) POSITIONAL+=("$1") shift ;; esac done set -- "${POSITIONAL[@]}" if xwininfo -tree -root | grep "(\"$1\" "; then echo "Window detected." else echo "Windo...
true
1dc3822eb1e2f62f7042c545c49d7e047fc981b5
Shell
forkkit/br
/tests/br_rawkv/run.sh
UTF-8
1,792
2.703125
3
[ "Apache-2.0" ]
permissive
#!/bin/sh # # Copyright 2019 PingCAP, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
true
4431d169dd28ca63b5820255bcfbbcd67fc4aac0
Shell
slowinskami/project-IoT_anomaly_detection
/ATTACKS/attack_scripts/automate_scenarios.sh
UTF-8
27,039
3.65625
4
[]
no_license
#!/bin/bash me=$$ i=0 : 'Scenario 1 : network scanning This scenario represents the pure reconnaisance attack in which the attacker wants to simply acquire information about the hosts on the network. In this scenario, we assume that the attacker is already connected to the targeted network and that the attacker know...
true
4a4c356b358e44bb13a97b01089620af11c0910b
Shell
sibuserv/lxe
/pkg/minizip.sh
UTF-8
1,335
3.359375
3
[ "MIT" ]
permissive
#!/bin/sh # # This file is part of LXE project. See LICENSE file for licensing information. ( PKG=minizip PKG_VERSION=${MINIZIP_VER} PKG_SUBDIR=${PKG}-${PKG_VERSION} PKG_SUBDIR_ORIG=zlib-${ZLIB_VER} PKG_FILE=${PKG_SUBDIR_ORIG}.tar.gz # https://www.zlib.net/ # http://www.winimage.com/zLibDll...
true
e99b3f93b30209ea623ff511245548ddd1618897
Shell
codepulseme/week-planner
/cp-todo-backend/node-ts-api-starter.sh
UTF-8
1,869
4.125
4
[]
no_license
#!/bin/bash declare -a coreDeps=(body-parser debug express morgan firebase firebase-admin) declare -a devDeps=(typescript gulp gulp-typescript chai chai-http mocha ts-node @types/body-parser @types/chai @types/chai-http @types/debug @types/express @types/mocha @types/morgan @types/node @types/firebase) proj_dir='' fu...
true
b0497564e5f7535c6e38cd31607f2c9d9d74868f
Shell
t3ll0n/4103-101-OpSys-Smith
/assignments/homework-01/myrandom.sh
UTF-8
267
3.578125
4
[]
no_license
#!/bin/bash #This script prints a random word taken from the dictionary file #located in the /usr/share/dict/words directory. #pick one random from the dictionary and assign to variable word=$(shuf -n1 /usr/share/dict/words) #print results echo "Random Word: "$word
true
c8ebad1768b5e181226c0742ed45c18ccd4344f9
Shell
DJKessler/dot-files
/shell-configs/zsh-custom/macOs.zsh
UTF-8
268
2.859375
3
[]
no_license
if [[ "$OSTYPE" == "darwin"* ]]; then export PATH="/usr/local/bin:$PATH" export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH" export MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH" # remove duplicate entries from $PATH typeset -aU path fi
true
bdf5f0cf104b9a4fe1f5e4eedc6541204897d628
Shell
nikhildhruwe/day8-assignment
/DiceCount.sh
UTF-8
865
3.515625
4
[]
no_license
#!/bin/bash -x declare -A Dice count1=0 count2=0 count3=0 count4=0 count5=0 count6=0 flag=0 while (( $flag != 1)) do check=$((RANDOM%6+1)) case $check in 1) ((count1++)) Dice[one]=$count1;; 2) ((count2++)) Dice[two]=$count2;; 3) ((count3++)) Dice[three]=$count3;; 4) ((count4++)) Di...
true
2bab6e14d7002fb3db0a73802449de6e62f994b3
Shell
AlexandreCo/Raspy-doc
/scripts/rf2txt/display.sh
UTF-8
3,758
3.4375
3
[]
no_license
#!/bin/bash NB_DAY=$1 ADDRESS=$2 NUM_CPT=$3 COLOR=$4 LOG_PATH=/var/www/GnOmeDataCenter/log_brut LOG_OUT=/var/www/GnOmeDataCenter/out DATE=`date "+%s"` FILEOUT=$ADDRESS"_"$NB_DAY"_"$NUM_CPT"_data.txt.png" export GDFONTPATH=/usr/share/font/ if [[ $NB_DAY == 1 ]] then XFORMAT="%H:%M " else if [[ $NB_DAY == 7 ]] then ...
true
068eaf6ef353948588addf8462283e7fef966d1a
Shell
DavidBuchanan314/webos-homebrew-channel-1
/services/elevate-service
UTF-8
562
3.296875
3
[ "MIT" ]
permissive
#! /bin/sh set -e SERVICE_NAME="${1:-org.webosbrew.hbchannel.service}" echo "[ ] Elevating '$SERVICE_NAME'..." sed -i 's;/usr/bin;/media/developer/apps/usr/palm/services/org.webosbrew.hbchannel.service;' /var/luna-service2-dev/services.d/$SERVICE_NAME.service echo "[ ] Refreshing services..." ls-control scan-service...
true
85e83f96c8a245fdad38cdbfde449a5bec335208
Shell
frtrotta/script_correzione
/pull_repos.sh
UTF-8
973
3.828125
4
[]
no_license
#!/bin/bash echo "v0.3 - 16-feb-2015" repository=$1 branch=$2 githubusers=$3 tokenfile=$4 if [ -z $repository ] || [ -z $branch ] || [ -z $githubusers ] || [ -z $tokenfile ] then echo "ERROR: missing parameter" echo "$0 <repository> <branch> <githubusers_filename> <token_filename>" exit 1 fi token=`cat $tokenfile` ...
true
8e0ca1db7ab89b63ce64a9108d39d6729086b7b6
Shell
zchee/zsh-default-completions
/src/Solaris/Command/_pkg5
UTF-8
12,455
2.984375
3
[]
no_license
#compdef pkg _pkg5_pkgs() { local cache_policy cache_id=pkg5_installed_pkgs:$HOST:${pkg5_root//\//+} typeset -a -g _pkg5_installed_pkgs zstyle -s ":completion:${curcontext}:" cache-policy cache_policy if [[ -z "$cache_policy" ]]; then zstyle ":completion:${curcontext}:" cache-policy _pkg5_installed_caching_poli...
true
94ec34271d8a2da89e15068eb149a39bf92f7466
Shell
ivucica/advent-of-code-2017
/day2/day2_test.sh
UTF-8
332
3.484375
3
[]
no_license
#!/bin/bash set -e if [[ -nz "${TEST_SRCDIR}" ]]; then BIN="${TEST_SRCDIR}"/"${TEST_WORKSPACE}"/day2/day2 else BIN="$(dirname "$0")/day2" fi _failed=0 _out="$("${BIN}" << _EOF 5 1 9 5 7 5 3 2 4 6 8)" if [[ ${_out} != 18 ]] ; then echo "expected = 18, got = ${_out}" _failed=1 fi if [[ ${_failed} == 1 ]] ; then ...
true
f385c5d9809d4d32cc35c1c54cbf5c0bd3f318bc
Shell
xuyueshu/YZQREPO
/shell_test/uninstall_java.sh
UTF-8
297
3.21875
3
[ "Unlicense" ]
permissive
#!/bin/bash ##脚本删除linux系统中自带jdk while : do file=`rpm -qa | grep java` length=${#file[@]} if [ $length -gt 0 ];then yum remove -y ${file[0]} else echo "删除完毕!" break fi done ps -auxf | grep 'uninstall_java.sh' | grep -v grep | awk '{print $2}'| xargs kill -9
true
16f5cfc13c5975b47beef3ab8df1aa13939dd4e9
Shell
misterwavey/nxtmail
/server/sender.sh
UTF-8
228
2.828125
3
[]
no_license
#!/bin/bash for i in "$@" do echo $i n=`printf "\x%1x" $i` var=$var$n done echo "var is now $var" #gnu-netcat echo -en "$var" | timeout 1 nc -x 127.0.0.1 8080 #openbsd-netcat #echo -en "$var" | timeout 1 nc 127.0.0.1 8080
true
624da860d9e4a89a6c8264247ac25fa8d919baa5
Shell
thombowles/trafficgen
/trafficgen.sh
UTF-8
1,238
3.8125
4
[]
no_license
#!/bin/bash # generate network traffic by using curl(ing) desturl from a range of IP addresses # v1.1 - added cidr support SECONDS=0 # dont change - used for figuring script run time # user configurable vars: desturl=google.com network=192.168.20. cidr=24 firstIP=240 lastIP=250 repeat=20 interface=ens192 # space-sepa...
true
3c2b1714a6edccf6cc71d753550b415bca8e51f2
Shell
acoutoal/rnaseq
/script_flagstat_worker.sh
UTF-8
1,822
2.796875
3
[]
no_license
#!/bin/bash # partition (queue) #SBATCH -N 1 # number of nodes #SBATCH -n 1 # number of cores #SBATCH --mem 100G echo "##################################################################" echo FLAGSTAT Worker echo Running on host `hostname` echo Time is `date` echo Directory is `pwd` echo Running shell from $SHELL ech...
true
6fcfc651bbe1b812dc466561912de76bed574d18
Shell
AprilOneDay/k8s
/install/install-node.sh
UTF-8
405
2.703125
3
[]
no_license
#!/bin/bash TOKEN=$1 MASTER_IP=$2 if [ ! $TOKEN ]; then echo 'error:plase input [ $1 ] -- 请输入[ TOKEN ]' exit fi if [ ! $MASTER_IP ]; then echo 'error:plase input [ $2 ] -- 请输入[ MASTER_IP:prot ]' exit fi kubeadm join --token ${TOKEN} ${MASTER_IP} --discovery-token-unsafe-skip-ca-verification # 安装nfs客服端 yum -...
true
f3ac65a30e83fae97a189708c091c0b951439230
Shell
acloserview/mantablockscreen
/mantablockscreen.in
UTF-8
5,673
3.34375
3
[ "MIT" ]
permissive
#!/bin/env bash wallpaper=$2 cachepath=$HOME/.cache/mantablockscreen cropuser=$cachepath/$USER-pic-crop.png fullname=`getent passwd $USER | cut -d ":" -f 5 | cut -d "," -f 1` full_alias="${fullname} (${USER})" if [[ -n $fullname ]]; then full_alias="${fullname} (${USER})" else full_alias=$USER fi width=$(xrandr --q...
true
f9a5108af9bb485de53692d80efaaf2576361427
Shell
pablogonz/Echoserver-lorenzo
/echoslorenzo.sh
UTF-8
793
2.609375
3
[]
no_license
#Eejercicios 1 y 2 de la tarea de scokets # 1) Echo server y client con 2 consolas # OjO: Se debe instalar instalar netcat para que esa 100% funcional, para ello se utiliza el codigo siguiente: sudo apt-get install netcat #En la primera consola(server) se inserta el siguiente comando nc -l -p 5353 #el puert...
true
19ff53de15587826eb2d067f50f22f6c6c8ef688
Shell
germanfica/MacOS-ZSHTM
/install.sh
UTF-8
415
3
3
[ "MIT" ]
permissive
#!/bin/sh RED="\033[1;31m" GREEN="\033[1;32m" NOCOLOR="\033[0m" # Copiamos el config cp .zshrc ~ # Descargamos .git-prompt.sh curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh --output .git-prompt.sh # Le modificamos los permisos chmod +x-w .git-prompt.sh # Lo movemos a la raíz mv ...
true
c41f1dd2aa0ec9a19c2e22edb18f73134adfe445
Shell
pjlintw/Meta-BERT
/scripts/meta_exps_2.sh
UTF-8
374
2.640625
3
[]
no_license
#!/bin/sh # Run meta-training script` for num_domain in 1 3 5 50; do for num_task in 100; do echo "Execute meta-training script with ${num_task} training tasks from ${num_domain} domains." python run_meta_training.py \ --output_dir results/meta.nt-$num_task.nd-$num_domain \ --num_train_task $num_task \ ...
true
26453185005ca791deb2ee9532da4b301f16a284
Shell
cloux/runit
/debian/contrib/3
UTF-8
414
2.96875
3
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
#!/bin/sh exec 2>&1 PATH=/sbin:/usr/sbin:/bin:/usr/bin LAST=0 # While test -x is more natural, it does not consider file with # executable bit set on 'noexec' filesystem as executable, and /run # often is mounted as 'noexec'. [ $(stat -c %a /run/runit.reboot) = 100 ] && LAST=6 echo 'Waiting for services to stop...'...
true
b47607cd6f7af2545f7ab06088f10ff52d2aa2d3
Shell
rakibulislam01/bash-scripting
/2_script_input_stdin.sh
UTF-8
281
3.3125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # for permission use: chmod +x script_2.sh #6-Script input # shellcheck disable=SC2016 : ' #echo $1 $2 $2 args=("$@") # for multiple input echo "${args[0]}" echo "$@" echo "$#" # length of the array ' while read line; do echo "$line" done < "${1:-/dev/stdin}"
true