This is simply a re-post of How to find out which processes are using swap space in Linux? which in return is based on northernmost.org’s Swap Usage – 5 Years Later Use like this:
find (and delete) files recursively on linux using find
Just as a reminder to myself, I will repost this post on baeldung: Recursively Deleting Files With a Specific Extension Get an idea of what you’ll be deleting: Reminder: Do backups and check that you’re in the correct location before starting the execution.
docker swarm: find all services using a certain secret
If you find yourself in a situation like us, wanting to know how many and which services in a docker swarm are using a specific secret, this might help you:
vs code tweaks
Currently my main editor is Visual Studio Code, which Microsoft has done a marvellous job on. Despite installing various extensions for the various things I’m working with, I will collect some tweaks here that I usually do, so I can remember them later: Navigate between tabs with Cmd+<number> Add the Cmd+<number> keybinding to your keybindings.json… Continue Reading vs code tweaks
osx docker, kubernetes, helm setup
Install Docker-Desktop: https://www.docker.com/products/docker-desktop Enable Kubernetes Cluster bundled with Docker: https://docs.docker.com/docker-for-mac/#kubernetes Install helm: https://helm.sh/docs/intro/quickstart/ Add kubectl and helm commandline completion to .zshrc: source <(kubectl completion zsh)source <(helm completion zsh)
debugging in vscode
I am currently debugging a 10+ year old PHP project, trying to migrate it to PHP 7.2 While debugging VSCode would start giving me “error evaluating code” and jump out of the debug session after the first step. When I stopped the debugger and reloaded the page, the page would load fine. So it didn’t… Continue Reading debugging in vscode
ssh jump hosts
Just a repost of SSH jump host. To remember in the future.
docker container stuck in ‘new’ state forever
I’ve had this issue a couple of times and I formulated a devops-stackexchange question eventually. Although I do not yet really have a way to debug the NEW state, there is some information there: Docker container stuck in “new” state – Docker swarm – service stack
run crond in the background
It’s quite easy. It’s also basically not findable on the web. Probably because a simple Provides the answer.
use jenkin’s ExtendedChoiceParameterDefinition for multi-select user input
Check Jenkins’ own documentation for an unnecessarily complicated but at least almost complete overview of available input declarations: https://jenkins.io/doc/pipeline/steps/pipeline-input-step/ Get a list of available types here: https://github.com/jenkinsci/extended-choice-parameter-plugin/blob/master/src/main/java/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition.java#L90 Get a list of all parameters of the ExtendedChoiceParamterDefinition here: https://github.com/jenkinsci/extended-choice-parameter-plugin/blob/master/src/main/java/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition.java#L344 This SO was useful to get an idea of how to use it in pipelines and resulted… Continue Reading use jenkin’s ExtendedChoiceParameterDefinition for multi-select user input