Reinstall SnowLeopard¶ ↑
-
Install Git + Clone 'github.com/doughazell/spree-dynamic.git'
Download 'git-2.3.5-intel-universal-snow-leopard.dmg'
See 'oldHome3/src/devlogeD/old/2013/apr26-SnowLeopard'
-
Install Homebrew:
Remove from '.profile'
export SSL_CERT_FILE export SSL_CERT_FILE export DYLD_LIBRARY_PATH
$ ruby -e “$(curl -fsSL raw.githubusercontent.com/Homebrew/install/master/install)”
-
RVM:
$ curl -sSL get.rvm.io | bash -s stable –rails
-
Qt:
$ brew install qt Needed for gem 'capybara-webkit'
-
Install Postgresql:
$ brew install postgresql $ brew info postgresql $ ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents $ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist $ initdb /usr/local/var/postgres -E utf8 The files belonging to this database system will be owned by user "doug". This user must also own the server process. Alter 'config/database.yml' 'username: postgres' to 'username: doug'
-
Imagemagick:
$ brew update $ brew install imagemagick
-
Firefox
Add-ons:
SQLite Manager
-
Perian
-
WireTap Pro
If accidentally press “Register…” button and delete KEXT (Kernel Extension) then:
-
Install and uninstall downloads.ambrosiasw.com/snapzprox/essentials/SnapzProX2.3.3.dmg whilst leaving KEXT
(forums.macrumors.com/threads/wiretap-pro-alternative-for-snow-leopard.1532877/)
-
File, Record From: Mac Audio
(Otherwise get trial voice-over for Microphone/Line In)
Also be aware that WireTap Pro uninstaller leaves 'Music/WireTap Pro Recordings' (that may be used to check prior install)
-
-
Additional items:
$ brew install wget
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¶ ↑
-
MacPorts - Based on FreeBSD Ports system [NOW, NOT INSTALLED ON MY SNOW LEOPARD REINSTALL]
Eschews Apple-supplied libs and links against its own to ensure consistency Uses 'subversion' as its code manager
-
Fink - Based on Debian's dpkg and apt-get [NOT INSTALLED ON MY SNOW LEOPARD]
-
Homebrew - Overcome MacPorts perceived downfalls
Written in Ruby + works with OSX's existing frameworks/libs Uses 'git' as its code manager
Formula: /usr/local/Library/Formula Downloads: /Library/Caches/Homebrew
$ brew install –cc=gcc-5 poco
6 - Nested backticks¶ ↑
Use $(command) rather than `command`
eg:
$ pushd $(dirname $(which rails));
7 - Share files with linux¶ ↑
(15/5/16)
-
Make directory read-write by all
$ chmod -R 777 src
$ chmod -R 755 Documents
-
Disable Journalling
Disk utility-Select partition-Alt+File menu-Disable Journaling
-
Reboot into linux
-
Reenable Journalling when reboot OSX
-
Make linux files accessible from osx
$ sudo chmod -R 777 src
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