Skip to content

Instantly share code, notes, and snippets.

@AldoMX
AldoMX / RemoveOneDriveDropboxNavigationPane.reg
Created December 26, 2016 07:28
Remove OneDrive and Dropbox from the Navigation Pane in Windows 10
Windows Registry Editor Version 5.00
; Remove OneDrive
[HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}]
"System.IsPinnedToNameSpaceTree"=dword:00000000
; Remove Dropbox
[HKEY_CLASSES_ROOT\CLSID\{E31EA727-12ED-4702-820C-4B6445F28E1A}]
"System.IsPinnedToNamespaceTree"=dword:00000000
@AldoMX
AldoMX / MX_Holidays.toml
Last active January 1, 2023 03:13
Días de los años 2000 a 2023 en que las entidades financieras sujetas a la supervisión de la Comisión Nacional Bancaria y de Valores (México) deberán cerrar sus puertas y suspender operaciones.
# Días de los años 2000 a 2023 en que las entidades financieras sujetas a la
# supervisión de la Comisión Nacional Bancaria y de Valores (México) deberán
# cerrar sus puertas y suspender operaciones.
#
# Archivo en formato TOML creado por Aldo Fregoso, publicado como obra de
# dominio público y ofrecido sin garantía ni soporte de ningún tipo.
#
# ===
#
# English: Mexico’s Bank Holidays from 2000 to 2023.
@AldoMX
AldoMX / easterAlgos.js
Last active January 3, 2023 15:29
JavaScript implementation of Easter Algorithms
// Algorithm by Tom O’Beirne
// (1961) Puzzles and Paradoxes. New Scientist, No. 228, p. 829, Table 1
// https://books.google.com/books?id=zfzhCoOHurwC&pg=PA829
//
// Implementation in JavaScript by Aldo Fregoso.
// Released under public domain without any kind of warranty or support.
//
function oBeirnesEasterAlgo(x) {
assert(x != 0, "Year zero does not exist in the Anno Domini (AD) calendar year system.");
if (x <= 1582) {

Installing Windows 10 to an external drive without a Windows host

The long story

We were talking at the office about having a LAN Party and playing some old school games like Age of Empires and Starcraft. The issue is that I have Linux installed. I didn't want to ruin everyone else's fun by having random crashes, out-of-sync errors and similar stuff using Wine, and I didn't want to do the dual boot dance, so I figured out that the best option was to install Windows to an external drive.

@AldoMX
AldoMX / Cargo.toml
Created November 13, 2022 22:19
How I built a 'Hello World' in Rust that works for Windows XP [2022]
[package]
name = "hello_world"
version = "0.1.0"
edition = "2021"
[profile.dev]
panic = "abort"
[profile.release]
lto = true
@AldoMX
AldoMX / curl.md
Last active January 4, 2024 01:30
cURL flags I use the most

cURL flags I use the most

Context

I always see commands like curl -LsS https://www.example.com over the internet, I never remember what does each flag do, and man curl is overwhelming.

This is the list of the flags I use the most.

Flags