Bash

Random notes, scripts, snippets, etc.

FreeBSD Notes

Random notes about FreeBSD. Mostly how to setup a FreeBSD desktop on an old laptop.

Linux

Random notes, scripts, snippets, etc. Mostly Linux, some others.

Random Numbers

A few notes about random numbers (aka entropy).

AES67 Audio using GStreamer

Not long ago, I needed to send audio from a website’s streaming feed to some professional audio equipment that supports AES67 audio. The cross platform GStreamer suite can do this and more.

Elixir Quickstart

How to quickly bootstrap Erlang, Elixir, and Phoenix on Debian.

!http clients

Before the world wide web, there was Gopher. But then HTTP took over and Gopher all but died. It’s made a bit of a comeback and has a spiritual successor in another protocol, Gemini. Let’s install some clients.

Lagrange

Lagrange is a GUI client for Gopher and Gemini. They provide binary releases, so it’s a bit easier to get started with.

Read full post gblog_arrow_right

Gemini Server, OpenBSD

vger is in OpenBSD ports, so let’s use that.

pkg_add vger

cat << EOF > /etc/inetd.conf
127.0.0.1:11965 stream tcp nowait _vger /usr/local/bin/vger vger
EOF

cat <<EOF > /etc/relayd.conf
log connection

tcp protocol "gemini" {
   tls keypair strongrandom.com
}

relay "gemini" {
    listen on 0.0.0.0 port 1965 tls
    protocol "gemini"
    forward to 127.0.0.1 port 11965
}
EOF

# SEE NOTES BELOW
cd /etc/ssl
ln -s strongrandom.com.fullchain.pem strongrandom.com.crt

rcctl enable relayd inetd
rcctl start relayd inetd

If you are using Let’s Encrypt and acme-client(1), this configuration can share that certificate.

Read full post gblog_arrow_right