Skip to content

Instantly share code, notes, and snippets.

Michael Galero mikong

  • Quezon City, Philippines
Block or report user

Report or block mikong

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mikong / Importing posts from Wordpress into Jekyll.rb
Created Sep 5, 2011 — forked from vitobotta/Importing posts from Wordpress into Jekyll.rb
The script I used to import posts from my Wordpress blog into a new Jekyll one.
View Importing posts from Wordpress into Jekyll.rb
%w(rubygems sequel fileutils yaml active_support/inflector).each{|g| require g}
require File.join(File.dirname(__FILE__), "downmark_it")
module WordPress
def self.import(database, user, password, table_prefix = "wp_2", host = 'localhost')
db = Sequel.mysql(database, :user => user, :password => password, :host => host, :encoding => 'utf8')
FileUtils.mkdir_p "_posts"
You can’t perform that action at this time.