Skip to content

Instantly share code, notes, and snippets.

View sandrogomez's full-sized avatar
🏠
Working from home

Sandro Gomez sandrogomez

🏠
Working from home
View GitHub Profile
@sandrogomez
sandrogomez / LotT-es.01.md
Last active May 15, 2018 22:39
Ley de Little

Ley de Little

La cantidad promedio de tareas en un sistema estable es igual a su tasa de finalización promedio, multiplicada por su tiempo promedio en el sistema.

Problema A:

En casa, tengo 12 botellas de whisky en mi bar. Consumo y compro en promedio 6 botellas de whisky por año. ¿Cual es el tiempo promedio que cada botella permanece en mi bar?

Problema B:

En casa, tengo 12 botellas de whisky en mi bar. En promedio. Termino (y compro) una botella de whisky cada 2 meses. ¿Cual es el tiempo promedio que cada botella permanece en mi bar?

LITTLE's LAW

The average number of work items in a stable system is equal to their average completion rate, multiplied by their average time in the system.

Problem Statement A:

At home, I have 12 bottles of whisky at my bar. I consume and purchase an average of 6 whisky bottles per year. What is the average time each whisky bottle stays in my bar?

Problem Statement B

At home, I have 12 bottles of whisky at my bar. In average, I finish (and purchase) one whisky bottle every two months. What is the average time each whisky bottle stays in my bar?

@sandrogomez
sandrogomez / docker-cli.md
Last active April 23, 2018 15:11
Docker CLI

docker generic

docker info check info
docker ps list running containers
docker ps -l 
docker ps -a
docker logs -f <name> container logs
docker top <name> view processes
docker stop <name> stop container
@sandrogomez
sandrogomez / .dockerignore
Created March 8, 2018 13:28 — forked from davidderus/.dockerignore
Docker + Rails + Puma + Postgres + Nginx
.git
.gitignore
/doc
.yardoc
coverage
jsdoc
/tmp
/log
Dockerfile
Dockerfile.prod
@sandrogomez
sandrogomez / Dockerfile
Created August 24, 2017 17:47 — forked from konklone/Dockerfile
Dockerfile for installing Ruby 2.0 and RVM
FROM ubuntu
MAINTAINER Eric Mill "eric@konklone.com"
# turn on universe packages
RUN echo "deb http://archive.ubuntu.com/ubuntu raring main universe" > /etc/apt/sources.list
RUN apt-get update
# basics
RUN apt-get install -y nginx openssh-server git-core openssh-client curl
RUN apt-get install -y nano