Category: Apple
When homebrew update fails
For archival and reference purposes: cd $(brew –prefix) rm Library/Formula/argp-standalone.rb rm Library/Formula/cocot.rb git fetch origin git reset –hard origin/master brew update Note: You might need to do it with “sudo”
chmod Shortcuts
Shortcut for ‘u’ = user; ‘g’ = group, and ‘o’ = others. chmod go=rx wordmatic chmod a=rwx calcmatic via chmod Shortcuts.
Change computer name in OS X Yosemite
In case you want to rename your computer name in Yosemite, here’s what I did in the Terminal to do so: sudo scutil –set ComputerName sudo scutil –set HostName sudo scutil –set LocalHostName hostname -f
Fix for JAVA_HOME variable in OS X Yosemite
In case you upgraded to OS X Yosemite and your JAVA_HOME variable in bash_profile no longer works, change/add the following: export JAVA_HOME=`/usr/libexec/java_home -v 1.7` Then, run source ~/.bash_profile and it should work from there.
How to copy file permissions from one to another
chmod `stat -f %A srcFile` dstFile via Non Geek Recipes How to copy file permissions – nongeekrecipes.org.
Homebrew: When it fails “brew update”
I was getting this when I ran “brew update” after a long time: antonperez-mbpro:~ anton.perez$ brew update Checking out files: 100% (2942/2942), done. Error: undefined method `to_sym’ for nil:NilClass Please report this bug: https://github.com/mxcl/homebrew/wiki/troubleshooting /usr/local/Library/Homebrew/cmd/update.rb:112:in `report’ /usr/local/Library/Homebrew/cmd/update.rb:110:in `each_line’ /usr/local/Library/Homebrew/cmd/update.rb:110:in `report’ /usr/local/Library/Homebrew/cmd/update.rb:26:in `update’ /usr/local/Library/brew.rb:87:in `send’ /usr/local/Library/brew.rb:87 All I did was run it again and it worked.…