Janik Vonrotz

Move Docker data directory to new location

The standard data directory used for docker is /var/lib/docker, and since this directory will store all your images, volumes, etc. it can become quite large.

Read More...



09 Parse Url in Shell Shell Script

Read More...



Parse URL in shell script

Use the bash script below to extract any segment of an URL. For example you can use it like this parse-url https://www.example.com subdomain,proto and get the subdomain and protocol of the url as reponse.

Read More...



Postgres connection URI password fails

With the psql command line tool you can either pass the connection credentials as parameters or simply as one connection string.

The general form for a connection URI is:

postgresql://\[user\[:password\]@\]\[host\]\[:port\]\[,...\]\[/dbname\]\[?param1=value1&...\]

While developing an Odoo module I could no longer execute queries using connections URIs. I always got the error psql: error: FATAL: password authentication failed for user "odoo".

Read More...



Upgrade Keycloak Docker container

Upgrading Keycloak is not so difficult as supports automatically migrating the database to a new version.

Nonetheless, Keycloak is a critical piece of software in every infrastructure. Under no circumstances you want the upgrade to fail. I will show you some upgrade preparations for a docker-based setup that ensure you can restore the service in the worst case scenario.

Read More...



Some thoughts on stress

How are you? Are you stressed?
Stupid question! Of course I am. I am f!*$&ng stressed all the time!

Not a nice way to start a blog post. But for me it also not a nice topic. This post is a ongoing series about the challenges of being self-employed.

Read More...



Manage Vercel DNS records with Ansible

At Mint System we are using Ansible extensively to configure our infrastructure and services. From setting up new hosts up to deploying a customer specific customization for an application, all is managed by Ansible. Only one piece was missing. Until recently we could not update DNS records automatically.

Read More...



Missing out to be bored

It occurred to me that I cannot recall the last time I have been bored. As I child I remember being bored on many (rainy) days. After playing Lego for hours I became too tired to find the right pieces, so I ended up being bored.

Read More...



Twitter Stories: Environmental cost of Bitcoin

On Twitter people share stories that go beyond 280 characters. By replying the to their own tweet, they create ongoing threads. Instead of sharing another link, I concatenate these threads and present them here.

Todays thread is about the environmental cost of Bitcoin by Stephen Diehl.

Let’s discuss the environmental cost of bitcoin. Because despite all the push for sustainable and green investment in the tech sector, there’s a giant smoldering Chernobyl sitting at the heart of Silicon Valley which a lot of investors would prefer you remain quiet about. (1)

Read More...



Git pull overwrite local changes

A new year a new post. Instead of a new years resolution I’ve got a git wisdom for you. If you ever have to reset your repository/life use this command:

Read More...



1