Skip to content

Instantly share code, notes, and snippets.

@dmc5179
dmc5179 / README.md
Created August 28, 2026 01:21
Script to access Linq Connect API

LinqConnect Transaction Downloader

Download transaction history from LinqConnect (school meal accounts) and save it as JSON or CSV for import into Google Sheets or other tools.

Prerequisites

  • Python 3.10+
  • Playwright (only needed for browser login mode)
@dmc5179
dmc5179 / README.md
Created August 26, 2026 21:49
iPhone USB Tethering on Fedora

iPhone USB Tethering Setup for Fedora

How it works

iPhone USB tethering uses the ipheth kernel module to create a virtual ethernet interface. The usbmuxd daemon handles the initial USB multiplexing protocol but is not involved in the tethering data path itself — tethering uses a dedicated USB interface as a virtual network device.

usbmuxd is started automatically by udev rules when an iPhone is plugged in

@dmc5179
dmc5179 / README.md
Last active August 26, 2026 18:25
Gemini Notes to Notebook

notes-to-notebook

Find Gemini meeting notes in Google Drive, move them to a specified folder, and add them as sources to a NotebookLM notebook.

When Gemini takes notes during a Google Meet, it creates a Google Doc named after the meeting subject (e.g. "Team-A Weekly Team Sync - 2025-08-21"). This script finds those docs, moves them out of the default Google Meet folder into a folder you choose, and adds each one as a source in NotebookLM.

Prerequisites

  • gws CLI with a configured profile (default: redhat)
  • nlm CLI authenticated via nlm login
@dmc5179
dmc5179 / portworx-custom-operator-catalog.md
Last active August 24, 2026 18:51
Creating a custom OLM catalog from upstream portworx operator bundle

Portworx Custom Operator Catalog from docker.io

This procedure builds a custom OLM catalog for the Portworx operator using the bundle image directly from docker.io, completely bypassing registry.connect.redhat.com. The rendered FBC from the bundle contains registry.connect.redhat.com image references which are replaced with their docker.io equivalents before building the catalog.

Step 1 — Pull the bundle image

podman pull docker.io/portworx/portworx-certified-bundle:26.2.1
@dmc5179
dmc5179 / oc-mirror-manual-archive-recovery.md
Last active August 10, 2026 19:11
oc mirror manual archive recovery procedure

oc-mirror v2 Manual Archive Recovery

When a large oc-mirror v2 archive has been transferred into a disconnected environment and only a few images failed to push to the container registry, you can manually push them from the local cache without re-running the full transfer.

How It Works

The oc-mirror v2 cache at ~/.oc-mirror/.cache/docker/ is a native Docker Distribution v2 filesystem layout. Blobs (manifests, configs, layers) are stored under registry/v2/blobs/sha256/<2-char-prefix>/<full-hash>/data, and repository metadata lives under registry/v2/repositories/.

Three options are provided below depending on what tooling is available in your disconnected environment.

@dmc5179
dmc5179 / README.md
Created July 31, 2026 17:53
Non-Authoritative Script to check OLM dependencies within an oc-mirror v2 imageset-config.yaml

OLM Operator Dependency Checker

check-operator-deps.sh validates that an imageset-config.yaml for oc-mirror includes all of the operator dependencies required by the operators it lists. It catches missing dependencies before you mirror, so you don't end up with a disconnected cluster that can't install an operator because a required dependency was left out of the image set.

Problem

When using oc-mirror to mirror a subset of operators from the redhat-operator-index into a disconnected environment, you must explicitly list every operator package you want. OLM operators can declare dependencies on other operators, but oc-mirror does not resolve or warn about those dependencies for you. If you mirror web-terminal without also mirroring devworkspace-operator, the install will fail at runtime.

How it works

@dmc5179
dmc5179 / README.md
Created July 16, 2026 13:55
Scanning oc-mirror content before transfer to disconnected environment

Scanning oc-mirror artifacts

This procedure details how to scan container content created during the oc-mirror process for vulnerabilities with tools like grype.

This procedure applies only to oc-mirror v2 and does not support v1 which has been deprecated.

This procedure centers around the oc-mirror v2 "mirror-to-disk" method which generates tar archive(s) for transfer into a disconnected environment.

This procedure assume a clean RHEL 9 environment prior to run-1 and that the cache registry created by oc-mirror remains in tact and complete for all subsequent runs.

@dmc5179
dmc5179 / README.md
Created July 9, 2026 21:26
Script to download IRS data in bulk and prep for notebooklm

IRS Bulk Download

pip install tqdm requests

@dmc5179
dmc5179 / Containerfile
Created June 25, 2026 15:52
Pyragify for codebases into Notebooklm
FROM registry.redhat.io/rhel9/python-312-minimal:latest
#USER root
#RUN microdnf -y install uv && \
# uv pip install pyragify && \
# dnf clean all && \
# rm -rf /var/cache/yum /var/cache/dnf
#USER 1001
RUN pip install --no-cache pyragify
@dmc5179
dmc5179 / README.md
Created May 4, 2026 16:09
Process to mitigate CVE 2026-31431