Skip to content

Instantly share code, notes, and snippets.

View fcofdez's full-sized avatar

Francisco Fernández Castaño fcofdez

View GitHub Profile
location /webhook/17cbb307-94ec-446b-a17b-ab82594c974c {
if ($request_method != 'POST') {
return 405;
}
content_by_lua 'ngx.print(io.popen("/path/to/script.sh"):read("*a"))';
}
@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)
@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 / 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
@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?