Skip to content

Instantly share code, notes, and snippets.

Will Mernagh wm

View GitHub Profile
View icis.yml
# ~/.tmuxinator/icis.yml
name: icis
root: ~/src/
- icisstaff:
layout: main-horizontal
- cd ~/src/icisstaff; foreman start
- cd ~/src/icisstaff; tail -f ~/src/icisstaff/log/development.log
- snowflake:
wm / devise.rb
Created Aug 28, 2013
Overriding the omniauth scope and translating it into a devise scope!
View devise.rb
# Devise Client using omniauth
# ==> OmniAuth
# Add a new OmniAuth provider. Check the wiki for more information on setting
# up on your models and hooks.
config.omniauth :icis, APP_ID, APP_SECRET, client_options: { :site => APP_URL }, scope: 'person,read_only'
wm / decorator.rb
Created Aug 27, 2013
Decorate an Enumerable collection
View decorator.rb
class FancyDecorator < SimpleDelegator
def full_name
"#{first_name} #{last_name}"
def last_name_first
"#{last_name}, #{first_name}"
def self.decorate_collection(collection)

A Trello Board

[![Trello Development Board](](

Trello Development Board

A Trello Card

View boston.rb
class Boston < Town
LAT = "30°4′E"
LNG = "29°41′S"
REFERENCE = ",_KwaZulu-Natal"
View eigenclass_modification_spec.rb
describe 'simple object' do
class A
def initialize
@c = 'ccc'
@d = 'ddd'
def default
wm /
Last active Jul 2, 2020
Installing powerline on Mac OSX. The following was done in version Version 10.8.2

Install dependencies

brew install cmake
brew install python
sudo easy_install pip

Add powerline bin to your path. In your zshrc file (or the paths files sourced in zshrc) add the following line


Reinstall MacVim with brew

wm / hangout
Last active Dec 12, 2015 — forked from drinks/hangout
View hangout
#!/usr/bin/env ruby
### make sure you `brew install chromedriver` and `gem install selenium-webdriver` before running this!
require 'rubygems'
require 'selenium-webdriver'
hangout_url = ENV['hangout_url']
hangout_email = ENV['hangout_email']
hangout_password = ENV['hangout_password']
wm /
Last active Oct 3, 2015
TMUX Pairing

SSH setup for remote pairing

If Animal and Fozzie wanted to pair on Animals machine and they both have access to then they could use the following setup

  • Animal will have the following in ~/.ssh/config
Host tunnel_from_muppets
  RemoteForward 1235 localhost:22
wm /
Created Apr 8, 2012 — forked from erikh/
OSX For Hackers
#!/usr/bin/env sh
# This is script with usefull tips taken from:
# install it:
# curl -sL | sh
You can’t perform that action at this time.