Better HN
topnewbestaskshowjobs
Log inSign up

JReptak

2 karma · joined Mar 27, 2011 (15y ago) · 4 submissions

Jerry Reptak, CS senior at Rutgers University.
Submissions

comment 14y ago · link · parent

Or better yet add color:

WARNING: REPLACE ASTERISK with the ATERISK character, keeps italicizing

alias facts="echo -ne '\033[36m'; curl -s randomfunfacts.com | grep '<i>' | sed 's/.ASTERISK<i>\(.ASTERISK\)<\/i>.*/\1/'; echo -ne '\033[0m'; tput sgr0"

And run it in BG so we don't have to wait for call to website before we pull

alias gpl="( facts ); git pull"

comment 14y ago · link · parent

Only using curl:

WARNING: Replace ASTERISK with the asterisk character, keeps italicizing -.-

curl -s randomfunfacts.com | grep '<i>' | sed 's/.ASTERISK<i>\(.ASTERISK\)<\/i>.*/\1/'

comment 14y ago · link · parent

Top notch hacks and thanks for everyone that showed up!

comment 14y ago · link · parent

Sadly we are not going with that shirt :(