Enable TRIM support on OS X 10.9.5 for 3rd-party SSDs

To enable the TRIM support on OS X 10.9.5 for a 3rd-party SSD drive, enter the following commands into your Terminal session:

sudo perl -pi -e 's|(^\x00{1,20})[^\x00]{9}(\x00{1,20}\x54)|$1\x00\x00\x00\x00\x00\x00\x00\x00\x00$2|sg' /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage

sudo touch /System/Library/Extensions/

Restart to enable the changes.

Enable TRIM support on OS X 10.9.4 for 3rd-party SSDs

To enable the TRIM support on OS X 10.9.4 for a 3rd-party SSD drive, enter the following commands into your Terminal session:

sudo perl -pi -e 's|(^\x00{1,20})[^\x00]{9}(\x00{1,20}\x54)|$1\x00\x00\x00\x00\x00\x00\x00\x00\x00$2|sg' /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage

sudo touch /System/Library/Extensions/

Restart to enable the changes.

How to create a bootable Mavericks USB installer disk

Screen shot 2011-09-18 at 3.59.04 PM

If you need to do a clear install of OS X 10.9 Mavericks without resorting to the Internet Recovery or Recovery HD partition, here is how. You will need the “Install OS X Mavericks App” from the Mac App Store, a free 8Gb+ USB disk and your Terminal app.

Make sure you erase the USB disk and change the partition type to Master Boot Record. Leave the default “Untitled” name for the simplicity (or replace all occurencies of it in the following command).

Now type the following in your Terminal window:

Continue reading

Enable dual screen support on AMD Radeon 6870 under OS X 10.8

To enable the dual screen support on a multi-monitor Hackintosh equipped with an AMD Radeon HD 6870 under OS X Mountain Lion (this works with the current 10.8.4 too), enter the following shell code into your Terminal session:

sudo perl -pi -e 's|\x00\x04\x00\x00\x04\x03\x00\x00\x00\x01\x00\x00\x12\x04\x05\x01\x00\x04\x00\x00\x04\x03\x00\x00\x00\x01\x00\x00\x22\x05\x04\x02\x00\x08\x00\x00\x04\x02\x00\x00\x00\x01\x00\x00\x11\x02\x06\x04\x00\x02\x00\x00\x14\x02\x00\x00\x00\x01\x00\x00\x00\x00\x03\x05\x04\x00\x00\x00\x04\x02\x00\x00\x00\x01\x00\x00\x11\x02\x01\x03|\x00\x04\x00\x00\x04\x03\x00\x00\x00\x01\x00\x00\x12\x04\x04\x01\x00\x04\x00\x00\x04\x03\x00\x00\x00\x01\x00\x00\x22\x05\x05\x02\x00\x08\x00\x00\x04\x02\x00\x00\x00\x01\x00\x00\x11\x02\x06\x04\x00\x02\x00\x00\x14\x02\x00\x00\x00\x01\x00\x00\x00\x00\x03\x05\x04\x00\x00\x00\x04\x02\x00\x00\x00\x01\x00\x00\x11\x02\x01\x06|g' /System/Library/Extensions/ATI6000Controller.kext/Contents/MacOS/AMD6000Controller

This is a single line of a code, mind you. After the patch completes, rebuild the system cache using the following commands or any other method you prefer:

sudo touch /System/Library/Extensions
kextcache -system-caches

Reboot, and you’ll have dual screen support.