Skip to content

Instantly share code, notes, and snippets.

View bjmc's full-sized avatar

Brendan McCollam bjmc

View GitHub Profile
@Johanmyst
Johanmyst / README.md
Last active October 24, 2026 00:21
Modern Ubuntu on Android

Modern Ubuntu on Android

Run a full, modern Ubuntu rootfs natively on any rooted Android device — no emulation, no proot hacks, with true ext4 mounting.

MTE is optional: only needed if you specifically want to test under native ARM Memory Tagging Extension (MTE).

Not Ubuntu-specific: this approach works with essentially any Linux distro rootfs (e.g. Debian, Alpine, Arch, Fedora), as long as you have a compatible arm64 userspace. Ubuntu is just the concrete example used below.

@bmaupin
bmaupin / open-source-sso.md
Last active September 28, 2026 09:04
Comparison of some open-source SSO implementations

⚠️ This is not maintained. Feel free to check comments and/or forks for more current options.

Background

This was created years ago; at the time I'd been a Shibboleth admin for nearly a decade but we needed something that could handle OIDC/OAuth and that explicitly supported OpenJDK. After a lot of investigation, I really liked Keycloak/Red Hat Single Sign-On. More details here: Gluu vs keycloack vs wso2 identity management

Comparison

(Items in bold indicate possible concerns)

@alexcasalboni
alexcasalboni / aws-lambda-static-type-checker.md
Last active December 5, 2025 19:15
AWS Lambda Static Type Checker Example (Python3)

How to use Python3 Type Hints in AWS Lambda

TL;DR

Static Type Checkers help you find simple (but subtle) bugs in your Python code. Check out lambda_types.py and incrementally improve your code base and development/debugging experience with type hints.

Your Lambda Function code will go from this:

@markc
markc / userChrome.css
Created March 1, 2015 05:47
Thunderbird userChrome.css for HiDPI screen
/* userChrome.css 20090601 (C) Mark Constable <markc@renta.net> (AGPL-3.0) */
/* Thunderbird support for wide view on a HiDPI screen (Kubuntu DPI 288) */
/* smaller folder tree fontsize */
#folderTree > treechildren {
font-size: 24px !important;
}
/* header at the top of the message content */
#msgHeaderView {
def generate_RSA(bits=2048):
'''
Generate an RSA keypair with an exponent of 65537 in PEM format
param: bits The key length in bits
Return private key and public key
'''
from M2Crypto import RSA, BIO
new_key = RSA.gen_key(bits, 65537)
memory = BIO.MemoryBuffer()
new_key.save_key_bio(memory, cipher=None)