I hereby claim:
- I am ntang on github.
- I am nicholastang (https://keybase.io/nicholastang) on keybase.
- I have a public key whose fingerprint is 1746 834D 734B 1660 A16D FCDD 1B3A 2757 D514 FD12
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# | |
# shell function to print graphite graphs as sparklines in the terminal | |
# needs https://github.com/holman/spark | |
# from: https://twitter.com/mrtazz/status/226297265512402946 | |
# | |
function graphline() { | |
GRAPHITEHOST="graphite.example.com" | |
if [ ! -n "$1" ]; then echo "Usage: $FUNCNAME METRIC [minutes]"; return 1; fi | |
if [ ! -n "$2" ]; then MINUTES=10 ; else MINUTES=$2; fi | |
curl -s "${GRAPHITEHOST}/render?from=-${MINUTES}minutes&target=${1}&format=raw" | sed s/,None//g | cut -d"|" -f 2 | spark ; |
#!/usr/bin/env python | |
# | |
# Fairly Automated Paster | |
# | |
# Automatically creates gists ('gisting') by pasting text. | |
# FAP lets you gist really quickly and easily, all over the place. | |
# This first version only allows you to create anonymous gists. | |
# | |
# Nicholas Tang (nicholastang@gmail.com) |