Wordpress mixed content warnings

If you have installed Wordpress behind a proxy AND you are seeing mixed content warnings in your site Then this is for you. We typically install Wordpress in containers running behind Caddy and HAProxy. That works well but there is a gotcha. The Wordpress is_ssl function (in wp-includes/load.php) uses very simple checks to see if a page is being served over https or not. One of the checks is that the port using for the site is 443.
Read On →

Git update

Partial clone of git repository Example of how to clone a single directory from Git repository. $ cd whatdidilearn.today $ git init Initialized empty Git repository in /www/whatdidilearn.today/.git/ # Enable saving of entered credentials $ git config credential.helper store $ git remote add -f origin https://<repository URL> Updating origin Username for 'https://<git server>': Password for 'https://<username@git server>': remote: Enumerating objects: 1100, done. remote: Counting objects: 100% (1100/1100), done. remote: Compressing objects: 100% (661/661), done.
Read On →

Wireguard

This is short introduction to Wireguard by Nick Sweeting from his unofficial (but very useful) Wireguard documentation. WireGuard is a WIP open-source VPN solution written in C by Jason Donenfeld and others, aiming to fix many of the problems that have plagued other modern server-to-server VPN offerings like IPSec/IKEv2, OpenVPN, or L2TP. It shares some similarities with other modern VPN offerings like Tinc and MeshBird, namely good cipher suites and minimal config.
Read On →

LXD Apparmor profile

Errors like this one in kern.log May 11 10:39:01 bits02 kernel: [8890937.799706] audit: type=1400 audit(1557567541.599:29644): apparmor="DENIED" operation="mount" info="failed flags match" error=-13 profile="lxd-bits02-c11_</var/snap/lxd/common/lxd>" name="/run/systemd/unit-root/" pid=5242 comm="(ionclean)" srcname="/" flags="rw, rbind" To remove that error many online resources suggest setting aa_config to unconfined in the container profile. For LXD versions greater than 2.1 that will not work, e.g. # lxc config set bits02-c04 raw.lxc 'lxc.aa_profile= unconfined' Error: Initialize LXC: Failed to load raw.lxc From LXD 2.
Read On →

SQL Server ROWID equivalent

Reproduced from Martin Smith answer on StackOverflow The response was from 2011 but is still valid in SQL Server 2016. Oracle has ROWID pseudocolumn - from the Oracle doc’s: For each row in the database, the ROWID pseudocolumn returns the address of the row. Oracle Database rowid values contain information necessary to locate a row: The data object number of the object The data block in the datafile in which the row resides
Read On →