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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
d68fe5b13a1ea73f3427dc3490512a7af4b629e3 | Shell | spreadshirt/continuation-token | /prepare-bintray-deployment.sh | UTF-8 | 752 | 3.171875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -euo pipefail
PROJECT_ROOT="${1}"
export POM_VERSION=$(grep --max-count=1 '<version>' "${PROJECT_ROOT}/pom.xml" | sed -E 's/<version>(.*)<\/version>/\1/' | tr -d '[:space:]')
export GIT_VERSION=$(git describe --always --tags)
export RELEASE_DATE=$(date --utc --iso-8601)
COMMIT_MESSAGE=${TRAVIS_COMMIT_... | true |
a9e96f8385f1143aa6082d2f9c786cca7e7a90ea | Shell | Francesco-Giocondo/controllofornitori | /raccoltaidee2 | UTF-8 | 905 | 3.28125 | 3 | [] | no_license | #!/bin/bash mah
row="$(wc --lines < file1 | egrep -o '[0-9]*')"
echo Ecco le righe del file1: $row
URL="http://www.svapoweb-pro.com/big-batteries-ecigarette/big-battery-kanger/kit-kanger-subox-nano-black"
rm file3
COUNTER=1
RCOUNTER=2
while [ $COUNTER -le $row ]; do
echo numero ciclo: $COUNTER
if [ "$COU... | true |
a771161d3e2fb4acb98920dc3afa52632ad1c7cd | Shell | rubixlinux/rubixlinux | /kde/qt/PKGBUILD | UTF-8 | 5,282 | 2.65625 | 3 | [] | no_license | # Maintainer: Joshua Rubin <joshua@rubixlinux.org>
pkgname=qt
pkgver=3.3.6
pkgrel=2
pkgdesc="Qt (a multi-platform C++ graphical user interface toolkit) Qt is a complete and well-developed object-oriented framework for developing graphical user interface (GUI) applications using C++. This release is free only for devel... | true |
3331fd0461ebee65823756d8aee3a787b4346a61 | Shell | UlasSAYGINIM/jailize | /jailize | UTF-8 | 22,011 | 2.8125 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
#
# Script to manage jails for daily tasks based on dhcpd, netgraph and vnet
#
# Written by M.Zhilin aka mizhka (FreeBSD/NetCracker/PostgresPro)
#
# v0.1 - time to publish stable version (2016-2021)
#
### Some random notes below
#### /boot/loader.conf
# ipfw_nat_load="YES"
# libalias_load="YES"
# net.inet... | true |
797f03f024ae162d4ef668d75a44a7a6b2894ced | Shell | ceylanbaysalaydin/HYF-Module-HTMLCSSGIT | /week1/commands.txt | UTF-8 | 496 | 3.421875 | 3 | [] | no_license | #!/bin/bash
#1-How do I create a hidden file or folder? How do I display it in the CLI?
#Create hidden folder
mkdir .hidden-folder
#Create hidden file
touch .hidden-file
#Display hidden file and folders
ls -a
#2-How do I create multiple nested directories, like /c/Users/myusername/these/folders/are/just/for/fun?
... | true |
ef177009072a139b85ec03d61938382d4bfb3d1d | Shell | hce-project/hce-bundle | /src/usr/bin/deploy/dts-prereq-test.sh | UTF-8 | 970 | 3.59375 | 4 | [] | no_license | #! /bin/bash
#
# DTS prerequisite components
# availability test (check for PHP
# and Python modules/includes)
#
. ./cfg/screen_cfg.sh
. ./cfg/php.sh
. ./cfg/py.sh
# PHP includes list
inclist="zmsg.php"
for i in ${api_groups}; do
inclist="${inclist} ${i}.inc.php"
done
# test include file presence on disk
echo "C... | true |
f6218402dcf07e4ca822922879d5c98706fd0378 | Shell | ghdl/docker | /.todo/gh-pages.sh | UTF-8 | 2,464 | 3.921875 | 4 | [] | no_license | #!/bin/sh
set -e # Exit with nonzero exit code if anything fails
TARGET_BRANCH="gh-pages"
REPO=`git config remote.origin.url`
getWiki() {
printf "\n[GH-PAGES] Clone wiki\n"
git clone "${REPO%.*}.wiki.git" content/wiki
cd content/wiki
rm -rf wip .git
printf "\n[GH-PAGES] Adapt wiki pages\n"
f... | true |
1cb37b4a2a20290e89bccef7e7de485390d02af8 | Shell | phoenix-rtos/phoenix-rtos-build | /build.sh | UTF-8 | 4,647 | 3.734375 | 4 | [
"BSD-2-Clause"
] | permissive | #!/usr/bin/env bash
#
# Shell script for building Phoenix-RTOS based firmware
#
# Main builder
#
# Copyright 2018, 2019 Phoenix Systems
# Author: Kaja Swat, Aleksander Kaminski, Pawel Pisarczyk
#
set -e
# Colon-separated list of dirs to overlay the default rootFS.
# It can be overwritten by build.project scripts.
ROO... | true |
5ba94249379bfc9ae74e080912cdfaead4de52f1 | Shell | lmangani/homer-docker | /mysql/run.sh | UTF-8 | 525 | 3.359375 | 3 | [] | no_license | #!/bin/bash
# ----------------------------------------------------
# HOMER 5 Docker (http://sipcapture.org)
# ----------------------------------------------------
# -- To facilitate starting (or not starting) MySQL
# -- based on option to use remote mysql.
# ----------------------------------------------------
# Reads ... | true |
5fbe8c35ea7aac406e6b21b2143747627befa518 | Shell | soartec-lab/terraform_stationery | /bin/terraform.exec.sh | UTF-8 | 1,293 | 3.53125 | 4 | [] | no_license | #!/bin/bash
ACTION=$1
ENV=$2
log() {
echo `date '+%Y-%m-%d %H:%M:%S'` $*
}
debug() {
if [ "${DEBUG}" = 1 ]; then
log DEUBG $*
fi
}
error() {
log ERROR $*
}
info() {
log INFO $*
}
fail_exit() {
log ERROR $*
exit 1
}
arguments () {
echo "ArgumentsError: Require '$1'"
echo \
"
USAGE
`basena... | true |
c9b597d310d6ba960486ffbc7cf5c4d1547e2836 | Shell | Gustavhol/dotfiles | /.config/zsh/path.zsh | UTF-8 | 870 | 2.921875 | 3 | [] | no_license | # ____ ___ ________ __
# / __ \/ |/_ __/ / / /
# / /_/ / /| | / / / /_/ /
# / ____/ ___ |/ / / __ /
# /_/ /_/ |_/_/ /_/ /_/
#
# Prepend to path if entry does not exist.
# This version from: https://superuser.com/questions/39751/... | true |
156cd1326caa7d259aff08c18efd5a169e953a29 | Shell | kickops/teleport | /files/teleport-pam-exec.sh | UTF-8 | 241 | 2.578125 | 3 | [] | no_license | #!/bin/sh
COMMENT="User ${TELEPORT_USERNAME} with roles ${TELEPORT_ROLES} created by Teleport."
id -u "${TELEPORT_LOGIN}" > /dev/null 2>&1 || /usr/sbin/useradd -m -g teleport-admin -c "${COMMENT}" "${TELEPORT_LOGIN}" > /dev/null 2>&1
exit 0
| true |
cea1db78015097715503f84ac48196d0c1799c5c | Shell | yugr/ShlibVisibilityChecker | /tests/basic/run.sh | UTF-8 | 941 | 3.65625 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# Copyright 2021-2022 Yury Gribov
#
# The MIT License (MIT)
#
# Use of this source code is governed by MIT license that can be
# found in the LICENSE.txt file.
# This is a simple test for ShlibVisibilityChecker functionality.
set -eu
cd $(dirname $0)
if test -n "${GITHUB_ACTIONS:-}"; then
set -x
fi
C... | true |
df150bcd3cb0cf39c2de0e297e39e10783a8b0f4 | Shell | LeChinok/outset-scripts | /usr/local/outset/login-once/DesktopPicture.sh | UTF-8 | 389 | 2.578125 | 3 | [] | no_license | #!/bin/bash
## Version 1.0
## Compiled by Kevin M. Cox
## Sets the initial desktop picture for all users at first login
## Should be set in Munki to REQUIRE the custom DesktopPictures.pkg
# Set the user's desktop picture as The Daily News 175th Anniversary logo
osascript -e 'tell application "Finder" to set desktop... | true |
5de21c1514f138f54edfc940090225c9dd272a96 | Shell | sunxiaolin2016/bsp_tools | /release/tools/config_ds9478.sh | UTF-8 | 10,026 | 3.234375 | 3 | [] | no_license | #!/bin/sh
#addr_bus=1
#addr_bus=3
addr_ds947=0x0c
addr_ds948=0x2c
read_num=0
function usage()
{
echo "ds9478 [mode]"
printf "mode:\n 1: read all register ds947/948\n 2: Reset FPD PLL\n 3: Reset OLDI PLL\n 4: Reset OLDI block\n 5: Rest ds947\n "
printf "6: Disable color bars test on ds947\n 7: Set color bars with e... | true |
2384d9de3e819bdbb164372de54bc440fdbb230a | Shell | sipian/autoscaling-sfc | /openstack installation guide/setup-openstack.sh | UTF-8 | 2,684 | 3.25 | 3 | [] | no_license | #!/bin/bash
read -p "Enter Your public IP address: " IP
$password="root"
function install_openstack {
sudo apt-get upgrade
sudo apt-get update
sudo apt-get install -y python-systemd
sudo useradd -s /bin/bash -d /opt/stack -m stack
echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
sudo... | true |
5fa3c5c76ead5d6a7398a8d4b4debc8846165f82 | Shell | sajan19/Practice_Coding | /Day 7/ques1RandomNumbers.sh | UTF-8 | 453 | 2.953125 | 3 | [] | no_license | #!/bin/bash -x
for((i=0; i<10; i++))
do
a[i]=$((RANDOM%900 + 99))
for((j=0;j<10;j++))
do
#echo ${a[@]};
#secondLargest=$(printf '%s\n' "${a[@]}" | sort -n | tail -2 | head -1)
#secondSmallest=$(printf '%s\n' "${a[@]}" | sort -n | tail -2 | head -1)
#secondLargest=$(printf '%s\n' "${a[@]}" | sort -n )
# | tail -2 | hea... | true |
ff8910aff38fe2b5f7add8ac945614d99ae5fffe | Shell | haochunqiu/lnmp-lite | /tools/ddos_deflate_install.sh | UTF-8 | 1,144 | 3.46875 | 3 | [] | no_license | #!/bin/sh
if [ -d '/usr/local/ddos' ]; then
echo; echo; echo "Please un-install the previous version first"
exit 0
else
mkdir /usr/local/ddos
fi
clear
echo; echo 'Installing DOS-Deflate 0.6'; echo
echo; echo -n 'Downloading source files...'
cp ../conf/ddos.conf /usr/local/ddos/ddos.conf
cp ../conf/ignore.ip.list /... | true |
c5b64eba2ee4fe1f50e5f9ff94c5a1593386b5d8 | Shell | Highstaker/RSS-Atom-telegram-bot | /run_RSS_bot.sh | UTF-8 | 243 | 2.734375 | 3 | [] | no_license | #!/bin/bash
env/bin/python3 rss_atom_bot.py &
PROC_PID=$!
echo "Bot process:$PROC_PID"
# kill background processes on exit
trap 'kill $(jobs -p)' EXIT
# wait for process to finish. Or simply until this sxcript exits
wait $PROC_PID
exit 0;
| true |
7bd5abea134afca61e6a4713b4ecfe4769fbfa1d | Shell | sgtpepperpt/apdcDB | /proxy/cryptdb-proxy.sh | UTF-8 | 571 | 2.75 | 3 | [] | no_license | #!/bin/bash
#This script runs the CryptDB proxy
#usage: ./proxy.sh <proxy-address> <proxy-backend-to-mysql> <cryptdb-path> <cryptdb-pass>
PROXY_IP=$1
MYSQL_IP=$2
# prepare proxy launch
export EDBDIR=$3 #/home/pepper/apdc/proxy/cryptdb
export CRYPTDB_PASS=$4
#Y1VzkAmF
fuser -k 3307/tcp
# now launch
$EDBDIR/bins/proxy... | true |
f46440985b0dee0813f1044f96ae5e67e8323d48 | Shell | translate/mozilla-l10n | /ttk-put | UTF-8 | 372 | 2.875 | 3 | [] | no_license | #!/bin/bash
source $(dirname $0)/ttk.inc.sh
for opt in $*
do
case "$opt" in
--yes)
opt_yes=""
shift 1
;;
esac
done
langs=$(which_langs $*)
# We don't want to sync_store anymore as Pootle now has last_sync_revision and
# this would mess with that. Keep it here while we validate that we mean what
# we s... | true |
89904a32aceabf2f539db593b3191a5d7e934d5f | Shell | delaaxe/.dotfiles | /setup.sh | UTF-8 | 488 | 2.90625 | 3 | [] | no_license | for file in .{vim,vimrc,ideavimrc,inputrc}; do
if [ -e ~/$file ]; then
echo "~/$file: not linked, already exists."
else
ln -s ~/.dotfiles/$file ~/$file
echo "~/$file: linked."
fi
done
unset file
ln -s ~/.dotfiles/vscode/settings.json ~/Library/Application\ Support/Code/User/settings.json
ln -s ~/.do... | true |
63ac2b0867c034eb6e4767318b3fe35a6529c044 | Shell | endavid/CheatSheets | /bashScript.sh | UTF-8 | 2,293 | 4.03125 | 4 | [] | no_license | #!/bin/bash
# The first line is to tell bash what to use to exe this script,
# if the file is executable (chmod 755)
# run handle_error function when errors occur.
# https://stackoverflow.com/a/19622569
trap 'handle_error' ERR
# Exit immediately if a command exits with a non-zero status.
set -e
function my_functio... | true |
6b47be45f8fc1a2568056f0847e136c3e19eb4b2 | Shell | linuxsun/tools | /shell/centos7_sys_init.sh | UTF-8 | 12,374 | 3.453125 | 3 | [] | no_license | #!/usr/bin/env bash
if [[ "$(whoami)" != "root" ]]; then
echo "please run this script as root ." >&2
exit 1
fi
LOCK_FILE="/var/run/sys_init.lock"
SSH_PORT=22
yum_update(){
#yum -y install wget
#cd /etc/yum.repos.d/ && mkdir bak && mv ./*.repo bak
#wget -O /etc/yum.repos.d/CentOS-Base.repo http... | true |
036ff752a87bee01f0995a32e293c33c00c91c00 | Shell | mprocha/scripts | /git.sh | UTF-8 | 188 | 2.859375 | 3 | [] | no_license | #!/bin/bash
date=`date`
read -p "Digite o comentario sobre as modificações feitas: " comment
#git init
git add .
git commit -m "Atualização $date: $comment"
git push origin master
| true |
fd5295d4ed5107751cd80bef87f1897409533435 | Shell | ksoldau/dotfiles | /sublime-text-3/install.sh | UTF-8 | 909 | 3.640625 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# Sublime Text 3 install with Package Control
# Run this script with:
$ curl -L git.io/sublimetext | sh
# Detect the architecture
if [ "$(uname -s)" == "Darwin" ]; then
URL="http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%20Build%203065.dmg"
else
exit;
fi
# # Download the dmg, mount and install
... | true |
18af49f21d4bd90fe4845a8b853fcb5ac3a476f0 | Shell | TJNII/DockerBases | /build.sh | UTF-8 | 270 | 3.40625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -euo pipefail
PREFIX=tjnii_base
for base in $(find ./ -maxdepth 2 -type f -name Dockerfile | cut -f 2 -d / | sort); do
grep FROM $base/Dockerfile | awk '{print $2}' | xargs docker pull
docker build --no-cache -t ${PREFIX}/${base} ${base}
done
| true |
f14308978b4063b4c83091bdd84cd5ed323c2aed | Shell | sboehringer/ImputationPipeline | /src/maintenance/pullin-R-sb.sh | UTF-8 | 751 | 3.0625 | 3 | [] | no_license | #!/bin/sh
PIPELINEBASE=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/../../
pushd $PIPELINEBASE/src/maintenance
#
# <p> Rprivate
#
R=~/src/Rprivate
. $R/exportR.sh
FILES="Rlibraries.R Rdata.R Rsystem.R Rmeta.R Rgraphics.R Rreporting.R Rfunctions.R Rstatistic.R Rpatches.R Rdataset.R Rsimulation.R RpropertyList.R... | true |
0e35cd3e69c178f3d284534677059e9c197dd2bd | Shell | wearemovement/devops-realworld-example-backend | /scripts/run-fast-test.sh | UTF-8 | 892 | 3.40625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
set -x
imagename=${IMAGENAME:-todo}
version=${GO_PIPELINE_LABEL:-dev}
repository_prefix=${REPOSITORY_PREFIX}
full_imagename=${repository_prefix}/${imagename}:${version}
mode="--fast"
if [ $# -eq 1 ]; then
mode=$1
fi
# Fetch the image
gcloud docker -- pull ${full_imagename}
# Instant... | true |
09f3169f0d86066139f63705ba3a1f5350b9996c | Shell | bgxavier/devstack_utils | /scripts/setup_docker.sh | UTF-8 | 579 | 2.59375 | 3 | [] | no_license | [ -e /usr/lib/apt/methods/https ] || {
sudo apt-get update
sudo apt-get install apt-transport-https
}
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 \
--recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
sudo sh -c "echo deb https://get.docker.com/ubuntu docker main \
> /etc/apt/sources.list.d/d... | true |
07b1f092ca2620790c6db0ea522e0193be6646ee | Shell | gturi/bash-utils | /remove-empty-directories.sh | UTF-8 | 762 | 4.40625 | 4 | [] | no_license | #!/bin/bash
# usage: ./remove_empty_directories "/absolute/path/to/target_folder"
# description: recursively removes empty directories inside the specified path
# removes all the empty directories in the specified one (included)
function find_and_remove {
# finds the directories in the specified one ($1)
# a... | true |
9899c37f4826cdd0befd316603cacab149431326 | Shell | Vikash84/MegaPath-Nano | /db_preparation/updateDB.sh | UTF-8 | 3,599 | 3.125 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
SCRIPT=$(readlink -f $0)
SCRIPT_PATH=$(dirname ${SCRIPT})
ROOT_PATH=$(dirname $(dirname ${SCRIPT}))
DB_DIR=${ROOT_PATH}/genomes/refseq/
SQL_DB_DIR=${ROOT_PATH}/db/
if [ $# -eq 2 ]
then
DB_DIR=$1
SQL_DB_DIR=$2
fi
if [ ! -d ${DB_DIR} ]; then
echo "DB not exist. Please use refseq_download.sh to d... | true |
ddae43a8c3a56a617fd598ad37fcc8abd2f49fdf | Shell | slachiewicz/docker-zabbix-server | /container-files/config/init/bootstrap.sh | UTF-8 | 12,128 | 3.640625 | 4 | [] | no_license | #!/bin/sh
set -eu
export TERM=xterm
# Bash Colors
red=`tput setaf 1`
green=`tput setaf 2`
yellow=`tput setaf 3`
white=`tput setaf 7`
bold=`tput bold`
reset=`tput sgr0`
separator=$(echo && printf '=%.0s' {1..100} && echo)
# Logging Functions
log() {
if [[ "$@" ]]; then echo "${bold}${green}[LOG `date +'%T'`]${reset} $... | true |
675c61f295d9dfb0b109ee823bbec139f0efde1a | Shell | DavidUnzue/html-diff-tool | /src/markdown-format-wdiff | UTF-8 | 687 | 3.140625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Markdown-wdiff -- format diff of Markdown files with decoration
# Usage:
# wdiff old.md new.md | markdown-format-wdiff
# git diff --word-diff origin/master -- README.md docs/tutorial/README.md | markdown-format-wdiff
#
# Author: Jaeho Shin <netj@cs.stanford.edu>
# Created: 2013-11-18
set -... | true |
bb87196cfb9d1ee83451de147b3f3bfaa33364d1 | Shell | opme976/bash-opgaver | /12.5.sh | UTF-8 | 351 | 3.015625 | 3 | [] | no_license | #!/bin/bash
#**************
#Scriptguden bag: Tobias Nielsen
#Opgave: 12.5
#Beskrivelse: division af to tal med tjek at første er større end #2
echo -n "skriv det tal som der skal divideres med "
read TAL1
echo -n "skriv det andet tal "
read TAL2
if [[ $a < 0 ]]; then
$a=$((TAL1 / TAL2))
else
$a=$((TAL2 / TAL1... | true |
73e4fc8ed345a7aed0b90d016b69c143de639da5 | Shell | delkyd/alfheim_linux-PKGBUILDS | /armake-git/PKGBUILD | UTF-8 | 689 | 2.78125 | 3 | [] | no_license | # Maintainer: Felix Wiegand <koffeinflummi@gmail.com>
_pkgname="armake"
pkgname="${_pkgname}-git"
pkgver=0.5.r0.g68dbdc7
pkgrel=1
pkgdesc="An open-source implementation of the Arma modding tools."
arch=('i686' 'x86_64')
url="https://github.com/KoffeinFlummi/armake"
license=('GPL2')
depends=('openssl')
optdepends=()
co... | true |
c92d5feb50d1b45f24d643b14eb127e7be979767 | Shell | C2SM-RCM/buildenv | /package_builder/build_libgrib_api.sh | UTF-8 | 7,381 | 3.9375 | 4 | [
"BSD-2-Clause"
] | permissive | #!/usr/bin/env bash
exitError()
{
echo "ERROR $1: $3" 1>&2
echo "ERROR LOCATION=$0" 1>&2
echo "ERROR LINE=$2" 1>&2
exit $1
}
TEMP=$@
eval set -- "$TEMP --"
fwd_args=""
# COSMO Resources repository default
resources_repo="git@github.com:C2SM-RCM/libgrib-api-cosmo-resources.git"
# COSMO Resourc... | true |
8ae105fea240a438b0fe939f3d6d87e519564e8e | Shell | benaux/bkb-env | /kickstart.sh | UTF-8 | 930 | 3.515625 | 4 | [] | no_license |
cwd=$(pwd)
here=$(basename $cwd)
today=$(date "+%F")
me=$(whoami)
host=$(hostname)
homedir=$HOME/homedir_${me}_${host}
[ -d "$homedir" ] || { echo "Err: no homedir under $homedir" ; exit 1; }
userboxes=$homedir/userboxes_${me}_${host}
[ -d "$userboxes" ] || { echo "Err: no userboxes dir under $userboxes" ; exit 1... | true |
48b129d860dafe55abd08d379a29365472cf1840 | Shell | ANTsX/ANTs | /Scripts/asymmetry.sh | UTF-8 | 3,138 | 3.0625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
usage=" $0 -d 3 -f symmetric_template.nii.gz -m moving.nii.gz -o output_prefix "
:<<supercalifragilisticexpialidocious
here is a first pass at registration-based asymmetry based on mapping an image A to a symmetric-template.
note - care must be taken to look at prefix_L_aff.nii.gz to make sure that it's c... | true |
b2c5b8812f1c076436c0d26cc8505bf1149257b9 | Shell | XayOn/biibot | /biibot.bash | UTF-8 | 2,246 | 3.96875 | 4 | [] | no_license | #!/bin/bash -
# This somehow demonstrates "Quote! Unless you don't want to...
# Irc servers and channels can't have spaces, so we're storing them in an associative array and using parameter expansion to make it a multilevel associative array, even three levels once we tr ":" " ".
declare -x -A options
source iibot_e... | true |
27a494516db7991dfa531f938815b1b6097503df | Shell | levithomason/grok | /topics/nvm/install.sh | UTF-8 | 186 | 2.765625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
original_dir=$(pwd)
rm -rf ~/.nvm
git clone https://github.com/creationix/nvm.git ~/.nvm && cd $_
git checkout v0.39.1
cd ${original_dir}
unset original_dir | true |
93a999a95374208408b42a463fb1e4b591d008fe | Shell | philips-labs/vault-ca | /issue-cert.sh | UTF-8 | 793 | 3.21875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
source ${BASH_SOURCE%/*}/functions.sh
keybase_path=$(get_keybase_path $1)
if [ -z "$2" ] ; then
>&2 echo please provide the certificate you would like to request
>&2 echo e.g. marco.philips.dev
exit 1
fi
export VAULT_ADDR=http://127.0.0.1:8200
echo
${BASH_SOURCE%/*}/unseal.sh $1
... | true |
36e76d1127277ebf238728952e47c79572e051fa | Shell | gene1wood/genes-laptop | /cookbooks/wendy/files/default/homedir/bin/show | UTF-8 | 743 | 3.71875 | 4 | [] | no_license | #!/bin/bash
if [ -e "$1" ]; then
if grep -- ' PRIVATE KEY-' "$1" >/dev/null; then
action=rsa
elif grep -- '-BEGIN CERTIFICATE REQUEST-' "$1" >/dev/null; then
action=req
elif grep -- '-BEGIN CERTIFICATE-' "$1" >/dev/null; then
action=x509
elif grep -- '-BEGIN TRUSTED CERTIFICATE-' "$1" >/dev/null; t... | true |
16cb2a66e55377945d3371d6e76117d2592d55c2 | Shell | lybird300/CPTAC3-RNA-related-pipeline | /rna_pipeline.sh | UTF-8 | 3,281 | 3.1875 | 3 | [] | no_license | #!/bin/bash
sample=$1
fq_1=$2
fq_2=$3
cpu=8
cd ${sample}
##Examine quality metrics for sequencing reads using fastqc
mkdir -p FASTQC
fastqc -o FASTQC -f fastq -t 1 $fq_1 $fq_2
##Mapping
#MapSplice
mkdir -p MAPSPLICE
bowtie_ref=/gscmnt/gc2521/dinglab/qgao/Reference/GRCh37.75/Bowtie/hg19
chr_dir=/gscmnt/gc2521/dingla... | true |
d5c7fcd84879f531e2f8c9075a58d053fe44293e | Shell | Vlacross/bash-tut | /floor/8_char.sh | UTF-8 | 418 | 3.59375 | 4 | [] | no_license | #!/bin/bash
# rand-string generatpr - code-along from tldp
if [ -n "$1" ] #if command line arg present
then #then set start string to it
str0="$1"
else # else use the PID of script
str0="$$"
fi
POS=2 #starting point of string
LEN=8 #extract 8 characters
str1=$( echo "$str0" | md5sum | md5sum )
# double ... | true |
9e70f929503adbfe338c8aab38c3b81fa631458a | Shell | IMIO/imio.devpi | /run.sh | UTF-8 | 661 | 2.96875 | 3 | [] | no_license | #!/bin/bash
set -e
set -x
initialize=yes
if [ ! -f "$DEVPISERVER_SERVERDIR/.serverversion" ]; then
initialize=no
fi
if [[ "$initialize" = "no" ]]; then
if [ -f "$DEVPISERVER_SERVERDIR/export/dataindex.json" ]; then
/srv/devpi/import.sh
else
/srv/devpi/bin/devpi-init
/srv/devpi/bin/... | true |
5d9771c610e173c74a907eade457371ad92244c7 | Shell | FroggDev/BASH_froggLinuxWikiFamilyManager | /include/function/com.sh | UTF-8 | 1,860 | 3.953125 | 4 | [] | no_license | #func used to ask user to answer yes or no, return 1 or 0
# makeachoice {forThisQuestion}
makeachoice()
{
if [ $doAUTO = 1 ];then
return 1
fi
userChoice=0
echo " " #add a pre space to have a better display
while true; do
read -p " [ Q ] Do you wish to $1 ?" yn
case $yn in
y|Y|yes|YES|Yes|O|o|oui|OUI|Oui)userChoi... | true |
aafb7f41dac12f136fec1a3401a92ed1eff58903 | Shell | chrisgzf/manjaro-linux | /01-update-mirrors | UTF-8 | 573 | 2.53125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
sudo pacman-mirrors --country United_States
sudo pacman-mirrors -f 0
sudo pacman -Syyu --noconfirm
sudo pacman -S yaourt --noconfirm
yaourt -Syyua --noconfirm
sudo pacman -Sy base-devel --noconfirm
sudo pacman -S linux419-headers --noconfirm
sudo pacman -S timeshift --noconfirm
sudo pacman -S gnome-disk-uti... | true |
be5b8f831a308f4f271c27995d82e86086261046 | Shell | DrakeM0/lab_3 | /lab3_script.sh | UTF-8 | 335 | 2.703125 | 3 | [] | no_license |
#!/bin/bash
# Author : Your Name
# Date: Today's date
# Script follows here:
# Authors : Drake Morley
# Date: 2/7/2020
echo "a filename: "
read numOne
echo "what you would like to search for "
read numTwo
grep -P '$numTwo' $numOne
grep -c -P '303-\d{3}-\d{4}' $numOne
grep -c -P '@' $numOne
grep -P 'geocities.com' $nu... | true |
da6b9d2d9cc27311ffb4cc595301bac117a11e00 | Shell | saantiaguilera/fiuba-sisop-budget-scheduler | /src/Initep.sh | UTF-8 | 7,922 | 3.609375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
GRUPO="Grupo6"
#CONF_FILE="$GRUPO/dirconf/EPLAM.conf"
CONF_FILE="$GRUPO/dirconf/instalep.conf"
#### Messages ####
TYPE_INF="INF"
TYPE_ERR="ERR"
TYPE_WAR="WAR"
MSG_ENV_INITIALIZED="Ambiente ya inicializado, para reiniciar termine la sesión e ingrese nuevamente."
MSG_UNKNOWN_ENV_VAR="Se encontró una variabl... | true |
e0564dc8988ca9ee57ac9c5cc09e74e9b7e6d953 | Shell | unstoppa61e/hello_node | /ex01/tester.sh | UTF-8 | 313 | 2.90625 | 3 | [] | no_license | subject="ex01"
esc=$(printf '\033')
yellow=$esc"[33:1m"
green=$esc"[32:1m"
red=$esc"[31:1m"
reset=$esc"[m"
put_color() {
echo "$2$1$reset"
}
put_color "test "$subject $yellow
node vars.js > output
diff expected output
if [ $? -eq 0 ] ;then
put_color "OK" $green
else
put_color "KO" $red
fi
rm -f ./output | true |
79931639308dff314e018021096c444d218a2e15 | Shell | UKHomeOffice/messaging | /push | UTF-8 | 1,417 | 4.3125 | 4 | [] | no_license | #!/bin/bash
url=example
messages_dir=example
set -e
git symbolic-ref --short -q HEAD | grep 'master' &> /dev/null
if [ $? != 0 ]; then
echo "Error: Messages can only be pushed from master git branch. Once you are ready to push to master then run this from master branch"
exit 1
fi
# Allow the user to run the s... | true |
a13b6503ea15c96cc257c04b59ffba6976676421 | Shell | sthordall/dotfiles | /scripts/setup-work-proxy | UTF-8 | 2,270 | 3.71875 | 4 | [] | no_license | #!/usr/bin/env bash
if [ "$EUID" -ne 0 ]; then
echo "Please run as root"
exit
fi
ROOT=/etc/nixos
RED='\033[1;31m'
GREEN='\033[1;32m'
NC='\033[0m'
echo ""
echo -e "${RED}## ${GREEN}Configuring proxy${NC}"
echo ""
echo -n -e "${GREEN}Domain:${NC} "
read domain
echo -n -e "${GREEN}Username:${NC} "
read user
echo... | true |
afd00e96fb2a6298f9df9ec7ad5f9c1521320cbc | Shell | lino-network/linod-scripts | /fullnode/codes/watch_dog.sh | UTF-8 | 1,127 | 3.3125 | 3 | [] | no_license | #!/bin/bash
sed -i "11s/.*/moniker=\"$(openssl rand -base64 6)\"/" ~/.lino/config/config.toml
./lino start --log_level=info &
pid=$!
last_height=0
while true
do
sleep 30s
catching_up=$(curl --max-time 10 http://localhost:26657/status | jq '. | .result.sync_info.catching_up')
if [ "$catching_up" = true ] ; ... | true |
485b45c960ad3734dad9f481420e1f2e3150107a | Shell | Kehrlann/spring-security-and-session | /scripts/login.sh | UTF-8 | 481 | 3.5625 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
TOKEN_FILE="$SCRIPT_DIR"/token-header.txt
if [ -f "$TOKEN_FILE" ]; then
echo 'Removing previous token...'
rm "$TOKEN_FILE"
fi
echo 'Authenticating ...'
RESPONSE=$(curl http://localhost:8080/login -d username=user -d password=p... | true |
f347cd359981869607064ea03b63b2f134e100a7 | Shell | shanahanjrs/arch-maintenance | /archtools.sh | UTF-8 | 1,484 | 3.625 | 4 | [] | no_license | #!/bin/bash
# TODO
# implement:
# - failed systemd services
# systemctl --failed
#
# - errors in /var/log
# sudo journalctl -p 3 -xb
#
# - restore from timeshift backup
# sudo timeshift --restore
#
# - journalctl logs from boot
# sudo journalctl -b
#
# - clean up orphaned packages
# sudo pacman -Rs... | true |
4c863af493d41b53a8add588f62801581e99fcad | Shell | SBPL-Cruz/perception | /object_recognition_node/site/include/roslibjs/test/examples/setup_examples.sh | UTF-8 | 947 | 2.9375 | 3 | [
"BSD-3-Clause"
] | permissive | if command -v rosrun 2>/dev/null; then
echo "Shutting everything down"
ps aux | grep ros | awk '{print $2}' | xargs kill -9
sleep 1
echo "Starting roscore and various examples in background processes"
nohup roscore > /dev/null 2>&1&
sleep 2
nohup rosrun tf static_transform_publisher 0 0 0 ... | true |
457d095c4053c854c61ba1c50c955c32b837a975 | Shell | nasyaoris/pdb-voltdb | /volt-config/start_cluster.sh | UTF-8 | 1,192 | 3.421875 | 3 | [] | no_license | dir=$(pwd)
activeCtnPrefixFile=$dir/activeCtnPrefix
if [ -f "$activeCtnPrefixFile" ]; then
read -r activeCtnPrefix<$activeCtnPrefixFile
echo 'Starting Docker Container ...'
docker start ${activeCtnPrefix}1 > /dev/null 2>&1
docker start ${activeCtnPrefix}2 > /dev/null 2>&1
docker start ${activeCtnPrefix}3 > /... | true |
befad6f043c039f7ca2cbffa924cd20125fdb65e | Shell | mlnlbrt/dotfiles | /.bin/launcher.sh | UTF-8 | 298 | 2.953125 | 3 | [] | no_license | #!/bin/bash
# this is a helper script which launches various commands
TERM=i3-sensible-terminal
case `basename $0` in
surf-priv)
surf -d -a "a"
;;
_hints)
$TERM -e "hints.sh $@ && read"
;;
_mc)
$TERM -e mc
;;
*)
exit 1
esac
| true |
4ec1c761cc0ecbd28ed495aae31b03bc51e9336a | Shell | jnaka66/ECE3524p3 | /proc.sh | UTF-8 | 767 | 3.5 | 4 | [] | no_license | #!/bin/bash
echo "(please enter the number of your selection below)"
PS3="Choice: "
select opt in 'Show all processes' 'Kill a process' 'Bring up top' 'Return to Main Menu'; do
case $opt in
'Show all processes')
ps -ef
n1=0
while [ "$n1" != ":q" ]
do
read n1
done
sh ./proc.sh
;;
... | true |
120ae58e444a6f037fa51c77ba92154260c95a10 | Shell | m0oml/dotfiles | /.config/i3/lemonbar/i3_lemonbar_config | UTF-8 | 3,002 | 2.59375 | 3 | [
"BSD-2-Clause"
] | permissive | #!/usr/local/bin/bash
# i3 panel config. Powerline style.
panel_fifo="/tmp/i3_lemonbar_${USER}"
geometry="2560x24+2560x"
font="-xos4-terminesspowerline-medium-r-normal--20-200-72-72-c-100-iso10646-1"
#iconfont="-xos4-terminusicons2mono-medium-r-normal--12-120-72-72-m-60-iso8859-1"
#font="-xos4-terminesspowerline-mediu... | true |
dd8f71e7a09edd5e3fffed3e923edd0cdff472e8 | Shell | rafalogan/athonApi | /bin/create.module.sh | UTF-8 | 849 | 3.296875 | 3 | [
"MIT"
] | permissive | #!/bin/zsh
DIR_MODULES="./src/api"
DIR_CONTROLLERS="./src/api/controllers"
DIR_ROUTES="./src/api/routes"
if [ ! -d "$DIR_MODULES" ]; then
mkdir "$DIR_MODULES" && mkdir "$DIR_CONTROLLERS" && mkdir "$DIR_ROUTES"
fi
if [! -f "$DIR_MODULES/api.module.ts" ]; then
touch "$DIR_MODULES/api.module.ts"
fi
if [ ! -f "$DIR_C... | true |
a3cb10f088b0390a8e6859f6ff9fe09135f434f6 | Shell | dimitern/go-tools | /scripts/test-lxc.sh | UTF-8 | 10,519 | 3.71875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Bootstraps a juju environment (from source) and deploys a few
# services in LXC containers. Uses 2 machines with different series.
# Waits for the deployment then collects all logs and relevant info
# from the remote machines and destroys the environment.
# Call with an environment name, its default ser... | true |
875e9a5643456a1eef2b3d28ea873d0249cc4e07 | Shell | stffrdhrn/or1k-utils | /glibc/glibc.build | UTF-8 | 1,136 | 3.96875 | 4 | [] | no_license | #!/bin/bash
# Wrapper to run all builds in the right order
DIR=`dirname $0`
source $DIR/glibc.config
start_time=`date -u +%s`
build_log=$BUILDDIR/log/build.log
mkdir -p $BUILDDIR/log
success_or_failure() {
if grep libc.build.done ${build_log} > /dev/null ; then
echo -n SUCCESS
else
echo -n FAILURE
fi
... | true |
6b7433ba73873a66f76c664f9af12f290e55f5e7 | Shell | ChrisMLawson/Rick-Richardson-geocaching-tools | /geo-logic-box | UTF-8 | 3,240 | 3.734375 | 4 | [
"LicenseRef-scancode-public-domain"
] | permissive | #!/bin/sh
PROGNAME="$0"
usage() {
cat <<EOF
NAME
`basename $PROGNAME` - Logic box/grid/grille solver
SYNOPSIS
`basename $PROGNAME` [options] initial-value count
DESCRIPTION
Logic box/grid/grille solver. Take an initial value which is nine or
ten digits and produce "count" new values.
OPTIONS
... | true |
1a77cc1fefe1ee53c71d0015e089be96c23d0561 | Shell | lojaintegrada/django-mptt | /tests/runtests.sh | UTF-8 | 453 | 2.96875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
export PYTHONPATH="./"
export DJANGO_SETTINGS_MODULE='settings'
if [ `which django-admin.py` ] ; then
export DJANGO_ADMIN=django-admin.py
else
export DJANGO_ADMIN=django-admin
fi
export args="$@"
if [ -z "$args" ] ; then
# avoid running the tests for django.contrib.* (they're in INSTALLED_APPS)
... | true |
bc3935e326ac34702898281c598b5143cac079ab | Shell | cloudcafetech/AKS-setup | /winexporter-setup.sh | UTF-8 | 1,360 | 3.75 | 4 | [] | no_license | #!/bin/bash
# Windows Nodes Exporter setup script on AKS Windows Host
CLUSTER=prod-aks-win
WINUSER=adminprod
SSHKEY=ssh-key-$CLUSTER
echo "Deploying AKS SSH POD on Cluster"
kubectl create -f https://raw.githubusercontent.com/cloudcafetech/AKS-setup/master/aks-ssh.yaml
echo "Waiting for SSH POD ready .."
while [[ $(k... | true |
31794e612221f9e34ba9cb91da5eacac18dda989 | Shell | otboss/Mobile-Application-Tech-Year-3-Semester-2 | /SWEN3004/SERVER/start.sh | UTF-8 | 252 | 3.125 | 3 | [] | no_license | #!/bin/bash
export DEBUGGING=false;
read -p 'Launch in debugging mode? [y/N] ' choice;
if [ "$choice" == "y" -o "$choice" == "Y" ];
then
cd "./bin";
export DEBUGGING=true;
./node server.js;
else
cd "./bin";
./node index.js;
fi
| true |
693745a83e132360b5cf87cb931797a67a7756e3 | Shell | ShalokShalom/apps | /pidgin/PKGBUILD | UTF-8 | 1,602 | 2.71875 | 3 | [] | no_license |
# perl issue on server, build locally only
pkgname=pidgin
pkgver=2.14.6
pkgrel=1
pkgdesc="Multi-protocol instant messaging client"
arch=('x86_64')
url="https://pidgin.im/"
license=('GPL')
depends=("libpurple=${pkgver}" 'startup-notification' 'gtk2' 'libxss' 'hicolor-icon-theme'
'libsm' 'libidn' 'avahi' 'gst-p... | true |
3d43ea19d7471863789ddeab67d2617abe3240ee | Shell | hawkw/mycelium | /bin/_util.sh | UTF-8 | 1,689 | 4.5 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# utility functions used in other shell scripts.
#
# currently, this includes:
# - cargo-style stderr logging (`err`, `note`, and `status` functions)
# - confirmation prompts (`confirm` function)
set -euo pipefail
# Log an error to stderr
#
# Args:
# $1: message to log
err() {
echo -e "\e[3... | true |
bfe3fd8ad13d8ef7e643bffb6a1bb894a25dbd04 | Shell | BatNiy/NewPlatform.Flexberry.ServiceBus | /NewPlatform.Flexberry.ServiceBus/Flexberry Service Bus/Linux/flexberryservicebus | UTF-8 | 1,438 | 3.75 | 4 | [
"MIT"
] | permissive | #!/bin/sh
#
# template Flexberry Service Bus - esb from NewPlatform.
#
# chkconfig: - 90 10
# description:
# processname: flexberryservicebus
# config: NewPlatform.Flexberry.ServiceBus.WinServiceHost.exe.config
# pidfile: /var/run/monosrv/flexberryservicebus.pid
# Do not load RH compatibility interface.
WITHOUT_RC_CO... | true |
3fd7516555b3bfbf9b32acf0f0897993f513a02a | Shell | e-ark/RPi-Web-L-chika | /api/api-button.cgi | UTF-8 | 318 | 3.046875 | 3 | [] | no_license | #!/bin/sh -vx
#
# CGI Button API(JSON)
#
# Wed May 15 23:58:09 JST 2013
#
exec 2> /tmp/log.$(basename $0)
# Settings
PIN=4
gpio -g mode $PIN out
# Exec
value=$(gpio -g read $PIN)
date=$(date +"%s")
# Output
echo "Content-type:application/json"
echo ""
echo '[ {"data": "'$value'", "time": "'$date'"} ]'
exit 0
| true |
a6eead60eba503b1929b2d6d91095448112de145 | Shell | z-george-ma/docker-dev-tools | /docker-init.sh | UTF-8 | 772 | 3.328125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
MOUNT_TAG="DOCKER_MOUNT_"$(date +"%s")
VBOXMANAGE=$(which VBoxManage)
BOOT2DOCKER=$(which boot2docker)
if [ x$VBOXMANAGE = x ]; then
VBOXMANAGE="$VBOX_MSI_INSTALL_PATH/VBoxManage"
fi
if [ $# -ge 1 ]; then
docker-machine stop $1
"$VBOXMANAGE" sharedfolder add $1 -name $MOUNT_TAG -hostpath `pwd`
docker-... | true |
16fd263a02745631649973813d931c6602b3afb1 | Shell | UW-GAC/aws_ami | /upgrade_ubuntu_to_topmed.bash | UTF-8 | 7,075 | 3.71875 | 4 | [] | no_license | #!/bin/bash
# upgrade a base ubuntu to have the following:
#1. Ubuntu server with appropriate security and ssh access
#2. Ubuntu packages supporting:
# a. Developers (e.g., gcc)
# b. R and various R packages
# c. HPC (e.g., hdf5, openmpi)
#3. Intel's MKL
#4. Base R
#5. TOPMed Specific Support
# a. NFS volum... | true |
fc6d3a70607db36ccffe4c0dbd3fb5d8f4155269 | Shell | Twinklebear/libbat-benchmark-scripts | /ior/submit_summit_ior_scaling.sh | UTF-8 | 1,289 | 3.65625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
if [ -z "$WORK_DIR" ]; then
echo "WORK_DIR must be set"
exit 1
fi
REPO_ROOT=`git rev-parse --show-toplevel`
SCRIPTS_DIR=$REPO_ROOT/scripts/ior
if [ "$1" == "fpp" ]; then
export IOR_SCRIPT=$SCRIPTS_DIR/ior-fpp-no-fsync.txt
elif [ "$1" == "shared" ]; then
export IOR_SCRIPT=$SCRIPTS_DIR/ior-... | true |
48647abe1eaf709060910c756cd90707a7cad0e4 | Shell | lkiesow/docker-scp | /run.sh | UTF-8 | 583 | 3.390625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
set -ue
if [ -n "${DEPLOY_KEY+x}" ]; then
echo "${DEPLOY_KEY}" > "/conf/${DEPLOY_USER:-deploy}"
fi
# remove old keys
rm -f /etc/ssh/authorized_keys/* || :
# add new users and keys
cd /conf
for user in *; do
if ! id -u "${user}"; then
adduser -D -s /usr/bin/rssh -h "/data/${user}" "${user}"
pas... | true |
cba6fd4522fadc8b365c0cb251fe09aea5be9b7d | Shell | divramod/darbs | /scripts/common/wik_mux_pro_cra | UTF-8 | 436 | 2.953125 | 3 | [] | no_license | #!/bin/bash
# helper
wik_path="${HOME}/art/wik"
cat_path="${wik_path}/ref"
src_path="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/$(basename "$0")"
# files
f1="${cat_path}/senior_developer/project.md"
f2="${cat_path}/vim/project.md"
f3="${cat_path}/wiki/project.md"
f4="${cat_path}/manjaro/project.md"
f5="${cat_p... | true |
d281e36a60ade24b3bc174f8f4805df2e32e07e5 | Shell | djchopper/bosp | /scripts/bbqProfiler.sh | UTF-8 | 5,687 | 3.359375 | 3 | [] | no_license | #!/bin/bash
#
# @file profiling.sh
# @brief Barbeque RTRM Profiling
#
# This is a script based Profiling routine which runs the Barbeque RTRM on
# different platform configurations in order to collect performance metrics and
# graph them.
#
# @author Patrick Bellasi (derkling), derkling@gmail.com
#
# ... | true |
6410cf304072445a8c0e6e5b260541bcc4a4b096 | Shell | liskin/dotfiles | /bin/needsterminal | UTF-8 | 306 | 2.921875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -eu
[[ -t 0 && $DISPLAY ]] || _WAIT_FOR_WM=: exec x-terminal-emulator ${_XTERM_HOLD:+-hold} ${_XTERM_FLOAT:+-xrm 'URxvt.transient-for: 0x11111111')} -e "$0" "$@"
[[ ${_WAIT_FOR_WM-} ]] && { xwaitforwindow || :; }
unset _WAIT_FOR_WM _XTERM_HOLD
echo -ne "\033]0;$1\007"
exec "$@"
| true |
47d1dc1caf2e971f8b2f6d44adcd2fa0b5c88b0e | Shell | exoscale/puppetdb | /docker/puppetdb-base/docker-entrypoint.d/40-consul.sh | UTF-8 | 624 | 3.015625 | 3 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | #!/bin/sh
if [ "$CONSUL_ENABLED" = "true" ]; then
ipaddress="$(ifconfig $NETWORK_INTERFACE | grep -v 'inet6' | grep 'inet' | head -1 | tr -s ' ' | cut -d ' ' -f 3)"
cat <<SERVICEDEF > /puppet-service.json
{
"name": "puppetdb",
"id": "$HOSTNAME",
"port": 8080,
"address": "$ipaddress",
"checks": [
{
... | true |
da90b96c71938b79e4b32c2faa2719557146f21d | Shell | onap/archive-vfc-nfvo-driver-sfc | /zte/sfc-driver/plugin-standalone/src/main/assembly/docker/docker-env-config.sh | UTF-8 | 926 | 2.828125 | 3 | [
"CC-BY-4.0",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | #!/bin/bash
install_sf(){
sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf
sed -i 's|#baseurl=http://mirror.centos.org/centos|baseurl=http://mirrors.ocf.berkeley.edu/centos|' /etc/yum.repos.d/*.repo
yum update -y
yum install -y wget unzip socat java-1.8.0-openjdk-headless
sed -i 's|#networ... | true |
68204f8fef66a511aa078582abdf5b9dfa946c0d | Shell | pezholio/dotfiles | /aliases.sh | UTF-8 | 584 | 3.171875 | 3 | [] | no_license | #!/bin/bash
alias a="atom ."
alias t="gittower ."
alias c="code ."
function bi() {
echo "==> Installing $1"
brew install "$@"
echo "==> Adding $1 to the Brewfile"
brew bundle dump --force
echo "==> Committing and pushing changes"
git add Brewfile
git commit -a -m "Adding $1 to the Brewfile"
git push
}... | true |
91cb4d720d5397abfb231cb5a8c2aa67ecab0bc4 | Shell | mwaghadhare/terraform-infra-bootmst | /modules/networking/bastion/scripts/userdata.sh | UTF-8 | 234 | 2.515625 | 3 | [] | no_license | #!/bin/bash
# Shell script to format block device and mount it to /data and create fstab entry.
sudo mkfs -t ext4 /dev/xvdb
sudo mkdir /data
sudo mount /dev/xvdb /data
sudo echo /dev/xvdb /data ext4 defaults,nofail 0 2 >> /etc/fstab
| true |
746c6d6e8fcf174bb406495eedbceeda561bd6cb | Shell | giordanorn/dotfiles | /.config/i3blocks/scripts/cpu-frequency | UTF-8 | 273 | 2.78125 | 3 | [] | no_license | #!/bin/sh
# TODO it runs fine when in terminal, but in i3block it shows wrong results
#OUTPUT=$(cat /proc/cpuinfo | awk '/^cpu MHz/ { print (int($4 / 100) / 10) " GHz" }' | head -n1)
OUTPUT=$(lscpu | awk '/^CPU MHz/ { print (int($3 / 100) / 10) " GHz" }')
echo "$OUTPUT"
| true |
dfdc523973159b2043611b6a5ecab8bc073c05e2 | Shell | mkenney/k8s-proxy | /test/start-dev.sh | UTF-8 | 3,834 | 3.953125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
IMAGE=mkenney/k8s-proxy:latest
DEPLOYMENT=k8s-proxy
k8s_context=$(kubectl config view -o=jsonpath='{.current-context}')
WARN=$'\033[38;5;1m'
EMPH=$'\033[38;5;172m'
NORM=$'\033[0m'
printf "
This script will start the kubernetes proxy service using the \`kubectl apply\`
command.
${WARN}Please make sure ... | true |
db620f804df0e977dfbff356e67e959708496eb1 | Shell | Brainfood-com/localdev | /images/control/configure_docker_daemons | UTF-8 | 1,589 | 3.765625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
configure_docker_node() {
declare type="$1" address="$2" master=
shift 2
if [[ $# -gt 0 ]]; then
master="$1"
shift
fi
declare swarm_status="$(docker -H "$address" info -f '{{if eq .Swarm.NodeID ""}}needs-swarm{{else if eq .Swarm.ControlAvailable true}}control=true{{else}}control=false{{ra... | true |
2bae57fdd4f8b861b8449a14c589da39a96e93d0 | Shell | ez3r0sec/massmgmt | /munki | UTF-8 | 968 | 3.3125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# munki (UNIX exec.)
# configure munki (if desired)
# Last Edited: 6/16/18
### VARIABLES
source /usr/local/massmgmt/lib/massmgmtlib.sh
scriptEnabled="$(cat $configFile | awk '/Munki/ {print $2}')"
munkiURL="$(cat $configFile | awk '/MunkiURL/ {print $2}')"
munkiClient="$(cat $configFile | awk '/MunkiClien... | true |
2f1b4655d5e33baed8cc259f7362c16854ab2b2d | Shell | gigadeleo/keyboard_walk | /keyboard_walk.sh | UTF-8 | 5,113 | 3.890625 | 4 | [] | no_license | # !/bin/bash
#
# +-----------------------------------------------+
# | Keyboard_Walk.sh |
# +-----------------------------------------------+
# | A simple SSH host discovery and a |
# | pre-set password bruteforce tool. |
# +------------------------------------------... | true |
d7d8e0da2aaf4614a89db48ebe63efd380ddd917 | Shell | sgwilbur/jbe-helpers | /engine_template.sh | UTF-8 | 515 | 2.59375 | 3 | [] | no_license | #!/bin/sh
ENGINE_ID=
REPOSITORY_URL=
JBE_USER=
JBE_PASSFILE=
JBE_WORKDIR=
export ENGINE_ID REPOSITORY_URL JBE_USER JBE_PASSFILE
export JBE_INSTALL=/opt/IBM/jazz/v3/TeamConcertBuild_3000
export JBE_HOME=${JBE_INSTALL}/buildsystem/buildengine/eclipse
export JBE_BUILDTOOLKIT=${JBE_INSTALL}/buildsystem/build... | true |
29627bf568e5685685c32666c433b2fbccc9987c | Shell | automation-workshop/shell-kibana | /scripts/elasticsearch.sh | UTF-8 | 480 | 3.125 | 3 | [] | no_license | #!/bin/bash
DEB_URL="https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.4.3.deb"
if [ ! -x /usr/bin/java ]; then
apt-get install -qq -y openjdk-7-jre
fi
if [ ! -f /etc/init.d/elasticsearch ]; then
cd /tmp
curl -Os $DEB_URL
dpkg -i ${DEB_URL##*/}
sudo update-rc.d elasticsearch de... | true |
8041155931e22ece197da2fa13b5cbf042cc8a8c | Shell | odeter/emacs | /.emacs.d/var/backup/!home!christopher!Documents!Work!Derant!derant_angle_app!dockers!fix_partition!fix_partition.sh~ | UTF-8 | 817 | 2.875 | 3 | [] | no_license | #!/bin/bash
# A simple script
# source venv/bin/activate
## get port and login from dokku
#export EXPORT=`dokku postgres:info angle_db --exposed-ports | sed 's/[0-9]*->//g' | sed 's/[[:space:]]//g'`
#export DATABASE_URL=`dokku postgres:info angle_db --dsn | sed "s/@[a-z -]*:['0-9']*/@localhost:$EXPORT/g"`
#var1=$(tac... | true |
8f072e40dbcd18c0c18304ddd7380f991caafe90 | Shell | Prakash878/Shell-Scripting | /shell-new | UTF-8 | 2,436 | 3.640625 | 4 | [] | no_license | #!/bin/bash
USERS=$@
if [ $# -gt 0 ]
then
for USERNAME in $USERS
do
EXUSER=$(cat /etc/passwd | grep -w $USERNAME | cut -d ":" -f1)
if [ "$USERNAME" = "$EXUSER" ]
then
echo "User Exists, please use a diffrent username."
else
SPEC=$(echo '!@#$%^&*()_' | fold... | true |
f71237bdc7296be7feb463aa710c60d638abea78 | Shell | buildscript/i9300 | /i9300_test.sh | UTF-8 | 1,377 | 3.25 | 3 | [] | no_license | #!/bin/bash
cd ~/du
# Turn off break on error to allow build process to run
set +e
############################################################
# BUILD ROM #
############################################################
# Turn on compiler caching
export USE_CCACHE=1... | true |
4852c738ed3e809e22004c4f1ad9360b2c995a17 | Shell | Kdecherf/user-config | /git/.local/bin/git-prco | UTF-8 | 292 | 3.28125 | 3 | [] | no_license | #!/bin/bash
if [ -z ${1} ]; then
echo "You must provide a PR number"
exit 1
fi
git rev-parse --show-toplevel 2>&1 >/dev/null
if [ $? -gt 0 ]; then
echo "not a git repository"
exit 2
fi
git fetch --force origin pull/${1}/head:remotes/pr/${1} &&
git switch -d remotes/pr/${1}
| true |
705fb4d21f4425c9e5a275ef84d1cf5a26c392bc | Shell | koraynilay/linux-custom-scripts | /rofmount | UTF-8 | 621 | 3.703125 | 4 | [] | no_license | #!/bin/sh
com() {
device=$(lsblk -o PATH,SIZE,FSTYPE,LABEL,MOUNTPOINT | rofi -dmenu | awk '{print $1}')
}
device=""
if [[ "$1" = "mount" || "$1" = "m" ]];then
com
echo -n $device
if [ $device ];then
out=$(gksudo mount $device >&1)
fi
elif [[ "$1" = "unmount" || "$1" = "umount" || "$1" = "u" ]];then
com
if [ $d... | true |
eba9bba451bdf27db3b38a50d4bfb65086a4270e | Shell | MYOMAO/EICEMCAL | /EtaScanClus.sh | UTF-8 | 375 | 2.71875 | 3 | [] | no_license | #!/bin/sh
i=11
N=40
etainit=1.25
step=0.25
while [ $i -lt $N ]
do
eta=$(echo "${etainit} + ${step} * $i" | bc) ;
echo "eta now " $eta
root -b -l -q Fun4All_G4_EICDetector.C'('5000,1,${eta}')'
mv G4EICDetector.root_g4femc_eval.root GammaPosAna/G4EICDetector.root_g4femc_eval_${i}.root
mv ShowerInfo.root Ga... | true |
4ec6f2f7e4a7353968797d8f4d0de09fc5bf289b | Shell | ojarsbuddy/TinyBlogTutorial | /TinyBlogImages6/loadAllSolutions.sh | UTF-8 | 121 | 2.53125 | 3 | [] | no_license | #!/usr/bin/env bash
for i in $(seq 2 9);
do
echo "./loadSolutionForChapter.sh $i"
./loadSolutionForChapter.sh $i
done
| true |
14ade511eb59973442e7046e2681c69ecc6184ad | Shell | spoorthyb93/lambda_test | /test/simulations-ex3.sh | UTF-8 | 347 | 2.90625 | 3 | [] | no_license | # total runs to perform
#rm -f .myruns
totalEx3Runs=5
# API Gateway endpoint
apigateway=$1
echo "[simulations-ex3.sh] Running ex3.sh using API Gateway: " $apigateway
for (( i=1 ; i <= $totalEx3Runs; i++ ))
do
echo "[simulations-ex3.sh] Run #$i for ex3.sh ---------------------------------------------------------------... | true |
a3b74cd06d81840bcebb86f885c913c25e1b686b | Shell | martin-juul/bootstrap-macos | /home/.zshrc | UTF-8 | 3,129 | 2.890625 | 3 | [] | no_license | # =============================================================================
# Environment
# =============================================================================
source "${HOME}/.localrc"
export CLICOLOR=1
export BOOTSTRAP_DIR=/Volumes/Dev/personal/bootstrap-macos
# ========... | true |
2b1c42ba3735c3815158a22380df1cb5c3701c51 | Shell | mlafeldt/gbp-cookbook | /templates/default/posttag-hook.erb | UTF-8 | 199 | 3.140625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
# git-buildpackage post-tag hook
set -e
say() { echo "[posttag] $@"; }
tag=$GBP_TAG
branch=$GBP_BRANCH
sha1=$GBP_SHA1
say "Tag name: $tag"
say "Branch..: $branch"
say "SHA1....: $sha1"
| true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.