Sebastien Taggart


Building a Better Web

Force OSX Finder to Always Show Hidden Files

By default Mac OSX coddles the user by hiding system and "hidden" files (beginning with a period).  This is counter-production to the power user in all of us, and an insult to our intelligence!  End this madness with:

defaults write com.apple.finder AppleShowAllFiles YES

Then "Relaunch" Finder by option+right-clicking on the Finder icon.

To change this back, do:

defaults write com.apple.finder AppleShowAllFiles NO

Easy!

Tags

Changing the Key Repeat Rate in OSX

Mac OSX ships with very slow key repeat rates (how quickly a key repeats after it is first pressed, and how quickly a key input repeats after holding it down).  Changing these effectively is not possible in System Settings, we instead use the command line.

First, read the two relevant values in case you want to go back:

defaults read -g InitialKeyRepeat

and

defaults read -g KeyRepeat

changing these values is similarly easy:

Tags

How to fix file permissions in Mac OSX and Linux (files to 644 and directories to 755)

I run into this problem when developing on a GIT repository where file permissions change and GIT (correctly) warns of hundreds of changes.  I see this most commonly when importing files from Windows, but it can happen in many different ways.  The fix is to recursively update file permissions. 

To fix all the directories starting from the current one, run:

find . -type d -exec chmod 775 {} \;

To do the same for files, run:

Tags