-
Server status monitor bash script
When managing multiple servers, keeping track of their availability is crucial. Building on an example from “Cybersecurity Ops with bash” by Paul Troncone, I’ve developed a bash script that provides a simple yet effective way to monitor server status across multiple hosts. Let’s break down how this script works and why it can be a valuable tool for system administrators.
-
Global find and replace with bash
I’m working on a server migration script (watch this space) where I need to do a global find and replace in a bunch of files on a VPS (Virtual Private Server). I’m currently reading a bbok called “Cybersecurity Ops with bash” by Paul Troncone, which has been a great resource for learning bash scripting, and I found a solution in the book that I can use to do the global find and replace:
-
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!