Question: “Do you understand?”Answer: “Yes!”Order: “Okay, then implement it.”Question: “How do I start?” And that is the difference between understanding something in theory and having experience doing it. There is a lot to it and in this article I’d like to cover this topic on the specific example of creating a repository for your work.… Continue reading Theory vs. experience
I’m a hybrid morning person
What is a hybrid morning person you ask? I love working and getting things done in the morning, but from the comfort of my bed with my laptop on my knees.
Cleanup Linux logs
I just had the case that my disk on a Linux VM ran full and I had to make space quickly. I was willing to sacrifice my journald logs in order to make the urgent update work and I was able to free up a few gigabytes of space with the following commands. This drops… Continue reading Cleanup Linux logs
Start Spring Boot with classpath and class
There is an easy way to start a Spring Boot application by just calling This requires all dependencies to be bundled into the jar file and makes the jar file “fat”. That’s also the key word to search for when trying to create a complete jar. But there is another way. For example if I… Continue reading Start Spring Boot with classpath and class
Wait for host in BaSH
Okay, this one is a little specific, but I recently had this issue and I wanted to share it because knowing this would have saved me one scripting language and a lot of time. I have previously implemented this in PowerShell, but it can easily be done in BaSH as well. The premise was to… Continue reading Wait for host in BaSH
Delete Docker image from registry
I finally found out how I can delete images from my self hosted remote docker registry. Here is how: Prerequisites Make sure, that the docker registry supports deletion of images: As you can see this registry allows deletion of images. HTTP API calls For the next step one needs the URL of the registry. In… Continue reading Delete Docker image from registry
Use a build agent for multiple systems
Assume you have a build agent that has a specific tool set installed. Let’s say certain compilers, build tools and configurations. Parts of the team work with Provider A (let’s say GitHub), others with Provider B (let’s say GitLab) and a third part works with the internal Git repositories and a locally installed Jenkins instance.… Continue reading Use a build agent for multiple systems
Prevent explorer from automatically restarting
For certain actions it is required that the Windows Explorer is stopped in order to avoid open file handles or other actions that can be done while the Explorer is running. Windows is configured to restart the Explorer automatically when its process is terminated. I wrote a small PowerShell script that checks the current setting,… Continue reading Prevent explorer from automatically restarting
Automated Eclipse downloader
I work with Eclipse a lot and to download a new version, which comes out 4 times a year, I use the following script. It can be executed with PowerShell and does not require Java to be installed on the system because it downloads the OpenJDK version itself. Eclipse can then be found in the… Continue reading Automated Eclipse downloader
Format a string with content in Python
I use the ssh-keyscan command to get the public keys in order to use the ssh and scp commands without warnings and errors. To generate a list of hosts I feed the IPv4 and IPv6 address and the hostname to a function to generate the command. To format these three values into the string with… Continue reading Format a string with content in Python