Skip to content

Instantly share code, notes, and snippets.

Avatar
🧉
Mate'ing

Pablo Morelli pmorelli92

🧉
Mate'ing
View GitHub Profile
@pmorelli92
pmorelli92 / microservices.md
Last active January 15, 2022 18:48
Building Microservices - Sam Newman
View microservices.md

WIP - Sam Newman - Building Microservices

  • Take the SRP approach to services. Small, and focused on doing one thing well.
  • The smaller the service the more you maximize the benefits and downsides of microservice architecture.
  • Technology Heterogeneity.
  • Rewrite in 2 weeks.
  • Degrade functionality, don't cascade.
  • Ease of deployment, and scaling.
  • Small, autonomous teams -> Hard to achieve depending on company size.
  • Replaceability.
@pmorelli92
pmorelli92 / knowledge-base.md
Last active November 4, 2022 10:09
Knowledge base
View knowledge-base.md

Knowledge base

All interesting links and reflections throughout time goes here.

Cheat Sheet

Postgres UUID

create extension "uuid-ossp";
@pmorelli92
pmorelli92 / seed.sql
Last active March 21, 2021 10:59
Reducing loading times by a tenfold with Postgres aggregations
View seed.sql
-- Start an instance of postgres
-- docker run --name db -p 5432:5432 -e POSTGRES_HOST_AUTH_METHOD=trust postgres:latest
CREATE DATABASE veterinary;
CREATE TABLE person (
id UUID PRIMARY KEY,
name TEXT
);
@pmorelli92
pmorelli92 / iTermColorsToTerminalColors.swift
Last active August 5, 2022 16:44 — forked from leonbreedt/iTermColorsToTerminalColors.swift
Convert iTerm2 color scheme to Terminal.app color scheme (Swift 5 Compatible)
View iTermColorsToTerminalColors.swift
#!/usr/bin/xcrun swift
//
// Copyright © 2016 Leon Breedt
// Ported to Swift 5 by Pablo Morelli 2019
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0