Remove a video stream from an MP4

My kids figured out pretty early how to capture videos and pictures on our tablets. I ran across a video recently that was taking up almost 2 GB of space in my library. I played it back to find that my toddler (at the time) had captured an hour-long video, but had left the tablet on the ground the entire time, camera facing down. The entire video was black, but the audio was pretty adorable....

January 16, 2023

Back up macOS Photos with Restic

Restic is a wonderfully simple backup program. I’ve used it on my Linux machines for a while. I recently decided to use it on macOS as well. restic --repo /Volumes/restic-repo --verbose backup ~/Documents ~/Pictures If you run this on macOS, you might get an error like the following from restic. The error indicates that restic can’t open the Photos library folder. can not obtain extended attribute com.apple.fileprovider.ignore#P for /Users/blachniet/Pictures/Photos Library.photoslibrary: can not obtain extended attribute com....

December 10, 2022

Obtain a wildcard Let's Encrypt certificate

Use the manual plugin and DNS challenge in certbot to obtain a wildcard Let’s Encrypt TLS certificate. Subdomains only. You can only use this wildcard certificate on subdomains (e.g. www.example.com, mail.example.com). You cannot use it for the apex domain (e.g. example.com). Obtain a separate certificate for the apex domain. $ certbot certonly --manual --preferred-challenges dns -d '*.example.com' Create the TXT record as instructed by certbot. Before continuing, use dig...

September 21, 2021

Use a graphical diff tool with Fossil

You can configure Fossil’s gdiff command to launch your favorite graphical diff tool. Below are examples configuring some popular diff tools. All the examples below include the --global option. If you want to configure this setting only for the current repository, omit that option. Beyond Compare: $ fossil settings --global gdiff 'bcomp' Git: $ fossil settings --global gdiff 'code --diff --wait' vimdiff: $ fossil settings --global gdiff 'vimdiff' Visual Studio Code:...

September 18, 2021

Resolve Fossil login failures after changing your password

After changing your password on a remote Fossil repository, you will receive login failures when trying to sync your local repository. $ fossil sync Sync with https://blachniet@example.com/test Round-trips: 1 Artifacts sent: 0 received: 0 Error: login failed Round-trips: 1 Artifacts sent: 0 received: 0 Sync done, sent: 420 received: 285 ip: 192.168.0.10 $ fossil commit Autosync: https://blachniet@example.com/test Round-trips: 1 Artifacts sent: 0 received: 0 Error: login failed Round-trips: 1 Artifacts sent: 0 received: 0 Pull done, sent: 446 received: 287 ip: 192....

September 6, 2021