How to Deploy Rootless HAProxy as Podman Quadlet

This post is raw. No grammar is checked. When doing local development or just tinkering with this or that, quite often you want to expose something to the Internet. When it’s just single “something”, then you can just forward your port 80 from router, to your machine’s “something” port. But this falls appart if you have two “something” you want to expose to the Internet. You can’t forward single 80 port from your router to two different applications running on your machine. Because one application will be running for example on 8080 port and the other on 8081. ...

2024 Sep 03 · Dzintars

How to Integrate Flyway Into Linux Desktop Environment

Today I decided to ditch Flyway Desktop execution from CLI and integrate into my Sway + Wofi desktop environment. Basically, there is what you need: Get an Flyway icon and paste it into flyway.svg file Copy that SVG file into $HOME/.local/share/icons/hicolor/scalable/apps/flyway.svg Change the color for the icon by adding fill="#CC0200" to the path Create an $HOME/.local/share/applications/flyway.desktop file with the content like this: 1 2 3 4 5 6 7 8 9 10 11 12 [Desktop Entry] Version=1.0 Type=Application Name=Flyway GenericName=Database migration tool Comment=Database Migrations Made Easy Categories=IDE;Development Keywords=Database;SQL;IDE;JDBC;ODBC;MySQL;PostgreSQL;Oracle;DB2;MariaDB Exec=$HOME/.local/share/flyway/flyway-desktop/flyway-desktop --enable-features=UseOzonePlatform --ozone-platform=wayland --no-sandbox %U Icon=flyway Terminal=false MimeType=application/sql Because Flyway Desktop is Electron app, we are passing few flags to run it on Wayland system. If you still use Xorg, then just remove those flags. ...

2024 Aug 05 · Dzintars

How to Store Ansible Vault Password

There are several ways to pass the Ansible Vault password. classic CLI prompt which requires manual intervention password file which should be stored somewhere accessible to the Ansible environment variable Today I will tell about my latest approach. I am using tool called Direnv which loads and unloads different environment variables when you enter the directory. Direnv uses .envrc files to read the variables from. Typically, this file should be in your .gitignore so that you don’t leak any secrets. ...

2024 Mar 27 · Dzintars

How to Integrate Google Analytics Into Hugo PaperMod Theme

As I’m setting up my shiny new blog, I stuck at Google Analytics integration. It looks like official PaperMod lacks some documentation on this topic. So… there is what worked for me. Don’t use analytics.google.SiteVerificationTag directive mentioned somewhere in the PaperMod docs or whatever. Instead, we will stick with more idiomatic Hugo Docs approach and use this stanza: 1 2 3 services: googleAnalytics: id: G-XXXXXXX Just stick in somewhere in hugo.yaml config file. And make sure, you have right spacing for every line. 2 and 4 spaces in this case for 2nd and 3rd line. Yaml format/language is very picky about the spaces. ...

2024 Feb 22 · Dzintars