Adding Swap to 512mb VPS

If you are like me and love to use for deploying a quick VPS to test a few things you will sometimes run into issues due to the limited amount of ram.

I found running two docker containers was killing the VPS and needed to run both containers to ensure something worked.

Then I remembered if you add swap it will use that for additional ram.

so here is a nice little gist to add 2GB of swap.