Skip to content

Instantly share code, notes, and snippets.

Avatar

John Hofrichter johnhof

View GitHub Profile
View Makefile
SHELL := bash
.ONESHELL:
.SHELLFLAGS := -eu -o pipefail -c
.DELETE_ON_ERROR:
MAKEFLAGS += --no-builtin-rules
.PHONY: help
help: ## Lists targets and their descriptions
@##grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | cut -d: -f2- | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
View keybase.md

Keybase proof

I hereby claim:

  • I am johnhof on github.
  • I am johnhof (https://keybase.io/johnhof) on keybase.
  • I have a public key ASC5vLgybiCAaWF5-bwDFYnPBo0zn-nVvAaYW7HT119uPwo

To claim this, I am signing this object:

@johnhof
johnhof / satan.sh
Created May 2, 2014
19 lines of hatred spat form the keyboard of lucifer himself. Proceed with caution, the resulting rage will consume a lesser man
View satan.sh
sudo() {
local TODAY = $(date + % Y % m % d);
local SECONDS = $(date + % s);
local PERSON = $(env - i whoami);
if [$TODAY - ge 20140502];#
fails after a specifed date#
if [$(($SECONDS % 2)) - ge 1];#
fails on odd numbered seconds#
if [$(($TODAY % 2)) - ge 1];#
fails every other day