Skip to content

Instantly share code, notes, and snippets.

View danielrosehill's full-sized avatar

Daniel Rosehill danielrosehill

View GitHub Profile
@danielrosehill
danielrosehill / gist:7e0386c10b35f02909e7c37f94ece499
Created December 13, 2025 22:57
Fix Electron app sandbox crashes on Linux (Ubuntu/KDE) - No comments
# Fix Electron App Sandbox Crashes on Linux
Electron apps on Linux often fail to launch with errors like:
- `signal=TRAP`
- Sandbox-related crashes
- Apps that work with `--no-sandbox` but fail otherwise
## The Problem
Electron's sandbox requires either:
@danielrosehill
danielrosehill / mcp-infrastructure-tools.md
Created December 12, 2025 19:38
MCP Proxies, Gateways, Routers & Federation Tools - December 2025

MCP Infrastructure Tools: Proxies, Gateways, Routers & Federation

Last updated: December 12, 2025

A curated list of tools for Model Context Protocol (MCP) federation, routing, aggregation, and access control.


🌐 Gateways

@danielrosehill
danielrosehill / conda-rocm-strategy.md
Created December 12, 2025 12:29
Conda Environment Strategy for AMD ROCm GPUs - Minimizing Disk Usage

Conda Environment Strategy for AMD ROCm GPUs

Managing conda environments for AI/ML workloads on AMD GPUs can quickly consume 100GB+ of disk space. The PyTorch ROCm stack alone is ~18GB, and each new environment duplicates this.

The Problem

Creating environments independently:

# BAD: Each env duplicates the full PyTorch ROCm stack (~18GB each)
conda create -n project1 python=3.12
@danielrosehill
danielrosehill / ip-cam-viewer.kwinrule
Created December 11, 2025 12:55
KWin window rule for attaching IP Cam Viewer to a dedicated 7-inch monitoring screen
[af9dac22-676b-48fc-9cea-45ef1d877efe]
Description=IP Cam Viewer
fullscreen=true
fullscreenrule=2
ignoregeometry=true
ignoregeometryrule=2
noborder=true
noborderrule=2
position=5760,480
positionrule=2
@danielrosehill
danielrosehill / rocm-pytorch-rx7700xt-compatibility.md
Created December 8, 2025 11:04
ROCm 6.4.4 + PyTorch 2.7.1 Docker Image - AMD RX 7700 XT Compatibility

ROCm 6.4.4 + PyTorch 2.7.1 Docker Image - AMD RX 7700 XT/7800 XT Compatibility

Image Details

Property Value
Image rocm/pytorch:rocm6.4.4_ubuntu24.04_py3.12_pytorch_release_2.7.1
Size 69.6 GB
ROCm Version 6.4.4
PyTorch Version 2.7.1
@danielrosehill
danielrosehill / chatterbox-tts-benchmark.md
Last active December 7, 2025 13:24
Chatterbox TTS Local Generation Benchmark (AMD ROCm)

Chatterbox TTS Generation Benchmark

Date: 2024-12-07
Model: ResembleAI/chatterbox

Test Results Comparison

Local (AMD ROCm)

| Metric | Value |

@danielrosehill
danielrosehill / docker-pytorch-rocm-layering.md
Created December 7, 2025 11:41
Docker Layering For PyTorch ROCm In Action - How to build efficient AI/ML image stacks

Docker Layering For PyTorch ROCm In Action

When building multiple AI/ML Docker images that all need PyTorch with ROCm (AMD GPU) support, naive approaches can waste tens of gigabytes of disk space. This guide shows how Docker's layer sharing works and how to verify your images are efficiently layered.

The Problem: Misleading Image Sizes

Running docker images shows seemingly massive duplication:

REPOSITORY          TAG       SIZE
@danielrosehill
danielrosehill / comfyui-rocm-pytorch-pinning.md
Created December 6, 2025 21:21
Prevent ComfyUI custom nodes from overwriting PyTorch ROCm with CUDA version

Preventing ComfyUI Custom Nodes from Overwriting PyTorch ROCm

The Problem

When using ComfyUI with an AMD GPU and PyTorch ROCm, installing custom nodes via ComfyUI-Manager (or manually via pip) can silently replace your ROCm-enabled PyTorch with the default CUDA version.

This happens because:

  1. Custom nodes specify torch as a dependency in their requirements.txt
  2. pip resolves this to the default PyPI torch package (CUDA version)
  3. Your ROCm torch gets overwritten without warning
@danielrosehill
danielrosehill / easyeffects-deepfilternet-fix.md
Created December 6, 2025 14:31
Fix for "Deep Noise Remover Not Available" in Easy Effects on Ubuntu

Fix: Easy Effects "Deep Noise Remover Not Available" on Ubuntu

The Problem

When using Easy Effects installed via apt on Ubuntu, the Deep Noise Remover effect shows:

Deep Noise Remover Not Available The software required for the Deep Noise Remover effect, "DeepFilterNet", is not installed.

Why This Happens

@danielrosehill
danielrosehill / defer-services-after-graphical.md
Created December 6, 2025 12:40
Speed Up Linux Boot by Deferring Services Until After Graphical Desktop (KDE Plasma / systemd)

Speed Up Linux Boot by Deferring Services Until After Graphical Desktop

A common cause of slow boot times on Linux desktops is services that block the boot process unnecessarily. Many services (Docker, Samba, databases, etc.) don't need to be running before you reach your desktop—they can start immediately after the graphical environment loads.

This guide explains how to defer services to start after graphical.target on systemd-based systems like Ubuntu with KDE Plasma.

The Problem

When you run systemd-analyze blame, you might see something like: