How to quit Vim

If you've ever accidentally opened up Vim, you may know how difficult it is to exit out if you have no experience with it. Luckily, there are many solutions, as documented in this GitHub repository. Print this out and pin it on your wall and you'll no longer have to fear being stuck in Vim until the heat death of the universe (or until you restart your computer, whichever comes first).

Continue reading

Nextcloud 17 on FreeBSD 12

Nextcloud is a free and open source cloud storage application along the lines of Dropbox or OneDrive but with an emphasis on keeping your data completely under your own control. It's a PHP application, which means it should run anywhere PHP does, though the official Nextcloud instructions only cover Windows (via virtual machine) and Linux (specifically, Ubuntu and CentOS). If you're in the mood to try something a little different, the traditional LAMP stack (Linux, Apache, MySQL/MariaDB, and PHP) can easily be adapted for FreeBSD, making it a FAMP stack. This tutorial uses Apache for the web server and MariaDB for the database server, though other options such as Nginx and PostgreSQL are available.

Continue reading

WSL home directory

The Windows Subsystem for Linux (WSL) is a wonderful thing. Being able to open up a terminal prompt and compile some C code without needing to deal with MinGW or a booting up a full-blown virtual machine is awesome. But how do you access the home folder from Windows Explorer? You could drill down the installation path of the WSL distribution in question, but if you're running Windows 10 version 1903, there's an easier way.

Continue reading