Skip to content

Instantly share code, notes, and snippets.

View williamlombard's full-sized avatar

williamlombard

View GitHub Profile
@pudquick
pudquick / spx_serial.py
Created January 4, 2017 16:43
Extract serial number out of .spx files generated by System Profiler on macOS
#!/usr/bin/python
import plistlib, sys
# Grab the path to the spx file
file_path = sys.argv[1]
# ingest the spx (which is a plist)
file_data = plistlib.readPlist(file_path)