How to validate the speed of your filesystem

This is a good benchmark to validate if your code is slow or its just the file look-ups on the filesystem. We're listing all files in the node_modules folder. Here's what it should look like: time find node_modules -type f | wc -l 23224 real…

Traefik: add security headers

Add the following to your traefik.yml http: middlewares: secure-headers: headers: # Enable HTTP Strict Transport Security (HSTS) stsSeconds: 31536000 stsPreload: true # X-Content-Type-Options header contentTypeNosniff: true # Prevent browser from running any kind of active content inside the page. frameDeny: t…

Traefik: redirect www to non-www

Add the following to your traefik.yml http: middlewares: www-redirect: redirectregex: regex: ^(?:https://)?(?:www\.)?(.+) replacement: https://${1} permanent: true Now you can just add the following label to your docker container: traefik.http.routers.REPLACE-THIS.middlewares: "www-redirect@file"…

Backing up Google Photos with Docker

💡From March 31, 2025 rclone can only download photos it uploaded. This limitation is due to policy changes at Google. See https://github.com/rclone/rclone/issues/8434 In this article I'll be using the rclone Docker container and a cron job to back up my Google Photos…