My Experiments With Postgres

Being a Postgres user from the past couple of months, I have learnt some tricks, configs, queries that have helped me a lot. These not only save time but also makes the interaction with Postgres more pleasurable. I’ll share some of my learning here…

Read on →

Hello Emacs

Since the day I found Sublime Text, it has been my favorite and default editor for all programming and general writing. The simplicity and the elegance of Sublime is what makes me love it. But sometimes, it is not just enough to know how to use a graphical editor. You need to master a command line based editor as well. I realised this when I moved to Mac at work.

Read on →

Using Fabric to Run Commands Remotely

At times, you might have to do some ninjaing around to run commands on mutiple servers. If you are like me, a semi literate in shell scripting, you’d google for the shell / awk syntax and waste hours writing scripts to do this. But then, wasting hours to run a simple script on multiple servers is pointless. What if I can do this with Python? All problems solved :) That is where Fabric comes into picture!

Read on →

Django Dumpdata to Dump Selective Rows

Thanks to my telephony geek friend for letting me know this simple but highly useful method to selectively dump django models data into a django standard model-dump format. Here is a simple snippet which shows how to selectively dump only the required rows and not the entire model.

Read on →

Terminal Sharing Using Tmux

Recently, I helped my friend setup his octopress blog. The problem was that, we were miles apart and interacting via chat turned out to be hard. What we needed was a shared terminal where both of us could see the commands entered by either of us. A quick google search showed me that this was possible easily using tmux.

Read on →