Skip to content

Instantly share code, notes, and snippets.

@nvartolomei
nvartolomei / service-checklist.md
Created September 12, 2016 07:40 — forked from acolyer/service-checklist.md
Internet Scale Services Checklist

Internet Scale Services Checklist

A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."

Basic tenets

  • Does the design expect failures to happen regularly and handle them gracefully?
  • Have we kept things as simple as possible?

Keybase proof

I hereby claim:

  • I am nvartolomei on github.
  • I am nvartolomei (https://keybase.io/nvartolomei) on keybase.
  • I have a public key whose fingerprint is 3B0E 19E2 CD52 3E5F 7B3A 8FD6 843F 0F7C DC4A 1ADE

To claim this, I am signing this object:

@nvartolomei
nvartolomei / API.md
Created July 7, 2016 15:58 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

@nvartolomei
nvartolomei / System Design.md
Created April 18, 2016 07:03 — forked from vasanthk/System Design.md
System Design Cheatsheet

#System Design Interview Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

##Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@nvartolomei
nvartolomei / .gitignore
Created March 28, 2016 11:55
Ignore compiled node_modules artifacts
node_modules/**/*.node
node_modules/**/*.o
node_modules/**/*.a
node_modules/**/*.mk
node_modules/**/*.gypi
node_modules/**/*.target
node_modules/**/.deps/
node_modules/**/build/Makefile
node_modules/**/**/build/Makefile

The glory of the disconnect key sequence: a newline followed by ~.. It works like a charm.

@nvartolomei
nvartolomei / url.c
Created April 4, 2013 06:50
fast url checking
int is_urlschemechar(int first_flag, int ch)
{
/*
* The set of valid URL schemes, as per STD66 (RFC3986) is
* '[A-Za-z][A-Za-z0-9+.-]*'. But use sightly looser check
* of '[A-Za-z0-9][A-Za-z0-9+.-]*' because earlier version
* of check used '[A-Za-z0-9]+' so not to break any remote
* helpers.
*/
int alphanumeric, special;