fousa tag

Current tag: tag

2010

24 FEB

My Git integration with Terminal

The following scripts are added to my ~/.bash_profile for some Git integration. BRANCH AUTOCOMPLETION This piece of code autocompletes the branches when you press TAB. So "git checkout ma" and press TAB, will result in "git checkout master". _complete_git() { if [ -d .git ]; then branches=`git branch -a | cut -c 3-` tags=`git ta...

10 JAN

Using multiple Ruby versions

I was working on a project that still on Ruby 1.8.5 and locally I was using 1.8.7. At first you'd think, no problem! But reality showed me I was wrong... The count method wasn't supported on Arrays in the older version but I used it in my code and it worked with the newer version... So this failed in production! That's why I looked for a w...

go to the top ↑ ← back to the blog