Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am adamjt on github.
  • I am adamjt (https://keybase.io/adamjt) on keybase.
  • I have a public key whose fingerprint is 57A7 B36E BD4C 6718 FF4C B937 2E77 28EB AD2E 7556

To claim this, I am signing this object:

@adamjt
adamjt / .autotest
Created November 3, 2013 03:03
Dot-autotest file for sending test results to the Pushover service.
require 'pushover'
PUSHOVER_CHARACTER_LIMIT = 512
Pushover.configure do |config|
config.user = 'xxxxx'
config.token = 'xxxxx'
end
Autotest.add_hook :initialize do |autotest|
@adamjt
adamjt / gist:895555
Created March 31, 2011 00:01
monitrc for nginx
# polling interval (in seconds)
set daemon 60
set logfile <%= your_path %>/log/monit.log
set pidfile <%= your_path %>/tmp/pids/monit.pid
set statefile <%= your_path %>/tmp/monit/monit.state
set mailserver localhost
set mail-format { from: [email protected] }
set alert [email protected]
class Kitchen < ActiveRecord::Base
has_many :cups
end
class Cup < ActiveRecord::Base
has_many :liquids
belongs_to :kitchen
end
class Liquid < ActiveRecord::Base