Skip to content

Instantly share code, notes, and snippets.

View mac-hevc-hw-encoder.md

Use this code snip to get all encoders: https://stackoverflow.com/a/38954520

On a 13" MacBook Pro 2019 (with T2)

2019-08-23 16:20:04.737 print-encoders[26396:2240602]   1752589105  com.apple.videotoolbox.videoencoder.hevc.ave HEVC Apple HEVC (AVE) Apple HEVC (AVE)
2019-08-23 16:20:04.737 print-encoders[26396:2240602]   1752589105  com.apple.videotoolbox.videoencoder.hevc.gva HEVC Apple HEVC (HW) Apple HEVC (HW)
2019-08-23 16:20:04.737 print-encoders[26396:2240602]   1752589105  com.apple.videotoolbox.videoencoder.hevc.vcp HEVC Apple HEVC (SW) Apple HEVC (SW)

(showing HEVC-related only)

View office-thinner.py
#! /usr/bin/python
# -*- coding: utf-8 -*-
import os
import sys
import filecmp
def print_usage():
print "Usage: sudo office-thinner.py [prefix]"
print " prefix is /Applications by default"
View gist:dffb4346fe2f7429423b
// a tree
var t = {
left: {
left: {
left: null,
right: null
},
right: null
},
right: {