Skip to content

Instantly share code, notes, and snippets.

@grokcodile
grokcodile / patch-edid.rb
Last active August 10, 2017 19:44
Force RGB Mode to Improve Ultra-wide Monitor Display Quality on Mac OS X El Capitan 10.11
#!/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
@grokcodile
grokcodile / mac-osx-preference-settings.md
Last active October 4, 2015 15:37 — forked from saetia/gist:1623487
Custom Mac OS X Settings and Application Preferences - Post Clean Install
# Enable dark interface mode 
sudo defaults write /Library/Preferences/.GlobalPreferences AppleInterfaceTheme Dark

# Disable window animations
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false

# Set Menubar clock to display day, date, and time
defaults write com.apple.menuextra.clock DateFormat -string "EEE MMM d  h:mm a"
@grokcodile
grokcodile / open-hidden-icloud-drive-info-window.md
Last active October 26, 2015 04:00
Open Hidden iCloud Drive Info Window
# Opens the "Git Info" window for the hidden iCloud Drive
osascript -e 'tell application "Finder" to open information window of (POSIX file ("/Users/" & short user name of (system info) & "/Library/Mobile Documents/com~apple~CloudDocs") as alias)'

Copy and paste the command above into the terminal app.

  • You can then add an iCloud Drive shortcut icon to the Dock or Desktop by dragging and dropping the preview icon, from the info window to the Dock, or hold + option key and drag to the Desktop.