Donate to support Ukraine's independence.

14 Jun'13

mkpost for Jekyll

In order to speedup post creation, I found and improved a simple Ruby script:

require 'date'
require 'time'

puts 'What would you like to write about?'
article_title = gets
slug = article_title.downcase.strip.gsub(' ', '-')

current_date =
current_time =

filename = current_date + '-' + slug + '.md'"_posts/"+filename, "w") do |post|
 post.write("layout: post\n")
 post.write("title: #{article_title}")
 post.write("date: #{current_time}\n")

puts 'Created new file here: _/posts/'+filename

# fire up sublime text
system("subl '_posts/#{filename}' &")

Continue reading


27 Jun'11

Installing Ruby & Ruby on Rails on Ubuntu box

Start by:

Dig deeper with:

If you install rvm as root and fall in bunch of problems, visit:

Continue reading