Open any file with any application

Just drag the file onto the app’s icon while holding down Command + Option keys. The application will attempt to open the file, and sometimes succeed :)


Dock spacing

Add a blank space in your dock. Create multiple spaces and move them around to create the illusion of categories. In your terminal:

defaults write persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'

Then run killall Dock to restart the dock.

File Management

Copy the present working directory into Mac OS X clipboard


View a debug file in the terminal

tail -f file.txt

Get the size of current directory

du -ch | grep total


Clear the DNS cache in Yosemite and later

sudo killall -HUP mDNSResponder