Skip to content

Instantly share code, notes, and snippets.

@hexvolt
Last active October 12, 2016 09:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hexvolt/93aeb7fc8a02c3dee1cd9e85d7a7c226 to your computer and use it in GitHub Desktop.
Save hexvolt/93aeb7fc8a02c3dee1cd9e85d7a7c226 to your computer and use it in GitHub Desktop.
Aliases for .bashrc to find Raspberry. Note: MAC addresses of adaptors are there
alias find-pi-wifi="sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=\$NF}/00:E0:4D/{print ip}'"
alias find-pi="sudo nmap -sP 10.50.0.0/24 | awk '/^Nmap/{ip=\$NF}/B8:27:EB/{print ip}'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment