Imaging you are working on a project that has database access, API access secured with tokens or uses other credentials that should not be stored in a version control system like git because it would allow everyone with access to get the credentials and access the systems. I’d like to show in a small example… Continue reading Keeping credentials out of your project
Category: Uncategorized
Migrating commits to open branch
I recently had the problem that I was accidentally working on a local branch that was tracking a protected remote branch. In simple words: I was working on the main branch but was not allowed to push to origin/main. This is a good thing because I see the main branch as stable and I would… Continue reading Migrating commits to open branch
Easy PDF form parsing and data handling
Recently I got a employee registration form in “docx” format and I can only assume that after I wrote all my information into the form HR copied it from there into the corresponding system. I thought to myself: That could be done easier. So I wrote a SpringBoot application, that offers a downloadable PDF form… Continue reading Easy PDF form parsing and data handling
Apply changes to multiple development branches
Let’s assume you have a simplified agile development process like this one: During planing the version numbers are specified and during development branches (like “release/1.5.10”) are used to collect all changes developed in development branches (like “bugfix/reference/1.5.10” where “reference” stands for a ticket number, a short description or any other reference to a in depth… Continue reading Apply changes to multiple development branches
Using quotes in remote commands
In my previous tutorial I showed how to escape quotes in Bash and PowerShell commands. So far so good. Now what if you want to execute a Bash command via SSH from a PowerShell instance? Let’s start with the plain Bash command we want to execute: This executed on Bash includes a single quote in… Continue reading Using quotes in remote commands
Unify line endings
Let’s assume you have a software project and the line endings of the files are inconsistent. Meaning, that git commits and pushes without proper configuration will result in a merge disaster because the merge tools recognize the whole file as changed and not just the lines actually changed. When working on Windows or on a… Continue reading Unify line endings
Archive, compress and send
You want to archive (tar), compress (gzip) and send (scp) a directory in one command? With Linux, it is possible: What does it do? tar cf – yourdir creates a uncompressed archive and writes it to standard out (stdout). gzip -9 -c reads from standard in (stdin), compresses and writes to standard out. ssh -l… Continue reading Archive, compress and send
Send passwords more secure
Sometimes it is inevitable to send passwords and credentials to a counterpart who needs access to some kind of management tool because there is not extended and secure user management available. I always just sent the credentials with the login link. Now imagine what this means: A potential scanner or crawler could find my the… Continue reading Send passwords more secure
Why DevOps?
Why not just developers, like Steve Balmer once said? Why not just managers? Why do you need someone who understands how software is written and who also understands how it can be tested, packaged, deployed and maintained in an automated manner? I think this question answers itself, doesn’t it? I’d like to bring up an… Continue reading Why DevOps?
GitLab: Persisting data between jobs
When I first tried to write and run pipelines in GitLab first thing I got were errors. I tried to create a json file containing data that needed to be accessible in each job of the pipeline. This was an id generated randomly in the first step and each following step would rely on this… Continue reading GitLab: Persisting data between jobs