Nix extravaganza with the new ThinkPad T14 Gen 5 (AMD)

I did it again… I installed NixOS as my host Operating System. “Didn’t you already try that in the past? Are you crazy?” You are right, I had previous track experience and it was not great. I really liked the idea of having a reproducible operating systems, ideally with modular components I can tweak based on the machine or the current situation. My first run I quickly grew tired of the nix functional programming language....

28 July 2024 · 12 min · 2510 words · Jacopo Scannella

Win Run Aliases

Today I was looking for a simple and efficient way to add aliases to the Windows Run dialog box (the one you can open using Win+R). Turns out my preferred way to do so is editing the registry, adding a key under HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths ending with .exe. The Default value represents the exe you want to run, you can also add a subkey string value to the key with the name Path to specify the path where you want to run your alias....

20 March 2019 · 1 min · 123 words · Jacopo Scannella

ipset and Cloudflare

While setting up the server for this blog I stumbled across the problem to whitelist cloudflare’s ip ranges in iptables. After a quick search I realized a smart and efficient way to do this is using ipset. Thus I created a script to download the latest Cloudfare’s IPv4 ranges and create an ipset list out of it. ipset-cloudflare.sh #!/bin/bash # Created by antipatico (antipatico.ml) # Download the latest cloudflare's IPv4 ranges and create an ipset # named "cloudflare" you can later use in your iptables rules....

9 September 2018 · 1 min · 146 words · Jacopo Scannella

My take on GoHugo and Github.io mirroring

In these days I worked on setting up a mirror for this blog on github.io, in this post I’ll explain how I set it up. Repository everything Log in on your github.com account and create these repositories: yourwebsite.com: this will contain your whole hugo directory and it will contain the config.toml file with the domain yourwebsite.com. yourgithubname.github.io: this will be the mirror itself, it will be the public/ directory inside your hugo dir, generated with the github....

6 September 2018 · 3 min · 489 words · Jacopo Scannella