ads' corner

Blockquotes in Hugo

Hugo uses Markdown to create the content, which is then parsed into static HTML. One of the features of Markdown are quotes. Multiline quotes (block quotes) are possible, but they are not very intuitive.

Pythagorean theorem in ChatGPT - or how the AI invented the mathematical Missing Angle theorem

ChatGPT tried to calculate the angles and legs in a right angled triangle, and instead invented a new mathematical theorem of a Missing Angle

How to integrate YouTube videos into Hugo blog postings

This tutorial explains how to integrate YouTube videos into a blog posting in Hugo.

Delayed service notifications in Icinga2

Icinga2 is used for monitoring my infrastructure. Some services are more noisy than others, and generate a lot of unnecessary warnings in a short time. A delayed notification rule is used to only raise alarms when the service is not OK for a prolonged period of time.

Using fail2ban to block unfriendly web requests

Every time I peek into the webserver logfiles, I find quite a few 404 requests trying to figure out if certain exploits exist on this server. Now I get that these are automated attempts, and the number of requests coming from one IP show that they try several different exploits and path names. Nevertheless I thought that I don’t need this in my log, and on my webserver. fail2ban for the rescue.

Migration from Twitter to Mastodon

Many people (I don’t like this phrase) are leaving Twitter these days, and looking for a new social media home. One of these places is Mastodon. This blog post aims to summarize the steps necessary for a migration, and includes pointers to websites which can help with said move.

Icinga Director and disk checks for fuse mountpoints

When I rolled out my new Icinga2 installation, and added disk checks for all laptops, I ran into a small problem: there is a fuse mountpoint for logged in users which only the user can read. Apparently it has something to do with Flatpack.

How to configure notifications in Icinga2 Director

I'm using Icinga2 for a long time, but recently installed a new system and using Director for the first time. I know how to configure notifications in Icinga2 config files, but getting them working in Director (with Director options only) is a bit of a challenge. Here is a step-by-step to get simple mail notifications working. From there it should be easier to configure more advanced notifications.

Avoid linebreaks in Hugo shortcodes

Shortcodes in Hugo are a neat and poweful system to avoid repating the same piece of text over and over again.

Blog website crawlers and bots in Apache2

Found a couple more bots crawling my website, and from the look at online resources it seems I catched a few of the bad guys. Crawlers which ignore the robots.txt standard, and just crawl a website for content. Decided to do something against it, and added a filter in Apache2.