Skip to content

Instantly share code, notes, and snippets.

@randuhmm
randuhmm / Hockey-Brain-Teaser-01.md
Created May 21, 2019 01:18
Brain Teaser for Hockey Fans - 01

Question:

In a best-of-seven series, how many different ways can two teams alternate wins/losses to reach a seventh game?

Answer:

Twenty ways.

Below are the twenty ways written out manually. We are only considering the perspective for one team because it's just a matter of your frame-of-reference.

@randuhmm
randuhmm / update-route53.sh
Created April 16, 2019 23:01
Dynamic DNS Using AWS Route 53
#!/bin/bash
# (optional) You might need to set your PATH variable at the top here
# depending on how you run this script
#PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# Hosted Zone ID e.g. BJBK35SKMM9OE
ZONEID="XXX"
# The CNAME you want to update e.g. hello.example.com