Skip to content

Instantly share code, notes, and snippets.

View fcofdez's full-sized avatar

Francisco Fernández Castaño fcofdez

View GitHub Profile
@fcofdez
fcofdez / cf.md
Created July 7, 2018 21:42
Dense hash set
@fcofdez
fcofdez / service-checklist.md
Created July 15, 2017 21:35 — forked from viktorklang/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?
@fcofdez
fcofdez / gist:45c871a621827d2950b2736e553e673e
Created July 15, 2017 16:18 — forked from viktorklang/gist:1b3032e46afc9abd400a
A collection of links for streaming algorithms and data structures
  1. General Background and Overview
### Keybase proof
I hereby claim:
* I am fcofdez on github.
* I am fcofdezc (https://keybase.io/fcofdezc) on keybase.
* I have a public key whose fingerprint is 9AEF 6F1F E047 3851 E9B4 DD5F 25C7 AB23 6C9F 230B
To claim this, I am signing this object:
@fcofdez
fcofdez / springer-free-maths-books.md
Created December 30, 2015 11:05 — forked from bishboria/springer-free-maths-books.md
Springer have made a bunch of books available for free, here are the direct links
@fcofdez
fcofdez / README.md
Last active December 16, 2015 00:48 — forked from Luzifer/README.md
Strategies for persistent data storage on CoreOS-cluster

Persistent data storage on CoreOS-cluster

Storing the data on the host machine

Data directories are created in /home/coreos and mounted into the container using volume cli options of docker run. All data the container writes is stored on the host and as long as the host persists safe against container restarts / recreates.

  • Pro
    • No effort, just create the directories and mount them into the container
  • Contra
  • Container is bound to host (unable to failover)
Client:
Version: 1.8.1
API version: 1.20
Go version: go1.4.2
Git commit: d12ea79
Built: Thu Aug 13 02:33:17 UTC 2015
OS/Arch: linux/amd64
Server:
Version: 1.8.1
In [14]: dis(x)
2 0 BUILD_LIST 0
3 LOAD_GLOBAL 0 (range)
6 LOAD_CONST 1 (10)
9 CALL_FUNCTION 1
12 GET_ITER
>> 13 FOR_ITER 16 (to 32)
16 STORE_FAST 0 (x)
19 LOAD_FAST 0 (x)
22 LOAD_CONST 2 (1)
@fcofdez
fcofdez / gist:04f0f9b01398a9910417
Last active May 28, 2018 20:35
Distributed systems questions

Questions about Distributed systems by @tsantero.

  1. explain the life of an http request.
  2. what does the FLP result teach us?
  3. what is a byzantine failure?
  4. explain CRDTs
  5. explain linearizability.
  6. how does DNS work?
  7. crash-stop vs crash-recovery?
  8. difference between soft and hard real time
#include <stdlib.h>
#include <stdio.h>
int main(){
int *a;
a = (int *) malloc(sizeof(int) * 12);
for (int i = 0; i < 12 ; i++)
a[i] = i;
for (int i = 0; i < 12 ; i++)
printf("%i\n", a[i]);