Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
😣

Roman retgoat

💭
😣
View GitHub Profile
@retgoat
retgoat / dispatcher.erl
Last active Nov 2, 2015 — forked from dry/dispatcher.erl
Moochiweb router example
View dispatcher.erl
-module (dispatcher).
-export ([dispatch/2, convert_method_to_action/1]).
dispatch(_,[]) -> none;
dispatch(Req, [{Regexp, Handler}|T]) ->
"/" ++ Path = Req:get(path),
Method = Req:get(method),
@retgoat
retgoat / how-to-install-ruby-oci8.md
Last active Aug 29, 2015 — forked from peterhellberg/how-to-install-ruby-oci8.md
Install of ruby-oci8 for 10.9/OSX Mavericks
View how-to-install-ruby-oci8.md

Install of ruby-oci8 for 10.9/OSX Mavericks - step-by-step:

  1. Go here: http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html
  2. Download the 64bit versions of instantclient-sqlplus, instantclient-sdk, instantclient-basic - the 32bit versions do not work with OSX 10.9
  3. Create directories at /opt/oracle
  4. Unzip instantclient-basic first, move to /opt/oracle (should add a folder - something like /opt/oracle/instantclient_11_2/)
  5. Unzip instantclient-sdk and move its contents to /opt/oracle/instantclient_11_2/
  6. Unzip instantclient-sqlplus and move its contents /opt/oracle/instantclient_11_2/
  7. Open Terminal (if you haven't already) and type...
  8. DYLD_LIBRARY_PATH=/opt/oracle/instantclient_11_2 export DYLD_LIBRARY_PATH