Category: OSX

  • Flush DNS cache in Lion and Mountain Lion

    Flush DNS cache in Lion and Mountain Lion: To flush the DNS cache in Mac OS X 10.5 and 10.6, run this command in Terminal:  sudo dscacheutil -flushcache To do the same in 10.7 and 10.8, run this command:  sudo killall -HUP mDNSResponder (Via MacOSXHints.com)

  • CLI commands that let you access meta data of all files in OSX

    Two small commands with huge possibilities: mdls  usage: mdls [-name attr] [-raw [-nullMarker markerString]] [-plist file] pathlist the values of one or all the attributes of the specified file -raw: don’t print attribute names before values -nullMarker: substitute this string for null attributes in raw mode -plist: output attributes in XML format to file. Use…

  • Everything you ever needed to know about OSX launchd

    Great in-depth article by Nathan Grigg. Everything you ever wanted to know about launchd and how job scheduling can be easily done under OSX.

  • Get Control of Mountain Lion with a huge list of command line tweaks…..

    As pointed out to me in the comments the original Author — Mathias Bynens — is constantly updating this document. You can find the latest up to date version at http://mths.be/osx # ~/.osx — http://mths.be/osx ############################################################################### # General UI/UX # ############################################################################### # Set computer name (as done via System Preferences → Sharing) scutil –set ComputerName…

  • Create a Mountain Lion Install DVD or USB Drive after App Store purchase

    Once you’ve purchased Mountain Lion from the App Store, follow these steps to create a backup install DVD or flash drive Download Lion from the Mac App Store—but don’t install it yet, because of the disappearing installer issue noted above. Find the installer in your Applications folder and right-click on it then select “Show Package…

  • SSH to your remote machine using Back to My Mac iCloud Service

    This is kinda cool. It only works if you have access to “Back to My Mac” service and you have it turned on in the remote mac’s preferences (under iCloud preferences). If you ever need to find out the FQDN (Fully Qualified Domain Name) of your remote mac and connect to it via ssh or…

  • Turn off Parallels Promo Ads….

    This has been driving me mad ever since I started using Parallels Desktop for Mac. The damn promo screen that keeps popping up to sell me some crapware. Well here is a quick defaults command to turn it off defaults write com.parallels.Parallels\ Desktop ProductPromo.ForcePromoOff -bool YES Done…..Enjoy :-)

  • Get the “Bounce” command back in Mail application under OSX Lion

    The “Bounce” command is really useful for those times when you’re receiving spam mail that gives you no recourse to opt-out. Usually Ads and announcements have a link to unsubscribe, but if they don’t I usually just “bounce” the mail back to the sender and that usually causes the sender to take me off their…

  • Using iCloud to sync files just like dropbox

    If you didn’t know, iCloud has a really neat feature that allows it to act just like dropbox. If you activate the “Document & Data” synching option in the iCloud pref panel, it allows you to sync any file using iCloud. This is contrary to what Apple is selling the service as being just for…

  • Lion Tip: Adding your digital signature to PDF files….

    If you ever are in need of signing a PDF file, you don’t need to print/sign/scan it anymore, Lion’s new preview app lets you insert/sign those pdf docs in a flash. Here is how you get your signature “scanned”. Use a Sharpie marker and sign your name on a plain piece of paper. Make sure…