Skip to content

Instantly share code, notes, and snippets.

mysql> show tables;
+----------------------+
| Tables_in_fxa |
+----------------------+
| accountResetTokens |
| accounts |
| dbMetadata |
| keyFetchTokens |
| passwordChangeTokens |
| passwordForgotTokens |
@dannycoates
dannycoates / feature.md
Last active August 29, 2015 14:14
Feature Flag Guide

Creating a feature flag

Feature flags are the most basic tool in the Able toolbox but they can be very useful. They allow you to ship code that might not quite be ready for your massive user base but that you want to try out and get some feedback on, or be ready to switch off again if things go sideways.

Able works in browsers and node.js servers for the time being. In this post we'll focus on using the browser. The server side usage is slightly different.

Here's what we'll need to do:

  • create an experiment repository
  • add our repository to an Able project registry
@dannycoates
dannycoates / demo.sh
Last active August 29, 2015 14:13
Able demo
#!/usr/bin/env bash
echo "able demo"
echo -e "\n\n"
echo "Get all subject attribute names"
echo "###############################"
curl -v https://dcoates.dev.lcip.org/ab/v1/fxa_content_server/attributes
@dannycoates
dannycoates / demo.sh
Created January 8, 2015 23:02
able demo
#!/usr/bin/env bash
echo "able demo"
echo -e "\n\n"
echo "Get all subject attribute names"
echo "###############################"
curl -v localhost:9798/v1/fxa_content_server/attributes
{
"name": "wat",
"version": "1.0.0",
"dependencies": {
"foo": "git://github.com/dannycoates/poolee.git"
}
}

abatar A/B testing framework

A workflow for testing and releasing application features.

Example

I've got a web app that I'd like to do some A/B testing on.

App

FxA-dev

  • ansible based combined dev environment
  • AWS CloudFormation
  • meant to be prod-like but simpler

Structure

  • base roles
  • role per project
@dannycoates
dannycoates / outline.md
Created September 15, 2014 21:06
FxA Auth Server Intro Outline

FxA Auth Server

  • Purely an API server
  • Stores account credentials, secret keys, "sessions"
  • signs keys for assertions

Data Model

  • Accounts
  • SessionTokens
@dannycoates
dannycoates / q3-goals.md
Last active August 29, 2015 14:04
Q3 FxA Internal Goals

Q3 FxA Internal Goals

  • common standards for log, stats, and config formats
    • all repos following these standards
    • collaborate with larger Cloud Services team on these standards (especially logs)
    • (stretch) common library implementations
  • noticeably easier deployment compared to train-16 for fxa services
    • as determined by us
  • documented dev guidelines
  • a new contributor should be able to read this and not be surprised by any steps between fixing a bug and seeing it in production
@dannycoates
dannycoates / logs.md
Last active August 29, 2015 14:04
FxA Log Format

FxA Log Format

version 0.0.1-draft-1

Goals

A standard base log format that enables log messages to be easily routed and filtered while allowing applications maximum flexibility in data they are able to record.