- Plug in your SD card, HDD, or other block device and then use the following command to see which /dev/diskN node it's located on:
diskutil list
- Unmount the disk where N is the number of the disk taken from the above command:
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
# Represent states such as 'active', 'disabled', etc in the DB as an int | |
# | |
# Use like so: | |
# | |
# class MyModel < ActiveRecord::Base | |
# include StuffedTableColumns | |
# stuffed_column :status, *(%w(active inactive blocked disabled banned)) | |
# end | |
# TODO: use method_missing to match the column name |