Mac Tips

Command+F2 to enable screen sharing on iMac when thunderbolt is connected

Hold Shift to start in safe mode

Automator saves to ~/Library/Workflows/Applications/

Remove Cache:

<Mac HD>\library

Folders:

    Saved Application State

    Caches

    LaunchAgents

Copy mail rules

~/Library/Mail/V2/MailData/SyncedRules.plist

Restore this file from a backup.

Restart Mail.app.

Re-enable the rules.

How to do a Network dump

sudo tcpdump -i en0 -s 0 -B 524288 -w ~/Desktop/DumpFile01.pcap

tcpdump -s 0 -n -e -x -vvv -r ~/Desktop/DumpFile01.pcap > ~/desktop/out.txt

Resize Images in the Terminal

sips -z 768 1024 image.png

sips -Z 480 image.png

sips -Z 300 *.png (whole directory, do it in a folder)

http://www.maclife.com/article/columns/terminal_101_resize_images_terminal

Make Your Library Folder Visible

Like in Lion, your user library folder is hidden by default. That makes a number of things a pain, but it’s really easily fixed. Just copy the following line of code, and paste it into Terminal:

chflags nohidden /Users/USERNAME/Library

chflags nohidden /Users/melissa/Downloads/”Path to File.txt”

chflags hidden /Users/melissa/Downloads/”Path to File.txt”

Enable Key Repeat

One of the other holdover issues from Lion is the lack of key repeat. That’s where you hold down the L key when typing helllllllllll no. To re-enable it, you just need to paste this into Terminal, and then restart:

defaults write -g ApplePressAndHoldEnabled -bool false

Recovery

Internet Recovery (command–option-R) ≠ Recovery (command–R). Recovery uses a local partition on your disk, whereas Internet Recovery loads an environment on-demand. The latter will always load one to install the original version of OS, whereas the regular Recovery will always load the version that matches its own version.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.