Hello World: Migrating to a High-Performance Stack
Welcome to the New derekmolloy.ie
After years of running on WordPress, I have officially migrated the site to a Dockerized Ghost CMS instance running on a local i5 home server. This move is designed to provide a faster, more "developer-centric" reading experience, especially for long-form technical guides.
[!INFO] Why the change? WordPress was becoming high-maintenance. Moving to a Markdown-based workflow allows me to write articles in my local IDE (Obsidian) and publish them with a single click.
Test 1 2 3
Testing C++ Syntax Highlighting
Since most of my work involves the BeagleBone and embedded C++, let's verify that the code blocks render correctly. Here is a simple GPIO toggle using the libgpiod library:
#include <iostream>
#include <gpiod.hpp>
#include <unistd.h>
int main() {
std::string chipname = "gpiochip1";
unsigned int line_num = 18; // Example GPIO
gpiod::chip chip(chipname);
auto line = chip.get_line(line_num);
line.request({ "Blink", gpiod::line_request::DIRECTION_OUTPUT, 0 }, 0);
while (true) {
line.set_value(1);
usleep(500000);
line.set_value(0);
usleep(500000);
}
return 0;
}