Category: osx Server

  • Manipulating the Clipboard from the Command Line

    Manipulating the Clipboard from the Command Line: “Copy and Paste are absolute necessities for virtually all computer users, and if you find yourself working in the command line frequently, you’ll want to know how to manipulate the clipboard. The commands pbcopy and pbpaste do exactly what they sound like, copy and paste through the command…

  • Creating OSX and Windows compatible Dropbox Functionality in Windows Server 2008 R2 with Dell FS7500 NAS backend.

    This took a while to figure out, mainly because I’m a unix guy trying to “figure out” Windows Server and it’s archaic ACL system and the fact that ACL’s/attributes under OSX are just insane. The main issue I had with all the other recipes on the net describing this process was that it did NOT…

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

  • Preview Fonts with One Click in the OS X Font Window [Mac Tips]

    Preview Fonts with One Click in the OS X Font Window [Mac Tips]: Most OS X apps have a small “Fonts” window that pops up if you want to change your font’s options, but by default, it doesn’t show you what each font actually looks like. Here’s how to show a preview of every font with one…

  • View more export options in Preview

    View more export options in Preview: Preview in 10.8 has removed a number of export options. If you choose File > Export, there are only six options in the Format popup menu, compared to 13 in the Lion version of the application.  Alas, this is yet another feature that has more options hidden behind an…

  • Copying large number of files between two Unix/Linux/OSX Servers

    Here are some quick tip(s) for copying a ton of files between unixy machines really fast. You’re probably thinking “why not use rsync?”…..well rsync can be miserably slow if your source or destination cpu is underpowered. You can always do a rsync after these commands to make 100% certain that everything checks out, but try…

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