Author Archives: bhuvan

Setup of django, virtualenv and dependencies using pip

Recently I started working on a django project which is exciting at the same time challenging. I thought its good time to document some of the steps to deploy the project and these are the steps to follow. System requirements In a typical debian system run the following commands to get required packages before we… Read More »

configure mymine app for self-signed certs

Mymine is a cool app for redmine. Their is one problem thought I was not able to configure mymine with self-signed certificate instance of redmine. I found a way to make it work. These are the steps to configure mymine to work with self-signed certificate sites. Step 1 (Get the cert) Enter sites URL in… Read More »

Creating postgresql Database and user in a nutshell.

I will not write much but just the code required to create a user and let the user access the db. Create UserCREATE USER tom WITH PASSWORD ‘myPassword’; Create a DBCREATE DATABASE jerry; Grant Privileges to user on the DBGRANT ALL PRIVILEGES ON DATABASE jerry to tom; Grant Privileges to table GRANT ALL PRIVILEGES ON… Read More »

Single line to send an alert mail from shell

The power of shell and how simple it is to send a mail when every some one logs in as root to a predefined email. echo ‘ALERT – Root Shell Access (message or DNS) on:’ `date` `who` | mail -s “Alert: Root Access from `who | cut -d”(” -f2 | cut -d”)” -f1`” <email id>

Live feed of concurrent HTTP connections

This is a cool command for checking how many are sending requests to the webserver. watch -n 0.5 “netstat -ano | grep -v unix | grep ESTABLISHED | grep :80”   With the above command one can monitor how many connections are connected to the server. It looks a bit like a sci-fi screen if… Read More »

e-Swecha 2014 edition

The 4 day workshop at KG Reddy Enginnering college took me back to early days of swecha when we used to sit for hours together to code, chat, browse, pulling each others leg, cracking jokes and some serious brainstorming, finally building something productive. This workshop or we love to call it as hackathon was productive.… Read More »

What let to the formation Internet Part-I

This is an attempt to chronicle the history of internet. I wish the reader to comment and improve the write-up   Introduction During World War II need for decrypting the messages transmitted by Germans was essential for the west forces which lead to increased importance of the station Bletchley park for breaking the encrypted text… Read More »