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

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

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

ERROR: Service failed to build: invalid reference format

Docker gave me this error today when running a Running the build command manually instead of using docker-compose gave me: The issue is with the image tag: “:1.16:1“. It must be “:1.16.1“. Just as a reminder of how important it is to be thorough and, of course, what the error might mean if you encounter… Continue Reading ERROR: Service failed to build: invalid reference format

talking ssl-enabled smtp with php

This is just a repost so I remember. When talking SMTP via a PHP script with a webserver, remember to initiate with “EHLO” instead of the usual “HELO”. HELO does not allow for STARTTLS. Details: fwrite(): SSL operation failed with code 1. OpenSSL Error messages:error:1420C0CF:SSL routines:ssl_write_internal:protocol is shutdown