Skip to content

Instantly share code, notes, and snippets.

@xentek
Forked from jashkenas/.bashrc
Created March 8, 2013 06:05
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 xentek/5114521 to your computer and use it in GitHub Desktop.
Save xentek/5114521 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