Skip to content

Instantly share code, notes, and snippets.

View asterizk's full-sized avatar
💭
hey hey

Krishen Greenwell asterizk

💭
hey hey
View GitHub Profile
@asterizk
asterizk / kvgabbrevacrocollection.txt
Last active September 22, 2021 12:21
Krishen's Abbreviation-Acronym Collection
EBITDA: earnings before interest, taxes, depreciation, and amortization (used as an indicator of the overall profitability of a business).
@asterizk
asterizk / macbookpro-lens-usage-distribution.txt
Created December 13, 2020 00:42
Breakdown of which lenses Photos reports on my MacBook Pro
exiftool \
-r ~/Pictures/Photos\ Library.photoslibrary/Masters/2020/ \
-p '${LensMake} / ${LensModel}' 2>/dev/null \
| sort \
| uniq -c \
| sort --human-numeric-sort
2 Apple / MacBook Air
2 Apple / iPad Air 2 back camera 3.3mm f/2.4
13 Apple / iPhone XR back camera 4.25mm f/1.8
@asterizk
asterizk / gist:bbd895f6761d7471644990fbfb52675a
Last active May 11, 2020 21:14 — forked from gregneagle/gist:6957826
Using PyObjC and NSWorkspace to set the desktop picture. Forked to just set a single picture from a known location.
#!/usr/bin/python
'''Uses Cocoa classes via PyObjC to set a random desktop picture on all screens.
Tested on Mountain Lion and Mavericks.
See:
https://developer.apple.com/library/mac/documentation/cocoa/reference/applicationkit/classes/NSWorkspace_Class/Reference/Reference.html
https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSURL_Class/Reference/Reference.html