Automate Terraform with Atlantis and GitLab

Atlantis is an infrastructure as code (IaC) tool to automate Terraform interactions within your GitLab/GitHub MR/PR workflow. This post uses the setup explained in an older post, where we used GitLab as Terraform backend. Instead of running terraform init/apply/plan on your local dev machine, you can now run it automagically when opening a merge request. This works by interacting via comments with Atlantis. Setup 1. Preparations First generate a personal access token for the gitlab user with scope api....

May 26, 2021 · 3 min · André Sterba

Backups with borg/borgmatic

I am a big fan of the backup tool borgbackup. Borg is space efficient as it supports compression and deduplication and is also secure, so you don’t have to trust the storage provider where your backup will be stored. In this short guide we will setup automatic backups for a server. But most of it can also be used to backup your clients. An addition to borg I use the wrapper borgmatic which will remove any custom scripts needed around borg....

April 21, 2021 · 5 min · André Sterba

Release tools with goreleaser

I’m writing most of my own tools in go. Sometime ago I found a tool called goreleaser which automates the release process of software written in go. goreleaser is pretty well documented, therefore this is just a quick overview how I use it. It will do the following things for you: Generate a changelog with the latest commit since the last release. Build artifacts for different architectures (Linux/Mac/Windows). Create a GitHub/GitLab release and attach changelog and artifacts....

March 31, 2021 · 2 min · André Sterba

Arch Linux and Sony WH-1000MX4

I recently got active noise-cancelling headphones (Sony WH-1000MX4). They work just fine with my Android phone but on my Linux notebook I had a bit of a fight to get them working. I am running Arch Linux on most of my machines, so this post is written with Arch specific commands, but most of them (and the general idea) should also work on Ubuntu or Debian based distros. Keep in mind that older versions of PulseAudio and/or PipeWire may not have the features described here!...

March 28, 2021 · 4 min · André Sterba

Setup Wallabag

I am subscribed to a lot of blog feeds, but (sadly) I don’t have enough time to read all of them. This is especially the case for rather long (but often interesting) posts. Therefore it would be perfect to save these posts and read them in the near future. There are already existing solutions for this like Mozilla Pocket. But as always I want to host this service on my own server (I have to justify the server somehow)....

February 28, 2021 · 3 min · André Sterba