Skip to content

Instantly share code, notes, and snippets.

View tnarik's full-sized avatar
🧗

tnarik

🧗
  • Le Café Automatique
  • London
View GitHub Profile
@terrywang
terrywang / dumpAccountImage.sh
Last active March 26, 2017 10:04
Extract / dump Mac OS X user account picture using dscl (Directory Service command line utility) and convert (hexdump into binary) it to to a JPEG file. NOTE: The resolution can vary depending on the original size of the photo and what version of the operating system you're using when it is saved.
dscl . -read /Users/username JPEGPhoto | tail -1 | xxd -r -p > /path/to/accountImage.jpg