Skip to content

Instantly share code, notes, and snippets.

@lorello
Created January 21, 2015 17:40
Show Gist options
  • Select an option

  • Save lorello/e040dbbb9d0e1a347c28 to your computer and use it in GitHub Desktop.

Select an option

Save lorello/e040dbbb9d0e1a347c28 to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# Disable UFW
ufw disable
# Cleanup to shrink vagrant images.
#apt-get update
#apt-get upgrade -y
apt-get -y autoremove
apt-get -y clean
dd if=/dev/zero of=/EMPTY bs=1M
rm -f /EMPTY
rm -rf /tmp/*
sync
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment