Skip to content

Instantly share code, notes, and snippets.

@luisintosh
Created February 15, 2017 05:46
Show Gist options
  • Select an option

  • Save luisintosh/6accd2dbaee4e3ecb1dcd4a8115dbad2 to your computer and use it in GitHub Desktop.

Select an option

Save luisintosh/6accd2dbaee4e3ecb1dcd4a8115dbad2 to your computer and use it in GitHub Desktop.
Create swapfile on digitalocean
sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
swapon -s
free -m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment