Skip to content

Instantly share code, notes, and snippets.

View dmzoneill's full-sized avatar
😃

Dave dmzoneill

😃
View GitHub Profile
@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):
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):
daoneill@redhat:~/src/awx-operator$ git diff 2.15.0 2.16.0
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 41724d2..90f7cfd 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -17,6 +17,7 @@ jobs:
- -t replicas
env:
DOCKER_API_VERSION: "1.41"
+ DEBUG_OUTPUT_DIR: /tmp/awx_operator_molecule_test
<?php
if(isset($_GET['tname'])) {
$name = $_GET['tname'];
//Set the Content Type
header('Content-type: image/jpeg');
// Create Image From Existing File
$jpg_image = imagecreatefromjpeg('orig.jpg');
@dmzoneill
dmzoneill / 10gb.txt
Created January 26, 2023 20:03
10GB tuning
sysctl -w fs.file-max=2097152
sysctl -w vm.swappiness=10
sysctl -w vm.dirty_ratio=60
sysctl -w vm.dirty_background_ratio=2
sysctl -w kernel.sched_migration_cost_ns=5000000
sysctl -w kernel.sched_autogroup_enabled=0
sysctl -w net.ipv4.tcp_synack_retries=2
sysctl -w net.ipv4.ip_local_port_range=2000 65535
sysctl -w net.ipv4.tcp_rfc1337=1
sysctl -w net.ipv4.tcp_syncookies=1
@dmzoneill
dmzoneill / Synology 108tb limit bypass.txt
Last active January 24, 2023 07:46
Synology 108tb limit bypass
# Goal: To extend Synology volume beyond the webpage limit (108TB)
# Disks available
# 12 disks x 16TB = 192TB
# Assuming you already have an 8 disk volume
# 8 disks x 16TB = 128TB (Max allowed by Synology)
# lost space due to parity + whatever else ^^
# Synology uses partition raid, not drive raid
# There are 3 raid arrays across matching partitions on each disk
@dmzoneill
dmzoneill / AA active queries.txt
Last active January 25, 2023 19:45
AA active queries
postgres=> SELECT pid, now() - pg_stat_activity.query_start AS duration, query, state, datname
FROM pg_stat_activity;
pid | duration | query | state | datname
-------+-----------------+------------------------------------------------------------------------------------------------------------------------+--------+----------------
5779 | 00:00:00 | SELECT pid, now() - pg_stat_activity.query_start AS duration, query, state, datname +| active | postgres
| | FROM pg_stat_activity; | |
14358 | 00:00:07.786144 | SELECT 1 | idle | rdsadmin
17140 | 00:00:00.187546 | COMMIT