Skip to content

Instantly share code, notes, and snippets.

View zeke's full-sized avatar
🍊
Busy! @-message me directly if I'm slow to respond.

Zeke Sikelianos zeke

🍊
Busy! @-message me directly if I'm slow to respond.
View GitHub Profile
export PATH="/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sphinx/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
export PS1="\w >"
export HISTSIZE=100000
export HISTFILESIZE=409600
export EDITOR="mate -w"
# Getting around
alias ..='cd ..'
alias la='ls -Alh'
alias grep='grep -n -r -e'
~ >sudo gem install ultraviolet
Building native extensions. This could take a while...
ERROR: Error installing ultraviolet:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb install ultraviolet
checking for main() in -lonig... no
creating Makefile
make
~ >sudo gem install textpow
Building native extensions. This could take a while...
ERROR: Error installing textpow:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb install textpow
checking for main() in -lonig... no
creating Makefile
make
~/Projects/elc/lang/trunk >script/reimport_all
WARNING: You are about to destroy ALL of your dictionary, subject area, and translation data.
Are you SURE you want to proceed? [yN]
y
Destroying all subject areas...
Annihilating all globalize translations...
Blowing all official translations to bits...
Transfer all examples to moon...
Decapitating all lemmas...
Sending your dictionaries to the stone age...
SQL (0.001282) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = 'supported_languages'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
SupportedLanguage Load Including Associations (0.000948) SELECT supported_languages."id" AS t0_r0, supported_languages."globalize_language_id" AS t0_r1, supported_languages."disable" AS t0_r2, supported_languages."position" AS t0_r3, supported_languages."popularity" AS t0_r4, supported_languages."is_popular" AS t0_r5, supported_languages."default_category_id" AS t0_r6, globalize_languages."id" AS t1_r0, globalize_languages."iso_639_1" AS t1_r1, globalize_languages."iso_639_2" AS t1_r2, globalize_languages."iso_639_3" AS t1_r3, globalize_languages."rfc_3066" AS t1_r4, globalize_languages."english_name" AS t1_r5, globalize_languages."english_name_locale" AS t1_r6, globalize_languages."english_name_mod
SQL (0.001366) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = 'supported_languages'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
SupportedLanguage Load Including Associations (0.001027) SELECT supported_languages."id" AS t0_r0, supported_languages."globalize_language_id" AS t0_r1, supported_languages."disable" AS t0_r2, supported_languages."position" AS t0_r3, supported_languages."popularity" AS t0_r4, supported_languages."is_popular" AS t0_r5, supported_languages."default_category_id" AS t0_r6, globalize_languages."id" AS t1_r0, globalize_languages."iso_639_1" AS t1_r1, globalize_languages."iso_639_2" AS t1_r2, globalize_languages."iso_639_3" AS t1_r3, globalize_languages."rfc_3066" AS t1_r4, globalize_languages."english_name" AS t1_r5, globalize_languages."english_name_locale" AS t1_r6, globalize_languages."english_name_mod
SQL (0.001285) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = 'supported_languages'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
SupportedLanguage Load Including Associations (0.001019) SELECT supported_languages."id" AS t0_r0, supported_languages."globalize_language_id" AS t0_r1, supported_languages."disable" AS t0_r2, supported_languages."position" AS t0_r3, supported_languages."popularity" AS t0_r4, supported_languages."is_popular" AS t0_r5, supported_languages."default_category_id" AS t0_r6, globalize_languages."id" AS t1_r0, globalize_languages."iso_639_1" AS t1_r1, globalize_languages."iso_639_2" AS t1_r2, globalize_languages."iso_639_3" AS t1_r3, globalize_languages."rfc_3066" AS t1_r4, globalize_languages."english_name" AS t1_r5, globalize_languages."english_name_locale" AS t1_r6, globalize_languages."english_name_mod
~/Projects/elc/lang/trunk >script/reimport_all
WARNING: You are about to destroy ALL of your dictionary, subject area, and translation data.
Are you SURE you want to proceed? [yN]
y
Destroying all subject areas...
Annihilating all globalize translations...
Blowing all official translations to bits...
Transfer all examples to moon...
Decapitating all lemmas...
Sending your dictionaries to the stone age...

Create a github account at http://github.com. Once you've got your account set up let me know what your handle is so I can give you access to the topratedpump file repository.

Follow the steps for Mac OS X on this page: http://github.com/guides/providing-your-ssh-key Once you get your SSH key set up you'll need to visit your github account page and paste in your key there: https://github.com/account

Download and install MacPorts from http://www.macports.org/

Open up Terminal.app (Use spotlight or quicksilver to find it) and type the following things..

port install git-core (this will take a while and might prompt you a few times)

export PATH="/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sphinx/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
export PATH="/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:/opt/local/lib/postgresql83/bin:$PATH"