Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ask HN: Should I unplug my laptop charger at 100%?. Parent comment
ioreg -l -n AppleSmartBattery -r | awk '/MaxCapacity/{mc=$3};/DesignCapacity/{dc=$3};END{print 100*mc/dc}'