Skip to content

Instantly share code, notes, and snippets.

View dmzoneill's full-sized avatar
😃

Dave dmzoneill

😃
View GitHub Profile
@dmzoneill
dmzoneill / modern-hints.sh
Created July 26, 2026 18:21
modern-hints.sh — Non-obtrusive bash hints suggesting modern alternatives to legacy Linux commands. Writes to /dev/tty so it never interferes with pipes or redirects.
#!/bin/bash
# Non-obtrusive hints for legacy commands with modern alternatives.
# Writes to /dev/tty — invisible to pipes, redirects, and parsers.
# Only active in interactive shells with a real terminal.
#
# Install:
# curl -o ~/.modern-hints.sh https://gist.githubusercontent.com/raw/modern-hints.sh
# echo 'source ~/.modern-hints.sh' >> ~/.bashrc
# exec bash
@dmzoneill
dmzoneill / xdock-coverage.json
Last active July 18, 2026 19:29
XDock test badges
{"label":"coverage","message":"89%","schemaVersion":1,"color":"hsl(106, 100%, 40%)"}
@dmzoneill
dmzoneill / xdock-integration-tests.json
Last active July 12, 2026 17:42
XDock test badges
{"schemaVersion":1,"label":"unit tests","message":"pending","color":"lightgrey"}
#!/usr/bin/env python3
"""Crude oil price monitor with technical analysis indicators."""
import argparse
import math
import shutil
import subprocess
import sys
import time
from dataclasses import dataclass
@dmzoneill
dmzoneill / OpinionatedSlopManager.txt
Created February 25, 2026 19:19
Opinionated Slop Manager
---
name: code-complete-review
description: Multi-agent code quality review combining Code Complete smells, AI slop detection, and 24 opinionated best practices. Uses 3 agents in a Ralph Wiggum loop to scan, fix, and verify. Use when the user asks for code review, code quality, code smells, Code Complete review, Ralph Wiggum loop, slop scan, AI slop, or opinionated review.
---
# Code Complete Review + AI Slop Detection
A 3-agent iterative code quality system: 24 Code Complete smells + 20 AI slop
anti-patterns + 24 opinionated best practices = **68 checks**. Uses the
**Ralph Wiggum Loop** -- scan, fix, verify, repeat until clean.
@dmzoneill
dmzoneill / Complete Guide: Multi-Instance Ollama Setup with NPU, Intel GPU, and NVIDIA GPU.md
Last active August 9, 2026 07:54
Complete Guide: Multi-Instance Ollama Setup with NPU, Intel GPU, and NVIDIA GPU

Complete Guide: Multi-Instance Ollama Setup with NPU, Intel GPU, NVIDIA GPU, and CPU

System: Fedora 43 Linux Desktop Hardware: Intel Core Ultra 7 268V (Meteor Lake) with NPU, Intel Arc iGPU, NVIDIA RTX 4060 Laptop GPU Setup Date: 2026-01-10 Author: Claude Code Version: 2.0 - Comprehensive Edition Purpose: Run 4 independent Ollama instances simultaneously on different hardware accelerators for optimal power/performance/cost flexibility


@dmzoneill
dmzoneill / slack-tapermoneky.js
Last active June 7, 2025 16:24
AI support fos slack and jira
// ==UserScript==
// @name ChatGPT Form Cleanup
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Adds a button to clean up Slack messages using ChatGPT
// @author David O Neill
// @icon https://cdn.imgbin.com/3/22/25/imgbin-six-thinking-hats-red-hat-enterprise-linux-fedora-cartoon-cowboy-hat-i5r6w8BjC5Ua6Y7HxHZzFsEb9.jpg
// @match https://app.slack.com/*
// @match https://issues.redhat.com/*
// @match https://your-settings-page.com/*
@dmzoneill
dmzoneill / fancy-git-commit.sh
Created April 11, 2025 14:13
AI git Commit
#!/usr/bin/python3
import os
import sys
import requests
import subprocess
import argparse
class OpenAIProvider:
def __init__(self):
self.api_key = os.getenv("AI_API_KEY")
@dmzoneill
dmzoneill / gist:7c9159b30950621c065791e7861be174
Created May 4, 2024 20:50
Python GTK4 ColumnView Sorting and Binding
import random
import string
import gi
gi.require_version("Gtk", "4.0")
from gi.repository import Gio, GLib, GObject, Gtk # noqa
class DataObject(GObject.GObject):
import random
import string
import gi
gi.require_version("Gtk", "4.0")
from gi.repository import Gio, GLib, GObject, Gtk # noqa
class DataObject(GObject.GObject):