Skip to content

Instantly share code, notes, and snippets.

Ethan Darling grokcodile

  • Thayer School of Engineering at Dartmouth @thayer
View GitHub Profile
@grokcodile
grokcodile / open-hidden-icloud-drive-info-window.md
Last active Oct 26, 2015
Open Hidden iCloud Drive Info Window
View open-hidden-icloud-drive-info-window.md
# 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.
@grokcodile
grokcodile / mac-osx-preference-settings.md
Last active Oct 4, 2015 — forked from saetia/gist:1623487
Custom Mac OS X Settings and Application Preferences - Post Clean Install
View mac-osx-preference-settings.md
# 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 / patch-edid.rb
Last active Aug 10, 2017
Force RGB Mode to Improve Ultra-wide Monitor Display Quality on Mac OS X El Capitan 10.11
View patch-edid.rb
#!/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
You can’t perform that action at this time.