Skip to content

Instantly share code, notes, and snippets.

View haydenk's full-sized avatar

Hayden haydenk

View GitHub Profile
@haydenk
haydenk / win11_keyboard_shortcuts.md
Created April 28, 2026 14:40
[Reference] Windows 11 keyboard shortcuts: Win-key combos, virtual desktops, snap layouts, and other useful general shortcuts.

Windows 11 Keyboard Shortcuts

Win denotes the Windows key.

Keyboard Shortcut Usage
Win Open Start Menu or Screen.
Win + E Open File Explorer.
Win + C Open Chat.
Win + S or Win + Q Open Search (online and offline).
@haydenk
haydenk / mcu_watch_order.md
Created April 28, 2026 14:39
[Reference] The Marvel Cinematic Universe in in-universe chronological order -- every movie, TV show, special, animated short, and one-shot -- with year set, type, and current streaming home.

Marvel MCU -- Complete Timeline Watch Order

The complete Marvel Cinematic Universe in chronological (in-universe timeline) order, including all movies, TV shows, specials, and animated series.

Streaming Key: Most MCU content is available on Disney+. Items marked otherwise note their primary platform. Availability may vary by region.

Pre-Modern Era

# Title Type Year Set Where to Watch
@haydenk
haydenk / fast_and_furious_watch_order.md
Created April 28, 2026 14:39
[Reference] The Fast & Furious franchise in in-universe chronological order (Tokyo Drift sits 8th, after F&F 6) with release year, type, timeline placement, and where to stream each entry.

Fast & Furious -- Complete Timeline Watch Order

The complete Fast & Furious franchise in chronological (in-universe timeline) order. The timeline is famously non-linear -- most notably, Tokyo Drift was released 3rd but takes place after Fast & Furious 6 in the story.

Streaming Key: Most of the franchise lives on Peacock. Exceptions are noted per entry. Availability may vary by region.

Timeline Watch Order

# Title Release Year Type Timeline Where to Watch
@haydenk
haydenk / radvd.conf
Created April 28, 2026 14:38
[Networking] Sample radvd.conf for making Pi-hole the IPv6 router-advertisement / RDNSS authority on a LAN (eth0). Includes a /64 prefix and an RDNSS entry.
# Sample radvd.conf for making Pi-hole the IPv6 router-advertisement / RDNSS
# authority on a LAN. Replace the prefix and RDNSS address with your own /64
# prefix and the Pi-hole's IPv6 address.
interface eth0 {
AdvSendAdvert on;
AdvLinkMTU 3600;
AdvHomeAgentFlag off;
AdvManagedFlag off;
AdvOtherConfigFlag off;
@haydenk
haydenk / fibonacci.py
Created April 28, 2026 14:37
[Python] Recursive Fibonacci with type hints; handles negative inputs by taking the absolute value.
def fibonacci(n: int) -> int:
abs_n: int = abs(n)
if abs_n < 2:
return 0
if abs_n < 3:
return 1
return fibonacci(abs_n - 1) + fibonacci(abs_n - 2)
@haydenk
haydenk / README.md
Last active April 28, 2026 14:53
[Scala] Three small examples: loan-pattern file reader/writer helpers, a callback-driven FizzBuzz, and a recursive indented thread/message printer.

Scala examples

Three small, self-contained Scala scripts. Each is meant to be readable on its own; together they're a quick tour of a few patterns I keep reaching for in Scala.

File What it shows
file_reader_writer.scala Loan-pattern helpers (withFileWriter, withFileReader) that handle resource cleanup so the caller can focus on what to write/read.
flexible_fizz_buzz.scala FizzBuzz refactored to take a callback, so the what to do with each value is a parameter rather than println hardcoded.
recursive_messages.scala Indented threaded-message printer over a parent/child message structure, demonstrating Option matching for the parent reference.
@haydenk
haydenk / sync_s3_objects.sh
Created April 28, 2026 14:35
[AWS] Bash script that copies S3 objects from a source bucket to a target bucket, partitioning keys by date (year=YYYY/month=MM/day=DD) and skipping objects that already exist in the target.
#!/usr/bin/env bash
# Copy S3 objects from a source bucket to a target bucket, partitioning the
# destination keys by date (year=YYYY/month=MM/day=DD) and skipping objects
# whose filename already exists somewhere in the target bucket.
#
# Prereq: fetch the source bucket listing first with
# aws s3api list-objects-v2 --bucket your-source-bucket --query Contents > ~/files.json
jsonFile="$HOME/files.json"
sourceBucket="your-source-bucket-name"
@haydenk
haydenk / ec2_instance_types.md
Created April 28, 2026 14:35
[AWS] Quick-reference cheat sheet for EC2 instance families (F1, I3, G3, H1, T2, D2, R4, M5, C5, P3, X1) and their typical use cases.

AWS EC2 Instance Types -- Quick Reference

Family Specialty Use Case
F1 Field Programmable Gate Array Genomics research, financial analytics, real-time video processing, big data, etc
I3 High Speed Storage NoSQL DBs, Data Warehousing, etc
G3 Graphics Intensive Video Encoding/3D Application Streaming
H1 High Disk Throughput MapReduce-based workloads, distributed file systems such as HDFS and MapR-FS
T2 Lowest Cost, General Purpose Web Servers/Small DBs
D2 Dense Storage Fileservers/Data Warehousing/Hadoop
@haydenk
haydenk / README.md
Last active April 28, 2026 14:54
[AWS] CloudFormation: a private VPC (IPv6 + four subnets across AZs) and a Route53 hosted zone wired up for Fastmail (MX, DKIM, SPF).

AWS CloudFormation templates

Two CloudFormation stacks I've reused across personal AWS accounts.

File What it creates
private_vpc_stack.yml A /16 private VPC with both IPv4 and Amazon-provided IPv6, plus four /24 subnets across the first four AZs of the region. Each subnet auto-assigns IPv6 addresses.
dns_host_management_stack.yml A Route53 hosted zone for a domain you pass in as a parameter, pre-populated with the MX, DKIM, and SPF records Fastmail needs to deliver mail. The stack output prints the nameservers you'll point your registrar at.

Usage

@haydenk
haydenk / README.md
Last active April 28, 2026 14:56
[DevOps] GitHub Codespaces cheatsheets: cross-IDE devcontainer setup (JetBrains/VS Code/Codespaces) and prebuilds without surprise bills.

GitHub Codespaces cheatsheets

Two short reference docs I wrote up while getting Codespaces to play nicely across teams using different IDEs and trying not to blow through the free-tier hours.

File What it covers
codespaces-prebuilds-cheatsheet.md When prebuilds save you money vs. when they cost you more, the trigger and retention settings that matter, and how to monitor prebuild storage so you don't hit a surprise bill.
devcontainer-jetbrains-vscode-codespaces.md Writing a single devcontainer.json that works in JetBrains IDEs, VS Code (remote-containers), and Codespaces -- which features and lifecycle hooks each runtime supports, and how to avoid the gotchas where they diverge.

Both are written as practical checklists rather than overviews -- skip to the section you need.