Skip to content

Instantly share code, notes, and snippets.

Daniel Nilsson danijeel

Block or report user

Report or block danijeel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@danijeel
danijeel / index.sh
Last active Aug 9, 2018
#bash #boilerplate
View index.sh
#!/bin/bash
# https://explainshell.com/explain?cmd=set+-euxo%20pipefail
set -eou pipefail
yell() { echo "$0: $*" >&2; }
die() { yell "$*"; exit 111; }
try() { echo "$ $@" 1>&2; "$@" || die "cannot $*"; }
# log to syslog and echo output
info() {
You can’t perform that action at this time.