Skip to content

Instantly share code, notes, and snippets.

Producing legacy code

Yuri Golobokov nimf

Producing legacy code
View GitHub Profile
nimf / build-notifier.rb
Last active Jul 3, 2018 — forked from zoul/build-notifier.rb
Posts a message to the OS X notification center when a Jekyll build is finished. Requires TerminalNotifier, see or “gem install terminal-notifier”.
View build-notifier.rb
require 'terminal-notifier'
module Jekyll
class Site
alias jekyll_process process
def process
TerminalNotifier.notify("🍻 Jekyll rebuild finished")
rescue => e
TerminalNotifier.notify("💥 Jekyll rebuild failed: #{e.message}")
nimf / Rakefile.rb
Last active Feb 12, 2016 — forked from drogus/Rakefile.rb
I found this in the answer by Jason to this question This is a Rakefile for using ActiveRecord without Rails. It loads ActiveRecord's databases.rake file making ActiveRecord rake tasks available for your non-rails app.
View Rakefile.rb
require 'bundler/setup'
require 'active_record'
include ActiveRecord::Tasks
class Seeder
def initialize(seed_file)
@seed_file = seed_file
You can’t perform that action at this time.