Skip to content

Instantly share code, notes, and snippets.

View cushingw's full-sized avatar

Cushing Whitney cushingw

  • Pearl Certification
  • Charlottesville, VA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am cushingw on github.
  • I am cushingwhitney (https://keybase.io/cushingwhitney) on keybase.
  • I have a public key whose fingerprint is 89A3 A593 6C96 E703 E963 B784 A833 0751 D404 704E

To claim this, I am signing this object:

@cushingw
cushingw / diffRemote.sh
Created December 8, 2012 03:10
Script to diff files between two remote servers
#!/bin/bash
function showHelp ()
{
echo "usage: $0 -d -f FILE_PATTERN HOST1:PATH1 HOST2:PATH2"
echo "-d: Show file diffs"
echo "-D DIFF_OPTIONS: provide custom options to file diffs"
echo "-f FILE_PATTERN: restrict comparison to files matching given glob"
exit 1;
@cushingw
cushingw / ability.rb
Created March 13, 2012 19:38 — forked from watson/ability.rb
Active Admin CanCan integration with shared front/backend User model and multi-level autherization
# app/models/ability.rb
# All front end users are authorized using this class
class Ability
include CanCan::Ability
def initialize(user)
user ||= User.new
can :read, :all