Skip to content

Instantly share code, notes, and snippets.

@mehmetboraezer
Last active October 13, 2016 20:13
Show Gist options
  • Save mehmetboraezer/1b8fef96b31faf4efff590559f10aec8 to your computer and use it in GitHub Desktop.
Save mehmetboraezer/1b8fef96b31faf4efff590559f10aec8 to your computer and use it in GitHub Desktop.
Random name generator for OS X
#!/bin/sh
# Run the script as root
MACHINE_ID=$RANDOM
scutil --set ComputerName $MACHINE_ID
scutil --set LocalHostName $MACHINE_ID
scutil --set HostName $MACHINE_ID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment