Our incident.io pkg/errors, as explained in:
Shared in advance of a talk to Netflix's engineering team as part of their Architecture Discussion Forum, this is an excerpt of code from the incident-io Go monolith that is used to power our async workers.
It depends on internal libraries (such as our o11y and error packages) but is a good starting point for anyone who wanted to build something similar.
You define an event in a common event
package such as:
make-it-rain.json: make-it-rain.jsonnet | |
jsonnet -J $(ANU_ROOT)/utopia/lib -J $(ANU_ROOT)/utopia/jvendor $^ > $@ |
local registry = import 'registry/index.jsonnet'; | |
// Compute the rbac rules that should be configured in ArgoCD, using the service | |
// registry to determine who should be given what permissions. | |
// | |
// This module can be evaluated concretely, which may help to debug the rbac | |
// list for ArgoCD. | |
{ | |
_config:: { | |
// Operator grants- anyone with admin or operator should be permitted to |
tell application "Chrome" to tell the active tab of its first window | |
reload | |
end tell |
require 'oauth' | |
require 'uri' | |
require 'sinatra/base' | |
require 'pry' | |
require 'unirest' | |
require 'strava/api/v3' | |
module Strava | |
class Authorizer < Sinatra::Base | |
TOKEN_FILE = File.join(ENV['HOME'], '.strava_token') |
This gist contains code samples for the blog post "How we compress Pub/Sub messages and more, saving a load of money".
This gist is associated with the blog post "Deploying to production in <5m with our hosted container builder".
It contains the terraform code used to provision the builder instance. While it
uses a private module instance_group
, the code should be a useful starting
point to figure out how to run this yourself.
This is the code that implements a Slack modal for escalating to Splunk On-Call.
Thanks to some investment in our Slack tooling, we have a framework for building modals that makes them really easy to build, and trivially testable.
Just by adding these two files, these modals become useable. Simples!