Skip to content

Instantly share code, notes, and snippets.

@gorsuch
gorsuch / value_discovery.md
Created March 24, 2018 21:10
a few values

outcomes

  • low cognitive overhead for the team
  • fast delivery for the org
  • reliable service for the org
  • safety for our customers

strategy

  • fewest moving parts possible
  • most boring tools possible
  • one-click, engineer-driven deployments

Keybase proof

I hereby claim:

  • I am gorsuch on github.
  • I am gorsuch (https://keybase.io/gorsuch) on keybase.
  • I have a public key ASDlUJpCMNiRElw6f74CtHmaUne5tOJKzkhwW14-52kIGAo

To claim this, I am signing this object:

@gorsuch
gorsuch / motion.py
Last active November 5, 2017 20:22
import boto3, logging, os
from datetime import datetime
from gpiozero import MotionSensor
from picamera import PiCamera
logging.basicConfig(level=logging.INFO)
camera = PiCamera()
pir = MotionSensor(4)
@gorsuch
gorsuch / gist:46eb52f4c9cd43b5e3b9
Created June 6, 2015 15:47
golang streaming into bigquery
package main
import (
"encoding/json"
"log"
"time"
"code.google.com/p/goauth2/oauth/jwt"
bigquery "github.com/google/google-api-go-client/bigquery/v2"
)
package main
import (
"bufio"
"crypto/tls"
"fmt"
"log"
"net/url"
"strconv"
"strings"
#!/usr/bin/env ruby
require 'aws-sdk'
metadata = {
image_id: 'ami-9aaa1cf2',
instance_type: 't2.micro',
subnet: 'subnet-a55587fc',
key_name: 'ops'
}
@gorsuch
gorsuch / platform_compiler.md
Last active August 29, 2015 14:10
Platform Compiler

Platform Compiler

What follows is a description of how one might reasonably manage the core configuration of a stateless service platform.

definitions

  • input - initial inputs that help describe a desired state. includes information such as allowed amis, application manifests, etc
  • compiler - reads inputs, produces cloudformation templates along with other top-level metadata. (important to note that there could even be multiple compilers)
  • metadata - top-level, global data that describes ideal state of the platform
@gorsuch
gorsuch / platform_components.md
Last active August 29, 2015 14:10
Service Platform Components

Service Platform Components

What follows is a brief description of what comprises a general stateless service platform. It assumed that all stateful services live elsewhere (Heroku Postgres, AWS, etc).

This document aims to show you that a service platform can be built from a few simple ideas without need of anything highly complex or a lot of moving parts.

compiler

see platform compiler

@gorsuch
gorsuch / metadata.md
Last active August 29, 2015 14:10
metadata
{
  "name": "core",
  "ami_id": "ami-123456",
  "env": "s3://cloudfuckery/envs/1-abcdef.json",
  "slug": "s3://cloudfuckery/slugs/1-12345.tgz",
  "formation": {
    "web": {
      "cmd": "bundle exec bin/web",
 "quantity": 3,