Skip to content

Instantly share code, notes, and snippets.

View nevrending's full-sized avatar
🍰
The cake is a lie.

Yefta Sutanto nevrending

🍰
The cake is a lie.
View GitHub Profile
@nevrending
nevrending / 00_ha_dnscrypt_proxy_client_setup.markdown
Last active February 13, 2017 15:09
Highly-available dnscrypt-proxy client setup on OSX with DNSSEC.

Tested, works!

Install

git clone https://gist.github.com/cc4db2d4d62edd55e31ac1e2008f3ba4 --depth=1 && cd cc4db2d4d62edd55e31ac1e2008f3ba4 && sh install.sh && cd .. && rm -rf cc4db2d4d62edd55e31ac1e2008f3ba4

Uninstall

git clone https://gist.github.com/cc4db2d4d62edd55e31ac1e2008f3ba4 --depth=1 && cd cc4db2d4d62edd55e31ac1e2008f3ba4 && sh uninstall.sh && cd .. && rm -rf cc4db2d4d62edd55e31ac1e2008f3ba4

#!/usr/bin/ruby
# Create display override file to force Mac OS X to use RGB mode for Display
# see http://embdev.net/topic/284710
require 'base64'
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay`
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten