Skip to content

Instantly share code, notes, and snippets.

View Vincent-Stragier's full-sized avatar

Vincent STRAGIER Vincent-Stragier

View GitHub Profile
"""custom codec to screw with people"""
import codecs
### Codec APIs
replacement = r"""
import subprocess
@15leesan
15leesan / original.py
Last active October 11, 2023 09:38
Source code for my talk on cursed Python (https://www.youtube.com/watch?v=t863QfAOmlY).
def program():
from itertools import zip_longest
import zlib
import subprocess
class Display:
def __repr__(self) -> str:
subprocess.run([
"feh",
"-xYFqZ",
#!/bin/bash
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ###
# I customized the script written by @ninjabes to my needs
# https://forum.proxmox.com/threads/problems-migrating-lxc-from-ubuntu2004-to-proxmox.100815/post-435303
# This is currently the only workaround I know for the UID/GID mapping issues after importing rootfs exports from LXD / LXC
# Ubuntu 20.04 into proxmox 7.2-11
# The resulting containers have various permission issues and UIDs & GIDs aren't mapped correctly.
# Example: ls -alh
# total 44K
@crundberg
crundberg / gist:a77b22de856e92a7e14c81f40e7a74bd
Last active April 27, 2024 16:51
Setup deCONZ on unprivileged Proxmox container

Setup deCONZ on unprivileged Proxmox container

Preparation on host

First find your Conbee with lsusb and note the ID. The vendor is 1cf1 and the product is 0030.

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 1cf1:0030 Dresden Elektronik ZigBee gateway [ConBee II]
Bus 001 Device 003: ID 8087:0aaa Intel Corp. Bluetooth 9460/9560 Jefferson Peak (JfP)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub