Skip to content

Instantly share code, notes, and snippets.

View ulidtko's full-sized avatar
💬
Organically produced code, hand-written no AI, minimal carbon footprint.

Maxim Ivanov ulidtko

💬
Organically produced code, hand-written no AI, minimal carbon footprint.
View GitHub Profile
@ulidtko
ulidtko / README.md
Last active February 16, 2024 15:32

Mini-repro for SO question about weird TypeScript error message involving contravariance.

Steps

  • git clone [email protected]:408b45c4e7b126fb7c28c69140604546.git test && cd test
  • npm ci
  • npm run build
@ulidtko
ulidtko / LibModule.hs
Last active March 12, 2024 12:30
Cabal#9784 minimized repro case
module LibModule where
greeting = "=== Hello, Cabal! === Module Main speaking ~~~"
@ulidtko
ulidtko / Foo.hs
Last active May 3, 2024 07:39
Mini-repro of a bug in tasty-discover
module Foo where
test_Foo = undefined
import dataclasses
import datetime
import re
import socket
import socketserver
import time
class config:
SOCKET_TIMEOUT = 10
#!/usr/bin/env python3
"""
Quote stdin line containing the Nth character, in absolute offset,
counting each newline as a character too.
Inspired by https://stackoverflow.com/a/79399803/531179
In the name José João in this file, accents are on offsets +210 and on +214.
"""
@ulidtko
ulidtko / AH-license-decrypt
Created March 31, 2025 17:40
License file cryptor for AntennaHouse Formatter
#!/usr/bin/env python
"""
License file (de)cryptor for AntennaHouse Formatter https://www.antennahouse.com/formatter-v7
"""
import argparse
import itertools
import struct
import sys
@ulidtko
ulidtko / jenkins-plugins-compat.py
Created April 22, 2025 20:53
List plugins compatible with the given jenkins-core
#!/usr/bin/env python
"""
To get installed plugins list, open Script Console on /script, and run:
def pluginList = new ArrayList(Jenkins.instance.pluginManager.plugins)
pluginList.sort { it.getShortName() }.each{
plugin ->
println ("${plugin.getShortName()}:${plugin.getVersion()} -- ${plugin.getDisplayName()}")
}