Skip to content

Instantly share code, notes, and snippets.

@stuzenz
stuzenz / devenv.lock
Created April 28, 2025 22:07
Files for a bug reported on `devenv update` not updating
{
"nodes": {
"devenv": {
"locked": {
"dir": "src/modules",
"lastModified": 1745750098,
"owner": "cachix",
"repo": "devenv",
"rev": "312f0eb723d9b2a1539f175bca9f11f1e4f0a673",
"type": "github"

https://pve.proxmox.com/wiki/PCI_Passthrough

  • check this

'Legacy boot' or CSM: For GPU passthrough it can help to disable this, but keep in mind that PVE has to be installed in UEFI mode, as it will not boot in BIOS mode without this enabled. The reason for disabling this is that it avoids legacy VGA initialization of installed GPUs, making them able to be re-initialized later, as required for passthrough. Most useful when trying to use passthrough in single GPU systems.

Important to follow this

https://forum.proxmox.com/threads/gpu-passthrough-with-rtx-3090-doesnt-work-dmar-errors.120677/

@stuzenz
stuzenz / postmarketos-preparation-for-install-on-oneplus6.md
Last active May 22, 2023 19:44
PostmarketOS preparation guide for installing on a Oneplus 6 (128GB + 8GB ram)

postmarketOS preparation guide for oneplus 6

PLEASE NOTE: THIS IS A WORK IN PROGRESS AND BEING ITERATIVELY UPDATED AS I LEARN MORE ON HOW POSTMARKETOS CAN BE INSTALLED AND HANGS TOGETHER WITH THE TOOLING AND PARTITIONS FOR DUAL BOOTING ON ONEPLUS6 (22 MAY 2023)

I am writing this tutorial up as someone who is comfortable in Linux, but too old to have been playing with jailbreaking phones in the last couple of decades. To that end, being a little uncomfortable with the tooling around jailbreaking (and assuming others might be too), I decided to focus a tutorial on the preliminary process before handing over to the postmarketOS wiki for the excellent documentation they have.

This post covers areas where I had problems or questions that you may also have along the process of getting a working oneplus6 phone in phosh or gnome-mobile-shell

  • Decision - do I install phosh or gnome-shell on mobile?
  • Start with phosh
@stuzenz
stuzenz / default.nix
Created November 17, 2022 18:28
python virtual env with nix-shell
with import <nixpkgs> { };
let
pythonPackages = python3Packages;
in pkgs.mkShell rec {
name = "impurePythonEnv";
venvDir = "./.venv";
buildInputs = [
# A Python interpreter including the 'venv' module is required to bootstrap
# the environment.
@stuzenz
stuzenz / python snippets.py
Last active August 21, 2022 00:14
python snippets.py
# This is just a test snippet
import re