Skip to content

Instantly share code, notes, and snippets.

loop do
$stdout.puts("at=begin")
sleep(5)
$stdout.puts("at=end")
end
@ryansmith3136
ryansmith3136 / joyent.md
Created November 3, 2012 03:30
Joyent Notes
  • Signup process was thorough but complete.
  • Can ssh into my new server in less than a minute.
  • They have a lot of custom terminology and no single page to define it. E.g. What is the difference between a virtual machine and a smart machine?
@ryansmith3136
ryansmith3136 / health.rb
Created October 30, 2012 18:59
Middleware to respond to HTTP HEAD /
# Add this file to /lib/health.rb
# Require in config/application.rb
# require File.join(File.dirname(__FILE__), '../lib/health.rb')
# Load in config/application.rb
# config.middleware.use Heroku::HttpHealth
# Be sure to put this middleware at the front of all other middlewares. Don't want authentication on this guy.
class Heroku::HttpHealth
def initialize(app)
@app = app
@ryansmith3136
ryansmith3136 / proposal.md
Created October 23, 2012 04:12
l2met log conventions proposal

Beta Features

  • Log Convetnions
  • Last Value Computation

This beta convention is running in production today. Start using it immediately.

Log Conventions

Counter

@ryansmith3136
ryansmith3136 / lock.sh
Last active October 11, 2015 22:27
Locking using LOCKFILE(1)
export t=$(date +%s)
lockfile $t #create lock. Try running `lockfile $t` in another shell.
rm -f $t #delete lock
@ryansmith3136
ryansmith3136 / ruby-at-heroku.md
Created October 16, 2012 16:48
Ruby At Heroku

Ruby At Heroku

Where We Use Ruby

  • Web API
  • HTTP API
  • Dyno Management
  • Dynos

Where We Use Something Else:

@ryansmith3136
ryansmith3136 / shusud-install.md
Created August 30, 2012 20:57
Shushud Installation
$ git clone https://github.com/shushu/shushud
$ cd shushud
$ heroku create my-shushud
$ git push heroku master

L2met

Problems to solve

  • Multi-tenant
  • Leverage availability of Heroku's HTTP stack
  • Easiest possible DX

Architecture

@ryansmith3136
ryansmith3136 / talk.md
Created July 31, 2012 21:22
Distributed Systems: Tales From the Crypt

Distributed Systems: Tales From the Crypt

A year ago we thought it would be a good idea to start pulling apart services from our core application. Today we have a network of services with clear boundaries, well defined semantics, and concise APIs. The last year was one of the toughest and most enlightening years of my programming life. In this talk I will share the tragedies, heartaches, and victories that we experienced in our migration towards distributed systems. We will look at some patterns and anti-patterns that were discovered along the way. Of course we will be talking about Ruby, PostgreSQL, and their roles in our distributed system.