Skip to content

Instantly share code, notes, and snippets.

View DMontgomery40's full-sized avatar

David Montgomery DMontgomery40

View GitHub Profile
@DMontgomery40
DMontgomery40 / CODEX.md
Last active February 10, 2026 05:05
Ralph audit loop: Codex CLI read-only code audit runner

Ralph Audit Agent Instructions (OpenAI Codex)


Safety Notice (Customize)

If this codebase is production, handles money, or touches sensitive data: treat this audit loop as a high-risk operation. Run with least privilege, avoid exporting long-lived credentials in your shell, and keep the agent in read-only mode.


@DMontgomery40
DMontgomery40 / PROMPT.md
Last active January 30, 2026 15:00
DOCX ↔ PDF round-trip normalization

DOCX ↔ PDF Round-Trip Normalization Prompt

For use with GitHub Copilot, Claude, or other AI coding assistants


Objective: Eliminate DOCX ↔ PDF round-trip layout drift through deterministic normalization.

Normalization Pipeline:

This file will be replaced.
const os = require('os');
const { execSync } = require('child_process');
const mo = await mediaManager.createMediaObjectFromUrl('https://user-images.githubusercontent.com/73924/230690188-7a25983a-0630-44e9-9e2d-b4ac150f1524.jpg');
const image = await mediaManager.convertMediaObject<Image & MediaObject>(mo, 'x-scrypted/x-scrypted-image');
const detectors = [
'@scrypted/openvino',
// Uncomment other detectors if available
// '@scrypted/coreml',
// '@scrypted/onnx',
@DMontgomery40
DMontgomery40 / extension_toggler.ts
Last active January 30, 2024 06:47
Toggle Scrypted Extensions On/Off
class ExtensionToggler extends ScryptedDeviceBase implements Settings, OnOff {
async getSettings(): Promise<Setting[]> {
return [
{
key: 'devices',
type: 'device',
title: 'Devices',
description: 'The devices on which the extension will be toggled.',
multiple: true,
value: this.getJSON('devices'),