Disable sleep key on keyboard
Do you also have this utterly useless “sleep” key on your keyboard right above the keypad? At the right upper corner of the keyboard? Right where accidentily hit in the midst of a meeting when reaching...
View ArticleUseful github search to find all prs in all your repos
The Github “Pull requests” link that you can find on top menu bar leads you to four useful pull request queries:PRs created by youPRs assigned to youPRs mentioning youReview requests for youbut what...
View ArticleAccessing grafeas with a swagger client
This is a short howto on workarounds needed to use the artifact metadata DB Grafeas (developed by Google and JFrog). While the upstream project does provide Swagger definitions those do not work...
View ArticleStore multi-line secrets in Azure DevOps Pipeline Libraries
Azure DevOps wants you to provide secrets to pipelines using a so called `pipeline library`. You can store single line strings as `secrets` in the pipeline library. You cannot though store multi-line...
View ArticleConvert json to yaml in linux bash
## Is it possible with bash? The short and reasonable answer is: no! Bash won't do it in a reliable way for you. ## Basic Linux Tools that convert JSON to YAML The goal here should be to use standard...
View ArticleEasily fix async video with ffmpeg
## 1. Correcting Audio that is too slow/fast This can be done using the `-async` parameter of ffmpeg which according to the documentation *"Stretches/squeezes" the audio stream to match the...
View ArticleAdding custom ca certificates in openshift
This post documents quite some research through the honestly quite sad Openshift documentation. The content below roughly corresponds to Openshift releases 4.4 to 4.7 ## How to add custom CAs? When you...
View ArticleJenkins search for unmasked passwords
When you run a larger multi-tenant Jenkins instance you might wonder if everyone properly hides secrets from logs. The script below needs to be run as admin and will uncover all unmasked passwords in...
View Articleffmpeg video transcoding from Nautilus
I want to share this little video conversion script for the GNOME file manager Nautilus. As Nautilus supports custom scripts being executed for selected files I wrote a script to do allow video...
View ArticleFind broken Helm3 releases
With Helm3 find releases in unexpected state: helm ls -A -o json | jq -r '.[] | select(.status != "deployed") | .name'
View ArticleHttp requests from jenkins pipeline
This post provides a summary of the possibilities to perform HTTP requests from a Jenkins pipeline.OverviewThere are the following possibilitiesJust doing a curl in a shellUsing Groovy URL objectUsing...
View ArticleJekyll collections without frontmatter
Researching this for some hours I want to document it:Collections without frontmatter are not possibleThe findings:Worked in very old Jekyll versions (2.x)Not even supported by the...
View ArticleHow to get docker buildkit to show run command output
When you use Docker’s new BuildKit build engine either byDOCKER_BUILDKIT=1 docker build ... or in most recent Docker v19 using the new buildx commanddocker buildx build ... then you won’t see any...
View ArticleHow to use custom css with jekyll minima theme
When providing this blog with some custom CSS to better format code examples I had troubles applying several of the online suggestions on how to add custom CSS in a Jekyll setup with Minima theme...
View ArticleJenkins list all pod templates
When using the Jenkins kubernetes plugin you can list all active pod templates like thisimport jenkins.model.* import org.csanchez.jenkins.plugins.kubernetes.* if (Jenkins.instance.clouds) { cloud =...
View ArticleHelm Best Practices
As a reminder to myself I have compiled this list of opinionated best practices (in no particalur order) to follow when using Helm seriously:GeneralDo not try to mix Helm2 and Helm3Do not use Helm3 yet...
View ArticleOld helm chart repos will disappear
The old github based Helm chart repository is going to be deprecated soon and charts might be vanishing depending how this goes.Quoting this Reddit comment:May 13, 2020 At 6 months – when helm v2 goes...
View ArticleRedis list all keys
If checking a Redis database you can list all entries usingKEYS <pattern> where pattern is a Unix glob expression. Here are some examplesKEYS myprefix* # All keys starting with 'myprefix' KEYS...
View ArticleHelm causes ‘Could not get apiVersions from Kubernetes’
When using Helm > 2.14.3 you can suddenly end up withCould not get apiVersions from Kubernetes: unable to retrieve the complete list of server APIs errors when handling (installing, upgrading,...
View ArticleHelm Checking Keys
It is quite impressive how hard it is to check a map key in Go templates to do some simple if conditions in your Helm charts or other kubernetes templates.At least for Helm there is a nice solution....
View Article