Lorenzo Gerosa

Welcome! 👋

I write about programming, self-hosting, and 3D printing projects. Explore my latest posts below or search for specific topics.

You are wrong about dark mode.

That’s true You’re probably a programmer, or some kind of tech enthusiast and since 2016 when android introduced dark mode to the world you were hooked. Or if you’re younger you probably got bullied into dark mode by your edgy cool friend that said that light mode is for boomers. Well either way, I was all of those above for some time, but the need of working of computer for 8+ hours a day (both for uni, work and personal projects). ...

This is the superior keyboard language.

The problem Most of the shortcuts made in vim are actually made for the English language. And transferring them to a foreign keyboard makes them, well, kind of dumb (my take anyway). If you’ve ever tried to write code on an Italian keyboard, you know the pain. Want a backslash? That’s AltGr + ù. Curly braces? AltGr + Shift combinations. And the forward slash, which you use constantly in vim for searching, is hiding on Shift + 7. Every single day I was reaching for modifier keys just to type basic programming symbols. ...

Calibrate your slicer settings in this order for perfect prints

In this post we’ll touch upon the order suggested for calibrating your printer (my take anyway). This way, you should have beautiful prints without any defects and possibly with the best aesthetic you can achieve. This will cost you about half of a kilo of filament. Some calibrations don’t need to be redone for different filaments, but my guess would be that you need an additional 100/200g for every filament you want to tune. ...

Fix UPS triggering when running klipper based 3d printer

The problem I have some power outages in my area and we often trip the breaker in my house. I also modded my printer so i lost all the print resume ability of the printer when the AC blips. So i naturally wanted to get an UPS but after buying the cheapest I could get it started beeping on me when heating the whole bed. The premise If you want to follow this guide you just need a Klipper based printer and your small UPS (or even a bigger one that triggers it’s safety features when all printers are going at the same time) ...

Auto domain redirect on Cloudflare - Main domain url shortener

Oh boy did this make me pull some hair. Today we’re going to see how, with a shortened domain, we can redirect every request to our main domain. Preface In my example I’m going to use gerosalorenzo.com, the website you’re visiting right now, and grlo.me, a shortened version that I’ve just bought in the hope of hosting a personal url shortener (not in my homeserver as I wouldn’t want that dependent on my ability to keep my infrastructure up, just like this static website). ...

How to flash UZG-01 PoE Zigbee coordinator firmware

Install the drivers Those are usually pre installed, but you might have to do so manually. Download them here, extract the zip then click install after right clicking on the “silabser.inf” file (these are the instructions for windows). After doing that reboot your pc. Flashing I chose to install XZG but I’m pretty sure it works with the UZG page too. Open one of the links above with a Chrome based browser. Hold down the reset button on the back of the uzg-01 poe. Plug it in a usb port of your pc (still holding the button down), I used a port directly on the motherboard and not one on the front IO, I think it was part of the problem why it wasn’t working. Then, while still keeping the button pressed, press on install and select your device from the dropdown. Press “Install XZG firmware” If you’re only seeing the “Preparing installation” text for 30s or more it probably failed, if it goes to “Erasing data” after a few sec it should be going well. Wait a couple of minutes until it finishes and then you can unplug it Enjoy the new fresh install. ...

Use Gmail to send mail through a custom Cloudflare email address

I’ve made this to avoid paying Google Workspaces (6 a month) or to use and external free service since I have this domain already. Cloudflare Go to email routing, add a destination mail (your primary one that you want to use to control all the others). Setup a custom address that you want to use to sign up to services, in my example it’ll be [email protected]. Gmail Go to the cog wheel in the top right, select all settings and go to “Accounts and imports”. ...

Static IP in Proxmox Docker VM from helper script

I’ve chose to use the Docker VM helper script for Proxmox as it gives me ease of mind to be able to use backups and migrate machines whenever. Also the separation of concerns about different things in my home makes it easier to mantain (I’ve got a different vm for each kind of service, one overall, a 3dprinting one, a cloud/file hosting one so I can make brake stuff in one but not affect all the others). ...