Skip to content

Instantly share code, notes, and snippets.

@juangesino
Last active February 8, 2018 14:30
Show Gist options
  • Save juangesino/1033b8ca1f9a8158fa3a5b17e278ef61 to your computer and use it in GitHub Desktop.
Save juangesino/1033b8ca1f9a8158fa3a5b17e278ef61 to your computer and use it in GitHub Desktop.
[Terminal Commands] A bunch of useful commands for macOS
# Get MAC address
ifconfig en0 | grep ether
# Set a new MAC address
sudo ifconfig en0 ether aa:bb:cc:dd:ee:ff
# Set random MAC
openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//' | xargs sudo ifconfig en0 ether
# Save energy
## Kill Flux
pkill -9 "Flux"
## Kill Lux
pkill -9 "Lux"
## Kill Evernote
pkill -9 "Evernote"
## Kill Google Chrome
pkill -9 "Google Chrome"
## Turn Bluetooth off (brew install blueutil)
blueutil off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment