Skip to content

Instantly share code, notes, and snippets.

View eferro's full-sized avatar

Eduardo Ferro Aldama eferro

View GitHub Profile
@jboner
jboner / latency.txt
Last active April 16, 2024 17:40
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@fdmanana
fdmanana / gist:832610
Created February 17, 2011 20:27
The CouchDB replicator database

1. Introduction to the replicator database

A database where you PUT/POST documents to trigger replications and you DELETE to cancel ongoing replications. These documents have exactly the same content as the JSON objects we used to POST to /_replicate/ (fields "source", "target", "create_target", "continuous", "doc_ids", "filter", "query_params".

Replication documents can have a user defined "_id". Design documents (and _local documents) added to the replicator database are ignored.

The default name of this database is _replicator. The name can be changed in the .ini configuration, section [replicator], parameter db.

2. Basics

@jasonrudolph
jasonrudolph / about.md
Last active January 6, 2024 07:40
Programming Achievements: How to Level Up as a Developer
@eferro
eferro / wrapper.go
Created December 31, 2023 11:44
Simple wrapper to execute (interactive/non interactive) docker image
package main
import (
"fmt"
"log"
"os"
"os/exec"
)
const (
@wsargent
wsargent / docker_cheat.md
Last active August 31, 2023 12:10
Docker cheat sheet
@bifer
bifer / relacion_estable.md
Last active November 19, 2020 09:04
Relación estable equipo desarrollo/sistemas

En Alea Soluciones buscamos relación estable

En Alea Soluciones buscamos nueva compañera o compañero para relación estable dentro del equipo de desarrollo/sistemas; nos gustaría que dicha relación esté basada en la confianza, transparencia, empatía y en la pasión que todos compartimos por nuestra profesión.

TL;DR Como explicamos más adelante, buscamos un perfil principalmente técnico, por favor abstenerse perfiles de gestión, marketing y similares.

¿Cuáles son nuestros Valores?

Estos son los valores que como equipo más apreciamos, aunque por supuesto, no son los únicos

  1. Transparencia
  2. Respeto
  3. Colaboración
@gene1wood
gene1wood / 01_get_aws_account_id.py
Last active June 22, 2018 18:44
Method to determine the AWS account ID of your account using boto
#!/usr/bin/env python
import boto, boto.jsonresponse
conn = boto.connect_sts()
e = boto.jsonresponse.Element()
boto.jsonresponse.XmlHandler(e, conn).parse(conn.make_request('GetCallerIdentity',{},'/','POST').read())
e['GetCallerIdentityResponse']['GetCallerIdentityResult']['Account']