Skip to content

Instantly share code, notes, and snippets.

View dtuite's full-sized avatar
🚀
Shipping

David Tuite dtuite

🚀
Shipping
View GitHub Profile
@dtuite
dtuite / gist:1592618
Created January 11, 2012 02:29
Unix command to list all running processes and daemons
ps -aef | awk "{if ( \$3 == 1 ) { print \$_ }}"
@dtuite
dtuite / json_matcher.rb
Created September 14, 2011 14:18
RSpec2 JSON matcher
# RSpec2 JSON Matcher for functional/controller tests
# Webrat usage example:
#
# it "should be the JSON representation" do
# get :show, id: object.id, format: :json
# response.body.should be_json_eql object.to_json
# end
require 'rspec/expectations'