Skip to the addendum for an automated script.
Define your image and use skopeo to pull the build history and the layer manifest.
IMAGE="docker://SOME_USERNAME/SOME_REPONAME[:OPTIONAL_TAG]"
Updating NVIDIA drivers on Windows often breaks the bridge to WSL2 containers. Because the Container Device Interface (CDI) file (/etc/cdi/nvidia.yaml) is a static snapshot of the driver state at the time of generation, any driver update renders the snapshot invalid. This usually results in Podman containers failing to find the GPU with jarring, cryptic, or non-existent error messages.
This solution provides "zero-touch" insurance. It checks your driver version at boot and only regenerates the CDI if a change is detected. By using a systemd service, it runs asynchronously in the background, adding negligible overhead (approx. 80ms) to your WSL startup time (zero per-shell latency).
wsl --version in PowerShell).| #!/usr/bin/env python3 | |
| # | |
| # Author: FNGarvin | |
| # License: MIT | |
| # | |
| # Description: A tool to analyze .safetensors LoRA files. It analyzes | |
| # both metadata (if available) and tensor keys in an attempt | |
| # to infer the base model, resolution, and trigger words, | |
| # highlighting any contradictions. |
For a container such as docker://madiator2011/better-comfyui:slim-5090
skopeo inspect --config docker://madiator2011/better-comfyui:slim-5090 | jq '.history'
| def _generate_subs_with_whisper(self, generated_srt_path): | |
| """Generates subtitles using Whisper. This is the final fallback.""" | |
| print(f"\n--- Generating Subtitles with Whisper ---", flush=True) | |
| # Create a predictable scratch directory for intermediate files | |
| scratch_dir = os.path.join(tempfile.gettempdir(), 'subtitle_processor_scratch') | |
| os.makedirs(scratch_dir, exist_ok=True) | |
| # Use a predictable filename based on the video for easier debugging | |
| video_basename = os.path.splitext(os.path.basename(self.args.video_file))[0] |
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # | |
| # detect_and_crop.py | |
| # FNGarvin (c) 2025 | |
| # | |
| # This script uses a pre-trained YOLOv8 model to detect objects in an image | |
| # specified as a command-line argument. For each detected object exceeding a | |
| # specified confidence threshold, it generates ImageMagick 'convert' commands | |
| # to crop the object. These commands are then printed to the console and |
ncdu -x to get an overview for disk usage.podman system df to get an overview for prune savings.podman image list --sort size w/ podman rmi [imagename].podman ps -a and ensure every container to keep features the to-keep label mnemonic for filtering. Workflow to add it follows:BEWARE. Podman containers mysteriously failing with terse, bordering indecipherable errors.
Must sudo nvidia-ctk cdi generate --output=/etc/cdi/nvidia.yaml
as per the very difficult to find when you can't remember what you're looking for docs here:
https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/cdi-support.html
REMEMBER
Last Updated: June 23, 2025
Authorship: This guide was developed in a collaborative session between a user and Google's Gemini assistant.
This guide details a robust method to configure the Windows OpenSSH Server to provide users with a direct and seamless WSL/Linux shell.
| #!/usr/bin/ruby -w | |
| #a simple script to take a video file and convert it | |
| #into a collection of mp3 files, one file per chapter | |
| #requires an ffmpeg install with ffprobe and support for | |
| #mp3 plus whatever formats the input uses | |
| #FNG, 2025 | |
| require 'json' |