Skip to content

Instantly share code, notes, and snippets.

@touren
Last active March 19, 2019 14:52
Show Gist options
  • Save touren/fea61a8503464123afcb1a0253133894 to your computer and use it in GitHub Desktop.
Save touren/fea61a8503464123afcb1a0253133894 to your computer and use it in GitHub Desktop.
Retrieve your account's avatar image in a MacBook
## Get current user's avatar.
export USER_HOME=~
dscl . -read $USER_HOME JPEGPhoto | tail -1 | xxd -r -p > ~/Desktop/avatar.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment