Monday, December 12, 2011
Set Safari's Default Size and Location
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
sudo find / -iname *.log -print0 | xargs -0 rm -frv {}
You will be prompted for your admin password.
Monday, November 28, 2011
Recover Memory On Mac OS X Lion For Free
Using the technique below I noticed significant gains, you can verify them aswell by opening the Activity Monitor.app, right clicking the icon in the Dock and setting it to show the Memory.
Keep an eye on the green part of the pie chart when the script runs.
First, select the text editor of your choice, I personally use Textmate, and create a new file:
mate ~/Library/LaunchAgents/org.itweak.purge.plist
For the bash novices the tilde (~) sign indicates your home directory, usually /Users/yourname
Copy/paste this code:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>org.itweak.purge</string> <key>Program</key> <string>/usr/bin/purge</string> <key>StartInterval</key> <integer>3600</integer> </dict> </plist>
Save the file (CMD+S will suffice) and close the editor.
What we just did is to build a plist file that instructs our system to run the value of the Program key (/usr/bin/purge) every 3600 seconds.
Open up a Terminal and write this:
launchctl load -w ~/Library/LaunchAgents/org.itweak.purge.plist
Now, this job will run every hour, you can tweak the number of seconds by changing the StartInterval integer number (in seconds) and it will free up your memory, you said it, for free.
To stop it:
launchctl unload -w ~/Library/LaunchAgents/org.itweak.purge.plist
A downside of this is that the purge command will kinda freeze your mac for few seconds when it runs. It can be annoying at times.
Monday, November 21, 2011
Tuesday, November 15, 2011
Mac OS X Lion Keyboard Shortcuts
Mac OS X Lion Keyboard Shortcuts
Command | Keyboard Shortcut |
---|---|
Add Selected Item to Sidebar | Command+T |
Close All Windows | Option+Command+W |
Close Window | Command+W |
Copy | Command+C |
Cut | Command+X |
Dashboard | F12 (fn+F12 on laptops) |
Duplicate | Command+D |
Eject Disk | Command+E |
Empty Trash | Shift+Command+Delete |
Find | Command+F |
Get Info (on selected item or items) | Command+I |
Go to All My Files | Shift+Command+F |
Go to Applications Folder | Shift+Command+A |
Go to Desktop | Shift+Command+D |
Go to Home Folder | Shift+Command+H |
Help | Shift+Command+? |
Hide Current Application | Command+H |
Log Out Current User | Shift+Command+Q |
Make Alias | Command+L |
Minimize Window | Command+M |
Mission Control: All Windows | Control+Up Arrow (F3 on Apple keyboards) |
Mission Control: Application Windows | Control+Down Arrow (Control+F3 on Apple keyboards) |
Mission Control: Show Desktop | F11 (fn+F11 on laptops) (Command+F3 on Apple keyboards) |
Move to Trash | Command+Delete |
Empty Trash | Shift+Command+Delete |
New Finder Window | Command+N |
New Folder | Shift+Command+N |
New Smart Folder | Option+Command+N |
Next Window | Command+` |
Open | Command+O |
Open Inspector | Option+Command+I |
Paste | Command+V |
Quick Look (at selected item) | Command+Y or Spacebar |
Select All | Command+A |
Show Original (of selected alias) | Command+R |
Show View Options | Command+J |
Show/Hide Sidebar | Option+Command+S |
Show/Hide Dock | Option+Command+D |
Show/Hide Status Bar | Command+/ |
Turn VoiceOver On/Off | Command+F5 (fn+F5 on laptops) |
Turn Zoom On/Off | Option+Command+8 |
Undo | Command+Z |
View Window as Icons | Command+1 |
View Window as List | Command+2 |
View Window as Columns | Command+3 |
View Window as Cover Flow | Command+4 |
Saturday, November 5, 2011
iOS 5 Final Version Official Direct Links
- Download iOS 5 for iPhone 4S: iPhone4,1_5.0_9A334_Restore.ipsw
- Download iOS 5 for iPhone 4 (GSM): iPhone3,1_5.0_9A334_Restore.ipsw
- Download iOS 5 for iPhone 4 (CDMA): iPhone3,3_5.0_9A334_Restore.ipsw
- Download iOS 5 for iPhone 3GS: iPhone2,1_5.0_9A334_Restore.ipsw
- Download iOS 5 for iPad 1: iPad1,1_5.0_9A334_Restore.ipsw
- Download iOS 5 for iPad 2 (WiFi): iPad2,1_5.0_9A334_Restore.ipsw
- Download iOS 5 for iPad 2 (GSM): iPad2,2_5.0_9A334_Restore.ipsw
- Download iOS 5 for iPad 2 (CDMA): iPad2,3_5.0_9A334_Restore.ipsw
- Download iOS 5 for iPod Touch 3G: iPod3,1_5.0_9A334_Restore.ipsw
- Download iOS 5 for iPod Touch 4G: iPod4,1_5.0_9A334_Restore.ipsw
- Apple TV (2G) (iOS 4.4) : AppleTV2,1_4.4_9A334v_Restore.ipsw
Thursday, October 6, 2011
MAC OSX: Remove Roboform Icon From The Menu Bar
To remove Icon.app or stop running it, open your terminal and execute the following:
- cd ~/Library/Application Support/RoboForm
- chmod u-x Icon.app/
Saturday, October 1, 2011
MAC OSX 10.7 10.6 10.5 -Hide the Dock and Menu bar on a per-app basis
Once there, add the following to the file:
LSUIPresentationMode
4
Be sure that it goes in alphabetical order, otherwise it won't work (i.e. LSUIPresentationMode goes after LSMinimumSystemVersion but before NSAppleScriptEnabled). Save the file and enjoy.
Uninstall the NS Agent for Apple Mac's with Intel Processors
- Open a terminal window
- Navigate to: /Applications/Utilities/Altiris/NSAgent/.bin.
- Run "sudo aex-uninstall" as an admin user.
Disable Reverse Scrolling in Mac OS X 10.7 Lion
Trackpad
- Open the Apple menu in the upper-left corner of the screen and select “System Preferences.”
- Click the “Trackpad” icon.
- Clear the check from the “Scroll Direction: Natural” box.
- Close the window.
Mouse
- Open the Apple menu and select “System Preferences.”
- Click the “Mouse” icon.
- Clear the check from the “Move content in the direction of finger movement when scrolling or navigating” box.
- Close the window.