Info

Designer, front-end developer & PC gamer from Michigan.

Posts from the Tips & Tricks Category

If you have ever wanted to restore your OSX dock back to default app/icon layout you can now do it by running a 2 commands in your terminal. (No option to do this in your system preferences pane)

Step 1: Open terminal and copy and paste this command and hit return:

defaults delete com.apple.dock

Step 2: Copy and paste this command and hit return:

killall Dock

Your dock will restart and you will see the factory default icon/app dock. If you have deleted any stock apps, they may show as question marks. Enjoy!

When developing on a local machine, you’ll sometimes need to gain access to files that OSX Mavericks hides by default. To show hidden files, open up Terminal.app and type:

defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder

The command should run without error and restart finder. You will now see hidden files and folders. To reverse the changes, open Terminal.app again and type:

defaults write com.apple.finder AppleShowAllFiles -boolean false ; killall Finder

If you have ever wanted to restore your OSX dock back to default app/icon layout you can now do it by running a 2 commands in your terminal. (No option to do this in your system preferences pane)

Step 1: Open terminal and copy and paste this command and hit return:

defaults delete com.apple.dock

Step 2: Copy and paste this command and hit return:

killall Dock

Your dock will restart and you will see the factory default icon/app dock. If you have deleted any stock apps, they may show as question marks. Enjoy!

Deal with domain propagation on a frequent basis? These commands come in handy for flushing the local DNS cache on your computer.

Mac OSX 10.10

dscacheutil -flushcache

Mac OSX 10.7 – 10.9

sudo killall -HUP mDNSResponder

Mac OSX 10.5 – 10.6

dscacheutil -flushcache

Mac OSX 10.4 and below

lookupd -flushcache

Windows

ipconfig /flushdns

Update: [10/13/2014] Just updated to included instructions for OSX 10.10 Yosemite.

When developing on a local machine, you’ll sometimes need to gain access to files that Mac OSX hides by default.

To show hidden files, open up Terminal.app and type:

defaults write com.apple.Finder AppleShowAllFiles YES

To see the changes you’ll need to restart Finder.app. The easiest way to do this is just to force quit Finder.app, and it’ll open up again automatically.

To reverse the changes, open Terminal.app again and type:

defaults write com.apple.Finder AppleShowAllFiles NO