Reinstall SnowLeopard

1 - Eject stuck DVD

$ drutil tray eject;

2 - Create subdomains

Not so far…

3 - Grep only certain files

$ find . -name 'devise.rb'|xargs grep 'Devise.secret_key';

Much faster than:

$ grep -r 'Devise.secret_key' *;

$ grep -r –exclude='*.log' 'spree_bsc' *;

3b - Grep hidden files

$ grep -i path .*

4 - Toggle case in Vi

~ = Toggle case under cursor

5 - Package management systems

6 - Nested backticks

Use $(command) rather than `command`

eg:

$ pushd $(dirname $(which rails));

7 - Share files with linux

(15/5/16)

8 - Booting MacBook 5.1 into 64-bit mode

(21/5/16)

Check whether EFI can boot 64-bit kernel:

$ ioreg -l -p IODeviceTree | grep firmware-abi
  | |   "firmware-abi" = <"EFI64">

Only MacBook “Pro” supports ability to boot 64-bit kernel with 64-bit EFI

macperformanceguide.com/SnowLeopard-64bit.html

forums.macrumors.com/threads/64-bit-kernel-macbook-5-1.1184959/

http://dl.dropbox.com/u/35856129/x64patch-10.6.8.tar.bz2

$ cd ~/Downloads/x64patch-10.6.8 ; more readme.txt

System Software Overview:

64-bit Kernel and Extensions: Yes

Holding down 3 + 2 until Apple appears gives:

64-bit Kernel and Extensions: No