Lorenzo's Blog About me

Latest blog posts about Today I Learned

Handling Secrets should not be complicated: Mozilla SOPS

On: 2022-11-30 - Reading Time: 4 Minutes

Managing secrets in Git repositories has been one of the biggest issues when I write code. I have used multiple solutions based on the complexity and how many things I have to do in case of leaks. I was looking for a solution that would work and be good enough for my simple Ansible Playbooks, and I stumbled upon the Mozilla SOPS: something that makes handling secrets not complicated when working alone on simple projects.

Continue reading...

How to prevent your Mac from sleeping in a Makefile

On: 2022-08-12 - Reading Time: 1 Minutes

Often I find myself using third-party software like Caffeine or Amphetamine to keep my Mac awake while running some specific commands. Sometimes it is because I am running backups. Sometimes it is because I am compiling something. I found out that macOS comes pre-installed with caffeinete command… this post is about how to integrate it in your Makefile so that running any command there will prevent your Mac from sleeping!

Continue reading...

My Hugo blog now is fast and light

On: 2022-01-31 - Reading Time: 5 Minutes

This blog post is about what I have changed in my blog and website to make it faster. Recently, I have traveled with a bad airplane company that delayed my luggage. In the hope of getting my belongings back with me, I tried to use their website and support pages, and I was frustrated every time. The primary source of frustration was the website speed. So I decided to spend most of the time without my luggage (around five days), trying to use best practices to improve my website and blog, making my Hugo blog faster and way lighter than before.

Continue reading...

I am running ZeroNet in background on my Mac

On: 2015-10-03 - Reading Time: 1 Minutes

Since when I was little, I always loved peer-to-peer technologies… I even tried to create a GNU/Linux distribution based on that. .. but recently I have discovered a brilliant project that is combining the power of asynchronous cryptography, using Bitcoin private and public keys, with BitTorrent technology. This project is called ZeroNet and it is a new and interesting way to provide websites and real-time services in a p2p network.

Continue reading...

How to use Cache Headers to speed up your website with Django and CloudFlare

On: 2015-02-02 - Reading Time: 2 Minutes

Since I started working at bigger startups, like MinbilDinbil, I had to face the problem of providing pages to a larger amount of users every day. For this reason, it is really important to use a CDN service like CloudFlare, in order to provide a good user experience on our website: we don’t want our clients wait too much to load the homepage! How do we do that? The author of GNU grep once said:

Continue reading...