Skip to content

Instantly share code, notes, and snippets.

View tnull's full-sized avatar

Elias Rohrer tnull

View GitHub Profile
@tnull
tnull / newpost.rb
Last active August 29, 2015 14:08 — forked from al3x/newpost.rb
Small ruby script to create a new jekyll post, open the editor, start 'jekyll serve' and open the localhost site in a browser.
#!/usr/bin/env ruby
unless ARGV[0]
puts 'Usage: newpost "the post title"'
exit(-1)
end
jekyll_site_prefix = "."
editor = "open -a Byword"
date_now = Time.now