Categories
Snippets

Homebrew, OpenSSL and PowerShell

On Mac, PowerShell really, really wants to specifically use OpenSSL version 1.0. Unfortunately, homebrew switched to OpenSSL version 1.1 in v2.2, because OpenSSL 1.0 is end-of-life. This fixes it (for now at least): brew uninstall openssl –ignore-dependencies brew uninstall openssl –ignore-dependencies brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb References: My comment on GitHub

Categories
Linux Snippets

Ubuntu update procedure

Brain dump. # from here: https://askubuntu.com/a/862799/870970 apt-get update && apt-get –with-new-pkgs upgrade # restart reboot # do it again apt-get update && apt-get –with-new-pkgs upgrade # remove shit apt autoremove # # UPGRADE # do-release-upgrade # done.  

Categories
Snippets Uncategorized

nextcloud and Docker and reverse proxies

I have a nextcloud setup like described here (docker-compose, let’s encrypt proxy companion, postgres and nextcloud). And for a while I couldn’t connect any new nextcloud clients to the installation. This fixed it: <?php $CONFIG = array ( # manually added because it’s not picked up from # the env vars once set … it […]

Categories
Snippets

Configure Python on Windows

All right, I have a Windows machine. It’s a PITA, but it’s here. And for some reason I started doing some Python testing on it. So this is how I managed to do it: Preparation: Install python with choco (choco install -y python) Run PowerShell as Administrator Execute Set-ExecutionPolicy -ExecutionPolicy Unrestricted (we’ll see why in […]

Categories
Snippets

autohotkey

Under macOS I use TextExpander, under Windows there’s the fantastic AutoHotkey. One of the few softwares I can’t live without. This is my default configuration: ; ———- “auto reload” ———- FileGetTime ScriptStartModTime, %A_ScriptFullPath% SetTimer CheckReload, 1000, 0x7FFFFFFF ; ms & priority ; from here: https://stackoverflow.com/a/45488494 CheckReload() { global ScriptStartModTime FileGetTime curModTime, %A_ScriptFullPath% If (curModTime <> […]

Categories
Cloud Infrastructure Snippets

Check MK container/k8s deployment

In the company everybody seems to love Check MK. Me? Not so much, but a better alternative costs time and effort, both resources we don’t really have right now. Yet there’s a positive thing about it – because there’s an official docker container. Since I already coded a helm chart for stateful single container softwares […]

Categories
Infrastructure Snippets

Helm in a kops cluster with RBAC

I created a K8S cluster on AWS with kops. I ran helm init to install tiller in the cluster. I ran helm list  to see if it worked. I got this: Error: configmaps is forbidden: User “system:serviceaccount:kube-system:default” \ cannot list configmaps in the namespace “kube-system” That sucked. And google proved … reluctant. What I could […]

Categories
CICD Puppet Snippets

GitLab spot runners & Puppet

We are on AWS with GitLab. For ease of use, and because our build hosts degenerate for some reason (network issues), we decided to use spot instances with GitLab. The journey was all but easy. Here’s why. GitLab Runner configuration complaints First: The process To configure GitLab runner, you have to … install GitLab, write […]

Categories
Snippets

Ugly ligatures in Linux

Unfortunately boohomil went off grid. I still haven’t replicated his config fully. And it still sucks. One more step was fixing those super-ugly ligatures in Linux. Works at least in LibreOffice (just restart the app to see changes).

Categories
Snippets

crontab and nano

Ever used update-alternatives to switch everything to vim and … crontab -e still used nano? Well, I had this. I found the answer: select-editor