Browse Categories & Tags →

First impressions, Vim is cool (setup)

I lied to you That’s not my first test run, I’ve installe neovim in 2024 and got discouraged by the setup and by the fact that the basic movements (even hjkl) were completely foreign to my hands (addin 2 new layers of stuff on top of the most basic thing ever, typing, seemed somewhat useless and pretty discouraging since I could feel the friction between toughts and my hands executing actions). Then I started digging on ergo/split keyboards and typing hand placement and got deep into that rabbit hole. ...

Vim Journey1/1

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). ...

Healthcheck.io setup for Home Assistant

Go to healthcheck.io and configure your first project and sensor. After you get your first key you can start implementation. On linux hosts it’s easier to embed that into cron but in home assistant there’s multiple options. You could either create a rest command in your configuration.yaml and call it via a timed automation (every x minutes, the one you’ve configured in the healthcheck dashboard). # Example configuration.yaml entry rest_command: healthcheck: url: "https://hc-ping.com/{your-key}" Or you could add a cron job via the terminal (by running crontab -e and putting the following line inside): */5* \* \* * curl -fsS -m 10 --retry 5 -o /dev/null https://hc-ping.com/{your-key} ...

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”. ...

Draft safe repo structure for Hugo

Objective: create a hugo website that hides drafts well and that still supports contributions via github issues. Disclaimer: Since the creation of this post I’ve moved to a cms to handle posting blogposts (just to aid writing with the smartphone). But the main principle of private repo that pushes changes to the public facing one to better support gihub contribution is still active and I still suggest you to implement it. ...