Mac Hacks
RANDOM MAC THINGS I DON’T WANT TO FORGET
Set up “Save as PDF”
- Go to Sys Prefs / Keyboard, choose shortcuts tab
- Select “App Shortcuts
- Select + (create new one)
- Title: “Save as PDF…” and the three periods are important
- For keyboard short cut, use Command-P (Just like normal print is) and hit add
Now when you hit Command-P and Command-P again, you get PDF option
Enabling TrackPad Tapping
This is something I sort of used on the PC’s and was annoyed wasn’t available on the mac.
- Open Terminal
- Execute: defaults write /Library/Preferences/.GlobalPreferences com.apple.mouse.tapBehavior -int 1
Installing cheat (command line wiki access)
- http://cheat.errtheblog.com/
sudo gem install cheat
cheat cheat
Enabling Option-Tab Application Switching
- Open System Prefs
- Open Keyboard / Keyboard Shortcuts
- Keyboard & Text Input
- Move Focus to next window in application
- Click and change to Option-Tab
Installing rTorrent and Updating Ports
- sudo port -d selfupdate
- sudo port upgrade outdated
- sudo port install rtorrent-devel
Making Google Chrome us F5 as refresh
- Launch “System Preferences”
- Click the “Keyboard & Mouse” icon
- Select “Keyboard Shortcuts” tab
- Hit the little “+” button under the main white area
- In the little pup-up window select “Google Chrome” as the Application
- Type in “Reload This Page” in the “Menu Title” field exactly as it appears in the Chrome’s View menu (no quotes of course)
- Click inside the “Keyboard Shortcut” field and hit F5 key (or any desired combination)
- Restart Chrome to make it work
Turn off “do you want to run this app from the internet” messages
-
xattr -d -r com.apple.quarantine /Path/to/application/ FOR single application
-
xattr -d -r com.apple.quarantine ~/Downloads FOR all applications launched out of a particular directory
Enabling KeySpan USB->RS-232 dongle in Cross-Over for Icom Programming software
- Install CrossOver like normal
- Install the Icom programming software
- Get Icom software to load, initially get it to ignore the model / com port setup
- Install the Keyspan driver software
- Make sure the Keyspan driver is loaded and working by using the “Keyspan Serial Assistant” application
- (I think it was installed with the drivers, might have to grab it separately)
- NOTE: Need to remember the exact name of the first instance, something like “KeySerial1”
- REALLY KEY PART – create link between keyspan driver and ‘com2’ for CrossOver
- MAC:> ll /dev/cu.* (make sure the driver is there, looking for /dev/cu.KeySerial1 or something close)
- MAC:> cd ~/Library/Application Support/CrossOver/Bottles/Other Application/dosdevices (get into the directory where you need to create the link, assuming here that CrossOver is installed as “Other Application”, since it isn’t officially supported)
- MAC:> ln -s /dev/cu.KeySerial1 com2
- MAC:> ll (look for your new linked com2 device and make sure it is there.)
- NOTE: com1 doesn’t seem to work, not sure why. But com2 worked fine.
Remove cruft from launchd
From the terminal use the launchctl command
# sudo launchctl list (to get list of launch items)
# sudo launchctl remove name (To get rid of name service)
Remove cruft from launchd – Part2 El Capitan
- Move to:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support
$ lsregister -kill -seed -r -f -v -domain local -domain user -domain system
Make Lion stop opening old files when launching a applications
Open System Preferences / General
Unclick: Restore windows when quitting and re-opening apps
Find out hardware info from the command line
# /usr/sbin/system_profiler SPHardwareDataType