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.

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

Parallels Desktop 7 VMWare Offer


http://www.parallels.com/products/desktop/vmwareoffer/

Tuesday, November 15, 2011

Mac OS X Lion Keyboard Shortcuts


Mac OS X Lion Keyboard Shortcuts

All these Mac OS X Lion shortcuts work in the Finder, and many work in other programs you find in Mac OS X Lion, as well. Want to know how to make these shortcuts second nature? Print out this chart and tape it to your monitor where you'll see it while using Mac OS X Lion.
CommandKeyboard Shortcut
Add Selected Item to SidebarCommand+T
Close All WindowsOption+Command+W
Close WindowCommand+W
CopyCommand+C
CutCommand+X
DashboardF12 (fn+F12 on laptops)
DuplicateCommand+D
Eject DiskCommand+E
Empty TrashShift+Command+Delete
FindCommand+F
Get Info (on selected item or items)Command+I
Go to All My FilesShift+Command+F
Go to Applications FolderShift+Command+A
Go to DesktopShift+Command+D
Go to Home FolderShift+Command+H
HelpShift+Command+?
Hide Current ApplicationCommand+H
Log Out Current UserShift+Command+Q
Make AliasCommand+L
Minimize WindowCommand+M
Mission Control: All WindowsControl+Up Arrow (F3 on Apple keyboards)
Mission Control: Application WindowsControl+Down Arrow (Control+F3 on Apple keyboards)
Mission Control: Show DesktopF11 (fn+F11 on laptops) (Command+F3 on Apple keyboards)
Move to TrashCommand+Delete
Empty TrashShift+Command+Delete
New Finder WindowCommand+N
New FolderShift+Command+N
New Smart FolderOption+Command+N
Next WindowCommand+`
OpenCommand+O
Open InspectorOption+Command+I
PasteCommand+V
Quick Look (at selected item)Command+Y or Spacebar
Select AllCommand+A
Show Original (of selected alias)Command+R
Show View OptionsCommand+J
Show/Hide SidebarOption+Command+S
Show/Hide DockOption+Command+D
Show/Hide Status BarCommand+/
Turn VoiceOver On/OffCommand+F5 (fn+F5 on laptops)
Turn Zoom On/OffOption+Command+8
UndoCommand+Z
View Window as IconsCommand+1
View Window as ListCommand+2
View Window as ColumnsCommand+3
View Window as Cover FlowCommand+4

    Saturday, November 5, 2011

    iOS 5 Final Version Official Direct Links


    iOS 5 Official Direct Download Links:

    Thursday, October 6, 2011

    MAC OSX: Remove Roboform Icon From The Menu Bar

    If you have Roboform running on Mac, it lunches Icon.app which resides on your menu bar. If you delete the Icon.app, every time Roboform is launched, it will recreate Icon.app.

    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

    To hack an app so that when it's active, the menu bar and dock are hidden, you need to find its info.plist file. Control-click on the program in question, choose Show Package Contents from the pop-up menu, and then navigate into the Contents folder.

    Once there, add the following to the file:
    <key>LSUIPresentationMode</key>
    <integer>4</integer>
    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


     Disable reverse (natural) scrolling in Mac OS X 10.7 Lion with these simple steps.

    Trackpad

    1. Open the Apple menu in the upper-left corner of the screen and select “System Preferences.”
    2. Click the “Trackpad” icon.
    3. Clear the check from the “Scroll Direction: Natural” box.
    4. Close the window.
    Note: On some older Macs, the box that you need to clear the check from may have the label “When using gestures to scroll or navigate, move content in the direction of finger movement.”

    Mouse

    1. Open the Apple menu and select “System Preferences.”
    2. Click the “Mouse” icon.
    3. Clear the check from the “Move content in the direction of finger movement when scrolling or navigating” box.
    4. Close the window.