Skip to content

Instantly share code, notes, and snippets.

View phspagiari's full-sized avatar
:octocat:

Pedro Spagiari phspagiari

:octocat:
View GitHub Profile
@phspagiari
phspagiari / System Design.md
Created May 3, 2021 18:40 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@phspagiari
phspagiari / release_ips.sh
Created April 11, 2019 22:31
Release Calico unused IPs from CIDR Block (Bug v3.3.x)
#!/bin/bash
# Works for /16 CIDR Blocks, change / upgrade the script if you need
CIDR_PREFIX="172.20"
for oct1 in {128..255}; do
# Generate a new list of used IPs on every block
calicoctl get wep --all-namespaces | awk '{print $4}' |cut -d "/" -f1 > valid_ips.txt
for oct2 in {1..254}; do
if grep "${CIDR_BLOCK}.$oct1.$oct2" ./valid_ips.txt; then
@phspagiari
phspagiari / README.md
Last active August 29, 2015 14:16
Patch for Deis use LDAP Authentication

PoC: Deis with LDAP/AD Authentication

Requirements

@phspagiari
phspagiari / keybase.md
Created February 11, 2015 12:36
keybase.md

Keybase proof

I hereby claim:

  • I am phspagiari on github.
  • I am spagiari (https://keybase.io/spagiari) on keybase.
  • I have a public key whose fingerprint is 184C 0B99 AA5E E648 1E56 6DC0 FDD3 0757 B27F C14E

To claim this, I am signing this object: