Skip to content

Instantly share code, notes, and snippets.

@shabbychef
Created February 20, 2016 00:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shabbychef/9a54c53afc2f93d8cf6b to your computer and use it in GitHub Desktop.
Save shabbychef/9a54c53afc2f93d8cf6b to your computer and use it in GitHub Desktop.
#!/bin/bash -e
#
# Created: 2016.02.05
# Copyright: Steven E. Pav, 2016
# Author: Steven E. Pav
# Comments: Steven E. Pav
function finish() {
echo doing cleanup here
}
trap finish EXIT
SWAPF=/tmp/swapfile32
sudo fallocate -l 32G $SWAPF
sudo chmod 600 $SWAPF
sudo mkswap $SWAPF
sudo swapon $SWAPF
#for vim modeline: (do not edit)
# vim:ts=2:sw=2:tw=79:fdm=marker:fmr=FOLDUP,UNFOLD:cms=#%s:syn=sh:ft=sh:ai:si:cin:nu:fo=croql:cino=p0t0c5(0:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment