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

Configuring an Amazon EC2 instance with ubuntu, apache2, mysql (LAMP)

Configuring an Amazon EC2 instance with ubuntu, apache2, mysql (LAMP)

Posted by on Jul 22, 2013 in Blog, Tech | 0 comments

In this tutorial we will show you how to set up an Ubuntu Amazon EC2 instance with Apache, PHP and MySQL (also known as LAMP), which should be enough to host a simple dynamic web site. Some familiarity with Amazon AWS and LAMP is assumed; you can adquire the former from the bookHost Your Web Site On The Cloud: Amazon Web Services Made Easy. If...

Read More