Skip to content

Instantly share code, notes, and snippets.

@akahigeg
akahigeg / amazon_ecs_with_memcache.rb
Created September 17, 2011 06:06
Amazon::Ecs response caching to memcached
# -*- coding: utf-8 -*-
require 'amazon/ecs'
require 'dalli'
require 'active_support/core_ext'
module Amazon
class Ecs
class << self
def send_request_with_memcache(opts)
@akahigeg
akahigeg / gist:736193
Created December 10, 2010 13:24
TitaniumReporter for Jasmine
(function() {
if (! jasmine) {
throw new Exception("jasmine library does not exist in global namespace!");
}
var TitaniumReporter = function() {};
TitaniumReporter.prototype = {
reportRunnerStarting: function(runner) {
#
# Cookbook Name:: sensu-mailer-sample
# Recipe:: default
#
sensu_gem "mail"
mailer_rb_path = "#{node.sensu.directory}/handlers/mailer.rb"
cookbook_file mailer_rb_path do
source "mailer.rb"