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 / .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
@daryltucker
daryltucker / gist:7db405c723eb979a0ac89fe0d2b0454f
Last active August 6, 2025 19:36
EdgeMax / EdgeRouter IPv6 on Multiple Interfaces / NICs
# Assuming you got a small IPv6 block and want to delegate across multiple LAN interfaces
edit interfaces ethernet eth0
set dhcpv6-pd pd 0 prefix-length /64
set dhcpv6-pd pd 0 interface eth1 host-address ::1
set dhcpv6-pd pd 0 interface eth1 prefix-id :0
set dhcpv6-pd pd 0 interface eth1 service slaac
set dhcpv6-pd pd 0 interface eth2 host-address ::1
set dhcpv6-pd pd 0 interface eth2 prefix-id :1