Skip to content

Instantly share code, notes, and snippets.

View kyleridolfo's full-sized avatar

Kyle Ridolfo kyleridolfo

View GitHub Profile
Error: You have uncommitted modifications to Homebrew's core.
Unless you know what you are doing, you should run:
cd /usr/local && git reset --hard
So I run that, but it doesn't reset. Here's what the git status looks like for /usr/local afterwards:
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
@kyleridolfo
kyleridolfo / gist:1242286
Created September 26, 2011 13:56
Launch Google Chrome on OS X with a different User-Agent
open ~/Applications/Google\ Chrome.app/ --args -user-agent="MobileSafari 1.1.3 - iPhone --- Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420.1 (KHTML, like Gecko) Version/3.0 Mobile/4A93 Safari/419.3"
@kyleridolfo
kyleridolfo / gist:1014990
Created June 8, 2011 18:20 — forked from croby/gist:1014986
add to your bash .profile
# hide and show finder desktop
alias hidedesktop='defaults write com.apple.finder CreateDesktop -bool false && killall Finder'
alias showdesktop='defaults write com.apple.finder CreateDesktop -bool true && killall Finder'
tell application "Finder" to set theObjects to selection
set nameForNewFolder to "Gathered"
tell application "Finder"
set myOrFilesContainer to (container of item 1 of theObjects) as alias
try
make new folder at myOrFilesContainer with properties {name:nameForNewFolder}
set myContainer to (folder nameForNewFolder of myOrFilesContainer) as alias