This is perhaps an unorthodox way to check if a file contains specific text, but it does seem to be the simplest and mostly commonly recommended on Ansible forums. The…
Ansible – check if file contains text
Train SpamAssassin SPAM with .eml file
SpamAssassin has a neat tool called sa-learn which allows you train SpamAssassin with various files as to what it identifies as SPAM and HAM (not SPAM). Assume you have an…
How to setup Nginx reverse proxy in Docker on Ubuntu 22.04
If you have multiple services running internally, and don’t have public IP’s (or don’t want) to expose these services, a reverse proxy can come in handy. A reverse proxy can…
Screen sharing not working Discord Ubuntu 22.04 – Disable Wayland
A bug I noticed with Wayland enabled on Ubuntu 22.04 caused Discord screen sharing to show as a blank black screen. To resolve this you need to disable Wayland. To…
Specify Ansible Python interpreter on Task/Host
Sometimes setting a global Python Interpreter isn’t ideal as some hosts and tasks may require different interpreters. Specify Python Interpreter on Task level This will select the most appropriate Python…
Improve battery life/performance on Ubuntu with TLP
TLP is a very nifty piece of software to improve battery life on Linux laptops, and it comes with external kernel modules for Lenovo ThinkPad’s which further improve battery life….
Bitwarden CLI – DSO_load:could not load the shared library solution
This a problem with the OpenSSL library on Ubuntu 22.04. To solve this, edit the openssl.cnf file as follows: Comment out the following line: Re-run Bitwarden CLI or any other…
Find compromised email accounts Exim/cPanel
Generally, an email account which has been logged into multiple times, will point to one which has been compromised. To identify the number of logins to all email accounts on…
How to update Snap packages Ubuntu
To list all available updates to Snap packages on Ubuntu, run the following command: To update a specific package, run the following command: To update all Snap packages, run the…
Incremental ZFS send/recv
Should you need to move a ZFS disk from one ZFS pool to another with minimal downtime, you can do so using ZFS snapshots and sending the data/disk from the…