SwapON

Swapon is an API for generating swap file configuration scripts dynamically, how awesome is that?

If you need 512 MB of swap space, just type;

$ curl /512mb | bash

If you need 8 GB of swap space, just type;

$ curl /8gb | bash