RSSAmplifier

Blog

LightningWright's Blog

lightningwright.netRSS feed ↗7 posts

Latest posts

Riaño

Riaño is a very special place to be thanks to its beautiful hills, impressive mountains, and, of course, the water reservoir. Despite its beauty, it has a darker past due to the forced construction of the reservoir in 1987 that flooded nine towns in the valley, including the old town of Riaño. The construction involved violence in response to the locals' tenacious opposition. One of the…

Defending your website against XSS - Policies

Cross-Site Scripting (XSS) is a type of attack where malicious code is injected into a website and executed on the visitor's browser. Code injection was the third most widespread category of vulnerabilities in web applications in 2021. 1 It usually follows this pattern: The attacker crafts malicious HTML tags or JavaScript code. The attacker injects the code into any input the website has.…

Font optimization to make an ultra lightweight website

Weeks ago, I discovered the 512 KB Club , a group of websites focused on performance with a very small footprint. Browsing the site, I learned about the three teams (green, blue, and orange) into which websites are split based on their size. I wanted this blog to fit in the tiniest group of all: The Green Team (for websites with less than 100 KB). Analyzing the size of all the elements that make…

Tembleque

While looking for places to see the Perseid meteor shower with a good friend of mine, I stumbled upon this spot near Tembleque. When you visit Castilla-La Mancha, you expect to see some amazing windmills with wooden blades so large they made the ingenious Don Quixote mistake them for giants. In reality, they are not as big as their cousins from the wind farm in the background, but for sure, they…

Improving Pacman cache using Pacoloco

Since I set up the NGINX pacman cache proxy for my local network, I've been enjoying faster downloads overall. However, when an upstream mirror had availability problems, NGINX did not automatically switch to an alternative mirror, causing timeouts during an update. Of course, this could be solved, but I preferred keeping the NGINX config file as simple as possible because its main purpose is…

Dynamic reverse proxy Pacman cache using NGINX

Arch Linux is a rolling release distribution. Almost every day there are updates available including kernel updates, "The nVidia proprietary blob", etc... These packages are huge and even with a very fast internet connection they take a lot of bandwidth and resources from Arch Linux Tier 2 mirrors. Doing some system maintenance and reading the Wiki: pacman/Tips and tricks I found a section…

Retroarch Save Data Management with Git

A few days ago I lost half the progress in The Legend Of Zelda: The Minish Cap due to an error while checking an old save state. Let’s say I was on point B (almost at the end of the game) and I wanted to check something from point A (50% of the game). To do so, I restored that save and when I finished, I pressed the rewind button on the emulator to undo the changes. After that, I saw I was back on…