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
f28844f2f5e3b63c9752dc8bc09c65d123c59a22
Shell
scollis/SimRadar
/o.sh
UTF-8
787
3.515625
4
[]
no_license
#!/bin/bash function show_last_seg() { cmd="grep -n \"==================<<<\" \"$1\" | tail -n 1 | awk -F \":\" '{print \$1}'" line=`eval $cmd` if [ ! -z ${line} ]; then tail -n +$line $1 fi } if [[ "$#" -gt 0 && "$1" == "t" ]]; then # Test echo -e "\033[33m" show_last_seg tests_stdout.txt echo -e "...
true
ddd62e5202a591cc924c5b9005bfaa49a389dd5f
Shell
blar/docker-postfix
/src/usr/local/bin/postfix-setup
UTF-8
560
2.890625
3
[]
no_license
#!/bin/sh set -e apk add --no-cache postfix postconf -e "inet_interfaces = all" postconf -e "mynetworks = 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16" postconf -e "myorigin = \$mydomain" # Fügt $mydomain zur Absenderadresse hinzu (foo@bar => foo@bar.$mydomain) postconf -e "append_dot_mydomain = yes" # Entfernt Subdom...
true
94dd5a3829445d14da7d349feeacea0083da0afe
Shell
dawnbreaks/taomee
/mole/dbsvr/ser/sql/clean_user_attire.sh
UTF-8
999
3.46875
3
[]
no_license
#!/bin/bash db_index=0 user="root" password="ta0mee" host="localhost" tmp_file="table.sql" create_user_table_sql() { cat <<EOF >$tmp_file delete from t_user_attire_$1 where count=0; EOF } if [ "$1" == "" ] ; then echo need 0,1..16 exit; fi db_index=0 end_index=99 if [ "$1" == "0" ]; then ...
true
815f5c9f30f6f51a30c79137ef15d1e28de6ce07
Shell
yurisuki/Archosu
/lib/archosu-chroot/lib/archosu-utils-chroot
UTF-8
3,074
3.765625
4
[]
no_license
#!/bin/bash # This script will be executed in chroot environment. source /lib/archosu-main introduction() { dialog --backtitle "$tit" --title "Chrooted" --msgbox "Now, you're chrooted inside your new system. You're almost ready to go, but I still have to do some stuff for you." 6 70 } locale() { # Set system locale...
true
b876b6ce1cef24546151ffb8eeb9593ac29e51cf
Shell
cha63506/ubuntu-8
/setup.sh
UTF-8
386
3.15625
3
[]
no_license
#!/bin/bash # bashrc echo -n "Backup your original bashrc? (y/n)" read IN if [ "$IN" = "y" ] || [ "$IN" = "Y" ]; then rm -f ~/.bashrc_backup; mv -f ~/.bashrc ~/.bashrc_backup fi ln -f -s $PWD/_bashrc ~/.bashrc echo "=== DONE! ===" # scripts ln -f -s $PWD/scripts ~/ # vim bash $PWD/vim/setup.sh # tmux & powerlin...
true
43bdadc8ac92c7633a2be31ab781296b87a2e448
Shell
tiffanywang3/prompt
/src/scripts/gcloud-install.sh
UTF-8
1,402
3.75
4
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
#!/usr/bin/env bash if [ ! -z "${AM_PROMPT_DEBUG:-}" ]; then echo 'gcloud-install' fi __prompt-set-gcloud-path() { local GCLOUD_PATH_INC=$HOME/.gcloud/path.bash.inc if [ -e $GCLOUD_PATH_INC ]; then source $GCLOUD_PATH_INC fi } gcloud-install() { local GCLOUD_PATH=$HOME/.gcloud local P...
true
9c2c727f08b084b9f668c134c41271e878401a03
Shell
michalczapko/dotfiles
/bashrc
UTF-8
467
3.015625
3
[ "MIT" ]
permissive
# Bash aliases alias l='ls -l' alias la="ls -Alh" alias ..='cd ..' # Rails aliases alias sc='./script/console' alias ss='./script/server' # Rails aliases alias gs='git status' alias gc='git checkout' # Set prompt to show git branch parse_git_branch (){ [`pwd | grep "work|Sites|Projects"` != ""] && git branch --no...
true
3143c6b45cd411bf8e61f772456f58e85027d965
Shell
ivanfioravanti/easy-azure-opensource
/mongodb/devShardedCluster/mongoCluster.sh
UTF-8
1,808
3.609375
4
[ "MIT" ]
permissive
#!/bin/sh DATAFOLDER=/mnt/data NUMOFSHARDS=4 MONGOUSER=azureuser # feel free to use mmapv1 or wiredTiger STORAGEENGINE=wiredTiger case "$1" in start) for i in $(seq -f "%02g" 0 $((NUMOFSHARDS-1))) do echo "\n\nStarting Shard $i.\n" mongod --port 270$i --dbpath $DATAFOLDER/s$i ...
true
ffa1d9c1ea4c06dc981a970553b444a192492899
Shell
chanzuckerberg/miniwdl
/tests/singularity.t
UTF-8
1,435
3.21875
3
[ "MIT" ]
permissive
#!/bin/bash # bash-tap tests for miniwdl's Singularity task runtime. `singularity` must be available. set -o pipefail cd "$(dirname $0)/.." SOURCE_DIR="$(pwd)" BASH_TAP_ROOT="tests/bash-tap" source tests/bash-tap/bash-tap-bootstrap export PYTHONPATH="$SOURCE_DIR:$PYTHONPATH" miniwdl="python3 -m WDL" if [[ -z $TMPDI...
true
54b594ec8588c2b78ecb6f2b7dfaf78784bf8202
Shell
alexeykazakov/saas
/fetch_and_apply.sh
UTF-8
1,360
3.921875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash TSTAMP=$(date +%Y%m%d_%H%M%S) TPLDIR="dsaas-templates" function git_prep { # should also check that the git master co is clean git checkout master git pull --rebase upstream master } function prep { git_prep TOK=$(cat ../osd-dsaas-token-`whoami`) oc login https://api.dsaas.openshift.com --token=${...
true
e1a0da6ae1a822419ac9dc0ed88259f322412d8b
Shell
skywalker-nick/homework
/neutron-scripts/create_vm.sh
UTF-8
1,551
2.921875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # Create Tenant and User # keystone_ip=192.168.247.6 tenant=Tenant$1 user=User$1 usermail=user$1@awcloud.com role=Member extnet=$2 image_id=`glance index | grep Cirr | awk '{print $1}'` nova --os-tenant-name $tenant --os-username $user --os-password password --os-auth-url=http://$keystone_ip:5000/v2.0 k...
true
84236ca9e6b59d592c4bf913763d110dd6b4c4d3
Shell
ttylta/dots
/scripts/artic
UTF-8
698
4.09375
4
[]
no_license
#! /bin/bash while test $# -gt 0; do case "$1" in -a) shift article=$1 shift ;; -n) # TODO: Auto generate the name from the website title. shift name=$1 shift ;; *) echo "$1 is not a recognized argument" exit; ;; esac done if [ ! -z "$article" ] && [...
true
d59d35bb4c9bb87419c3579ed0850117dfc2dfe1
Shell
hhadian/kaldi
/egs/mandarin_bn_bc/s5/local/tdt_mandarin_data_prep_txt.sh
UTF-8
3,198
3.546875
4
[ "Apache-2.0", "LicenseRef-scancode-public-domain" ]
permissive
#!/usr/bin/env bash # Copyright 2019 Johns Hopkins University (author: Jinyi Yang) # Apache 2.0 . ./path.sh || exit 1; echo $0 "$@" export LC_ALL=C tdtData=$(utils/make_absolute.sh "${@: -1}" ); length=$(($#-1)) args=${@:1:$length} top_pwd=`pwd` txtdir=$tdtData/txt sph_scp=$tdtData/wav.scp mkdir -p $txtdir cd $t...
true
20f268ace4cf8a593bc9abc194d0ede65787d138
Shell
malyzajko/daisy
/scripts/optimization_mixed-tuning_rewriting.sh
UTF-8
1,517
3.21875
3
[ "BSD-2-Clause" ]
permissive
#!/bin/bash --posix # # Runs mixed-precision tuning on a set of benchmarks # Usage: this script needs to be run from the /daisy home directory. If you # get an error that daisy is not found, check this. # # Parameters are non-optional: # # 1: whether to use rewriting # 2: whether to run benchmarking # # ./scripts/mixe...
true
2b962f53d20bbce49fcd10db7beb16cf49097679
Shell
lloydtawanda/os_hardening_scripts
/rhel/audit.sh
UTF-8
7,972
2.953125
3
[]
no_license
################################################ # 4.0 Logging and Auditing ################################################ # ********************************************** # 4.1 Configure System Accounting (auditd) # ********************************************** # 4.1.1 Ensure auditing is enabled # 4.1.1.1 Ensure...
true
844c80677149884ff27be6cc22cb3da449f266e4
Shell
ram437/scripts
/smoketest_valhalla_glassfish.sh
UTF-8
556
3.515625
4
[]
no_license
#!/bin/bash MY_PATH="`dirname \"$0\"`" cd $MY_PATH . get_inventory.sh || { echo "Failed to fetch the inventory .."; exit 1; } if [[ "${ENV_DC}_${ENV_TYPE}" == "RS_STAGE" ]]; then search="Best Run" else search="Lorem ipsum" fi for server in $VALHALLASERVERS; do url="http://$server/" output=`no_prox...
true
c39be21e08e0a57f8ec7566df2fe4f6813f7daed
Shell
rsenn/scripts
/profile/pkg-config.sh
UTF-8
526
3.40625
3
[]
no_license
init_pkgconfig_path() { if [ "${PKG_CONFIG_PATH+set}" != set ]; then old_IFS=$IFS IFS=:; set -- $PATH; IFS="; ";isin() { N=$1; while [ "$#" -gt 1 ]; do shift; [ "$N" = "$1" ] && return 0; done; return 1 }; P="${*%%/bin*}"; set --; for D in $P; do D=$D/lib/pkgconfig; if [ -d "$D" ]; then type cygpath 2>/dev/nu...
true
77eb661830956dbe995fcaf2667ed56326e785f5
Shell
CrownBonded/bazel
/compile.sh
UTF-8
8,053
3.890625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # Copyright 2014 The Bazel Authors. 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 ...
true
c6f8abaeb6560c454537f94a84c1f51f2ab1389f
Shell
topel-research-group/Arctic_plant_chloproplast_genomes
/05_Contamination_filtering/remove_seq_based_on_contaminated_contigs.sh
UTF-8
966
3.484375
3
[]
no_license
#this script loops over all folders (genes) and removes any sequences derived from contigs that were contaminated then loads the results into a new fasta file (${GENE}_post_contig_contamination_filer.fasta) for TAX in `find ./* -maxdepth 0 -type d`; do cd $TAX #Create correct output file name GENE=$(pwd | c...
true
14ee42ac29fbf58c4dd4287b4007bbd8bbf881dd
Shell
NetBSD/pkgsrc-wip
/deforaos-probe/files/DaMon.sh
UTF-8
380
3.03125
3
[]
no_license
#!/bin/sh # # $NetBSD: DaMon.sh,v 1.1 2010/04/15 15:54:57 khorben Exp $ # # PROVIDE: DaMon # REQUIRE: Probe # KEYWORD: shutdown if [ -f /etc/rc.subr ] then . /etc/rc.subr fi name="DaMon" rcvar=$name command="/usr/local/bin/DaMon" command_args="&" required_files="/usr/local/etc/$name.conf" DaMon_chdir="/home/damon" D...
true
5d54377e81c5015019d0ef6adb776b510ec1eda3
Shell
klooj/zsh-dots
/my_plugins/utils/funcs/ytvid
UTF-8
373
2.828125
3
[]
no_license
youtube-dl $1 open ~/Desktop/yt [[ $OSTYPE =~ darwin ]] && \ echo "if you want to add it straight to apple tv library, run:\nrmove ~/Desktop/yt/video '/Volumes/kusb3_250hfs/TV/Automatically Add to TV.localized'" [[ $OSTYPE =~ linux ]] && \ echo "i'm unprepared for this part. just raw dog it." shift while (( $# > 0 ...
true
26b876dbc6be484e6f5774599ef479cd91cafed0
Shell
manangatangy/flutter_vpn_switch
/vpnswitch/vpn_current.sh
UTF-8
134
3.09375
3
[]
no_license
#! /bin/bash if ls /etc/openvpn/*.conf > /dev/null ; then F="`ls /etc/openvpn/*.conf`" basename "$F" .conf else exit 1 fi
true
55cfdf47828282ac8053726b4ab46a2c217c91d8
Shell
dpark6060/FSL_Preprocessing
/Bash/FillTemplate.sh
UTF-8
4,171
3.578125
4
[]
no_license
#!/bin/sh TEMPLATE=../Template/Template.fsf # This should be set up in some universal path file FSL_DIR=/usr/local/fsl/5.0.7/bin #################################################################### # VOLUME INFO #################################################################### # THE INPUT FMRI VOLUME TO USE (CA...
true
42c935e3b366c5f1ebd76a216f5da037a4a80a38
Shell
uchile-robotics/bender_core
/bender_sensors/install/cameras.sh
UTF-8
1,021
3.421875
3
[]
no_license
#!/bin/bash # - - - - - - S E T U P - - - - - - - - # # # # # # # # # # # # # # # # # # # # UDEV_DIR="/opt/bender/udev" RULES_DIR="/etc/udev/rules.d" # - - - - - - I N S T A L L - - - - - - # # # # # # # # # # # # # # # # # # # # # usb_cam fork install # TODO: unificar como metodo llamado desde bender_system # (est...
true
53c78093d8256f6161655a229b1b7327dc265602
Shell
Enstore-org/enstore
/sbin/ipmi_restart
UTF-8
882
3.34375
3
[]
no_license
#!/bin/sh set -u if [ "${1:-}" = "-x" ] ; then set -xv; shift; fi if [ "`whoami`" != "root" ]; then echo `date` Only root can run $0 exit 1 fi here=`pwd` cd /root # stop the watchdog timer and ipmisrv process ### all lines that begin with 3 pound signs were commented ### out in order to remove any watchdog t...
true
0bc0cc568ef4a43c80c91a459f62758a9e379450
Shell
jamespharaoh/devbox-tools
/devbox-preseed-template
UTF-8
3,179
2.625
3
[]
no_license
cat <<-EOF # localisation d-i debian-installer/locale select C d-i debian-installer/language string en d-i debian-installer/country string GB # keyboard d-i console-setup/ask_detect boolean false d-i keyboard-configuration/layoutcode string gb # network d-i netcfg/choose_interface select eth0 d-i netcfg...
true
a5763ca7b3cb4f9b712cc238cde7bcf4bbd63462
Shell
michaelmusty/.dotfiles
/bash/bash_completion.d/pass.bash
UTF-8
1,631
3.921875
4
[ "Unlicense", "LicenseRef-scancode-public-domain" ]
permissive
# Load _completion_ignore_case helper function if ! declare -F _completion_ignore_case >/dev/null ; then source "$HOME"/.bash_completion.d/_completion_ignore_case.bash fi # Custom completion for pass(1), because I don't like the one included with the # distribution _pass() { # Iterate through completions prod...
true
d48ff4cc91acb56a239900b393ae980f0665dfb6
Shell
t-wissmann/dotfiles
/menu/rofi-file-open.sh
UTF-8
806
3.828125
4
[]
no_license
#!/usr/bin/env bash set -e usage() { cat <<EOF $0 DIR List files in the directory DIR and its subdirectories in a rofi menu and open the selected files. When selecting files via <Shift>-Return then the menu is kept open. EOF } dir="$1" if [[ -z "$dir" ]] ; then usage >&2 exit 1 fi multiselectkey=$(rofi -h ...
true
8c61d159370e988fe19a2a39230be9f1f48d3af6
Shell
coralnexus/corl-bootstrap
/os/ubuntu/01_git.sh
UTF-8
760
3.421875
3
[]
no_license
#!/bin/bash #------------------------------------------------------------------------------- # Install Git. echo "1. Ensuring Git" apt-get -y install git >/tmp/git.install.log 2>&1 || exit 10 # Make sure it is easy to communicate with repo hosts echo "2. Adding GitHub to root known hosts" mkdir -p "/root/.ssh" || ex...
true
a66085a9d0570cc6811899d3fb69238cadbd4035
Shell
enr/dockerfiles
/sdkman/docker-entrypoint.sh
UTF-8
203
3.125
3
[]
no_license
#!/bin/bash set -eo pipefail sdkman_init="${SDKMAN_DIR}/bin/sdkman-init.sh" [[ -r "$sdkman_init" ]] || { echo "NOT FOUND ${sdkman_init}" } [[ -r "$sdkman_init" ]] && source "$sdkman_init" exec "$@"
true
86549ebb0681e2e355e195ff45d42ac461f28214
Shell
yafraorg/yafra
/org.yafra.sysadm/defaults/scripts/sa_ishpux11
UTF-8
5,770
2.875
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/sh #------------------------------------------------------------------------------ # (c) yafra.org # # function: install a client (hp 9000 series 700) system (IS) # # autor: Administrator (mw) # # date: 18.10.94 # # !! USE cvs for check in and check out and lock !!!! # #----------------------------...
true
5064eb9ca941b59085537d3c0fbe7143f36df938
Shell
piandpower/docker-UnrealEngine4
/entrypoint.sh
UTF-8
1,537
3.640625
4
[]
no_license
#!/bin/bash # abort if UnrealEngine source code not found sudo test ! -f ${_UNREAL_DATA_DIR}/Setup.sh \ && echo "UnrealEngine source code not found in ${_UNREAL_DATA_DIR}" \ && exit 1 # build if not already built sudo test ! -f ${_UNREAL_DATA_DIR}/Engine/Binaries/Linux/UE4Editor \ && echo "Building... tak...
true
7871a304fd920039e4de731473b586832ef4e045
Shell
windanchaos/MK-CI
/V1.1/build.sh
UTF-8
2,931
3.609375
4
[]
no_license
#!/bin/bash #设置环境变量 source /etc/profile source /home/mkstar/mkci/repository.sh ##代码编写遵守<Defensive BASH Programming>博客描述的以下原则 ######## Immutable global variables ######## Everything is local ######## Everything is a function ######## Debugging functions(bash -x)(set -x …… set +x) ######## Code clarity ######## Each li...
true
84d70f0f859fe9eef42a53a3ce830d3c75331252
Shell
leticiaSaraiva/scripts-programming
/atividades/atividade05/maiorDe3Verificado.sh
UTF-8
656
3.25
3
[]
no_license
#!/bin/bash # Correção: 1,0 numero1=${1} numero2=${2} numero3=${3} if ! expr ${numero1} + 1 &> /dev/null then echo "Opa! ${numero1} não é um número." elif ! expr ${numero2} + 1 &> /dev/null then echo "Opa! ${numero2} não é um número." elif ! expr ${numero3} + 1 &> /dev/null then echo "Opa! ${numero3} não é um nú...
true
f90e1c62738a77a54bab19693c47403c18e4115b
Shell
Abang81/x250
/USB.command
UTF-8
8,182
3.34375
3
[]
no_license
#!/bin/sh # This script will automatically download the needed kexts and create a # directory in the process # Explain that Xcode must be installed clear echo "\n================================================================================\n" echo " (!) Xcode must be installed to continue. Answer the following quest...
true
fcd1725d2d6b384c272f0e0b211ca3e8c899d3b5
Shell
DiegoRincon/Spring2016
/WSEHW1/src/runRetriever.sh
UTF-8
178
2.859375
3
[]
no_license
#!/bin/bash if [ "$#" -lt 2 ] then echo "Usage: <indexerDir> <query>" exit 1 fi indexerDir="$1" shift java -cp .:../Lucene/*:../HTMLParser/* Retriever "$indexerDir" "$@"
true
f27e470f447bb33de8b204385ad0944bdcb555b1
Shell
Allegra42/zircon
/scripts/build-zircon
UTF-8
1,493
3.734375
4
[ "MIT", "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash # Copyright 2018 The Fuchsia Authors # # Use of this source code is governed by a MIT-style # license that can be found in the LICENSE file or at # https://opensource.org/licenses/MIT function HELP { echo "help:" echo "-a <arch> : arm64, or x64" echo "-A : ...
true
e1aef761941e2247c97b6b679dae24eb59e00f56
Shell
Xiddler/PORTABLE_ENV
/dotfiles/scripts/.scripts/get_defs.sh
UTF-8
1,444
3.390625
3
[]
no_license
#!/bin/bash # Get definitions from OED --> $HOME/REPOS/WORDS/Dictionaries/Oxford_English_Dictionary/oxford_dict.txt # Edit 2022-10-17 # Alternative to dict (ie dictd from AUR) # usage $def <word_sought> where def is aliased in .zshrc as: alias def='~/.scripts/get_defs.sh ' string=$1 #origingal # first=`echo $string...
true
e568ea16fc8cbbe2a9781c75a1e8b1d0b8e04469
Shell
openbsd/src
/regress/sys/ffs/tests/rename/01.t
UTF-8
476
2.671875
3
[ "BSD-2-Clause" ]
permissive
#!/bin/sh # $FreeBSD: src/tools/regression/fstest/tests/rename/01.t,v 1.1 2007/01/17 01:42:10 pjd Exp $ desc="rename returns ENAMETOOLONG if a component of either pathname exceeded 255 characters" n0=`namegen` expect 0 create ${name255} 0644 expect 0 rename ${name255} ${n0} expect 0 rename ${n0} ${name255} expect 0 ...
true
38794408b1b1db1bab8350519a501a5b534954ab
Shell
paridhishr/rabbithub
/test/regressionTest2/subq_contactall.sh
UTF-8
495
2.71875
3
[ "MIT" ]
permissive
#!/bin/bash ## create a subscriber to a queue with contact information ## $1 - vhost ## $2 - queue name ## $3 - topic ## $4 - callback url ## $5 - rabbitmq user ## $6 - rabbitmq password ## $7 - application name ## $8 - contact name ## $9 - phone ## $10 - email ## $11 - description curl -vd "hub.mode=subscribe&hub.ca...
true
73c7085fe39c4ba1cb570ba33b95f487effc3fae
Shell
xusl/android-wilhelm
/apps_proc/kernel-tests/cpu/cpuhotplug_test.sh
UTF-8
4,508
3.4375
3
[ "Apache-2.0" ]
permissive
#----------------------------------------------------------------------------- # Copyright (c) 2011 QUALCOMM Incorporated. # All Rights Reserved. QUALCOMM Proprietary and Confidential. #----------------------------------------------------------------------------- . $TEST_ENV_SETUP CPUHOTPLUG_DIR="/sys/devices/system/...
true
45f8b04deed82627f6f6bc9e329d6f78d710be34
Shell
jjvein/git-script
/git-needcommit
UTF-8
208
3.015625
3
[]
no_license
#!/usr/bin/env bash #这里必须使用"" 将命令包围 if [ -z "$(git status --porcelain)" ]; then echo "IT IS CLEAN" else echo "PLEASE COMMIT YOUR CHANGE FIRST!!!" git status --porcelain fi
true
acb6b4ff929606f1d20b77226a2bded58ae81b96
Shell
sonro/dotfiles
/bin/setup
UTF-8
1,558
3.921875
4
[]
no_license
#!/usr/bin/env bash set -e HELP="\ DOTFILE SETUP ============= sonro <sonro@gmx.com> Setup software and configurations for development on *nix USAGE: setup [OPTIONS] OPTIONS: -h, --help Prints help information -s, --server Setup without node and neovim (for a more minimal install) -n, --new Repl...
true
6e26365121420bcb1d83ed88549828fa6730315c
Shell
aalhour/kaos
/scripts/apply_destroy.sh
UTF-8
800
3.71875
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -e infrastructure=$1 cd ${infrastructure} function tf_apply_destroy() { if [[ ! -f done ]]; then terraform init if [[ $# -eq 1 ]]; then terraform workspace select "$1" fi terraform apply --auto-approve terraform destroy --auto-approve ...
true
b8117b6a791f649a89219ab0c634b6fa11c682e3
Shell
francescacairoli/HPC
/ex1/strong_one_iter.sh
UTF-8
314
2.59375
3
[]
no_license
module load openmpi echo "Strong Scalability: base size is $1" #for procs in 1 2 4 8 16 20; do for ((procs=1;procs<=20;procs++)); do echo "Niter_per_CPU =$(($1/${procs})), np=${procs}" time mpirun -np ${procs} ./parallel_pi $(($1/${procs})) echo "------------------------------------------------" done
true
e6759f06a6a75f5d191f8c9674ef1e337b72296e
Shell
scottford-io/core-plans
/lynx/plan.sh
UTF-8
716
2.671875
3
[ "Apache-2.0" ]
permissive
pkg_origin=core pkg_name=lynx pkg_version=2.8.8 pkg_description="Lynx is the text web browser." pkg_upstream_url=http://lynx.browser.org/ pkg_license=("GPL-2.0") pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>" pkg_source="http://invisible-mirror.net/archives/$pkg_name/tarballs/$pkg_name${pkg_version}rel.2....
true
069ea2f70a9c0c3579ddfb95e14a873981f76687
Shell
botfapnews/newscoop-botfap
/setup.sh
UTF-8
1,309
4.03125
4
[]
no_license
#!/bin/bash # function sanity_check { if [ `cat /etc/os-release | grep VERSION_ID | cut -d "\"" -f 2` != "16.04" ]; then echo "You must be running Ubuntu 16.04 LTS" && exit 0; fi if [ `whoami` != "root" ]; then echo "You must run me as root or with sudo" && exit 0; fi if [ `basedir $0` != "/var/www" ]; then echo "Y...
true
ca01c69d1b8dfca157ebfbdba034c908115c482a
Shell
KatyBrown/CIAlign
/benchmarking/BAliBase/run_alignment.sh
UTF-8
618
2.796875
3
[ "MIT" ]
permissive
for i in {1..10} do for file in reference\_set\_$i/input/*; do stem=$(echo $file | rev | cut -d "/" -f1 | cut -d "." -f2 | rev) clustalo --auto -i reference\_set\_$i/input/$stem.fasta -o reference\_set\_$i/clustal/$stem\_auto.fasta mafft --localpair --maxiterate 100 reference\_set\_$i/input/$stem.fast...
true
42a1b402f7dbf2a280dd7d5a0f3ffd6be4a39564
Shell
iodar/linux-scripts
/linux-helpers/array-split.sh
UTF-8
167
3.625
4
[]
no_license
#!/bin/bash CSV=$1 [ -z "${CSV}" ] && echo "please provide an args array" && exit 1 CSV_AS_ARRAY=${1//,/ } for element in $CSV_AS_ARRAY; do echo $element done
true
c6d13608699f873dbdc5afb326bcb76d09c8dda9
Shell
kunalpict/recipes-ui-angular2-jspm
/bin/jenkins-publish.sh
UTF-8
797
3.9375
4
[ "MIT" ]
permissive
#!/bin/bash # # Script used to publish the project in Jenkins # ( set -e get_value() { sed -n -e "s/.*\"$1\".*\"\(.*\)\".*/\1/p" package.json } # Ensure we are in the workspace cd "$WORKSPACE" __DIR__="${BASH_SOURCE%/*}" # shellcheck disable=SC1091 # shellcheck source=bin/setup-node.sh source "$__DIR__/_setup-nod...
true
a449b4717ca1fd9be8f13eee88702dbb8568cebc
Shell
joeytwiddle/jsh
/code/shellscript/shio/readbytes.sh
UTF-8
495
3.265625
3
[]
no_license
TO_READ="$1" # NUM_READ=` ddshowbytes bs="$TO_READ" count=1 ` while true do if [ "$TO_READ" = 0 ] then exit 0 fi jshinfo "[readbytes] requesting $TO_READ bytes" DDLOGFILE=/tmp/$$.ddlog dd bs="$TO_READ" count=1 2> "$DDLOGFILE" NUM_READ=` tail -n 1 "$DDLOGFILE" | sed 's+ bytes .*++' ` rm -f "$DDLOGFILE" js...
true
90188b703b6e117450fddb450c10bb14870d3a86
Shell
spencertipping/ni
/dev/bench-startup
UTF-8
377
2.671875
3
[ "MIT" ]
permissive
#!/bin/bash ni < /dev/null > /dev/null ./nfu < /dev/null > /dev/null date > /dev/null ta=$(date +%s%N) for i in `seq 100`; do ni < /dev/null > /dev/null done tb=$(date +%s%N) for i in `seq 100`; do ./nfu < /dev/null > /dev/null done tc=$(date +%s%N) echo -e "ni_startup\t$(( (tb - ta) / 1000000 / 100 ))\tms" ech...
true
be1731e496f304c8c570f53738a980024d3b8d90
Shell
tomduhourq/dotfiles
/.zshrc
UTF-8
3,810
2.640625
3
[]
no_license
# Path to your oh-my-zsh installation. ## CHANGE THIS export ZSH=/home/tomas/.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" # Uncomment the following line to ...
true
f71bb23838f5588c6851eaac86e27030a3be85f2
Shell
HPCNow/cbgp-training
/hpcnowxx/slurm2.sl
UTF-8
620
2.6875
3
[]
no_license
#!/bin/bash ##### These lines are for Slurm #SBATCH -t 5:00 #SBATCH -N 1 #SBATCH --cpus-per-task=4 #SBATCH -p main #SBATCH -o output.omp #SBATCH -J omp ##### These are shell commands echo -n 'This machine is '; hostname echo -n 'My jobid is '; echo $SLURM_JOBID echo 'My path is:' echo $PATH echo ' ' echo 'Compiling.....
true
457dc5b7617e71c2a980debd0ca24ce149624ac8
Shell
fabiim/pagerduty-client
/travis-ci/deploy.sh
UTF-8
919
3.09375
3
[ "MIT" ]
permissive
#!/bin/bash set -ev # This script will be used by Travis CI and will deploy the project to maven, making sure to use the sign and # build-extras profiles and any settings in our settings file. openssl aes-256-cbc -pass pass:$PEM_ENCRYPTION_PASSWORD -in travis-ci/keys/github.com_rsa.pem.enc -out ~/.ssh/github.com_rsa...
true
6a6ac92d065648f46cc72dceab80f8a9a6b0de09
Shell
kenyonj/dotfiles-1
/install.sh
UTF-8
1,347
3.265625
3
[]
no_license
#!/bin/bash exec > >(tee -i $HOME/dotfiles_install.log) exec 2>&1 set -x # Install curl, tar, git, other dependencies if missing PACKAGES_NEEDED="\ silversearcher-ag \ bat \ fuse \ libfuse2" if ! dpkg -s ${PACKAGES_NEEDED} > /dev/null 2>&1; then if [ ! -d "/var/lib/apt/lists" ] || [ "$(ls /var/li...
true
c1835b0659701fa6a90cb4d0aeb900d8bbde4e06
Shell
jhby1/react-bootstrap-typeahead
/scripts/build.sh
UTF-8
770
3.25
3
[ "MIT" ]
permissive
#!/bin/sh # Delete existing dist & lib files npm run clean # Compile SCSS file to development and prod CSS files for file in scss/Typeahead*; do filename=$(basename "$file") extension="${filename##*.}" filename="${filename%.*}" ./node_modules/node-sass/bin/node-sass ${file} css/${filename}.css \ --output...
true
1605c832cb8204b5bd3e6948508581ca27bbf08e
Shell
nu-art/dev-tools
/scripts/dev/android-oo/classes/AndroidDeviceBridge.class.sh
UTF-8
671
3.875
4
[]
no_license
#!/bin/bash AndroidDeviceBridge() { declare -a devices _isDeviceRegistered() { local serial=${1} for device in ${devices[@]}; do [[ "$("${device}.serial")" == "${serial}" ]] && echo true && return done } _detectDevices() { local output=$(adb devices | grep -E "[A-Za-z0-9.:].*" ) wh...
true
ddc78fcaeaf8effecdef10aaf63baa2430da450a
Shell
pherms/i3wm_Desktop
/cputemp.sh-old
UTF-8
659
2.59375
3
[]
no_license
#!/bin/bash degrees=$(exec sensors | grep -oP 'Package.*?\+\K[0-9]+') #echo $degrees if (("$degrees" <= "10" )) then echo " $(exec sensors | grep -oP 'Package.*?\+\K[0-9]+') C" elif (("$degrees" > "11" )) && (("$degrees" <= "25" )) then echo " $(exec sensors | grep -oP 'Package.*?\+\K[0-9]+') C" elif (("$degrees...
true
7d0306d26468988a2c5235f8df101c8caae9f2b9
Shell
dp12/dotfiles
/tmux/tmux_gdb_helper.sh
UTF-8
402
3.3125
3
[]
no_license
#!/bin/env bash target=$(cat "$@") if [[ "$target" =~ ^[a-fA-F0-9]+$ ]]; then target="0x${target}" elif [[ "$target" =~ ^[a-z]+$ ]]; then target="\$${target}" fi cmd="$(cat ~/.tmux_gdb_cmd)" if [[ $cmd == *'*' ]]; then # for breakpoints, don't add space after the asterisk, e.g. b *0xdeadbeef send_str="${cmd}$...
true
52909e4c6a1b339b3887c5ff36860b9d466b3683
Shell
pletzer/mint
/scripts/fluxA.sh
UTF-8
2,048
3.015625
3
[ "0BSD" ]
permissive
# compute flux # function determining the path nline=2 xlinefunc="320.*t + 25.0" ylinefunc="170.*t - 85.0" # write to VTK file python writeLineToVTK.py "$nline" "$xlinefunc" "$ylinefunc" lineA.vtk # stream function streamfunc="sin(2*pi*x/180. - 0.3)**2 + cos(2*pi*y/180. - 0.2)**2" x0expr=$(echo $xlinef...
true
d032c32e2efd8786fde69ca0d87fec0cd205c8f4
Shell
aswen/scripts
/backup-with-input
UTF-8
2,696
3.59375
4
[]
no_license
#!/bin/bash # backup-homedir-harm` # makes a backup of some dirs to network # Copyright (C) 2014-2015 Alexander Swen <alex@swen.nu> # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either versi...
true
d7a8335817638347a288264f7d30b338a77f042d
Shell
didrocks/otto
/lxc.defaults/guest/usr/local/bin/check-installed
UTF-8
2,318
4.125
4
[]
no_license
#!/bin/bash # This script verifies that only the packages passed in argument will be # upgraded or installed # Copyright (C) 2013 Canonical # # Authors: Jean-Baptiste Lallement <jean-baptiste.lallement@canonical.com> # # This program is free software; you can redistribute it and/or modify it under # the terms of the ...
true
65bb70892f176a2904df0f8f1bae96b5863fd848
Shell
HPCNow/SubmitScripts
/GridEngine/nwchem-ompi-iqtc04.sub
UTF-8
1,402
3.171875
3
[]
no_license
#!/bin/bash ########################################## # SGE options and parameters ########################################## # (1) Name of the job #$ -N test_nwchem_iqtc04 # (2) Requested resources # Parallel Environment and number of cores #$ -pe omp* 4 # Queue #$ -q iqtc04.q # Shell #$ -S /bin/bash # (3) Outpu...
true
9b72ed049802b8820de53b4f12778a7d3fdbe4d2
Shell
swjtk/hardLinks
/Lb1.sh
UTF-8
214
3.28125
3
[]
no_license
#!/bin/bash TMP='/tmp/errorfile' mkdir -p $2 >$TMP direction=$(realpath $2) find "$3" -type f -name "*.$1" -exec ln {} $direction 2>$TMP ';' while read LINE do echo "$(basename $0): $LINE">&2 done<$TMP <$TMP
true
4907097238f2325fd56c37a3ca871f051b00a1fb
Shell
mariano78/nettemp
/modules/sensors/1wire/1wire_serial_scan
UTF-8
975
3.421875
3
[ "MIT" ]
permissive
#! /bin/bash dir=$( cd "$( dirname "$0" )" && cd ../../../ && pwd ) date=`date +%y%m%d-%H%M` # DS9097 - serial if [ ! -e $dir/tmp/.digitemprcs ]; then dev=$(sqlite3 -cmd ".timeout 2000" $dir/dbf/nettemp.db "SELECT dev FROM usb WHERE device='1wire Serial'"|sed 's/\/dev\///g') if [[ "$dev" == "none" ]]; the...
true
ff02e4bae8602c713d6822a6eb8ee49809d2cb9f
Shell
mariusv/Personal
/bash/ip_camera_capture.sh
UTF-8
1,573
2.859375
3
[]
no_license
#!/bin/sh - #Primitive IP Camera Capture Script #Axis 210a Camera #Use a Cron Job To Control #Tested under FreeBSD ROT=$(date "+%b%d%y%H%M") CAPTOOL=/usr/local/bin/mencoder CAP_OPT1="-prefer-ipv4 -fps 6 -demuxer lavf" CAP_OPT2="-nosound -oac mp3lame -ovc xvid -xvidencopts pass=1 -o" ADDIES="cam1 cam3 cam4 cam5" # IP mu...
true
1ab8bc355eb70599f5878d634fdad87b251782fa
Shell
Lubell/Scripts_Flow
/Recons/Linear_NonLinear_Register
UTF-8
5,802
3.640625
4
[]
no_license
#!/bin/sh #Performs linear and NonLinear registration with bioimagesuite3 #Takes patient code, name of recon_folder where images are stored, type of file for #Reference image (can be MR, CT, MNI), Transform file type (can be MR, CT, MNI), and if you want inverses of the grids and matrices put a letter in the fifth opt...
true
fc15c1a1a61dba5134fca10cc14d687052646a68
Shell
mjmunger/sysutils
/scripts/run_checklist.sh
UTF-8
1,099
3.1875
3
[ "MIT" ]
permissive
#!/usr/bin/env bash run_checklist() { update_apt setup_auto_updates apt-get install --assume-yes ntp vim prefer_ipv4 disable_ipv6 } setup_auto_updates() { apt-get install --assume-yes unattended-upgrades apt-listchanges sed -i 's#//Unattended-Upgrade::Mail "root"#Unattended-Upgrade::Mail ...
true
a53fe57ee0f6e574585d353c6fefb52dcf69738d
Shell
RL-code-lib/dapo
/tools/auto_func.sh
UTF-8
2,185
3.296875
3
[]
no_license
#/bin/bash export DARL_ROOT=$HOME/darl SCRIPT_ENV=$HOME/darl/bench function run_exp() { dir=$1 envname=$2 suite=$3 n_actor=$4 n_slot=$5 local_port=$6 gpu_idx=$7 # ploss=$8 vloss=$9 reg=${10} priority=${11} base_lr=${12} final_lr=${13} adv_est=${14} adv_coef=${15} adv_off=${16} reg...
true
a187f4b2f23cbe9c8909deb51b1bb100a7daba0c
Shell
osuka/bank-statement-processor
/legacy/clasificador-pdf-firstdirect.sh
UTF-8
1,803
3.953125
4
[]
no_license
#!/bin/bash # virtualenv --python=python3 venv # source venv/bin/activate # pip install -r requirements.txt # date usage works on mac os x - need testing on Linux (!) UNAME="`uname -a`" if [[ $UNAME =~ *Darwin* ]] ; then echo "Need to test this on linux - take a look" exit 1 fi TMPFILE="/tmp/procesar-tmp.txt"...
true
d4807fed8fd2966c545ef2b6c17dd02d3c775476
Shell
garborg/mydots
/dots/.bash_profile
UTF-8
324
3.5625
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # This file only exists to protect against tools that create # .bash_profile, causing it to be read instead of .profile in some situations. # (or existence of .bash_login) # .bashrc checks if shell is interactive and/or bash, and acts accordingly if [ -f "$HOME/.bashrc" ]; then . "$HOME/.bashrc"...
true
3c372b1d56585176f625a7e7723dc09226aae46a
Shell
whart222/pyutilib
/pyutilib/component/loader/tests/eggsrc/update
UTF-8
468
2.515625
3
[ "BSD-3-Clause" ]
permissive
#!/bin/sh # # A script that is used to update the EGG files with a new version of Python # cd pkg1 python setup.py sdist bdist_egg cd ../pkg2 python setup.py sdist bdist_egg cd ../pkg3 python setup.py sdist bdist_egg cd ../pkg4 python setup.py sdist bdist_egg cd ../pkg5 python setup.py sdist bdist_egg cd ../pkg6 ...
true
80c391ba2e1c15faccf8a625bc34d2bbbf6559f7
Shell
ProsAndCons/bin
/junk/hex2rgb
UTF-8
172
2.984375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # # hex2rgb hex=${1:-$(< /dev/stdin)} hex=${hex/#} ((r=16#${hex:1:2}, g=16#${hex:3:2}, b=16#${hex:4:2})) 2>/dev/null echo "${r-0} ${g-0} ${b-0}"
true
7557821af806d14cf62ee9ca9c53a4b08ed10d19
Shell
redbrick/HelpdeskTalks
/IntroToBash/Fibonacci.sh
UTF-8
273
3.640625
4
[]
no_license
#!/bin/bash echo "How many numbers do you want of Fibinacci series?" read total x=1 y=1 i=2 echo "Fibonacci Series up to $total terms :: " echo "$x" echo "$y" while [ $i -lt $total ]; do i=`expr $i + 1 ` z=`expr $x + $y ` echo "$z" x=$y y=$z done
true
6d61a0c161de73cfe564eb35479de5656c224672
Shell
DDnie19/Shell_scripts
/vm.sh
UTF-8
778
3
3
[]
no_license
#!/bin/bash if [ $(ls /opt/ | grep vmware-host-modules) ]; then sudo rm -rf /opt/vmware-host-modules echo -e "\033[31m vmware-host-modules is deleted!\033[0m" echo "Start Download!" sudo git clone \ -b workstation-$( grep player.product.version /etc/vmware/config | sed '/.*\"\(.*\)\".*/ s//\1/g' ) \ https://g...
true
80640d43996926e59e790b6cf138c931782facf3
Shell
jollywho/Yaya-tan
/lib/scripts/eidirpop.sh
UTF-8
880
3.65625
4
[]
no_license
if [ "$HOSTNAME" == casper ]; then YFSDIR=${HOME} elif [ "$HOSTNAME" == balthasar ]; then YFSDIR=${HOME}/casper fi YFSDIR="${YFSDIR}/YFS/ALL" find "${1}" -iname '*.*' | while read file; do #if good extension shopt -s nocasematch if [[ "${file}" =~ ^.*\.(mkv|avi|mp4|ogm)$ ]]; then # if eidata supplied if [ $#...
true
8d8a38a39cf68feabb960fb3d7935f6fede08c8c
Shell
imattman/dotfiles
/scripts/tolower
UTF-8
123
2.859375
3
[]
no_license
#!/usr/bin/env bash # fail early #set -euo pipefail while IFS= read -r line; do # modern bash echo "${line,,}" done
true
2671493126ad537d759ca98632bd356e752f5a9b
Shell
RoHBee/Robee
/Robee.sh
UTF-8
6,207
3.203125
3
[]
no_license
#!/bin/bash # Edited by:Neutral Me # Youtube:Neutral Me youtube='Neutral Me' bb="\e[1;5m" nocolor='\033[0m' red='\033[0;31m' green='\033[0;32m' orange='\033[0;33m' blue='\033[0;34m' purple='\033[0;35m' cyan='\033[0;36m' lightgray='\033[0;37m' darkgray='\033[1;30m' lightred='\033[1;31m' lightgreen='\033[1;32m' lightblu...
true
3d1822781310a49dae7d448bb66b28ad518e2e73
Shell
Gilbert-Gb-Li/sage-bigdata-azkaban
/azkaban-script/bigdata/bilibili/02.bili_live_temporary_tables_snapshot.sh
UTF-8
11,163
2.671875
3
[]
no_license
#!/bin/sh source /etc/profile source ${AZKABAN_HOME}/conf/env.conf source ${base_path}/util.sh interval=5000 date=$1 yesterday=`date -d "-1 day $date" +%Y-%m-%d` # =========================================== 打赏金额计算 ================================================ # # ----------------------------------------- # # -- ...
true
f78a4781972fbf72420a900ca9ce91e49285130e
Shell
drkennetz/cwlexec
/src/test/integration-test/run.scatter.sh
UTF-8
1,780
2.59375
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
#!/bin/sh CWLTEST_TOP=$(pwd) cd $CWLTEST_TOP/integration/scatter/cat ./run_example.sh exitcode=$? if [ $exitcode -ne 0 ]; then exit 0 fi _test_count=1 cd $CWLTEST_TOP/integration/scatter/foo ./run_example.foo.sh exitcode=$? if [ $exitcode -ne 0 ]; then exit 1 fi _test_count=2 cd $CWLTEST_TOP/integration/scat...
true
271ec5cea9266b0c250196d4d0619274b8a43259
Shell
darkearl/cookbook
/libraries/fileRemoteUtils.bash
UTF-8
3,150
4.3125
4
[]
no_license
#!/bin/bash -e ######################### # FILE REMOTE UTILITIES # ######################### function checkExistURL() { local -r url="${1}" if [[ "$(existURL "${url}")" = 'false' ]] then fatal "url '${url}' not found" else debug "url '${url}' is working" fi } function existURL() ...
true
93cfd31e5dfbe77032340fe9a8e9f92a8a9f4cf6
Shell
Zenglinxiao/alignment-scripts
/preprocess/deen-train.sh
UTF-8
631
3.296875
3
[ "MIT" ]
permissive
#!/bin/bash set -ex prefix="deen" DIR_NAME="German-English" if [ ! -d $DIR_NAME ]; then wget http://statmt.org/europarl/v7/de-en.tgz tar -xvzf de-en.tgz mkdir ${DIR_NAME} mv europarl-v7.de-en.* ${DIR_NAME} rm de-en.tgz fi # tokenization to match the test data ${MOSES_DIR}/scripts/tokenizer/tokenizer.perl ...
true
7ffae6972e9ea1fdc1c191dfc750f80d2475170e
Shell
husjon/docker-bash-signal
/test.sh
UTF-8
279
3.265625
3
[]
no_license
#!/bin/bash WORKER_PID='' handle_sig_term(){ echo "[Shell] SIGTERM received, informing python script" kill -TERM $WORKER_PID wait $WORKER_PID } trap 'handle_sig_term' TERM I=0 echo "[Shell] Starting python script" python test.py & WORKER_PID=$! wait $WORKER_PID
true
ebcba7ef65c97a878014c72b90ceb6c0f74c1972
Shell
mcdado/dotfiles
/.local-deployment-example.sh
UTF-8
326
2.78125
3
[]
no_license
COUNTER=0 echo $(date) echo "Locally deploying for $(whoami)" rsync -a --delete-excluded --exclude-from=.rsyncrc $(pwd) ~/Sites/site-a/modules/ && COUNTER=$((COUNTER+1)) rsync -a --delete-excluded --exclude-from=.rsyncrc $(pwd) ~/Sites/site-b/modules/ && COUNTER=$((COUNTER+1)) echo "Deployment complete in $COUNTER proj...
true
4bdbee9333a80d8956742241cf52d4c1c2e5240c
Shell
ilyakharlamov/cmdlinefu
/kvplot.sh
UTF-8
2,457
3.578125
4
[]
no_license
#!/bin/sh # print "processes per user" bar chart # source: blog.sleeplessbeastie.eu/2014/11/25/how-to-create-simple-bar-charts-in-terminal-using-awk/ # Debian/GNU awk: /usr/bin/awk -> /etc/alternatives/awk -> /usr/bin/gawk if test -t 1; then # color steps cstep1="\033[32m" cstep2="\033[33m" cstep3="\033...
true
bf563c9831c4cc7ae04d696d1fc22aef16fca2eb
Shell
atkuzmanov/youtube-delete-playlists-script
/youtube-delete-playlists-script-v1.0.sh
UTF-8
2,243
3.859375
4
[ "Apache-2.0" ]
permissive
#!/bin/bash ## Uncomment line below if you want it to clear the screen each time the script runs. # clear usage="Please run the script with the required parameters as follows: ./delete_youtube_playlists_[VERSION].sh --file [FILE-LOCATION] --api_key [API-KEY] --authorization [AUTHORIZATION_TOKEN]" while [ -n "$1" ]; ...
true
a0f1adeb5b791bc78c2b3fcbcd3ec18148b33b92
Shell
gdelanoy/shells
/bin/batwatch
UTF-8
21,030
4.28125
4
[]
no_license
#!/usr/bin/env bash # ----------------------------------------------------------------------------- # bat-extras | Copyright (C) 2019-2020 eth-p | MIT License # # Repository: https://github.com/eth-p/bat-extras # Issues: https://github.com/eth-p/bat-extras/issues # --------------------------------------------------...
true
dcc043e6eece7b36c0735a4b03bd8cec3c62e2eb
Shell
spider/spider-box
/puphpet/files/exec-once/3-install-gremlin.sh
UTF-8
1,219
3.140625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash echo "------------ INSTALL GREMLIN-SERVER START ------------" ###install gremlin-server export GREMLINSERVER_VERSION="3.1.1" export NEO4J_VERSION="2.3.2" export ORIENT_VERSION="2.1.16" export INSTALL_DIR="/home/vagrant" export VAGRANT_DIR="/vagrant" export BOOTSTRAP_DIR="/var/www/puphpet/files/e...
true
9d4742668ccbe26e436b05813eb298cc7eb2a633
Shell
EMBEDDIA/comment-filter
/services/web/entrypoint.prod.sh
UTF-8
302
3.125
3
[ "MIT" ]
permissive
#!/bin/sh echo "Checking for classifier model files..." #MODEL_DIR=./project/models sh ./project/model_download.sh if [ "$DATABASE" = "postgres" ] then echo "Waiting for postgres..." while ! nc -z $SQL_HOST $SQL_PORT; do sleep 0.5 done echo "PostgreSQL started" fi exec "$@"
true
8aeefe170fe738439d15efd162e037ada43b52f0
Shell
openshift/sippy
/e2e-scripts/sippy-e2e-sippy-e2e-setup-commands.sh
UTF-8
6,624
3.609375
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # In Prow CI, SIPPY_IMAGE variable is defined in the sippy-e2e-ref.yaml file as a # dependency so that the pipeline:sippy image (containing the sippy binary) # will be available to start the sippy-load and sippy-server pods. # When running locally, the user has to define SIPPY_IMAGE. echo "The sippy CI ima...
true
6b21e7fe133c95ad4e207cb0b0040fe95b7a014b
Shell
tianzhuoaza/hpc_in-memory
/all-transports/adios-all/lammps-adios/jobs/qsub_while_dimes.sh
UTF-8
1,844
2.8125
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash # if(strcmp(transport_string, "ADIOS_DISK_MPIIO") == 0){ # else if (strcmp(transport_string, "ADIOS_STAGING_DSPACES") == 0){ # else if (strcmp(transport_string, "ADIOS_STAGING_DIMES") == 0){ # else if (strcmp(transport_string, "ADIOS_STAGING_FLEXPATH") == 0){ # else if (...
true
970ffbd4cccbb472c92d460537c5976ddd1ae076
Shell
minorhash/react-plx-exp
/public/pos/cmd/pac.sh
UTF-8
146
2.953125
3
[]
no_license
if [ -z $1 ];then echo "usage" else se=$(echo $1|sed s/src/js/g|sed s/jsx//g) echo ../js/"$se"js npx webpack $1 -o ../js/"$se"js fi
true
2ec37c28af85aa666ece4f9c426f10c27158c179
Shell
cybercongress/js-cosmos
/script.sh
UTF-8
454
2.859375
3
[ "MIT" ]
permissive
#!/bin/bash for file in ~/build/docs/* do if [ -f "$file" ] then touch temp.md echo "--- project: js-cosmos ---" >> temp.md cat $file >> temp.md cat temp.md > $file rm -rf temp.md fi done touch temp.md echo "--- project: js-cosmos ---" >> temp.md cat CONTRIBUTING.md >> temp.md cat temp.md > CONTRIBUTING.md rm -rf temp...
true
51d189c592b19c3ec21439ffc37898a62a6f91af
Shell
eth-cscs/tools
/python/import/FAST/fast.slurm.template
UTF-8
1,261
2.671875
3
[]
no_license
#!/bin/bash -l #SBATCH --time=00:02:00 #SBATCH --ntasks=XXX #SBATCH --output=o_XXX #SBATCH --error=o_XXX # -------------- create tarfile #OK IN=/apps/dora/UES/5.2.UP04/broadwell/easybuild/software/Python/2.7.11-CrayGNU-2016.03 #OK TARF=Python-2.7.11-CrayGNU-2016.03.tar #OK /usr/bin/time -p \ #OK tar cf \ #OK $TARF \ #...
true
cb23b34ab2f00249ff9f1735a2d85d3103bc9a5b
Shell
yuchen-x/or_urdf
/catkin-env-hooks/20.or_urdf.sh.in
UTF-8
514
3.234375
3
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/sh # determine if we're in the devel or install space if [ "@DEVELSPACE@" = "True" -o "@DEVELSPACE@" = "true" ] then PLUGINS=@CATKIN_DEVEL_PREFIX@/lib/openrave-@OpenRAVE_LIBRARY_SUFFIX@ else PLUGINS=@CMAKE_INSTALL_PREFIX@/lib/openrave-@OpenRAVE_LIBRARY_SUFFIX@ fi # prepend to paths (if not already there) #...
true
ae90344e9add41feb06cfd37760aac1c42595408
Shell
stefano/randcspsolver
/launcher.sh
UTF-8
1,587
2.765625
3
[]
no_license
#!/bin/sh echo "" > output.csv; echo -e "\"Number of variables: 1-10\"\n" >> output.csv; for n in {1,2,3,4,5,6,7,8,9,10}; do java Solver -n $n -l 5 -d 0.5 -s 0.5 -b 50 >> output.csv; done echo -e "\n\"Number of variables: 1-8 (with AC)\"\n" >> output.csv; for n in {1,2,3,4,5,6,7,8,9,10}; do java Solver -n $n -l 5 -d...
true
cff788ebdc94f2597b6af4b7af62307638d1b150
Shell
kargig/vresspiti
/vresspiti.sh
UTF-8
2,008
3.25
3
[]
no_license
#!/bin/bash #Variables RECIPIENTS="youremail@address.com,andonemore@newaddress.com" WORK_PATH="/home/yourusername/myhouses" URL="http://www.xe.gr/property/search?System.item_type=re_residence&Transaction.type_channel=117541&Transaction.price.from=300&Transaction.price.to=500&Item.area.from=40&Item.area.to=100&Geo.area...
true
53c23757905c49b536d8bbf044483ceddb04d311
Shell
leominov/datalock
/contrib/vagrant/init.sh
UTF-8
685
3.1875
3
[ "MIT" ]
permissive
#!/bin/bash export DEBIAN_FRONTEND=noninteractive HOSTNAME=$(hostname) apt-get update > /dev/null apt-get install nginx -y rm /etc/nginx/sites-enabled/default if [ $HOSTNAME = "master" ]; then cp /vagrant/contrib/vagrant/datalock-master.conf /etc/nginx/conf.d/ else cp /vagrant/contrib/vagrant/datalock-node.conf /e...
true
3980aad5d6b529bee9e508028c4d7747beccd9ab
Shell
ngkim/stack_ops
/01_server_security/iptables/watch-deny-centos.sh
UTF-8
315
2.71875
3
[]
no_license
#!/bin/bash tailf /var/log/messages | grep DENY | awk ' { if (NF == 22) printf("%-10s %-20s %-20s %-10s %-10s\n", $16, $9,$10,$17,$18) else if (NF == 23) printf("%-10s %-20s %-20s %-10s %-10s\n", $17, $9,$10,$18,$19) else printf("%5d %-20s %-20s %-10s %-10s %-10s\n", NF, $9,$10,$16,$17,$18) } '
true