Shashank Agarwal

I , me, myself

Navigation Menu

How I use Docker to save my entire server and all websites

How I use Docker to save my entire server and all websites

Posted by on Jul 25, 2014 in Blog, Server, Tech | 8 comments

So I have a lot of websites on my server and when the last time my server crashed, I lost everything. Even though I had a git repo but the latest mysql updates etc. were all lost. And on top of all I had to go through so much trouble to bring all my sites back up as I had to reinstall everything on a new server. So I switched to Docker.  I created a Docker...

Read More

Creating simple unix/linux daemon in Python

Creating simple unix/linux daemon in Python

Posted by on Jul 20, 2014 in Blog, Tech, Tutorials | 0 comments

I have been trying to create a simple daemon in Python, here is a sample code of what I found.   Download the code for daemon.py here .   #!/usr/bin/env python import sys, os, time, atexit from signal import SIGTERM class Daemon: “”” A generic daemon class. Usage: subclass the Daemon class and override the run()...

Read More

Those who are…were

Those who are…were

Posted by on Sep 22, 2013 in Blog | 0 comments

Those who are heartless, once cared too much. Those who love everyone, once were ignored too much. Those who are always smiling, once were sad too much. Those who are stubborn, once listened to everyone too much. Those who focused, once never cared too much. Those who are don’t give , once were afraid of being themselves too much. …

Read More