Skip to content

Instantly share code, notes, and snippets.

View daryltucker's full-sized avatar

Daryl Tucker daryltucker

  • Neo-Retro Group
  • Salem, Or
View GitHub Profile
@daryltucker
daryltucker / ArchLinux_nvidia-open-dkms.md
Last active January 16, 2026 17:40
ArchLinux nvidia-open-dkms 2026 (Do I switch?)

Beware! The NVIDIA 590 Driver...

Replace nvidia-dkms with extra/nvidia-open-dkms?

# [~] 
# daryl@nifflheim $ lspci | grep NVIDIA
01:00.0 VGA compatible controller: NVIDIA Corporation GM206 [GeForce GTX 960] (rev a1)
@daryltucker
daryltucker / 00-Antigravity_Condom_Wrapper_README.md
Last active January 16, 2026 00:13
Antigravity Condom Wrapper

You get the idea...

  1. .bash_profile evaluated once at login, but sets up the non-interactive trap
  2. BASH_ENV forces non-interactive shells to source instead of skip sourcing upon init
  3. You can source the watchguard again at the end of ~/.bashrc to catch interactive-shell

BONUS

@daryltucker
daryltucker / Docker_CDI_NVIDIA_Non-Standard.md
Created December 17, 2025 23:10
NVIDIA Docker Container Runtime CDI w. non-standard NVIDIA Kernel

NVIDIA Docker Container Runtime

nvidia-smi --query-gpu=index,name,uuid,pci.bus_id --format=csv

Enable the Module

sudo modprobe nvidia-uvm
@daryltucker
daryltucker / 470.256.02_DKMS_FIXES_6.12.43.md
Created December 17, 2025 22:57
NVIDIA Kernel 470.256.02 Linux Kernel 6.12.43+deb13-amd64 DKMS Fixes

Patching NVIDIA 470.256.02 for Linux Kernel 6.12 -> 6.13 Transition (Debian 13)

Assuming you have the appropriate patches and had DKMS working...

0001-Fix-conftest-to-ignore-implicit-function-declaration.patch
0002-Fix-conftest-to-use-a-short-wchar_t.patch
0003-Fix-conftest-to-use-nv_drm_gem_vmap-which-has-the-se.patch
nvidia-470xx-fix-gcc-15.patch
kernel-6.10.patch
@daryltucker
daryltucker / Debian_GCC_Versions.txt
Last active November 5, 2025 22:39
Minimum and Maximum Kernel Versions for Debian Distributions w. GCC Versions
squeeze -> gcc 4.6.1 (kernel linux-image-2.6.32-5)
wheezy -> gcc 4.8.4 (kernel linux-image-3.2.78-1)
jessie -> gcc 4.9.2 (kernel linux-image-3.16.56-1)
stretch -> gcc 5.3 (kernel linux-image-4.9.228-1)
buster -> gcc 5.5 (kernel linux-image-4.19.249-1)
bullseye -> gcc 10 (kernel linux-image-5.10.223-1)
bookworm -> gcc 11 (kernel linux-image-6.1.148-1)
trixie -> gcc 12 (kernel linux-image-6.12.43-1)
@daryltucker
daryltucker / .bashrc_tmux_history
Last active October 8, 2025 00:26
Ensure tmux is storing history properly
# Ensure tmux is storing history properly
HISTFILE=~/.bash_history
export HISTCONTROL=ignoredups:erasedups,ignoreboth
if [ -n "$TMUX" ]; then
HISTFILE=$(mktemp)
history -r ~/.bash_history
trap 'history -a ~/.bash_history; rm "$HISTFILE"' EXIT
else
trap 'history -a ~/.bash_history' EXIT
fi
@daryltucker
daryltucker / kmscon_with_btop.mkd
Last active October 2, 2025 15:38
kmscon with btop

kmscon w. btop

Create btopuser

sudo adduser --system --no-create-home --shell /usr/sbin/nologin btopuser
sudo addgroup --system procview
sudo usermod -a -G procview btopuser
sudo usermod -a -G video btopuser
@daryltucker
daryltucker / uvgit
Created September 30, 2025 21:09
uvgit: Specify uv Package Source
function uvgit(){
repo=$(echo "${1}" | rev | cut -d'/' -f -1 | rev)
echo "Installing $repo found at ${1}"
uv tool install "git+${1}#egg=${repo}"
}
@daryltucker
daryltucker / main.py
Last active September 30, 2025 04:21
openapi_mcp_confgen
#!/usr/bin/env python3
# Neo-Retro Group
# @daryltucker
# /// script
# dependencies = [
# "requests"
# ]
# ///
@daryltucker
daryltucker / ROCM-6.4.3_Linux-6.12_DKMS.mkd
Last active September 25, 2025 16:55
Install ROCm 6.4.3 DKMS on Linux 6.12 (Debian 13)

Install ROCm DKMS on Linux 6.12 (Debian 13)

What a mess this is...

Install ROCm Repositories

We must set up these repositories to grab amdgpu-install... which... installs additional repositories...

wget https://repo.radeon.com/rocm/rocm.gpg.key -O - | \