Skip to content

Instantly share code, notes, and snippets.

View philcrissman's full-sized avatar

Phil Crissman philcrissman

View GitHub Profile
** Lion Users: Xcode Version 4.2.x for OS X Lion works only for ruby 1.9.3-p0 (or higher).
It currently fails to build several other rubies and gems, as well as several Homebrew and
Macports packages. Xcode Version 4.1 (4B110) works.
@philcrissman
philcrissman / wat
Created March 21, 2012 20:40
Proposed new framework structure
λ ls -al
total 0
drwxr-xr-x 14 pcrissman staff 476 Mar 21 15:42 .
drwxr-xr-x 9 pcrissman staff 306 Mar 21 15:38 ..
-rw-r--r-- 1 pcrissman staff 0 Mar 21 15:38 Appfile
-rw-r--r-- 1 pcrissman staff 0 Mar 21 15:42 Configfile
-rw-r--r-- 1 pcrissman staff 0 Mar 21 15:38 Docfile
-rw-r--r-- 1 pcrissman staff 0 Mar 21 15:42 Featurefile
-rw-r--r-- 1 pcrissman staff 0 Mar 21 15:38 Filefile
-rw-r--r-- 1 pcrissman staff 0 Mar 21 15:38 Gemfile
@philcrissman
philcrissman / nslookuping
Created February 20, 2013 16:33
nslookup ing the starwars traceroute. see `traceroute obiwan.scrye.net`
irb
1.9.3p194 :001 > ip2 = '206.214.251.'
=> "206.214.251."
1.9.3p194 :002 > (0..254).each{|octet| x= `nslookup #{ip2}#{octet}`.match(/\tname = (.*)/); puts x.captures.first unless x.nil? }
Episode.IV.
A.NEW.HOPE.
It.is.a.period.of.civil.war.
Rebel.spaceships.
striking.from.a.hidden.base.
have.won.their.first.victory.
<!--
.:iir:,
:iYu111u2YLjYiri
..iLUU5qOMMOOEZXX15uuJ21uvqjJ7i.
.:7J5FN0OGMOMZZEZE0PPSSFF1551ujYJYuY72U7v7vrr:.
:2EMOM8OZZ0NPXSF1S5k5FU1uUU1u2U12UJJLjJYv2uv7L7rrvLv:
.UMM0qSS111S15U521u1U1uUuUuUU2u2U1u2u15uLLv. 7Li vv7ir;vL7:
:5OGS212511U51125UUuuU2u2UUU22Fu225152Sr:ir7,. ,@B7 rv7rri;r77;.
|oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo|
|oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo|
|oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo|
|oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo|
|oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo|
|ooooooooooooooooooooooooooooooooooooooooooooo+:::++o::+++++ooooooooooooooooooooooooooooooooooooooooo|
|oooooooooooooooooooooooooooooooooooooooooooo:::::::+o+:::::+::+++ooooooooooooooooooooooooooooooooooo|
|ooooooooooooooooooooooooooooooooooooooooooo::::::::::o+:+::::::::::++ooooooooooooooooooooooooooooooo|
|oooooooooooooooooo+~~::::+++oooooooooooooo::::::::::::o+::::+:::::::::+ooooooooooooooooooooooooooooo|
|ooooooooooooooooooo.~~~.~.~~~~~~::::ooooo:~::::::::::~+o+::::::::::::::+oooooooooooooooooooooooo
def some_method
"something"
end
private :some_method
def some_other_method
"doot doot doot"
end
@philcrissman
philcrissman / gist:10075053
Last active August 29, 2015 13:58
Who's leaving all those TODOs in the code, anyways?
grep -rn TODO app lib test | awk '{print $1}' | awk 'BEGIN {FS=":";OFS=""};{print "git blame -L ",$2,",",$2," -- ",$1}'| while read line; do eval $line; done | awk '{print $2,$3}' | sed 's|(||g|' | sort | uniq -c | sort
/**********************
* superDrEvalBros.js *
**********************
*
* You're still here?! Well, Dr. Eval, let's see
* how well you can operate with one less dimension.
*
* Give up now. Unless you have a magic mushroom
* up your sleeve, it's all over.
*/
/*****************
* cellBlockA.js *
*****************
*
* Good morning, Dr. Eval.
*
* It wasn't easy, but I've managed to get your computer down
* to you. This system might be unfamiliar, but the underlying
* code is still JavaScript. Just like we predicted.
*
/*****************
* cellBlockA.js *
*****************
*
* Good morning, Dr. Eval.
*
* It wasn't easy, but I've managed to get your computer down
* to you. This system might be unfamiliar, but the underlying
* code is still JavaScript. Just like we predicted.
*