Skip to content

Instantly share code, notes, and snippets.

Michael Gorsuch gorsuch

Block or report user

Report or block gorsuch

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 value_discovery.md

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
View keybase.md

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:

View motion.py
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 Jun 6, 2015
golang streaming into bigquery
View gist:46eb52f4c9cd43b5e3b9
package main
import (
"encoding/json"
"log"
"time"
"code.google.com/p/goauth2/oauth/jwt"
bigquery "github.com/google/google-api-go-client/bigquery/v2"
)
View gist:639fbbd98366d4e2ca98
package main
import (
"bufio"
"crypto/tls"
"fmt"
"log"
"net/url"
"strconv"
"strings"
View cloudfuckery.rb
#!/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 Aug 29, 2015
Platform Compiler
View platform_compiler.md

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 Aug 29, 2015
Service Platform Components
View platform_components.md

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

View metadata.md
{
  "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,
You can’t perform that action at this time.