-
Server setup script
Building on a previous post, here is a script that automates the setup of a server. When setting up a new server there are several things that I either do by default (on autopilot) or I forget to do. This script installs and configures various components such as nginx, certbot for Let’s Encrypt SSL certificates, fail2ban, ufw, and more. It also provides an option to disable password authentication and root login via SSH for added security. Here’s the script in full:
-
Detecting a Loop
OpenAI’s o1-mini (coding/reasoning) model had this to say about detecting a loop in a 2D grid:
-
The Warehouse Robot (Reflections on My Journey, Part 2)
Yesterday’s Advent of Code puzzle reminded me of a pivotal moment early in my programming career. The Day 6 challenge was eerily similar to the Warehouse Robot problem that once brought me to my knees during a job interview nearly four years ago.
-
Out of Sorts: Advent of Code 2024 Day 5
TL;DR: I failed miserably and resorted to cheating!
-
Python Dictionary Defaults
Python dictionaries are incredibly versatile and widely used, but there are some handy tricks that can make using them much more streamlined and efficient. In this post, we’ll explore dict.setdefault and collections.defaultdict.
-
Algorithm for the Perfect Cheesy Poof (AI Assistants Conversation)
Playing around with my assistants library today, under the guise of Eric Cartman, it came up with an algorithm for the perfect cheesy poofs recipe.