Skip to content

Instantly share code, notes, and snippets.

@AldoMX
AldoMX / banamex_msi.js
Created May 18, 2021 14:04
Copia MSI de los Smart Statement de Banamex.
setTimeout(
() =>
navigator.clipboard.writeText(
[...document.getElementById("tablaMovimientos").rows]
.filter(({ id, children: [, { innerText: description }] }) => id.startsWith("idexpand") && /\d{3}\s\d{3}\s*$/.test(description))
.map(({ children: [, { innerText: description }, { innerText: amount }] }) => [description, amount].join("\t"))
.join("\n")
),
1000
);
@AldoMX
AldoMX / DisplayProductID-db7
Last active June 6, 2021 20:56
Sceptre C35 Override
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DisplayProductName</key>
<string>Sceptre C355W-3440UN</string>
<key>DisplayProductID</key>
<integer>3511</integer>
<key>DisplayVendorID</key>
<integer>19988</integer>
@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 / 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) {
@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