Category Archives: Programming

All the geek stuff!

Upload recipe using Net::SCP

Sharing a simple ruby recipe to automate uploads of static website, if rsync is giving you problems(like with my school web server). This script uses Net::SCP. Net::SCP is a pure-Ruby implementation of the SCP protocol. This operates over SSH (and … Continue reading

Posted in Programming | Tagged , , , | 1 Comment

Automating Drupal workflow using Git and Drush

Update Nov 11, 2009: Updated the script to accept username and server name as arguments and to print syntax help if no argument is passed. It would eliminate to modify script for different servers. Drupal rocks for some things, its … Continue reading

Posted in Programming | Tagged , , , , , , | 3 Comments

Installing Scala on Snow Leopard

These are instructions for quickly installing Scala. Scala is a general purpose language almost completely interoperable with Java, and having features of object-oriented and functional languages. I installed Scala in /usr/local , the reason for which can be found here.

Posted in Programming | Tagged , , | Leave a comment

A simple shell trick

Here is shell a trick that I used lately. Before moving to new system (where I enforce quotas on all home folders), I had portable home directories for all the users on my shared server storage. The old setup did … Continue reading

Posted in Programming | Tagged , , | Leave a comment

Git Configurations

I have started using Git over Subversion. Following is the list of my git configurations.

Posted in Programming | Tagged | Leave a comment

curl vs wget

Coming from Linux background, while working on OS X shell, I still cannot abandon my old Linux habits. A common one is trying to use wget instead of curl for downloading stuff. Just out just curiosity, I was wondering why … Continue reading

Posted in Programming | Tagged , , | Leave a comment

Installing RMagick on OS X Leopard

I work with Ruby on Leopard and and I need RMagick. If you are a programmer and don’t know what RMagick is, you should know how code can melt your picture into art in Ruby:).

Posted in Programming | Tagged , , | 2 Comments

Git remote pushing

For the last half an hour I have been playing with Git. Project I’m working on my laptop is version tracked by git. However what is the fun of using version control without a remote server. As soon as I … Continue reading

Posted in Programming | Tagged , , | 2 Comments

What goes where? Filesystem hierarchy in Unix/Linux/OS X

Although it is one of the first chapters one read when starting with Linux/Unix, it is always confusing where should we put what when it comes to installing stuff on Linux/OS X computers. I found a detailed reference Filesystem Hierarchy … Continue reading

Posted in Programming | Tagged , , | 1 Comment

Using Git on Rails project

After watching Linus Torvalds speaking for Git, and the popularity of Github, I am giving git a try. I have been using Subversion for a while, so things moved pretty smoothly.

Posted in Programming | Tagged , | Leave a comment