Skip to content

Instantly share code, notes, and snippets.

@bizo
bizo / Meta.scala
Created July 29, 2011 19:11
Best name for a case object ...
// https://github.com/lift/framework/blob/master/core/json/src/main/scala/net/liftweb/json/Meta.scala
// lines 207-209
sealed abstract class Kind
case object `* -> *` extends Kind
case object `(*,*) -> *` extends Kind
#!/usr/bin/ruby
#
# This script triggers builds for completed EMR tasks based on data in the metadata domain. We assume that AWS
# credentials are specified in the 'AWS_ACCESS_KEY_ID' and 'AWS_SECRET_ACCESS_KEY' environment variables.
#
# Note that each invocation will only make one query (and possibly many puts) to SimpleDB. If there
# are a large number of post-EMR tasks to trigger, some may need to wait until the next invocation.
#
# Hudson builds may be parameterized by selecting the "This build is parameterized" option in the job
# configuration. This script will pass JSON in the 'next_on_cron_server_job_params' to the build URL. The JSON
@bizo
bizo / simpledb-put.rb
Created February 19, 2010 20:25
This is a simple script that puts a list of key/value pairs into a single SimpleDB item.
#!/usr/bin/ruby
#
# This is a simple script that puts a list of key/value pairs into a single SimpleDB item. It assumes that your
# Amazon credentials are stored in the environment variables "AWS_ACCESS_KEY_ID" and "AWS_SECRET_ACCESS_KEY".
#
# Examples:
#
# Insert a bunch of attributes for 'testitem' in the domain 'domain.name':
# ./put.rb -d domain.name -i testitem key1=val1 key2=val2-1 key2=val2-2 key3=val3
#