Discarding Unstaged Changes in Git

git clean -df & git checkout .

git clean -df = removes all untracked files
git checkout . = clears all unstaged changes [don’t forget the period]

Rolling back to a specific release while using Capistrano

cap deploy:rollback -s previous_release=/path/to/release/on/server

There are times when I make big mistakes, and rollback is my best friend. The line above just saved my life!

Harini Learns Ruby turned 1 today!

Kind of exciting to look back and realize how far I’ve come. I’ll take these little wins :)

Every programmer occasionally, when nobody’s home, turns off the lights, pours a glass of scotch, puts on some light German electronica, and opens up a file on their computer. It’s a different file for every programmer. Sometimes they wrote it, sometimes they found it and knew they had to save it. They read over the lines, and weep at their beauty, then the tears turn bitter as they remember the rest of the files and the inevitable collapse of all that is good and true in the world.

I don’t entirely agree with this, but it really cracked me up :D

New favorite gif. Also my reaction, every time I look at my own code after a few weeks - “what was I thinking when I wrote this?”

New favorite gif. Also my reaction, every time I look at my own code after a few weeks - “what was I thinking when I wrote this?”

techrotica:

First thing that surprised me about the Female Founder’s Conference is that it was all women. Okay, I know, that sounds ridiculous. I expected it to be all-women speakers, I expected it to be majority female crowd. But I did not anticipate that none of the male partners of YC would be in…