Category: Lion

  • Get rid of double (triple) entries in Finder’s “Open With” Menu

    Does sh*t like this make you wanna smack your mac :-) Here is a quick way to rebuild the Launch Services database and get rid of duplicates in the Open With submenu: /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user This process should take about a minute or two. You should check to see…

  • Renew a DHCP lease

    Renew a DHCP lease: Renewing a DHCP lease via the Network System Preference Pane has the advantage of not dropping the connection, unlike switching the interface to BOOTP and back to DHCP. This command mimics that behavior.  (Via MacOSXHints.com)

  • 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…

  • 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…