Skip to content

Instantly share code, notes, and snippets.

View lmineiro's full-sized avatar
💭
I may be slow to respond.

Luis lmineiro

💭
I may be slow to respond.
View GitHub Profile
@lmineiro
lmineiro / dynamic_query_inside_sproc.sql
Created October 9, 2015 21:35
Example of dynamic queries inside plpgsql stored procedures
CREATE TABLE IF NOT EXISTS sample_table (
id serial,
field1 text,
field2 int,
field3 date
);
INSERT INTO sample_table (field1, field2, field3)
SELECT
md5(random()::text),
@lmineiro
lmineiro / keybase.md
Created April 21, 2016 09:42
Keybase

Keybase proof

I hereby claim:

  • I am lmineiro on github.
  • I am lmineiro (https://keybase.io/lmineiro) on keybase.
  • I have a public key ASD5rQkO6LPy1vNU_iFhef-usSEmVw5_pcVLRRb8t5tvLAo

To claim this, I am signing this object:

@lmineiro
lmineiro / reliability-patterns-abstract.md
Created January 23, 2018 09:59
Reliability patterns for fun and profit

Title

Reliability patterns for fun and profit

Abstract

Building large scale systems brings many challenges. With microservices we also see the complexity increase dramatically. Microservices communicate with each other over the network and, as the "Fallacies of Distributed Computing" explain, the network is unreliable. We need to prepare our systems to address that.

In this talk I'll focus on 3 specific reliability patterns. I’ll start by showing the most common

@lmineiro
lmineiro / amis.sh
Created February 14, 2019 08:32
Find Latest AMI
aws ec2 describe-images \
--filters Name=name,Values=Taupage-AMI-* \
--query 'Images[*].[Name,ImageId,CreationDate]' \
--output text | sort -k3| tail -1 | cut -f2