Quantcast
Channel: Lzone Blog
Browsing index pages (243 articles)

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 Article


Useful 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 Article


Accessing 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 Article

Store 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 Article

Convert 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 Article


Easily 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 Article

Adding 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 Article

Jenkins 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 Article


Image may be NSFW.
Clik here to view.

ffmpeg 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 Article


Find broken Helm3 releases

With Helm3 find releases in unexpected state: helm ls -A -o json | jq -r '.[] | select(.status != "deployed") | .name'

View Article

Http 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 Article

Jekyll 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 Article

How 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 Article


How 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 Article

Jenkins 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 Article


Helm 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 Article

Old 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 Article


Redis 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 Article

Helm 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 Article

Helm 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
Browsing index pages (243 articles)


Latest Images