Skip to content

Instantly share code, notes, and snippets.

@seblin
seblin / bits.py
Last active October 2, 2018 14:39
#!/usr/bin/env python3
class Bits(object):
def __init__(self, value=0):
"""
Build a new Bits()-object based on the given value.
Examples:
Bits(0b1001)
Bits(42)
@jauderho
jauderho / gist:6b7d42030e264a135450ecc0ba521bd8
Last active November 14, 2024 20:42
HOWTO: Upgrade Raspberry Pi OS from Bullseye to Bookworm
### WARNING: READ CAREFULLY BEFORE ATTEMPTING ###
#
# Officially, this is not recommended. YMMV
# https://www.raspberrypi.com/news/bookworm-the-new-version-of-raspberry-pi-os/
#
# This mostly works if you are on 64bit. You are on your own if you are on 32bit or mixed 64/32bit
#
# Credit to anfractuosity and fgimenezm for figuring out additional details for kernels
#