Skip to content

Instantly share code, notes, and snippets.

View bkuebler's full-sized avatar
❤️
Coding with Love and Strict Validation 👍

Benjamin Kübler bkuebler

❤️
Coding with Love and Strict Validation 👍
View GitHub Profile
@bkuebler
bkuebler / gist:51d2193fbed8180537a457597721c90c
Created February 19, 2019 20:07
git alias for change commits (username email)
git config alias.change-commits '!'"f() { VAR=\$1; OLD=\$2; NEW=\$3; shift 3; git filter-branch --env-filter \"if [[ \\\"\$\`echo \$VAR\`\\\" = '\$OLD' ]]; then export \$VAR='\$NEW'; fi\" \$@; }; f "
@bkuebler
bkuebler / curly
Last active October 2, 2017 17:21
curly initial test
#!/usr/bin/env bash
SCRIPT_NAME="$(basename "$(readlink -f "$0")")"
SCRIPT_LOCATION="$(cd "$(dirname "$(readlink -f "$0")")" && pwd )"
VERSION="0.0.3"
check_selfupgrade () {
REMOTE_SUM="$(curl -s https://gist.githubusercontent.com/bkuebler/490cfb5f394bde0adea1bc882c8edf9d/raw/curly | sha256sum | while read -r hash _; do echo "$hash" ;done)"
LOCAL_SUM="$(sha256sum < "$SCRIPT_LOCATION/$SCRIPT_NAME" | while read -r hash _; do echo "$hash" ;done)"

Keybase proof

I hereby claim:

  • I am bkuebler on github.
  • I am bkuebler (https://keybase.io/bkuebler) on keybase.
  • I have a public key ASCVgi3hJonLqZeqARUnvF1OuM5_hRcOYX1FHHairTKyLgo

To claim this, I am signing this object: