CastorisCausa

Personal blog and hacks by Raymundo Cassani

Often, there is the need of generating a random RGB color for LEDs. The most common approach is to obtain a random value between 0 and 1 (or 0 and 255) for the Red, Green and Blue channels. RGB cube This approach, however, leads to dark and light colors which …

More a side project than a need, I wanted to control in Linux the fan modes (the relationship between temperature and fan speed) in my 2020 Gigabyte AORUS 15G KB, it should apply to similar models. The code for this project can be found in: https://github.com/rcassani/p37-ec-aorus15g …

Git hook at changing branches

Updated: The post-checkout hook is also invoked when doing git rebase. See more details below. Often when working on experimental Git branches, it is necessary to modify files outside of the Git repository when we change branches to properly test some of the new features. An example of this type …

Updated: After receiving feedback on this post, I updated this post by adding at the end a similar map but using the driving times, rather than the Euclidean distances. Interactive maps: Minimum linear distance to a Costco and Minimum driving time to a Costco Once clarified the different meanings of …

After many tries, I finally found a good set of steps to install Adobe Acrobat Reader DC in my Linux computer. Status   Features       ✅ Form filling     ✅ Comment tools     ✅ Sticky notes     ✅ Printing     ❌ Signature Setup Arch Linux (up to May 2022)* Wine-stable 7.0 *The same configuration for Wine, winetricks and fonts should …

A tale of too (many) Montreal

Updated: The content of this post was featured in MTL Blog, and prompted an exciting discussion on r/montreal. Lastly, check this awesome video to know more on why it's important to know the terms that Montreal can make reference, as they can be used to mislead in important socioeconomic …