Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

John Pitchko johnpitchko

🏠
Working from home
Block or report user

Report or block johnpitchko

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
@Phlow
Phlow / for-loop-sorted-collection
Created Jul 16, 2015
This Liquid loop for Jekyll sorts a collection by date in reverse order
View for-loop-sorted-collection
{% comment %}
*
* This loop loops through a collection called `collection_name`
* and sorts it by the front matter variable `date` and than filters
* the collection with `reverse` in reverse order
*
* To make it work you first have to assign the data to a new string
* called `sorted`.
*
{% endcomment %}
@nimf
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 http://git.io/5X99Eg or “gem install terminal-notifier”.
View build-notifier.rb
begin
require 'terminal-notifier'
module Jekyll
class Site
alias jekyll_process process
def process
jekyll_process
TerminalNotifier.notify("🍻 Jekyll rebuild finished")
rescue => e
TerminalNotifier.notify("💥 Jekyll rebuild failed: #{e.message}")
@spinscale
spinscale / readme.md
Created Jul 24, 2014
Using iTerm2 notification capabilities
View readme.md

Notification of finished builds in iTerm2

iTerm2 has a neat feature called a trigger, which you can use to notify you about finished maven builds (failure or success) or anything else happening in your console.

Install terminal notifier

brew install terminal-notifier
You can’t perform that action at this time.