Skip to content

Instantly share code, notes, and snippets.

View jaddison's full-sized avatar

James Addison jaddison

View GitHub Profile
@jaddison
jaddison / vagrant-clean.sh
Last active August 31, 2015 18:49 — forked from jdowning/vagrant-clean.sh
Script to clean up Ubuntu Vagrant box before packaging
#!/bin/bash
# This script zeroes out any space not needed for packaging a new Ubuntu Vagrant base box.
# Run the following command in a root shell:
#
# bash <(curl -s https://gist.github.com/justindowning/5670884/raw/vagrant-clean.sh)
function print_green {
echo -e "\e[32m${1}\e[0m"
}