Nitin Venkatesh
Last seen Aug. 11, 2014, 12:16 p.m.

Website: http://nitstorm.github.io/
Location: Chennai, India

PGP and SSH keys - Generate, export, backup and restore
Aug. 15, 2014, 6 a.m. by Nitin Venkatesh

I recently ran into a tiny problem when I forgot to backup my PGP and SSH keys. So, here's a li'l article on generating, exporting, securing your PGP and SSH keys for backups and restoring them from that backup. PGP (GnuPG) Generating keys: When you run $ gpg --gen-key, you're walked through the whole process of creating keys. nitin@trusty:~$ gpg ...


User and group management in Linux
Aug. 4, 2014, 6 a.m. by Nitin Venkatesh

Let's look at a few commands for adding, modifying and deleting users and groups alike. The commands are similar - useradd,usermod,userdel and groupadd,groupmod,groupdel. Note: Although a lot can be achieved using these tools, only a few operations have been demonstrated in the post for the sake of brevity. Please refer to the man pages to know about them. User Management ...


Searching the haystack with grep
July 26, 2014, 6 a.m. by Nitin Venkatesh

Short Version Syntax: grep [options] pattern [file] -i: ignore case of pattern -v: reverse search -n: display line numbers of lines matching pattern -c: display total count of number of lines matching pattern -e: used to specify multiple patterns Long Version grep is used to search for a particular string or pattern within a file or any given input. For ...


Monitoring webpages with Last-Modified and ETag headers
July 14, 2014, midnight by Nitin Venkatesh

Most sites have a lot going on in their HTTP headers which can sometimes help us easily identify if the web page has changed since the last time we visited it. This ofcourse depends on if the server responds with these headers and has been configured correctly to reflect any changes in the headers. Enough said, so when we query ...


Viewing text files on Linux - cat, head, tail, more and less
July 4, 2014, 6 a.m. by Nitin Venkatesh

A lot of times, we have the need to view text files on a Linux box, whether it be logs or scripts or what have you. This post is more like a cheat-sheet for me on using the cat, head, tail, more and less commands, but with examples and some screenshots. Short version head <filename>- View the top few lines ...


Installing PHPMyAdmin on Ubuntu
June 21, 2014, midnight by Nitin Venkatesh

I had to install PHPMyAdmin today and I encountered a little glitch. So here's me documenting it. It is assumed that you've already installed and setup your LAMP stack. If not, Step 0: Installing LAMP Stack $ sudo apt-get update && sudo apt-get install tasksel && sudo tasksel install lamp-server Step 1: Install PHPMyAdmin on Ubuntu $ sudo apt-get update ...


Writing Tools for the Modern Writer
April 11, 2014, 4:54 p.m. by Nitin Venkatesh

There are quite a few tools dedicated for writing out there. But I was looking for something that supported Markdown, version control and sharing capabilities. I've rounded up the three services I liked most (and which I use for different scenarios - writing short documents, blog posts and a novel). So here they are (not ordered by ranking): Typewrite Draft ...


Free Book Sources
April 4, 2014, 1:04 p.m. by Nitin Venkatesh

Here's a roundup of a few sites that offer a plethora of books and texts for your reading pleasure. For those of you with no time on your hands, here's the list: Project Gutenberg Archive.org / Open Library WikiBooks Oreilly's OpenBook Goodreads ManyBooks Feedbooks Free Programming books on GitHub 1. Project Gutenberg Project Gutenberg is one of the biggest and ...


Squashing git commits with interactive rebase
March 29, 2014, 5:04 a.m. by Nitin Venkatesh

Sometimes you want to make a gazillion little commits to keep track of your project and then later on you wish you could combine them into a single commit. This comes in especially handy when you are working on code in a public repository. You don't want to see every little change you make reflected in the logs, it's just ...


Reverting to an old commit & Grabbing changes from another branch : git checkout
March 21, 2014, 11:47 a.m. by Nitin Venkatesh

You might have seen me blogging regularly the last three weeks. That's thanks to James Clear's advice on forming new habits. I am trying to keep the "blog every saturday morning" habit this week with a short post on things I learnt to do with Git's Checkout command. So here we go! Reverting to an old commit To revert back ...


Keeping your forked repo synced with the upstream source
March 14, 2014, 11:45 a.m. by Nitin Venkatesh

We code, we fork, we code again, submit pull requests and the cycle goes on and on. Welcome to the world of Open Source. You fork a project to add some upgrade or feature and submit a pull request. However, when you're new like me, one big question that arises is - how do we keep the forked repo up-to-date ...


Making cross-domain AJAX possible with your PHP backend
March 7, 2014, 6:42 p.m. by Nitin Venkatesh

Generally, browsers will not allow you to make AJAX calls to your scripts that reside on another domain because of the Same-Origin Security policy present by default. This can be circumvented by using JSONP and stuff, but what if your script only returned text as output? You could tweak your script to wrap the text output in JSON which would ...


← Older

I read, write, code and teach