Guillaume Hérail

Ramblings in Frenglish

Recent posts

Jan 17, 2021
Session sharing with tmux One thing I’ve been using forever but even more since I started working from home is tmux session sharing. tmux -S /tmp/shared -S is telling tmux to use the following path as its socket To share it with another user, you’ll need to change the permissions on that socket. The easy solution is just to open it up to everyone: chmod 777 /tmp/shared Though it would be wiser to selectively allow another user to attach your session.
Jan 16, 2021
Full Disk Encryption with Proxmox and ZFS I’ve recently bough a MicroServer Gen 10+ from HP to use as a lab and also as a NAS. I wanted to install Proxmox on it and also use the opportunity to discover ZFS. In the server, I’ve got: 4x 4TB HDD for data storage 2x 256GB NVMes for the root system and also zfs cache/log volumes I used the two NVMe in a standard software RAID 1 and created a RAIDZ2 on the 4 HDD.
Jan 15, 2021
Getting some stats out of this blog Since I started the #100DaysToOffload challenge, I’ve been looking at my logs using goaccess on my terminal. It works well though I wanted to look at alternatives. One obvious solution is Matomo though it felt too complicated for my usage and maybe too intrusive for my taste. I started looking into alternatives and stumbled upon Plausible, an opensource analytics suite that boasts itself as being GDPR compliant and privacy friendly. The metrics it tracks are simple and enough for my usecases, I decided to give it a go.
Jan 14, 2021
Decision Records As you go and progress in your life, you take decisions. These decisions have a context which explains why you took them. Time passes, this context starts to vanish and your memory has a hard time restituting it in the way it was. This is a problem that is common within teams: you take a decision and 12 months later, your team is reevaluating that decision after having lost the context that led it to it.
Jan 13, 2021
Prometheus metrics on Caddy Continuing with my Caddy experimentation, I wanted to get some metrics out of it. Caddy provides metrics out of the box on its admin API: https://localhost:2019/metrics This works well if you have prometheus running on the same server though in my case, prometheus is running on a different VM and on a private network. Caddy will enforce https on every vhost by default. For public domains, it’ll try to get a Let’s Encrypt certificate and for IP addresses and localhost, it’ll use an internal CA to sign certificates that it’ll serve for these.
Jan 12, 2021
Caddy as a reverse proxy to Dendrite I use Dendrite as I experiment with Matrix. It consumes a lot less resources than Synapse though it is in beta and doesn’t support the specification in full. The trade-off suits me. I wanted to try Caddy for a long time and I just did, switching this blog and a few other services to it. The last one to be migrated was Dendrite. The repository gives an example configuration for nginx but not for Caddy.
Jan 11, 2021
Kafka crashed __consumer_offsets compaction Disclaimer: this post is about an ancient ( version of Kafka and the bugs described have since been fixed. I’ve got a (legacy) kafka cluster that is still being used, pending an upgrade that takes a bit more time than expected. This kafka cluster is still used for many workloads, we have plenty of experience with it and it runs flawlessly. Or so that’s what we thought. At some point, we lost a broker.
Jan 10, 2021
Find oldest files in a directory recursively Small post today, just a command. I’ll start posting commands I’ve found useful under the commands tag. Example to find the top 5 oldest files that are named *index recursively in a directory: find /path/to/directory -name '*index' -type f -printf '%T+ %p\n' | sort | head -n 5 – This is day 8/100 of #100DaysToOffLoad!
Jan 9, 2021
WireGuard on your EdgeRouter I use WireGuard as my personal VPN. My dedicated server is my main peer to which I connect my phone, laptop and my router. Setting up WireGuard on Android or Ubuntu is pretty straightforward though it is a bit different on an EdgeRouter from Ubiquiti. The EdgeRouters are running EdgeOS which is a fork of Vyatta, a specialized distribution based on Debian. Vyatta provides a command line interface that resembles the one you can find on a Juniper or Cisco device.
Jan 8, 2021
WhatsApp: what now? WhatsApp started giving an ultimatum to its users: accept that your data is shared with facebook or stop using the app. Having that in mind, what are the alternatives knowing that WhatsApp is ubiquitous, especially in Europe. I’m completely sold to Signal myself but as I discuss the matter with my friends and family, I need to repeat arguments pro and against other platforms. Before going further, I know that this topic can trigger wars as everyone wants to preach for their church.