Categoria: Snippets

  • Terminal recording with Asciinema

    Terminal recording with Asciinema

    Recently, I had to record a little demo of cd-surfer: A simple TUI file explorer, a terminal app I wrote. Here is the result: I used Asciinema to record to a .cast file, and Gifcast to convert the .cast file into a .gif file. Asciinema is the top result when you google “terminal recording”. Despite […]

  • Compiling rtmidi with CGO / Golang

    Compiling rtmidi with CGO / Golang

    In this post I write a step-by-step guide on how to build the gomidi library for Go, using the rtmidi driver for windows. The process was very painful in my machine, when I tried to build it using an old installation of MinGW and TDM-GCC. But if you are starting from scratch, you should have […]

  • Nginx: Proxy, basic auth and URI to Port

    Nginx: Proxy, basic auth and URI to Port

    Objectives I have a Digital Ocean droplet, and wanted to OS Ubuntu 20.04 on a Digital Ocean droplet. DNS Config I created the following A records pointing to the droplet static IP: Nginx install Basically: More details here Nginx configuration The basic reverse proxy configuration was made with the help of this online nginx config […]