Skip to content

Instantly share code, notes, and snippets.

@Roy-Orbison
Roy-Orbison / README.md
Last active December 18, 2025 06:59
Shell script to check for latest version of Mattermost Server, including patch releases, optionally filtered to ESR. Alternate, improved Python version as well.

Check for Mattermost updates

Mattermost [still won't alert admins][0] properly to security patch releases, and does not care whether you prefer the stability of ESR versions. It tells admins that fully patched and supported systems are a Problem, in bold red type on the Workspace Optimisation page of the System Console.

Here are a couple of scripts to run with cron, which actively alert you to updates. The shell script is simpler and assumes you want to be on the very latest version, or latest ESR version. The Python version lists all available updates and whether your major + minor version is currently supported.

Call one with env vars like so:

@Roy-Orbison
Roy-Orbison / README.md
Last active July 6, 2026 03:10
Install a DCA printer monitoring solution in a VM running Alpine.

EKM Global DCA on Alpine Linux

Assumes you have Alpine set up and running. I use a little VM so the DCA can have the privileges it wants and not interfere with anything else, but you might want to use Docker, etc.

The default installer failed, and when I got it working, the service would not stay up. This is what I did to get it going.

  1. Copy the relevant installer URL from [EKM's updates site][1].
  2. Fetch it.
@Roy-Orbison
Roy-Orbison / acme.sh
Last active April 17, 2026 01:30
Bash completion for acme.sh. Save in /usr/share/bash-completion/completions or similar.
_comp_cmd_acme_sh()
{
local cur prev words cword
_init_completion -n : || return
local commands
commands='
--create-account-key
--create-csr
--create-domain-key