Skip to content

Instantly share code, notes, and snippets.

View tpounds's full-sized avatar
⌨️
keyboard.bin

Trevor Pounds tpounds

⌨️
keyboard.bin
View GitHub Profile

Keybase proof

I hereby claim:

  • I am tpounds on github.
  • I am tpounds (https://keybase.io/tpounds) on keybase.
  • I have a public key whose fingerprint is A97A 4B84 9CF8 468C 7115 E908 2C03 624E E706 F754

To claim this, I am signing this object:

@tpounds
tpounds / Makefile
Last active October 29, 2015 11:04
Example Makefile deprecation target.
DEPRECATED:
@echo
@echo [WARN] Target has been deprecated. See Makefile for more information.
@echo
# DEPRECATED: Use shiny-new-target because it's cool.
some-old-target: DEPRECATED
@echo Doing some deprecated stuff.
shiny-new-taret:
@tpounds
tpounds / p4-pickaxe.sh
Last active September 22, 2015 23:15
Perforce pickaxe script.
#!/bin/sh
DEPOT_PATH=$1
SEARCH_REGEX=$2
p4 changes $DEPOT_PATH | \
awk '{ print $2 }' | \
xargs -l sh -c 'p4 describe -du $0 | \
awk "/^[-+].*'$SEARCH_REGEX'/ { found=1 } // { buf = buf\"\n\"\$0 } END { if(found) print buf }" | \
colordiff'