Skip to content

Instantly share code, notes, and snippets.

View lukaswhite's full-sized avatar

Lukas White lukaswhite

View GitHub Profile
@lukaswhite
lukaswhite / increase_swap.sh
Created March 22, 2017 16:28 — forked from shovon/increase_swap.sh
Increasing swap size. Only tested on the ubuntu/trusty64 Vagrant box. CREDIT GOES TO ---> http://jeqo.github.io/blog/devops/vagrant-quickstart/
#!/bin/sh
# size of swapfile in megabytes
swapsize=8000
# does the swap file already exist?
grep -q "swapfile" /etc/fstab
# if not then create it
if [ $? -ne 0 ]; then