[Photo by @felipepelaquim](https://www.pexels.com/photo/electronic-book-subscription-in-an-electronic-gadget-8531176/)

Remove Password From PDF documents

I use a Pocketbook Touch HD first gen. to read ebooks and I bought it in 2017 (oh dear!). It’s a really good device, despite being terribly slow according to current standards and battery have probably only 20% capacity comparing to the day I bought it. Anyway, it outperformed any of my smartphones on it’s longevity. I don’t use it that often anymore but it happen to me to read some stuff that I find on the Internet. ...

2024-05-27 · 1 min · timor
[Photo by MART  PRODUCTION](https://www.pexels.com/photo/person-holding-burning-money-7230878/)

Rising costs of running legacy Amazon RDS systems

Amazon recently faced challenges in maintaining support for legacy Relational Database Service (RDS) systems and even considered upgrading instances forcefully1. This situation is not unique to Amazon; many companies struggle with the costs of maintaining legacy systems. However, as a service provider, Amazon must support older systems as long as there are customers willing to pay for them. In December 2023, Amazon announced1 plans to upgrade legacy RDS instances to versions still under active development, citing the rising costs of maintaining outdated systems. This included versions like MySQL 5.7 and PostgreSQL 10 (or earlier)2. However, instead of enforcing upgrades, Amazon introduced a new support approach: RDS Extended Support. This allows customers to continue using older versions, but with additional costs. ...

2024-04-27 · 3 min · timor
[Photo by Pixabay](https://www.pexels.com/photo/books-in-black-wooden-book-shelf-159711/)

Create a Virtual Bookshelf with Hugo and PaperMod

TL;DR If you don’t care about my reasoning, just jump to the description of installation and usage . Click here for a demo . I try to read at least one book each month. It’s not much, but that’s what I can afford. I read a lot of technical books, building my technical skill set, but a lot of random topics from business, psychology or fantasy. It happen to me many times that when I’ve been asked about specific book, I couldn’t remember “Where did I read it?” or “What was the book title?”. Some day I accidentally passed through Dave’s Rupert blog and his Bookshelf  external link and I loved it! I have a blog, so great place to collect and share, with easy access from anywhere - why not to use it? ...

2024-04-26 · 4 min · timor
[Hugo](https://gohugo.io)

Automatically setting 'lastmod' in Hugo pages with Git modification date

Following my recent SEO issues , I’m actively exploring ways to bolster my website’s ranking. One aspect I’m keen to address is expediting Search Engine indexing for pages that have been altered or updated. This is precisely the purpose of Sitemaps, a feature fully supported by Hugo1. However, there’s a limitation in how Hugo handles this by default. It sets the lastmod parameter to either the page’s creation time or the last build time. What I aim to achieve is a clear separation between creation and modification dates. This would signal to Search Engines to focus on scrutinizing only the “changed” posts, expediting their reevaluation—an approach commonplace in the Wordpress realm but more intricate with Hugo. ...

2024-03-24 · 2 min · timor
[Photo by Harrison Haines](https://www.pexels.com/photo/rusty-ships-on-rippling-water-6292339/)

How old are Official Docker images? 2024 Edition

Around 3 years ago I’ve checked the age of various base images available on Docker Hub. Curiosity recently got the better of me, prompting another investigation into the current state of affairs. Since then, there have been significant changes: CentOS 8 has reached its end of life  external link , prompting a shift to CentOS 8 Stream  external link , which is also nearing its demise 🤣 OpenJDK images have been deprecated  external link and no longer receiving updates. They recommend to switch to alternatives such as: Amazon’s Corretto or Eclipse Temurin (formely AdoptOpenJDK). Let’s delve into the findings: ...

2024-03-24 · 2 min · timor
[Zed](https://zed.dev)

Zed Code Editor as an Atom reincarnation

I was a big fan of the Atom1 code editor, so when it was discontinued and replaced by M$’s VS Code2, I was both sad and dissapointed. While I can admit that VS Code is a solid editor, my personal preference always leaned towards Atom. However, over time, Atom started to feel sluggish. I collected numerous plugins over the years and it began to weigh heavily on performance, not just during startup but also during regular usage. Typing slow response was especially quite irritating. ...

2024-03-19 · 2 min · timor
[Photo by Pixabay](https://www.pexels.com/photo/orange-and-white-seashell-on-white-surface-33234/)

The power of extensive command history in Bash and Zsh

I rely heavily on shell usage. For over 15 years, I was a devoted user of Bash until I discovered Zsh and made the switch. One thing that remained constant throughout my transition was my configuration to maintain an extensive commands history. This setup is replicated across all my systems. When you spend a lot of time coding, you often find yourself repeating commands or running variations of them. Remembering all these commands can be challenging, but with resources like Google and ChatGPT, it’s not always necessary. However, if you find yourself frequently searching for specific commands, it can be time-consuming and distracting. That’s where having parts of the command at your fingertips becomes invaluable. With a quick press of Ctrl+r and a little scanning, you can find what you need. ...

2024-03-05 · 3 min · timor
[Mermaid](https://mermaid.js.org)

Adding Mermaid diagrams to Hugo

I used Chart.js charts on one of my Hugo blogs for few years already. Recently I needed to add few diagrams and I started glueing them in Chart.js but then I found that Hugo supports GoAT and Mermaid diagrams  external link . They’re not working out of the box, but it’s easy to extend. Much easier than my custom shortcodes. ...

2024-02-25 · 2 min · timor
AI generated

How to run x86-64 Docker images on Apple's MacBook with M1/M2/M3 CPU

Working with Docker environments amid diverse architectures, like Apple’s arm64 and x86-64/AMD64, presents challenges. I’ve encountered the clash between my Mac’s M1 arm64 architecture and my x86-centric server workloads. The solution? Just use DOCKER_DEFAULT_PLATFORM 1 2. Just run in the terminal: Enforce platform for all commands export DOCKER_DEFAULT_PLATFORM=linux/amd64 With this command, Docker enforces x86 architecture by default on commands supporting --platform parameter, streamlining workflows and sparing the need for repetitive --platform specifications. ...

2024-02-06 · 1 min · timor
[pre-commit](https://pre-commit.com)

My pre-commit config for Hugo blog

I love blogging with Hugo  external link and I have two blogs already that use it. The good thing about static sites is that you have all the data in the files. You can optimize them locally, batch process, amend, etc. Powerful templating engine allows to quickly pre fill documents in the format I like. I have some steps in the Makefile for things like image optimization, but I often don’t remember to run them 😃 ...

2024-01-29 · 2 min · timor