Skip to content

Instantly share code, notes, and snippets.

@stevenwilkin
Forked from jashkenas/.bashrc
Created March 8, 2013 09:31
Show Gist options
  • Save stevenwilkin/5115287 to your computer and use it in GitHub Desktop.
Save stevenwilkin/5115287 to your computer and use it in GitHub Desktop.

Revisions

  1. @jashkenas jashkenas created this gist Mar 8, 2013.
    3 changes: 3 additions & 0 deletions .bashrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    # 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'