Skip to content

Instantly share code, notes, and snippets.

View sebnash's full-sized avatar

Seb Nash sebnash

View GitHub Profile
@sebnash
sebnash / gist:3811002
Created October 1, 2012 11:11
One-liner: OS X version number (e.g. 10.8.2)
sw_vers -productVersion
@sebnash
sebnash / gist:3810982
Created October 1, 2012 11:07
One-liner: OS X current Wi-Fi network (≥10.6?)
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | awk '/ SSID/ {print substr($0, index($0, $2))}'
@sebnash
sebnash / gist:3810976
Created October 1, 2012 11:05
One-liner: OS X serial number
system_profiler SPHardwareDataType | awk -F": " '/Serial/{print $2}'