Skip to content

Instantly share code, notes, and snippets.

@finitud
Forked from jashkenas/.bashrc
Created March 8, 2013 14:52
Show Gist options
  • Save finitud/5116945 to your computer and use it in GitHub Desktop.
Save finitud/5116945 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