TDSTG.com - Posts

One-Liner to Update PiHole

Published: 2024-05-12
Updated: 2024-07-15

How to update your PiHole device to the latest releases, all in a single command

Ubuntu Certbot Install

Published: 2024-01-29
Updated: 2024-07-15

Certbot from Let's Encrypt is the defacto method for installing and maintaining TLS certificates. Before you can use it on your new Ubuntu server you have to install it. Use this easy one-liner to make it happen.

Enable a Site in Nginx

Published: 2024-07-11
Updated: 2024-07-12

Here's how to enable your new site config file with nginx on Ubuntu

One-Command PiHole Update

Published: 2024-07-02
Updated: 2024-07-09

Copy and paste this one-liner into your PiHole terminal session to bring everything up to date all at once

Docker Disk Maintenance

Published: 2024-07-03
Updated: 2024-07-03

Handy commands to reduce any unused disk space in your local Docker environment

Ubuntu Apache Global Servername

Published: 2024-03-02
Updated: 2024-07-03

Use the ServerName directive in Apache to resolve the "Could not reliably determine the server's fully qualified domain name" error message

Reboot or Power Down Ubuntu System

Published: 2024-04-14
Updated: 2024-07-02

How to reboot or power down a system running Ubuntu

Hugo Docker Development Environment

Published: 2024-06-05
Updated: 2024-07-02

Here's how I run my Hugo site development projects using Docker containers

Loop Variable Captured by Func Literal

Published: 2024-05-14
Updated: 2024-06-27

In my process of learning how to code a Golang web crawler I ran into an unexpected warning: loop variable url captured by func literal

Site Content Best Practices

Published: 2024-01-29
Updated: 2024-06-26

This is my shortlist of best practices I share with content owners / subject-matter experts who need to periodically update content on their website

Boilerplate Nginx Config File

Published: 2024-06-29
Updated: 2024-06-26

This is my go-to nginx.conf file

Apache Cheatsheet

Published: 2024-03-29
Updated: 2024-06-17

A very short list of essential Apache management commands for web hosting

Certbot TLS with Nginx

Published: 2024-06-20
Updated: 2024-06-13

Certbot from Let's Encrypt is the defacto method for installing and maintaining TLS certificates. Before you can use it on your new Ubuntu server you have to install it. Walk through the steps to install a TLS certificate with Nginx reverse-proxy

Domain Validation Challenges with Certbot

Published: 2024-06-19
Updated: 2024-06-13

Let's talk about how Certbot goes about validating your domain before issuing a TLS certificate

List In-Use Docker Ports

Published: 2024-06-12
Updated: 2024-06-10

How to get a list of all ports used by docker containers on your local dev machine

Hugo Static vs Assets Folders

Published: 2024-06-09
Updated: 2024-06-10

What's the difference between Hugo's static and assets folders. Does it matter where I store my images?

Golang Slugify Function

Published: 2024-05-17
Updated: 2024-05-24

A function which takes an input string and converts it to a "slug", a string of text suitable for use in an url address

Hugo Install on MacOS

Published: 2024-05-12
Updated: 2024-05-24

My quick notes on how to download and install the extended version of Hugo - and a fix for "macOS cannot verify that this app is free from malware"

Hugo Remove List Duplicates

Published: 2024-05-17
Updated: 2024-05-21

In processing JSON records for a Hugo site I needed to remove duplicate ID elements in a list. Here's how I did it.

Golang Friendly Date Converter

Published: 2024-05-12
Updated: 2024-05-17

A function which takes an input string of the format YYYY-MM-DD and converts it into a more readable "Mar 06, 2006" format

Digital Certificates with Certbot

Published: 2024-01-29
Updated: 2024-05-16

Certbot from Let's Encrypt is the best thing going for installing and maintaining your site certificates. Use this simple one-line command to set it and forget it.

Sample Apache vhost.conf

Published: 2024-01-19
Updated: 2024-05-16

If your server's reverse-proxy is Apache, you'll need to set up VirtualHost blocks for each domain you're hosting. Here's a sample vhost.conf file you can use to get started.

Hugo Most Recently Updated Posts

Published: 2024-02-04
Updated: 2024-05-16

This site's home page features my most-recently updated 5 posts. This the template logic that makes it happen.

Hugo Most Recent Posts

Published: 2024-02-04
Updated: 2024-05-16

This site's home page used to feature my most recent 5 posts. This post shows how the logic that made it work

Hugo Custom 404 Page

Published: 2024-04-28
Updated: 2024-05-16

Here's how I set up a custom 404/NotFound page for this site.

Customize Hugo Page Type

Published: 2024-02-08
Updated: 2024-05-16

I struggled with this a bit longer than I might should have. In the end it wasn't too difficult but it also wasn't so straightforward to be obvious. Here's how to set up a custom page layout for any type of page you might imagine in Hugo.

Google Tags to Hugo Site

Published: 2024-05-07
Updated: 2024-05-16

Adding Google's Tag Manager connect code to your static Hugo site won't take long. Here's how to do it in 3 simple steps.

Debounced Scroll-To-Top Button

Published: 2024-05-06
Updated: 2024-05-16

With a few lines of code you can add an unobtrusive button to your site that, when clicked, takes visitors back up to the top of the page.

Page Folder Name

Published: 2024-05-12
Updated: 2024-05-16

I needed the name of the folder in which a page was stored in order to make shortcode processing a little bit easier. Here's how I managed to do it.