Skip to content

Instantly share code, notes, and snippets.

View bensherman's full-sized avatar
:fishsticks:

Ben Sherman bensherman

:fishsticks:
View GitHub Profile

Keybase proof

I hereby claim:

  • I am bensherman on github.
  • I am bensherman (https://keybase.io/bensherman) on keybase.
  • I have a public key whose fingerprint is BF63 4339 F5AB A787 FDB0 BAA7 9CCA F845 387E E4DE

To claim this, I am signing this object:

@bensherman
bensherman / loops.rb
Last active January 27, 2018 20:55
ruby loops
# looping in ruby, from "The Ruby Way" by Hal Fulton
# added some rubymine stuff to get it cleanly inspected.
list = %w(alpha bravo charlie delta echo)
# 1 - while
i = 0
while i < list.size do
print "#{list[i]} "
i += 1

patch-edid.rb

A script to fix EDID problems on external monitors in Mac OS.

  1. Connect the problem monitor.

  2. Download this script into your /System/Library/Displays/Overrides (note: this file is only writeable by root, so some commands require sudo).