Monday, December 12, 2011

Set Safari's Default Size and Location

If you like to have Safari starts with a specific window size and location, put the below code in the address bar:
javascript:self.moveTo(120,75);self.resizeTo(1440,900);self.location="http://www.apple.com";

You must paste the code and hit enter, to save the window size and location, hit CTRL+T and close the old tab, this new tab must be the last one. Then close Safari (CTRL+Q) and re-open it.

My 13" MacBook Air is set to
javascript:self.moveTo(200,0);
self.resizeTo(1040,900);
self.location="http://www.apple.com";

Thursday, December 8, 2011

Mac: Find & Delete Specific File Type From The Terminal

Sometimes I'd like to find and delete temporary files, backup files, or any file type. This example will show you how to find and delete the LOG file from the terminal:


sudo find / -iname *.log -print0 | xargs -0 rm -frv {}


You will be prompted for your admin password.