Shortcut for ‘u’ = user; ‘g’ = group, and ‘o’ = others.
chmod go=rx wordmatic
chmod a=rwx calcmatic
via chmod Shortcuts.
Shortcut for ‘u’ = user; ‘g’ = group, and ‘o’ = others.
chmod go=rx wordmatic
chmod a=rwx calcmatic
via chmod Shortcuts.
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
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.
chmod `stat -f %A srcFile` dstFile
via Non Geek Recipes How to copy file permissions – nongeekrecipes.org.
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. If it doesn’t work for you, do a “brew doctor” to continue troubleshooting.