Skip to content

Instantly share code, notes, and snippets.

Benjamin Schandera Husterknupp

Block or report user

Report or block Husterknupp

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
Husterknupp / Brewfile
Last active Apr 7, 2019
conveniently install all sorts of stuff after a fresh & clean MacOS setup
View Brewfile
# Brew install
# for more information, see
# took 2-3h on my 16M wire
# brew "heroku/brew/heroku"
# brew "mysql", link: false
# brew "osgeo/osgeo4mac/qgis"
# cask "hyper"
# mas "", id: 1176895641 # Spark Email (see cask)
# mas "", id: 408981434 # iMovie (no cask)
Husterknupp /
Last active May 20, 2017
run speedtest script repeatedly and log results
for i in `seq 1 1400`; do
echo "Start tryal $i"
echo 'done with the test.. writing results'
awkres=$(echo "$result" | awk -v date="$(date +"%Y-%m-%d %R")" -v sep="\," '/Download/ {print $2, sep, $3, sep, date}')
echo $awkres >> speedtest-results-Download
upres=$(echo "$result" | awk -v date="$(date +"%Y-%m-%d %R")" -v sep="\," '/Upload/ {print $2, sep, $3, sep, date}')
echo $upres >> speedtest-results-Upload
Husterknupp / .zshrc
Last active Apr 20, 2017
git checkout to develop branch and remove branch that just became obsolete. aanand/git-up required
View .zshrc
git_checkout_and_forget() {
git_status=$(git status)
if [[ $? -eq 0 ]]; then
current_branch=$(git status | awk '/On branch/ {print $3}')
if [[ -z "$1" ]] ; then
git checkout $checkout
You can’t perform that action at this time.