Disable Safe Sleep in OSX

While OSX falling asleep, it save all memory into a local disk file, for avoiding data loss caused by batteries running out while sleeping. But it comes with some disadvantages: That file is the same size as your memory. It eats your hard drive. You may not want this on

Continue reading

Fix “Open With” menu of OSX

After removing and re-installing some software, there may be some of obsoleted or duplicated item in osx “Open With” menu of right-click mouse menu. In that case, you need to run this code in terminal to rebuild that menu. /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain user; killall Finder As you

Continue reading