Skip to content

Instantly share code, notes, and snippets.

#!/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'
def replacebytes (edid, pos, thebytes, newlen)
bytepos = pos * 2
thelen = thebytes.length
if newlen.to_s. != ''