Skip to content

Instantly share code, notes, and snippets.

View NetoBuenrostro's full-sized avatar
🎯
Focusing

Ernesto Buenrostro NetoBuenrostro

🎯
Focusing
View GitHub Profile
@NetoBuenrostro
NetoBuenrostro / iptableflip.sh
Created August 31, 2019 07:03 — forked from lewisd32/iptableflip.sh
Snippet of Unbounce script for restarting HAProxy with zero downtime
echo "Flipping tables! (╯°□°)╯︵ ┻━┻"
num_rules=3
real=3 # exposed to the ELB as port 443
test=4 # used to install test certs for domain verification
health=5 # used by the ELB healthcheck
blue_prefix=855
green_prefix=866