Skip to content

Instantly share code, notes, and snippets.

@zigomir
Last active August 29, 2015 13:59
Show Gist options
  • Save zigomir/10710374 to your computer and use it in GitHub Desktop.
Save zigomir/10710374 to your computer and use it in GitHub Desktop.
OS X tricks and tips

Check directory size

du -sh dir-name

Disk usage tool - DiskWave

DiskWave

Remove duplicated entries in Open With menu

/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain user;killall Finder;echo "Open With has been rebuilt, Finder will relaunch"

source

Agreeing to the Xcode license from the command line

sudo xcrun cc

source

Markdown Editors

  • GitHub flawored markdown MacDown
  • regular markdown Mou

Trimming of MP3s is super easy in QuickTime

Open mp3 file in QuickTime and hit Command + T.

source

Save finder window defaults

Open finder, select View -> Show View Options (CMD+J), set the window to your desired size and type view (either icon or list view: I prefer the latter), select always open, and then click Use as Defaults button. That should retain your setting and every other folder you open for the first time should also inherit those settings.

source

Code Signing

For apps that bother you with Firewall permission

  • create new self signed certificate
  • codesign app: sudo codesign --force --sign muci /Applications/WebStorm.app where muci is the name of self signed certificate

source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment