Skip to content

Instantly share code, notes, and snippets.

View pmorelli92's full-sized avatar
🧉
Mate'ing

Pablo Morelli pmorelli92

🧉
Mate'ing
View GitHub Profile
@pmorelli92
pmorelli92 / seed.sql
Last active March 21, 2021 10:59
Reducing loading times by a tenfold with Postgres aggregations
-- 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 / microservices.md
Last active January 15, 2022 18:48
Building Microservices - Sam Newman

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 April 7, 2023 09:14
Knowledge base

Knowledge base

All interesting links and reflections throughout time goes here.

Cheat Sheet

Postgres UUID

create extension "uuid-ossp";
@pmorelli92
pmorelli92 / main.go
Last active April 13, 2023 20:33
Example bunnify
package main
import (
"context"
"time"
"fmt"
"github.com/pmorelli92/bunnify/bunnify"
)
@pmorelli92
pmorelli92 / iTermColorsToTerminalColors.swift
Last active November 26, 2023 09:17 — forked from leonbreedt/iTermColorsToTerminalColors.swift
Convert iTerm2 color scheme to Terminal.app color scheme (Swift 5 Compatible)
#!/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