Skip to content

Instantly share code, notes, and snippets.

Sean Porter portertech

Block or report user

Report or block portertech

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
View gist:3896737
Handling a channel-level exception.
AMQP class id : 40
AMQP method id: 10
Status code : 404
Error message : NOT_FOUND - no exchange 'metricsfoo' in vhost '/sensu'
View vagrant_images.txt
http://h4x.s3.amazonaws.com/vagrant/ubuntu-11.10-server-i386.box
http://h4x.s3.amazonaws.com/vagrant/ubuntu-11.10-server-amd64.box
View gist:1335861
require File.join(File.dirname(__FILE__), 'config')
module Sensu
class Client
def self.run(options={})
EM.run do
client = self.new(options)
client.setup_amqp
client.setup_keepalives
client.setup_subscriptions
View gist:1149889
{
"timestamp": 1313529745,
"swap": {
"in": "0",
"out": "0"
},
"memory": {
"inactive": "89088",
"active": "3488596",
"swap_used": "0",
View gist:1132818
. .
. . IMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
.IMMMMMMMMMMMMMM8I . ... . =MMMM
:MMMMMMMMMZ . 7MMMMZ . 7MD . IMMD .
MMMMM. . . . .~ .M, . MMM .
MMMM, N. .IDMMMO777ZNMMMMMO =MM . M:. NMM.
. ZMMM . . :7NMMDI= . MM IM MMM
MMM IMM77IDMMM, . M8 ..MM M ,N MMM
M8 M M . M ,O . 7. MM
.M8 D ,.
View gist:1110518
# File 'lib/redis.rb', line 119
def hgetall(key)
Hash[*@client.call(:hgetall, key)]
end
@portertech
portertech / durp-#{Time.now.to_i.to_s}
Created May 30, 2011
Chef run failed on durp @ #{Time.now.getutc}
View gist:990669
var ip_address = '';
if ("ec2" in attributes['automatic']) {
ip_address = attributes['automatic']['ec2']['public_ipv4'];
} else {
ip_address = attributes['automatic']['ipaddress'];
}
View gist:990376
-> % gem install nagios-dashboard
Fetching: nagios-dashboard-0.0.2.gem (100%)
Successfully installed nagios-dashboard-0.0.2
1 gem installed
You can’t perform that action at this time.