here's how i muscled through that mildly malicious migraine:
step 1: treat the damn thing
everything you learned on how to treat a hangover is fair game here. this morning's recipe for success:- two tabs of tylenol (your preferred headache medicine will do)
- get something to eat, the fattier the better (all i had was a bit of pound cake, but that's better than an empty stomach)
- hydrate hydrate hydrate, and when you're done with that, hydrate some more
- if you drink coffee, by all means chug that coffee!! you can kick that caffeine habit some other day
step 2: take it easy while still being productive
step 3: turn down the lights
- start with your desktop background. you can go the quick-and-dirty route with simple all back, or go with any dark wallpaper of your choosing (my personal favorite is the cli cheat-sheet useful wallpaper).
- any text editor worth its salt will let you change the font and background color scheme. Some MacOSX favorites: in Xcode head over to Preferences : Fonts and Colors, and go with the Midnight theme

In TextMate try out the Twilight theme (no sparkly vampires here, sorry ladies). While you're at it, try out the Homebrew theme in Terminal - try out arc90's Readability bookmarklet with the Inverse style to tame website's colors, not to mention make pages more, well, readable with no more cruft and clutter around a page's actual content
- if all else fails, invert your screen's colors. this option is usually buried in your computer's accessibility setting, sometimes called "high contrast" mode. If you're on a Mac you can go into inverted color mode with a ctrl-opt-command 8


