tag: scripts

Win Run Aliases

20 Mar, 2019 - 1 minutes
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.

ipset and Cloudflare

9 Sep, 2018 - 1 minutes
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 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 #!

My take on GoHugo and Github.io mirroring

6 Sep, 2018 - 3 minutes
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.