Skip to content

Instantly share code, notes, and snippets.

@dminkovsky
Forked from jashkenas/.bashrc
Created March 13, 2013 07:32
Show Gist options
  • Save dminkovsky/5149996 to your computer and use it in GitHub Desktop.
Save dminkovsky/5149996 to your computer and use it in GitHub Desktop.
# MAC manipulators
alias random_mac='sudo ifconfig en0 ether `openssl rand -hex 6 | sed "s/\(..\)/\1:/g; s/.$//"`'
alias restore_mac='sudo ifconfig en0 ether YOUR_ORIGINAL_MAC_ADDRESS_GOES_HERE'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment