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
54b060ea12daf957799719a2e6d7a7e283d85739
Shell
Jetroid/puppet-module-tweaks_and_fixes
/files/start-pulseaudio-in-tmp
UTF-8
495
3.140625
3
[]
no_license
#!/bin/bash # This file is being maintained by Puppet. # DO NOT EDIT # # Hack to get pulse audio using the /tmp folder for its files as it fails when using ~ as we can't chgrp in home for some reason - KEP 1/8/14. export PULSE_DIR="/tmp/pulse-$( whoami )"; export PULSE_CONFIG_PATH=$PULSE_DIR/config; export PU...
true
11693bd4b99326a132b23fd64299bc0a4e1dbabf
Shell
blyndusk/woosh
/config/.vscode/extensions/ms-azuretools.vscode-docker-1.10.0/resources/netCore/vsdbg
UTF-8
276
3.15625
3
[ "MIT", "LGPL-2.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-generic-exception", "BSD-3-Clause", "0BSD", "GPL-1.0-or-later", "LGPL-2.1-or-later", "LicenseRef-scancode-proprietary-license", "MIT-Wu", "CC0-1.0", "ISC", "GPL-2.0-only", "Apache-2.0", "LGPL-2.0-...
permissive
#!/bin/sh ID=. if [ -e /etc/os-release ]; then . /etc/os-release fi if [ $ID = alpine ] && [ -e /remote_debugger/linux-musl-x64/latest/vsdbg ]; then VSDBGPATH=/remote_debugger/linux-musl-x64/latest else VSDBGPATH=/remote_debugger/linux-x64/latest fi $VSDBGPATH/vsdbg $@
true
361f150acdede898c01faac01496cf870662dcb7
Shell
esikachev/my-dev-ci-config
/runner.sh
UTF-8
475
3.15625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash -xe export WORKSPACE WORKSPACE=$(pwd)/my-dev-ci-config # shellcheck source=/dev/null . "${WORKSPACE}"/functions.sh if [[ $TRAVIS_OS_NAME == 'linux' ]]; then prepare_linux fi if [[ $TRAVIS_OS_NAME == 'osx' ]]; then prepare_osx fi if [[ 'esikachev/my-dev-client' == "$TRAVIS_REPO_SLUG" ]]; then ...
true
2073baa89ba76a95c3b8fc033f8cd06c834ab5d0
Shell
fnfly2005/public_work
/mtmm_code/05tmp/pl01.sh
UTF-8
1,141
2.640625
3
[]
no_license
#!/bin/bash t1=${1:-`date -d "yesterday ${clock}" +"%Y-%m-%d %T"`} t2=${2:-`date -d "${t1% *} -1 days ago ${clock}" +"%Y-%m-%d %T"`} path="/data/fannian/" fun() { echo `cat ${path}sql/${1}.sql | sed "s/-time1/${2:-${t1% *}}/g; s/-time2/${3:-${t2% *}}/g;s/-time3/${4:-${t3% *}}/g"` } msg=`fun m_sourceubtpageview_gz` fi...
true
b120a448cb4bbb580fe2ed5c15b00524593a9daf
Shell
mlateb/misc_scripts
/Move_Files/Move_Stack_Folders.sh
UTF-8
217
2.546875
3
[]
no_license
cd /projectnb/landsat/projects/CMS_Mexico/images/020049/images mkdir ../doneStack for img in $(find ./ -name 'L*stack'); do base=$(basename $img) fodler=${base:0:16} echo $fodler mv ${fodler}* ../doneStack done
true
efa3d1dceb340c924ff1c827fbb49580f28b2a1f
Shell
danilo-axsquare/monitoring_intervention_system
/Hosts/getHealthStatus.sh
UTF-8
1,303
3.390625
3
[]
no_license
#!/bin/bash # @Author:Danilo Raspa # @Date: 09/01/2015 # pathToServer="http://192.168.0.222/internal.php" #Questo script raccoglie alcune informazioni sullo stato di salute della macchina e li invia al server tramite POST #IPaddress della macchina ip=$(/sbin/ip addr |grep 'state UP' -A2 | tail -n1 | awk '{print $2}' |...
true
4901eb90dacc49af22ad2eb2b63def786285357f
Shell
eanger/byfl-eaudit
/build-llvm-byfl
UTF-8
9,084
3.984375
4
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#! /bin/bash ###################################### # Automatically do a clean build of # # LLVM trunk, Clang trunk, DragonEgg # # trunk and then of Byfl head # # # # By Scott Pakin <pakin@lanl.gov> # ###################################### # Ensure we have a version of ba...
true
6eaa8ba0b9dc6d088d14953cfcf1dcbe7d54ad4b
Shell
toransahu/post-linux-install
/src/install_saml2aws.sh
UTF-8
398
2.640625
3
[]
no_license
#! /bin/sh # # install_saml2aws.sh # Copyright (C) 2020 Toran Sahu <toran.sahu@yahoo.com> # # Distributed under terms of the MIT license. # CURRENT_VERSION=2.26.1 wget https://github.com/Versent/saml2aws/releases/download/v${CURRENT_VERSION}/saml2aws_${CURRENT_VERSION}_linux_amd64.tar.gz tar -xzvf saml2aws_${CURRENT_...
true
3936fa089d4688a1ae8fb9ac61cf7aa43ac5cbc6
Shell
akakie/dotfiles
/bash/bashrc
UTF-8
2,633
3.203125
3
[ "LicenseRef-scancode-boost-original" ]
permissive
# bashrc # IMPORTANT # On Mac OS X, link to this as bash_profile because # Mac loads bash_profile on login. Unix loads bashrc on login. # # ln -s ~/bin/dotfiles/bash/bashrc ~/.bash_profile # On login to shell, display greeting messages echo "" echo -n "Unix on Mac OS X. Logged in as "; whoami echo "" echo -n "Today...
true
5b119202c25ba495ad7e562d1fbd1cdfb34d7230
Shell
jsdevel/c-playground
/run-tests
UTF-8
317
3.328125
3
[]
no_license
#!/bin/bash SCRIPT_DIR=$(dirname $(readlink -f ${BASH_SOURCE[0]})) INCLUDE_DIR=$SCRIPT_DIR/src/include function testFiles() { printf "\033c" make -s build for test in `find build/*`;do $test done } testFiles while RESULT=$(inotifywait -qr -e MODIFY --exclude .*\\.swp $SCRIPT_DIR) do testFiles done
true
ed7436b1bf693a1d29b4351ae33675d3d46bda23
Shell
rhee/_ishrc
/install.sh
UTF-8
1,114
3.78125
4
[]
no_license
#!/bin/sh ### # debug ### set -x # zsh-workaround setopt shwordsplit >/dev/null 2>&1 # bash nullglob shopt nullglob >/dev/null 2>&1 # backup suffix type #1: e.g.: 2016-06-30.2a5e9b suffix=$(git log --pretty=format:'%ad.%h' --abbrev-commit --date=short -1 2>/dev/null) # backup suffix type #2: e.g.: 2016-06-30_15-39-2...
true
592321c4c0cfdd75e95af613469f2308a06caedc
Shell
joeytwiddle/jsh
/code/shellscript/backup/contractsymlinks.sh
UTF-8
441
3.34375
3
[]
no_license
#!/bin/sh ## Collects all symlinks in the current directory tree into a single text file, and deletes them. ## They may be restored with expandsymlinks. ## Run this then cvs commit the .symlinks.list file! find . -type l | while read X do 'ls' -ld "$X" # echo "$X" >&2 # rm "$X" # rmlink "$X" done | sed 's| -> | ->...
true
7a1d613da37d2c83004313a0efc8333379b2ff61
Shell
vici-by/Linux-kernel-test
/shell-test/softirq_dynamic.sh
UTF-8
1,165
3.28125
3
[]
no_license
#!/bin/bash ######################################################################## # File Name: loop.sh # Author: Baiy # mail: baiyang0223@163.com # Created Time: 2021-03-22-16:45:19 # Func: ######################################################################### function softirqs(){ c_path="/proc/softirqs" ...
true
18d524ed0e46df56afe87adbb1b766d343b834d2
Shell
SjurWarEagle/WhatsappStickerDolly
/Docker/convertStickerTelegram.sh
UTF-8
792
2.9375
3
[ "BSD-3-Clause" ]
permissive
# App Logo ANDROID_ASSETS_BASEDIR=../../../Android/app/src/main/assets mkdir -p telegram/normal cd originalImages/sticker # Delete previous generated Sticker for imageFile in $(find . \( ! -regex '\.' \) -maxdepth 1 -type d ); do rm -rf "../../telegram/$(basename ${imageFile})"/* done # Generate Normal Sticker for...
true
cc22711c0ab3dbaa1c99bb479bceb8442be35a96
Shell
pronovic/apologies
/.run/commands/bumpchangelog.sh
UTF-8
383
3.25
3
[ "Apache-2.0" ]
permissive
# vim: set ft=bash ts=3 sw=3 expandtab: # Bump the version in the changelog, preparing for a new development cycle command_bumpchangelog() { mv Changelog Changelog.$$ echo "Version $(poetry version patch --short) unreleased" > Changelog echo "" >> Changelog echo $'\t* ' >> Changelog echo "" >> Chang...
true
4c44a1e19e2770f869667c9feede6151f74e50be
Shell
abinavpp/rc
/bin/pacdry-fresh
UTF-8
206
2.625
3
[]
no_license
#! /bin/bash path_tmpdb=$(mktemp -t -d pacdry_tmpdb.XXXXXX) sudo pacman -Sy --dbpath "$path_tmpdb" --logfile /dev/null 1>&2 && \ pacdry --dbpath "$path_tmpdb" "$@" sudo rm -rf "$path_tmpdb" &> /dev/null
true
3347965b1bfb117a3bfeeb340ab8d98974e2528c
Shell
whitemike889/material-components-ios
/scripts/lib/package_managers.sh
UTF-8
1,387
3.28125
3
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
#!/bin/bash # # Copyright 2019-present The Material Components for iOS 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...
true
ad54b76f42c11806ffe4613b0782d4d75da70104
Shell
thorpelawrence/dotfiles
/.zshrc
UTF-8
1,955
2.765625
3
[]
no_license
### Added by Zinit's installer if [[ ! -f $HOME/.zinit/bin/zinit.zsh ]]; then print -P "%F{33}▓▒░ %F{220}Installing %F{33}DHARMA%F{220} Initiative Plugin Manager (%F{33}zdharma/zinit%F{220})…%f" command mkdir -p "$HOME/.zinit" && command chmod g-rwX "$HOME/.zinit" command git clone https://github.com/zdharm...
true
6dafd2c32e5dcfe20946fd0896e909e5be25d3ee
Shell
benpope82/steps-npm
/step.sh
UTF-8
264
3.578125
4
[ "MIT" ]
permissive
#!/bin/bash set -e if [ ! -z "${workdir}" ] ; then echo "==> Switching to working directory: ${workdir}" cd "${workdir}" if [ $? -ne 0 ] ; then echo " [!] Failed to switch to working directory: ${workdir}" exit 1 fi fi npm ${command} ${options}
true
e29a38f91d8067dfe050ec7b1ad47f02136a8388
Shell
krufab/mailpine
/tools/update.sh
UTF-8
3,655
3.265625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash set -o errexit set -o errtrace set -o nounset set -o pipefail declare TOOLS_PATH TOOLS_PATH="$(dirname "$(readlink --canonicalize "${0}")")" declare MAIN_PATH MAIN_PATH="$(dirname "${TOOLS_PATH}")" declare APPS_DIR="${MAIN_PATH}/apps" declare CONFIG_FILE="${MAIN_PATH}/config.yml" declare DATA_DI...
true
50b25ccfe9b942d8f393524c8e09f20bae0be757
Shell
openshift/cluster-logging-operator
/hack/testing-olm/assertions
UTF-8
1,882
3.234375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash source "$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )/utils" assert_resources_exist(){ assert_collector_exist # verify ER os::cmd::try_until_success "oc -n $LOGGING_NS get elasticsearch elasticsearch" ${TIMEOUT_MIN} } assert_collector_exist(){ local name=${1:-collector} # verif...
true
94e95bc72ad2df824c7cbbf128a791df5f5bba65
Shell
theisolatedisland/PlayGround
/shell/admin/base/sbin/deploy.sh
UTF-8
622
3.703125
4
[]
no_license
#!/usr/bin/env bash cd `dirname $0` cd .. PWD=`pwd` NAME=${PWD##*/} copy_file() { local f=$1 if [ -f ${f} ] && [ ! -f /${f} ]; then echo "cp -a ./${f} /${f}" cp -a ./${f} /${f} fi } ### set executable [ -f bin/execute.sh ] && chmod u+x bin/execute.sh ### deploy systemd service/timer fil...
true
ddba95e70c5ce98847dd348f0192b73b160e85ea
Shell
lliurex/dr-valentin-common
/install-files/usr/share/dr-valentin/common/actions/002-system
UTF-8
890
3.078125
3
[]
no_license
#!/bin/bash FOLDER="$1/system/" mkdir ${FOLDER} df -h > ${FOLDER}"system-disk" lliurex-version > ${FOLDER}"system" uname -a >> ${FOLDER}"system" lsb_release -a >> ${FOLDER}"system" lshw >> ${FOLDER}"lshw" dmesg >> ${FOLDER}"dmesg" lsusb >> ${FOLDER}"lsusb" free >> ${FOLDER}"memory" n4d-client call create_ticket "['$...
true
b519bbfe04ce83c99f44866787b3e0f5dbf4a3e7
Shell
cossinadevil2k/ABC
/new-app/public/components/tools/bin/install-docviewer.sh
UTF-8
1,324
3.875
4
[ "BSD-3-Clause" ]
permissive
#!/bin/bash # # @license # Copyright (c) 2014 The Polymer Project Authors. All rights reserved. # This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt # The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt # The complete set of contributo...
true
7093d8d835a244b5aa0ac49ae46b08a74f044369
Shell
GBeushausen/distill
/tests/Resources/scripts/epub.sh
UTF-8
943
3.453125
3
[ "MIT" ]
permissive
#!/bin/bash ################################################################################ # Initial configuration ################################################################################ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" FILES_DIR="$DIR/../files" ######################################...
true
7f5f05248a6244de20ca8e8723a5b57d02c6cb27
Shell
SigmarMuiste/skriptimine
/arvestus/menu
UTF-8
447
2.953125
3
[]
no_license
#!/bin/bash # Sigmar Muiste Menüü väljastamine # echo "menüü: 1) steak and potatoes 2) fish and chips 3) soup and salad " echo -n "Please make a selection (1 or 2 or 3): " read valiku_nr if [ $valiku_nr -eq 1 ];then echo "Stick to your ribs. Watch your cholesterol Enjoy your meal!" else if [ $valiku_nr -eq 2 ];then ec...
true
9e639c00050672f1ffabd65c36230a8979277962
Shell
synpse-hq/image-tools
/hack/bootstrap/bootstrap_ubuntu.sh
UTF-8
1,254
3.796875
4
[]
no_license
#!/bin/bash cleanup() { if [ -z "$TMP" ]; then echo "not mounted. No op" else if grep -qs "$TMP" /proc/mounts; then echo "unmount $TMP" sudo umount $TMP fi fi } trap cleanup EXIT if [ -f "./env" ]; then source ./env else echo "./env file does not e...
true
cc44cb4085ed5c9e92ab592837a617f82a85268e
Shell
mafintosh/tmpdir-tab
/tmpdir.sh
UTF-8
390
3.71875
4
[ "MIT" ]
permissive
#!/bin/bash tmpdir () { [ "$TMPDIR_TAB" == "" ] && export TMPDIR_TAB="$(mkdir -p /tmp/tmpdir && mktemp -d /tmp/tmpdir/XXXXXX)" if [ -t 1 ]; then cd "$TMPDIR_TAB" else echo "$TMPDIR_TAB" fi } _tmpdir_on_exit () { if [ "$TMPDIR_TAB" != "" ] && [ -d "$TMPDIR_TAB" ]; then rm -rf "$TMPDIR_TAB" rm...
true
1dfc034ea2a9632b3d94f516271e9dea7bbe4341
Shell
PuerNya/webvideo-downloader
/install.sh
UTF-8
1,156
2.921875
3
[]
no_license
clear stty -echo echo '开始安装' echo '更新系统库并查找系统更新' apt-get update -y && apt-get upgrade -y echo '完成' echo '开始安装 python 环境' apt-get install python -y echo '完成' echo '开始安装 git 环境' apt-get install git -y echo '完成' echo '开始安装 ffmpeg 环境' apt-get install ffmpeg -y echo '完成' echo '开始更新 pip 版本' pip install pip --upgrade echo '完...
true
91b397c4dd8171967e4761e0e198159dccf05436
Shell
ChristianUlbrich/open-vagrant-boxes
/definitions/ubuntu-12.04.3-amd64-vbox/vmfusion.sh
UTF-8
11,043
3.671875
4
[]
no_license
set -ex cd /tmp mkdir -p /mnt/cdrom mkdir -p /mnt/hgfs mount -o loop /home/vagrant/linux.iso /mnt/cdrom aptitude -y purge virtualbox-ose-guest-x11 virtualbox-ose-guest-dkms virtualbox-ose-guest-utils aptitude -y install dkms export VMTOOLS_DEVICE=/home/vagrant/linux.iso export VMTOOLS_MOUNT=/mnt/cdrom set +x #####...
true
3706d381bc56a59e1828ad7a5c6351c79f588984
Shell
washtubs/random-kickass-scripts
/tag_m4
UTF-8
1,546
3.78125
4
[]
no_license
#!/usr/bin/env zsh # tag m4 looks for a specified set of single word tags throughout # your source code and either removes or preserves them. # Different ways a tag can be set: # Open and closer TAG/ /TAG: useful if you want to exclude a block of code. # Opener [TAG] : useful for multiline comments # (p.s. you ca...
true
724729eef2744fb8e67be86a86cc08618df18bf8
Shell
rk4an/scripts
/monitoring/centreon_ces/create_poller.sh
UTF-8
8,517
3.484375
3
[]
no_license
#!/bin/bash # create_poller.sh # version 1.02 # date 24/03/2016 # use Centreon_Clapi # $1 name of admin # $2 password admin # $3 name of poller # $4 poller ip # $5 central ip # version 1.0.2 # fix parameter retention_path # fix parameter stats if [ $# -ne 6 ] then echo Usage: $0 admin password \<name poller\> \<ip ...
true
ef38e77978f658b75142ead0f00330f378dc3ed9
Shell
ilyasotkov/baremetal-k8s
/.environ
UTF-8
371
2.6875
3
[]
no_license
#!/bin/bash # Ansible Vault password for the cluster is stored in macOS Keychain # Export the environmental variables to your shell by running: # `. .environ` # Add via: # `security add-generic-password -a baremetal-k8s-vault-pass -s baremetal-k8s-vault-pass -w <password>` export ANSIBLE_VAULT_PASSWORD=$(security fin...
true
88fc0b14525384b4e950b79899b34bd8ba1cdd36
Shell
karrick/puppet-geminabox
/templates/geminabox.erb
UTF-8
1,467
3.875
4
[]
no_license
#!/bin/sh # # geminabox init.d script # # HEAVILY borrowed from cupsd's script # chkconfig: - 99 01 # description: This script starts the geminabox server # processname: geminabox # Source function library. . /etc/init.d/functions name=geminabox prog="/usr/bin/thin -p <%= port %> -c <%= root %> -e production --log <...
true
7c2e6ffc5d829a1dc6675af33b14b3e7a5787d04
Shell
Zafar-H/scripts
/JavaPackageDefaults.sh
UTF-8
644
2.796875
3
[]
no_license
#Home path is specified here PRG_HOME=java/Sample #JAR file names are specified here LOG4J_FILE_NAME=log4j-1.2.17.jar JSON_PARSER_FILE_NAME=json-simple-1.1.jar #Path for JAR files are specified here JAVA_FILE_DIR=$HOME/$PRG_HOME JAVA_JAR_DIR=$HOME/$PRG_HOME #JAR files for the program are specified here LOG4J_JAR_FIL...
true
bf96989dc84b100460476cc3ac22f7eaf02c2402
Shell
hntd187/scripts
/setup.sh
UTF-8
2,825
3.671875
4
[]
no_license
#!/bin/bash idea_version="2016.1.1" idea_filename="ideaIC-$idea_version.tar.gz" idea_url="https://download.jetbrains.com/idea/$idea_filename" jdk_version=8 spotify_key=BBEBDCB318AD50EC6865090613B00F1FD2C19886 if [[ ! -e /etc/apt/sources.list.d/webupd8team-ubuntu-sublime-text-3-xenial.list ]]; then sudo add-apt-rep...
true
ec9bf9c6e5744d4787caf3d6a7cb5fabca93b3b6
Shell
loopypat2/hi
/task5.sh
UTF-8
256
3.3125
3
[]
no_license
#!@/bin/bash # 5 Most popular resource accessed, and number of times accessed top_files=`cat example.log | cut -f4 | cut -c14-| cut -d" " -f1,3 | sort | uniq -c | sort -n -r | head -5` # Print the output printf "Top 5 most used resources:\n $top_files"
true
d1c6e5fea4561ce0d986cc365517ebaff832349d
Shell
nanzs1974/ShellScript-Library-
/cp_threshold
UTF-8
1,424
2.765625
3
[]
no_license
#!/bin/ksh set -x ####################3 # PATH=$PATH:/usr/bin:/usr/sbin Data=/var/opt/OV/share/script/tmp input=/var/opt/OV/share/script/input name=".cp_thresh.log" ################################## #mailx -s "2@,@2" Email< $Data/mailtest ################################## if [ $# -lt 4 ]; then echo " No ...
true
5e1665bbdc7d4e13168103fc054916ca6c1dfc6c
Shell
zicodeng/tahc-z
/servers/messaging/run.sh
UTF-8
887
3.03125
3
[]
no_license
#!usr/bin/env bash set -e export MESSAGING_CONTAINER=info-344-messaging export MQ_CONTAINER=rabbitmq-server export APP_NETWORK=appnet docker pull zicodeng/$MESSAGING_CONTAINER if [ "$(docker ps -aq --filter name=$MESSAGING_CONTAINER)" ]; then docker rm -f $MESSAGING_CONTAINER fi if [ "$(docker images -q -f dan...
true
8c176fc7f9c360dde09e41d2a7cbeac7b1566d0a
Shell
ahillio/shellscripts
/dfs
UTF-8
295
3.03125
3
[]
no_license
#!/bin/bash # dfs = drush features-status # give us info about a given feature module # give us module info drush pmi $1 # list the components used by feature module drush fc \% | grep $1 # insert blank line for readability printf "\n" # show changes between module and database drush fd $1
true
06df1e2f0296810602c408d0c5ac411b2403b44d
Shell
akaron/prepare_for_k8s
/k8s_prepare_for_centos.sh
UTF-8
2,655
3.109375
3
[]
no_license
#!/bin/bash # For CentOS-7-x86_64-DVD_1908.iso and CentOS-7-x86_64-Everything-2009.iso # run as root set -ex # set-up repositories and install docker yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine yum install -y yum-utils python3 ...
true
d8ad40942e5684b7a7bcdcb1421618ea041fd00c
Shell
theCalcaholic/bash-utils
/generate-bash-aliases.sh
UTF-8
622
3.921875
4
[ "MIT" ]
permissive
#!/usr/bin/env bash USAGE="generate-bash-aliases.sh > bashrc Options: --output, -o path File to write to" set -e . "$(dirname $BASH_SOURCE)/lib/parse_args.sh" KEYWORDS=("-o" "--output") parse_args __USAGE "$USAGE" "$@" output_file="${KW_ARGS['--output']-${KW_ARGS['-o']}}" output_cmd="cat" if [[ -n "$output_f...
true
c9cfb21fc418a02bc962bfb3a8a14bc453f2d8cb
Shell
prsurve/ocs-ci
/Docker_files/ocsci_container/scripts/run-ocs-ci.sh
UTF-8
520
3.390625
3
[ "MIT" ]
permissive
#!/bin/bash set -e mkdir -p /opt/cluster/logs_ocsci_container # Execute run-ci if [[ "$@" == *"--debug--"* ]]; then cd /opt/ocs-ci-debug $PIP_VERSION install --upgrade pip setuptools $PIP_VERSION install setuptools==65.5.0 $PIP_VERSION install -r requirements.txt STR_TMP="$@" CMD=${STR_TMP:10:5000000} e...
true
c2f29e8b5934c0a79ca7bfee6a30638709b57b36
Shell
Twicer/rnd-jenkins
/scripts/provision-jenkins-agent.sh
UTF-8
808
3.0625
3
[]
no_license
#!/usr/bin/env bash set -euo pipefail source /vagrant/scripts/console-colors.sh clear printf "${BLUE_BG}-----------------------------------------------${NC}\n" printf "${BLUE_BG} 'Jenkins Master' provision ${NC}\n" printf "${BLUE_BG}-----------------------------------------------${NC}\n" printf "Following packages wi...
true
615d17cf8ad9a0919e7d689bbaf2b3d7d952b26e
Shell
t-iwano/vagrantfiles
/keepalived/config.d/zabbixagent.sh
UTF-8
374
3.140625
3
[]
no_license
#!/bin/bash # # requires: # bash # set -e set -x ### require . /vagrant/config.d/common.sh ### function function add_packages() { addpkg=" zabbix-agent-1.8.16 " if [[ -n "${addpkg}" ]]; then yum install -y ${addpkg} fi } ### add repository add_repositories list_zabbix ### add rpm packages add_packages...
true
4e2c9f3309305723a786ce177ec3a15c7d134983
Shell
lancewf/money-report-go
/habitat/plan.sh
UTF-8
2,227
3.015625
3
[]
no_license
pkg_name=money-report-go pkg_description="Money report with a go backend" pkg_origin=lancewf pkg_version=$(cat "$PLAN_CONTEXT/../VERSION") pkg_maintainer="Lance Finfrock <lancewf@gmail.com>" pkg_license=('UNLICENSED') pkg_upstream_url="http://github.com/lancewf/money-report-go" pkg_build_deps=() pkg_exports=( [port]=...
true
64b0475a0d8c7bcd4015ae3540421e7aa1d3a89a
Shell
zhufangzhou/public
/apps/rand_forest/scripts/run_split.sh
UTF-8
711
2.828125
3
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash # Input File: input_filename="webspam_wc_normalized_unigram.svm" file_path=$(readlink -f datasets/$input_filename) # Ouput Files: train_path=${file_path}.tr test_path=${file_path}.te # Parameter valid_percent=1.0 train_percent=0.8 # Figure out the paths script_path=`readlink -f $0` script_dir=...
true
2e5be885802910d00cae58e427943a20b27e467e
Shell
rhoposit/MOS_Estimation
/run_xvector_tts.sh
UTF-8
1,147
2.78125
3
[]
no_license
#!/bin/bash # # Copyright 2019 CSTR, University of Edinburgh # # Authors: Joanna Rownicka, Jennifer Williams # Apache 2.0. ######################################################### . ./cmd.sh . ./path.sh set -e workdir=`pwd` nj=32 ######## x-vectors ######## nnet_dir=$workdir/xvector_nnet_1b_device_5 xvec_write_di...
true
0e1c22db16d95f6b853ce2278b8cc94257ca7e15
Shell
taianf/kernel-tcc
/benchmarks/benchmark.sh
UTF-8
1,584
3.953125
4
[]
no_license
#!/bin/bash set -e set -u # set -x INTSIGHT="/sys/kernel/debug/intsight" if [ $# -ne 2 -o ! -f "$2" ] then echo "Usage: $0 [results] [config]" >&2 exit 1 fi results="$PWD/$1" config="$PWD/$2" cd "${INTSIGHT}" if [ $(ls | wc -l) == "1" ]; then echo > "init" fi # Communicate the benchmark config to intsight...
true
e3cb134dfe1fe9dee89bf07b56927659b2249de3
Shell
Hackscode/Curl_Admin
/curl_admin.sh
UTF-8
467
3.0625
3
[]
no_license
#!/bin/bash #shopt -s nocasematch #admin_list="admin_list1.txt" for list in $(cat admin_list.txt); do http_result=$(curl --silent http://www.exploreville.org.pk/"$list" | grep -oi "pass" | tr '[:upper:]' '[:lower:]' | uniq) qwe=$(echo "$http_result" | tr '[:upper:]' '[:lower:]') if [ "$qwe" != "pass" ]; then ech...
true
5d6afd7efc4add335f9a53714fd1dddfe64faf13
Shell
rsenn/scripts
/sh/gen-implibs.sh
UTF-8
1,285
3.734375
4
[]
no_license
#!/bin/sh NL=" " if [ -d "$1" ]; then DIR="$1" else DIR=`dirname "$0"` fi cd "$DIR" if type pexports >/dev/null 2>/dev/null; then PEXPORTS="pexports" elif type impgen >/dev/null 2>/dev/null; then PEXPORTS="impgen" fi if [ -f dlltool.exe ]; then DLLTOOL="./dlltool.exe" fi # make_implib <dll> <out-implib> ...
true
5081876e4a8abaaabbcc13b48aeef47092047ecd
Shell
jvjvjvjv/AHEparalogs_analysis_scripts
/beddy_commands.sh
UTF-8
1,850
3.09375
3
[]
no_license
awk -v FS="\t" -v OFS="\t" '{print($2, ($9-1), $10, $1, $11)}' I6843contigs_subset.fasta_tophits.res | sort-bed - > I6843contigs.bed awk '$5 < 1e-10' I6843contigs.bed | bedtools merge #get full intervals from overlap regions awk '$5 < 1e-10' I6843contigs.bed | bedtools cluster | cut -f 6 | uniq -c # get counts of ove...
true
fd7e8208657465bf12244fafcd656ec9ebcae452
Shell
eragefe/pi3
/mountusb
UTF-8
186
2.578125
3
[]
no_license
#!/bin/bash while true; do if (ls /dev/sd*1) &>/dev/null; then mount /dev/sd*1 /mnt minidlnad -R service minidlna restart bash /root/umountusb & break fi done
true
937d108e416cbe2da3444fba8a55d4cbc671f94d
Shell
huangqiheng/install-scripts
/proxy/mtproxy.sh
UTF-8
2,020
3.59375
4
[]
no_license
#!/bin/dash . $(dirname $(readlink -f $0))/basic_functions.sh . $ROOT_DIR/setup_routines.sh main () { check_update check_apt vim-common check_apt git curl build-essential libssl-dev zlib1g-dev cd $CACHE_DIR if [ ! -d MTProxy ]; then git clone https://github.com/TelegramMessenger/MTProxy fi cd MTProxy if ...
true
5c72239d6d069b346efa7405d8dc8706f97c39a7
Shell
jasonantao/cloud_initializer
/installs/user-suite-install-v1/linix-scripts-utils-add-users-master/installs/addUsers.sh
UTF-8
286
3.390625
3
[]
no_license
#!/bin/bash # ADD USERS ON LINUX # SETUP WILDFLY CONFIGURATION ENVIRONMENT AND PARAMETERS . ./env/setEnv.sh #PROCESS USERS for userFile in $USERS do user=$(echo $userFile | rev | cut -d/ -f1 | rev) # Add User $user defined in UserFile $userFile ./installs/addUser.sh $user done
true
01e2ba2f58081b69f439e34b9899e02b686b389b
Shell
supermarkion/LeetCode
/Valid Phone Numbers.sh
UTF-8
624
3.8125
4
[]
no_license
# Given a text file file.txt that contains list of phone numbers (one per line), write a one liner bash # script to print all valid phone numbers. # Link: https://leetcode.com/problems/valid-phone-numbers/ # Example: # For example, assume that file.txt has the following content: # 987-123-4567 # ...
true
d1cfd6da34b84c6369e58a28aba594043577ba7c
Shell
bodgeuppm/clones
/remover.sh
UTF-8
1,343
2.546875
3
[]
no_license
#!/bin/bash ############################################ #Function AC=find NM=-name MD=-maxdepth EP=-empty ############################################# #ORDNER DIR1=/mnt/unionfs ############################################# #remover $AC $DIR1 $MD 8 $NM "*.sfv" -exec rm -f \{\} \; $AC $DIR1 $MD 8 $NM "*.txt" -exec r...
true
126a5eaafa21e3eedfb0545cb17cdd4d0be3c010
Shell
mzhao035/models
/research/eval_one_ckpt_0910.sh
UTF-8
1,823
2.890625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # Exit immediately if a command exits with a non-zero status. set -e # Move one-level up to tensorflow/models/research directory. # Update PYTHONPATH. export PYTHONPATH=$PYTHONPATH:`pwd`:`pwd`/slim # Set up the working environment. CURRENT_DIR=$(pwd) WORK_DIR="${CURRENT_DIR}/deeplab" #name of datasets...
true
6cdfd3c2d01377cfc59bcf9563c7d562a4eedc9e
Shell
ids1024/browsix-busybox
/docker.sh
UTF-8
219
2.515625
3
[]
no_license
#!/bin/sh IMAGE=ids1024/browsix-build sudo docker run \ --rm \ -it \ -v "$PWD:/browsix-alpine:Z" \ -u $(id -u):$(id -g) \ -w /browsix-alpine \ -p 0.0.0.0:8080:8080/tcp \ -e HOME=/browsix-alpine \ $IMAGE \ $@
true
f6a361fa9c3dbf3f513964b2acd3b268ec87074b
Shell
someone-ua/FW_ERGO_R0516
/extracted_fs/etc/init.d/sdcard
UTF-8
982
3.140625
3
[]
no_license
#!/bin/sh /etc/rc.common # (C) 2013 openwrt.org START=49 start() { local sd_dev mount_name sd_card rm -rf /www/webdav sd_dev=`ls /dev/ | grep mmcblk | grep "p"` [ -z "$sd_dev" ] && exit 0 echo "$sd_dev" > /tmp/sd.log mount_name=`mount | grep mmcblk | awk -F " " '{print...
true
90011ca0b3c39f56cb001f02a1e8138a59d03c98
Shell
lememilitar/gcsfuse-install
/run.sh
UTF-8
1,218
3.796875
4
[]
no_license
#!/bin/bash BUCKET_NAME=$1 FOLDER_TO_MOUNT=$2 if [ -z $BUCKET_NAME ]; then echo "Please specify google cloud storage bucket name" exit fi if [ -z $FOLDER_TO_MOUNT ]; then FOLDER_TO_MOUNT="/home/$USER/cloudstorage" fi export GCSFUSE_REPO=gcsfuse-`lsb_release -c -s` echo "deb http://packages.cloud.google.com/apt $...
true
c9a0127592c5f8b91f619962e24192cd5c75b446
Shell
fenar/mec
/05-deploy-k8s.sh
UTF-8
395
2.890625
3
[]
no_license
#!/bin/bash # Author: Fatih E. NAR # Kubernetes Deployment Kick-Starter # model=`juju list-models |awk '{print $1}'|grep k8s` if [[ ${model:0:2} == "k8s" ]]; then juju switch k8s juju deploy k8s-minimal.yaml else juju add-model k8s juju switch k8s juju deploy k8s-minimal.yaml fi echo "Login to the juj...
true
9ca1d895b9451afa542bfcf8f81b88b89bc5f0e1
Shell
schanur/libbivalvia
/test/module/csv.sh
UTF-8
1,271
2.84375
3
[ "MIT" ]
permissive
#!/bin/bash set -o errexit -o nounset -o pipefail BIVALVIA_PATH="$(dirname "${BASH_SOURCE[0]}")/../../bivalvia" source "${BIVALVIA_PATH}/software_testing.sh" source "${BIVALVIA_PATH}/csv.sh" test_function_stdout csv_get_field 'a' 1 'a,b,cd,ef' test_function_stdout csv_get_field 'b' 2 'a,b,cd,ef' test_fun...
true
b7b2e69c46f8224bce6664ea2e67e3f92df0f8f0
Shell
cha63506/archrome
/install.sh
UTF-8
3,554
3.890625
4
[]
no_license
#!/bin/sh # # archrome - Arch Linux chroot for Chrome OS # https://github.com/gsf/archrome # Version 0.0.2 set -e # Default mirror and chroot directory MIRROR='http://mirrors.kernel.org/archlinux/$repo/os/$arch/' ARCH="x86_64" DIR="arch" # Environment variable overrides # # Example values for ARM-based devices: # AR...
true
ff89805cdc8f9fb9b510a94eafd5226236f57987
Shell
adithya-16/USP-Lab
/IndexDocument.sh
UTF-8
77
2.578125
3
[]
no_license
echo "Enter file path: " read f echo "Enter search term: " read s grep $s $f
true
7eb26fa3a92b2643fbd8c6b6a2bc86aab76e773e
Shell
superLucian/Sandbar-python-django-
/ansible-deployment/sandbar-deploy.sh
UTF-8
6,136
3.765625
4
[]
no_license
#!/bin/sh echo "" echo "Current working directory is $(pwd)" echo "" echo "Current files in $(pwd) are.." echo "$(ls -la)" echo "" if [ -f /etc/debian_version ] || [ grep -qi ubuntu /etc/lsb-release ] || [ grep -qi ubuntu /etc/os-release ]; then # Install via package echo "Updating Ubuntu to latest patch revisio...
true
6bb6341fce1093cd31f035bfb2e13cb22db5b875
Shell
jzacsh/fbf
/bin/e2e.sh
UTF-8
1,440
4.125
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # # NOTE: COPY/PASTED from github.com/jzacsh/yabashlib set -euo pipefail specDir="$(readlink -f "$1")"; shift [ -d "$specDir" ] || exit 99 specSuite="$specDir/"*.bats tmpDir="$specDir/.tmp/"; mkdir -p "$tmpDir" batsDir="$tmpDir/.bats" batsBld="$batsDir/local" batsExec="$batsBld/bin/bats" # Ensur...
true
69934377d97e0ddf94a23807097a3823d2769874
Shell
NakedSolidSnake/Raspberry_IPC_Pipe
/docker-actions/config.sh
UTF-8
1,136
3.703125
4
[ "MIT" ]
permissive
#!/bin/bash FILENAME="daemon.json" DOCKER_DIR="/etc/docker" IP=$1 if [ "$IP" = "" ]; then echo "Usage: sudo ./config <ip_hostmachine>" echo "e.g: sudo ./config 192.168.0.1" echo " sudo ./config 127.0.0.1" exit 1 fi if [ -f $FILENAME ]; then rm $FILENAME fi touch $FILENAME echo '{' >> $FILE...
true
83012ac2366d2bacad5a1af6723e923e6dd0ecc2
Shell
oxocode/git-work
/bin/git-archive-feature
UTF-8
2,233
4.25
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # git-work # # command: git archive-feature # Exit on command error. set -o errexit # ask # checks the prompt for yes or no responses. # @TODO: Move this to the helpers later. ask() { while true; do read -p "$1 " yn case $yn in [Yy]* ) return 0;; [Nn]* )...
true
e0e0036991701f4f6104d586202910f9eb8bf2e1
Shell
anderson-marin26/bash_samples
/script_test
UTF-8
206
3.421875
3
[]
no_license
#!/bin/bash VAR="Test" VAR2="Test2" num1=1 num2=2 array=() if [ $num2 -gt $num1 ] then echo $VAR else echo $VAR2 fi array[0]="first_key" array[1]="second_key" for var in "$array" do echo "$var" done
true
3c1167fc7bb4c69f3efa19be6233e0a49ccffea8
Shell
LnL7/ofborg-infrastructure
/terraform/provisioner-nixos-kexec/convert-to-nixos.sh
UTF-8
764
3.171875
3
[]
no_license
#!/bin/sh set -ux echo "converting $1 with SSH key $2" sshopts="-i $3 -o ServerAliveInterval=1 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" while ! ssh $sshopts "root@$1" true; do : done ssh $sshopts "root@$1" wget http://195.201.26.107/nixos-system-x86_64-linux.tar.xz ssh $sshopts "root@$1" ...
true
2ea56d1c9e879ea767d5b4e06b6f74d433c0925f
Shell
alexeicolin/PKGBUILDs
/community/gpac/PKGBUILD
UTF-8
951
2.640625
3
[]
no_license
# $Id$ # Maintainer: Eric Bélanger <eric@archlinux.org> # ALARM: Kevin Mihelich <kevin@archlinuxarm.org> # - use PIC with armv7 and AArch64 pkgname=gpac pkgver=0.5.2 pkgrel=4 epoch=1 pkgdesc="A multimedia framework based on the MPEG-4 Systems standard" arch=('i686' 'x86_64') url="http://gpac.sourceforge.net" license...
true
d409eed25ac04a930497c8c281b171e46bd901fa
Shell
jsg2021/dotfiles
/scripts/linux-setup-docker.sh
UTF-8
541
2.96875
3
[]
no_license
#!/bin/bash set -e if [ ! command -v docker &> /dev/null ]; then sudo dnf install moby-engine docker-compose -y # moby/docker still uses old cgroups sudo grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0" # sudo groupadd docker # no longer needed sudo usermod -aG docker ${US...
true
b58e35a38c06eb8bac0876f10e08d538dce3cda8
Shell
EHE781/SOII_SF
/scripts/script1e1.sh
UTF-8
3,643
3.078125
3
[]
no_license
echo "################################################################################" echo "$ rm disco" rm disco echo "$ ./mi_mkfs disco 100000" echo "#inicializamos el sistema de ficheros con 100.000 bloques" ./mi_mkfs disco 100000 echo "###############################################################################...
true
fedc0a7297cce73f574a1e7d99c8ac7cb67d2818
Shell
miminashi/usb_7seg
/example/digital_clock/main.sh
UTF-8
381
3.484375
3
[]
no_license
#!/bin/sh USB_7SEG="${1}" set -eu on_exit() { : # なにもしない } error_handler() { # エラー時の処理 on_exit } trap error_handler EXIT # ここで通常の処理 head -n 1 < "${USB_7SEG}" > /dev/null while :; do date +%H%M | tee "${USB_7SEG}" sleep 1 done # ここで通常の終了処理 on_exit # 異常終了時ハンドラの解除 trap '' EXIT
true
78ac2dfe5d7ed7122c8bf74f23364374f277d1e1
Shell
tisseurdetoile/guard
/logger.sh
UTF-8
206
2.71875
3
[]
no_license
#!/bin/bash # RSyslog daemon launcher if [ -f /var/run/rsyslogd.pid ]; then echo -n "Removing stalled PID file ..." rm -f /var/run/rsyslogd.pid && echo " done" || echo " Failed !" fi exec rsyslogd -n
true
49666f1d5fac6947b260a061b1ce7e7b31d1b9bf
Shell
gitpocket/mac-ansible
/scripts/deps.sh
UTF-8
533
3.765625
4
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
#!/bin/bash # # Install dependencies. set -e SETUP_INIT="${HOME}/.setup_init" if [ -f "${SETUP_INIT}" ]; then exit 0; fi echo "==> Installing dependencies..." if [ ! `which brew` ]; then echo "==> Installing homebrew..." ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)...
true
5b80614405c35380410258064550197599bbd907
Shell
johslarsen/dotfiles
/bin/flacrecord.sh
UTF-8
239
3.359375
3
[ "Unlicense" ]
permissive
#!/bin/bash - output_directory=${1:-.} duration=${2:-600} # seconds mkdir -p "$output_directory" || exit 1 while true; do arecord -f cd -d $duration | flac -8 - > "$output_directory/$(date +%Y%m%d_%H%M%S).flac" & sleep $duration done
true
c525f8783a0bca790d410fdeb08443ea5e84e0d0
Shell
pierg/cogomo
/results/CROME/reproduce_results.sh
UTF-8
2,198
3.578125
4
[]
no_license
#!/bin/bash echo "** make sure that docker running on this machine **" echo "updating repository..." git pull echo "pulling latest docker image..." docker pull pmallozzi/cogomo:latest if [ $# -eq 0 ] then echo " cleaning up folder" sudo rm -r "$(pwd)/case_study_care_center/results" mkdir "$(pwd)/case_...
true
ce4bffac7fbdea91d06c9115beaecbe4567d4162
Shell
DeLaVlag/C-BeagleBone-GPP-DSP
/ESLAB_DSP/code/run.sh
UTF-8
188
2.5625
3
[]
no_license
#!/bin/bash iter=$1 if [ -z "$iter" ] #if iterations are not specified then iter=1 #default number of iterations fi /home/root/powercycle.sh ./pool_notify ./pool_notify.out $1.pgm
true
96258c976865c7978923d0668222360bf1055854
Shell
lhzhong/Code
/video2image/rgb/extract_frames.sh
UTF-8
680
3.90625
4
[]
no_license
#!/usr/bin/env bash ############################################# # What you need to do #1.modify the {DIR} {new_avi_dir} data directory #2.make sure ffmpeg is installed #3.place this file at your data directory menu ############################################# FFMPEGBIN=ffmpeg DIR=KTH for f in ${DIR}/*/*.avi; ...
true
11cf751a35a1541c29adc5f6335806b0463c2a79
Shell
rtrouton/rtrouton_scripts
/rtrouton_scripts/Casper_Scripts/disable_printer_sharing/disable_printer_sharing.sh
UTF-8
217
2.96875
3
[ "MIT" ]
permissive
#!/bin/bash # This script disables printer sharing on a designated printer. printer_name="$4" lpadmin -p "$printer_name" -o printer-is-shared=false echo "Print Sharing for $printer_name has been disabled." exit 0
true
8f1966b63546dc8a26e43a3b831da3dd01a612a5
Shell
mariokonrad/marnav
/bin/docker/install-boost.sh
UTF-8
1,249
3.359375
3
[ "BSD-3-Clause", "BSD-4-Clause" ]
permissive
#!/bin/bash -e boost_version="${1}" boost_file=$(echo ${boost_version} | tr '.' '_') toolset="${2}" cxxflags="${3}" linkflags="${4}" if [ "${cxxflags}" != "" ] ; then arg_cxxflags="cxxflags=${cxxflags}" ; fi if [ "${linkflags}" != "" ] ; then arg_linkflags="linkflags=${linkflags}" ; fi prefix=/opt/local function ge...
true
371900cfdde7df79cb8e6fafc0154c3b4c07d78c
Shell
jack141799/jenkins
/docker/bash/init-bashrc.sh
UTF-8
1,829
3.78125
4
[]
no_license
#!/bin/bash WEBSITE80_PATH="/home/website/default" LOGS_PATH="/home/logs" CONF_PATH="/home/config" SSH_PATH="/root/.ssh" # Check Service to start function service_start() { for SERVICE in nginx php-fpm sshd do if ! (ps ax | grep -v grep | grep $SERVICE > /dev/null) then se...
true
efb1cd1fc2512dc082bb550eb79d7a69302e1a3e
Shell
Humanity123/Review-Study-Amazon
/Data_Extraction/4.shell_scripts/collect_data.sh
UTF-8
2,445
3.359375
3
[]
no_license
#!/bin/bash set -x DOMAIN=$1 DOMAIN_DATABASE_DIREC=$2 if [ $DOMAIN != "INDIA" ] && [ $DOMAIN != "USA" ] && [ $DOMAIN != "CA" ] && [ $DOMAIN != "UK" ]; then echo "No Such Domain" exit 1 fi if ! [ -d $DOMAIN_DATABASE_DIREC ]; then echo "No Such Directory Exists" exit 1 fi CURRENT_DIREC=$(pwd) PROJECT_DIREC=$(pwd...
true
f2c6036f1407085e503a745fadcaa1dbbd598b2e
Shell
cyrano5614/dev-machine
/scripts/run.sh
UTF-8
1,178
3.109375
3
[]
no_license
#!/bin/sh TAG=${TAG:-latest} CURRENT_PROJECT=${PWD##*/} CONTAINER_NAME=${CONTAINER_NAME:-$CURRENT_PROJECT} # CONTAINER_NAME=${CONTAINER_NAME:-dev-machine} CUSTOM_USER=${CUSTOM_USER:-senna} PROJECT_NAME=${PROJECT_NAME:-$CURRENT_PROJECT} if [ "$(git config --global user.name)" ] && [ -z $GIT_USER_NAME ] then GI...
true
3ebb27b704c6f3e108863a83e831861907b6962e
Shell
brisskit-uol/caTissue-v1.2plus2.0-install-procedures
/procedures/bin/common/system-functions.sh
UTF-8
5,382
4.28125
4
[]
no_license
#!/bin/bash # Shell script functions to configure system settings. # # Based on code developed by Wizzard Solutions Ltd. # Original code was licensed under the GNU General Public License version 3. # ######################################### # SELinux functions. # # # Check if SELinux is enabled. selinuxtest() { ...
true
17650d7f7aeb4007ff0361434ed0e135bebdf381
Shell
acmarsden/cs143
/PA2/run_diffs.sh
UTF-8
638
3.640625
4
[]
no_license
#!/bin/bash OUT_DIR=./test_parser_out OUT_FILE=diffs.txt rm -f $OUT_DIR/$OUT_FILE for test_file in /afs/ir.stanford.edu/class/cs143/examples/*.cl; do echo "Running diff on parser output on $test_file" filename=$(basename -- "$test_file") extension="${filename##*.}" filename="${filename%.*}" echo "==========...
true
f493eeda568b07df7031d2e80054c7da15a50e19
Shell
turvas/image-processing
/add-watermark.sh
UTF-8
1,030
3.96875
4
[]
no_license
#!/bin/bash # $1 if file or directory contaaining *.jpg files PATH=$1 WATERMARK="/mnt/h/kostyymilaenutus/logod ja watermargid/watermark300.png" # $1 file with ful path # saves file in same dir, with extra jpg extension function processFile { FILE=$1 if [ -n "$1" ] && [ -f $FILE ]; then ...
true
4baff6ac71c19c6005f1e592c5e10e1d1c67f842
Shell
hsabouri/42_init
/Scripting/04
UTF-8
398
3.109375
3
[]
no_license
#!/bin/sh md5=sudo md5sum /etc/crontab if [ ! -f /var/crontab_md5]; then echo $md5 > /var/crontab_md5 else echo $md5 > /var/crontab_md5_compare diff_res=diff /var/crontab_md5 /var/crontab_md5_compare last_md5=cat /var/crontab_md5 if [ "$diff" != "" ]; then mail -a "Crontab file changed" roo...
true
3c331d1acebc284804eb1c8f5ac8dc2729b02574
Shell
bodik/ddos-cz2
/orc/tests/test_router.sh
UTF-8
221
2.9375
3
[]
no_license
#!/bin/sh . $(dirname $(readlink -f $0))/common.sh router_start netstat -nlpa | grep "${PID}/nexusd" | grep LISTEN | grep ":${PORT}" if [ $? -ne 0 ]; then rreturn 1 "$0 nexus router" fi router_stop rreturn 0 "$0"
true
1a63d00284fbae9bfd2d5985cae1d07ab404981d
Shell
cmorty/dryrun
/helper/gentest_functions.sh
UTF-8
243
3.25
3
[]
no_license
#!/bin/bash makro_num () { name=$1 start=$2 end=$3 rv=() if [ -z $4 ] ; then step=1 else step=$4 fi for num in {${start}..${end}..${step}} ; do rv[${#rv[*]}]= " -D${name}=${num} " done return rv } merge() { rv=($1 $2) }
true
ef2bfdb240019defd32050bda942820580cd98d2
Shell
feduxorg/letter-generator
/env.sh
UTF-8
254
2.53125
3
[ "MIT" ]
permissive
: ${GOOS:=linux} : ${GOARCH:=amd64} : ${GO_TAGS:=static} : ${LIBGIT2_TAG:=release-1.1} : ${COMMIT_HASH:=$(git rev-parse --short HEAD 2>/dev/null)} : ${BUILD_DATE:=$(date +%FT%T%z)} : ${VERSION:=$(git tag | sort | tail -n 1)} : ${VERSION:=${VERSION/v/}}
true
d585d73a3c4180d956687e6af039836ccab3eeab
Shell
stari4ek/7kitchen
/7deodexdir
UTF-8
1,666
3.78125
4
[]
no_license
#!/bin/bash # Copyright (c) 2010 Michael Sotnikov, stari4ek(at)gmail.com # This file is part of 7kitchen - collection of scripts for 7hero # # Software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS # OF ANY KIND, either express or implied. source 7common usage() { cat << EOF Usage: `basename $0...
true
db11453bd065ca2c2dca513baa853e51ddba4330
Shell
Luismorlan/chia-plotting-script
/start_chia.sh
UTF-8
1,396
3.765625
4
[]
no_license
#!/bin/bash CHIA_DIR=/home/warren/Documents/chia-blockchain DRY_RUN=true while [[ $# -gt 0 ]] do key="$1" case $key in -t|--thread) THREAD="$2" shift shift ;; -d|--dir) CHIA_DIR="$2" shift shift ;; -p|--prod) DRY_RUN=false shift ;; esac done if [ -z ${THREAD} ] then echo "ID...
true
aae050e9f5ac15616b449785c83d7e4cf7348071
Shell
jman294/dotfiles
/uninstall.sh
UTF-8
448
3.34375
3
[]
no_license
#!/bin/bash BOLD_RED='\033[0;1;31m' NC='\033[0m' # No Color for dir in ./*_i/ do echo -e "${BOLD_RED}Uninstalling $(echo ${dir:2} | cut -d'_' -f 1)${NC}" cd $dir if [ ! -x ./uninstall.sh ] then chmod +x ./uninstall.sh fi source ./uninstall.sh cd .. echo -e "${BOLD_RED}Finished uninstall $(echo ...
true
1acf75d55b0b5a5b5759ac6cc84773497d545d3d
Shell
SjaakWaarts/D2Y-Analytical-Search
/FMI/ci-scripts/release_upload.sh
UTF-8
792
3.28125
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # uses BRANCH_NAME, BUILD_NUMBER and SPRINT_NUMBER environment variables and file ansible/release_plus_ansible.zip # Set script to exit immediately on command error. set -e SAFE_BRANCH_NAME="$(echo ${BRANCH_NAME} | sed 's|/||g')" echo ${SAFE_BRANCH_NAME} NEXUS_RELEASE_TYPE='snapshots' if [ ${SAFE...
true
6201859f109f70fab9b650939bbd7dadd7015620
Shell
selvaje/YaleRep
/gmted2010_res_x10/sc7c_geomorf_asm_ent_count_perce_merge_resKM.sh
UTF-8
2,938
2.515625
3
[]
no_license
# calculate different variables for the dem # for DIR in count majority percent shannon asm ent ; do qsub -v DIR=$DIR /home/fas/sbsc/ga254/scripts/gmted2010_res_x10/sc7c_geomorf_asm_ent_count_perce_merge_resKM.sh ; done # bash /home/fas/sbsc/ga254/scripts/gmted2010_res_x10/sc7c_geomorf_asm_ent_count_perce_merge_...
true
763334b023bfa1fd4cf14e210164cd180efc463e
Shell
tractorpulledpork/oh-my-zsh
/themes/alan.zsh-theme
UTF-8
654
2.71875
3
[ "MIT" ]
permissive
source "$ZSH/lib/spectrum.zsh" # There is some way to do this just using zsh substitutions but I sure can't figure it out local path_display='echo "${PWD/#$HOME/~}" | sed "s:/:%{$FG[092]%}/%{$fg[cyan]%}:g"' local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s)" PROMPT='${ret_status}%{$fg_bold[green]%}%p...
true
78a8cbf2abba72d4c3eecb470c158a6544c204cd
Shell
tim-group/rabbitmq-tools
/bin/rabbitmq-shovel
UTF-8
5,541
3.765625
4
[]
no_license
#! /bin/bash -e die() { echo "$@" >&2 exit 1 } ## Parse options ############################################################### ACK_MODE=on_confirm # set to on_publish to risk losing messages rather than sending dupes declare -a HEADERS ROUTING_KEY= # you win a prize if you know a use for this SOURCE_NODENAM...
true