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 / 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 - | \
@daryltucker
daryltucker / ROCM-6.4.3_Linux-6.12_Packages.txt
Created September 24, 2025 23:43
Recording ROCm Packages Installed to DKMS on Linux 6.12
amd-smi-lib:
Installed: 25.5.1.60403-128~24.04
Candidate: 25.5.1.60403-128~24.04
Version table:
*** 25.5.1.60403-128~24.04 600
600 https://repo.radeon.com/rocm/apt/6.4.3 noble/main amd64 Packages
100 /var/lib/dpkg/status
comgr:
Installed: 3.0.0.60403-128~24.04
Candidate: 3.0.0.60403-128~24.04
@daryltucker
daryltucker / apt-switch-repos
Last active September 24, 2025 23:38
Find all Packages installed from BAD_REPO and find replacements on GOOD_REPO
#!/bin/bash
# vim: set filetype=sh :
# @daryltucker #WorkedForMe
# Find all Packages installed from BAD_REPO and find replacements on GOOD_REPO
# This is my chance to say the ROCm ecosystem is absolute trash
# Otherwise, this script can be useful for other situations, so I'm publishing it.
@daryltucker
daryltucker / i3wm_remmina_workspace_assign
Created August 18, 2025 20:26
Remmina Main Window on different Workspace than Remmina Clients for i3wm
assign [class="org.remmina.Remmina" title="Remmina Remote Desktop Client"] $ws1
assign [class="org.remmina.Remmina" title="^(?!Remmina Remote Desktop Client).*$"] $ws2
@daryltucker
daryltucker / gist:2ea342fbf83c1fd1f000cbf45929fd81
Created August 6, 2025 17:57
EdgeMax / EdgeRouter IPv6 Base Firewall Rules
edit firewall ipv6-name WAN6_IN
set default-action drop
set rule 10 action accept
set rule 10 description "Allow Established/Related"
set rule 10 protocol all
set rule 10 state established enable
set rule 10 state related enable
set rule 20 action drop