FFMPEG: Remux MTS files to MP4

I sometimes receive .mts video files made with Sony videocameras. These don’t play well on web video players or iOS devices. This is how, for most models, you can remux them to mp4 without converting and thus without losing quality and waiting a long time for the conversion to complete.

IMAP: How to migrate mailboxes using imapsync

This guide assumes you are using Debian Buster sudo apt install git rcs make makepasswd cpanminus sudo apt install libauthen-ntlm-perl \ libclass-load-perl libcrypt-ssleay-perl liburi-perl \ libdata-uniqid-perl libdigest-hmac-perl libdist-checkconflicts-perl \ libfile-copy-recursive-perl libio-compress-perl libio-socket-inet6-perl \ libio-socket-ssl-perl libio-tee-perl libmail-imapclient-perl \ libmodule-scandeps-perl libnet-ssleay-perl libpar-packer-perl \ libreadonly-perl libsys-meminfo-perl libterm-readkey-perl \ libtest-fatal-perl libtest-mock-guard-perl libtest-pod-perl \ libtest-requires-perl libtest-simple-perl libunicode-string-perl \ libfile-tail-perl libcrypt-openssl-rsa-perl libjson-webtoken-perl \ libregexp-common-perl libtest-mockobject-perl libtest-deep-perl \ libcgi-pm-perl liblwp-useragent-chicaching-perl libencode-imaputf7-perl sudo apt install libssl-dev sudo apt install apt-file git clone https://github.

Debian: How to add an external repository to unattended upgrades

In this post, we’ll be using Rspamd as an example. ls /var/lib/apt/lists/ look for repository ending with _InRelease e.g.: rspamd: cat /var/lib/apt/lists/rspamd.com_apt-stable_dists_stretch_InRelease result: [...] Origin: Rspamd Label: Rspamd Codename: stretch Date: Wed, 13 Dec 2017 21:02:14 UTC Architectures: amd64 i386 Components: main Description: Apt repository for rspamd stable builds [.

Debian: How to build & install a recent OpenSMTPd release on Buster with LibreSSL

Build & Install LibreSSL apt update apt install git nano wget nano /etc/apt/sources.list Make sure deb-src is enabled deb-src buster main apt update apt build-dep openssl git clone https://github.

Git: Save credentials for pushing over https on macOS

Setup existing folder as repo Initialise repository For my personal git server, I like to use HTTPS instead of SSH, because it runs behind a reverse proxy without SSH ports exposed to the internet.

Certbot: How to easily remove a domain

Manually: sudo rm -rf /etc/letsencrypt/archive/ sudo rm -rf /etc/letsencrypt/live/ sudo rm -rf /etc/letsencrypt/renewal/ All at once: sudo rm -rf /etc/letsencrypt/{archive,live,renewal}/{,.conf}

How to build a website using Hugo static site generator

This website is built with the Hugo static site generator. Install On macOS brew install hugo Create deployment script On local computer cd $HUGO_REPO cat <<EOF >> ./ #!/bin/sh USER=pieter HOST=host.