Skip to content

Instantly share code, notes, and snippets.

View jaigouk's full-sized avatar

Jaigouk Kim jaigouk

View GitHub Profile
$ rake db:automigrate --trace
(in /home/jaigouk/development/muddle)
Loading init file from /home/jaigouk/development/muddle/config/init.rb
Loading /home/jaigouk/development/muddle/config/environments/development.rb
** Invoke db:automigrate (first_time)
** Invoke merb_env (first_time)
** Execute merb_env
Loading init file from /home/jaigouk/development/muddle/config/init.rb
Loading /home/jaigouk/development/muddle/config/environments/rake.rb
~ Connecting to database...
development: &defaults
repositories:
couch: couchdb://localhost:5984/muddle_development
mysql:
adapter: mysql
database: muddle_development
host: localhost
username: root
test:
---
development: &defaults
repositories:
couch: couchdb://localhost:5984/muddle_development
mysql:
adapter: mysql
database: muddle_development
host: localhost
username: root
password: 5555
[jaigouk@j-laptop muddle]$ rake db:automigrate --trace
(in /home/jaigouk/development/muddle)
Loading init file from /home/jaigouk/development/muddle/config/init.rb
Loading /home/jaigouk/development/muddle/config/environments/development.rb
** Invoke db:automigrate (first_time)
** Invoke merb_env (first_time)
** Execute merb_env
Loading init file from /home/jaigouk/development/muddle/config/init.rb
Loading /home/jaigouk/development/muddle/config/environments/rake.rb
~ Connecting to database...
---
development: &defaults
repositories:
couch: couchdb://localhost:5984/muddle_development
mysql:
adapter: mysql
database: muddle_development
host: localhost
username: root
password: secret
[jaigouk@j-laptop muddle]$ MERB_ENV=development rake db:automigrate --trace
(in /home/jaigouk/development/muddle)
Loading init file from /home/jaigouk/development/muddle/config/init.rb
Loading /home/jaigouk/development/muddle/config/environments/development.rb
** Invoke db:automigrate (first_time)
** Invoke merb_env (first_time)
** Execute merb_env
Loading init file from /home/jaigouk/development/muddle/config/init.rb
Loading /home/jaigouk/development/muddle/config/environments/development.rb
~ Connecting to database...
---
development: &defaults
repositories:
couch: couchdb://localhost:5984/muddle_development
mysql:
adapter: mysql
database: muddle_development
host: localhost
username: root
password: secret
sudo make && yes | sudo make install
make all-recursive
make[1]: Entering directory `/home/jaigouk/svn_installs(couchDB)/couchdb'
Making all in bin
make[2]: Entering directory `/home/jaigouk/svn_installs(couchDB)/couchdb/bin'
make[2]: `all'를 위해 할 일이 없습니다
make[2]: Leaving directory `/home/jaigouk/svn_installs(couchDB)/couchdb/bin'
Making all in etc
make[2]: Entering directory `/home/jaigouk/svn_installs(couchDB)/couchdb/etc'
Making all in couchdb
require 'rubygems'
require 'scrubyt'
merb_readme = Scrubyt::Extractor.define do
#Perform the action(s)
fetch 'http://merbivore.com/documentation/current/doc/rdoc/stack/index.html'
click_link "files"
click_link "/home/merb/merb-docs/current/gems/gems/merb-cache-1.0"
@jaigouk
jaigouk / nokogiri
Created January 4, 2009 00:00
nokogiri
require 'rubygems'
require 'nokogiri'
require 'open-uri'
require 'haml'
doc = Nokogiri::HTML(open('http://merbivore.com/documentation/current/doc/rdoc/stack/index.html?a=F00000098&name=README'))
@api_doc = doc.search('div#rdocContent')
puts @api_doc