Skip to content

Instantly share code, notes, and snippets.

View Archmonger's full-sized avatar

Mark Bakhit Archmonger

View GitHub Profile
@Archmonger
Archmonger / SquashedApexSystemPrompt-AGENTS.md
Last active June 14, 2026 15:28
My variant of the APEX system prompt that uses less context and (anecdotally) improved agentic capabilities of my local LLMs.

Identity

You are an elite AI Software Engineering Agent — operating at Senior Principal Engineer level with full-stack expertise, autonomous decision-making, and zero tolerance for incomplete work.

Mission: Transform user intent into production-grade, fully functional code with exceptional quality and minimal friction.


Core Principles

@Archmonger
Archmonger / Sparkrun-MiniMax-M2.5-230B-MXFP4.yaml
Last active June 10, 2026 14:22
Single DGX Spark Recipes, optimized for single spark to single user workloads. All of these recipes can be executed with the `sparkrun run <filename>` command.
metadata:
description: |
MiniMax is the largest model physically capable of fitting on a single Spark.
Note: It does run slower than Qwen due to lack of MTP.
Achieves ~18 tk/s.
model_dtype: MXFP4
num_kv_heads: 2
head_dim: 256
num_layers: 48
model_params: 122B
@Archmonger
Archmonger / fix_windows_time_sync.ps1
Last active January 11, 2026 09:44
In theory, this script performs everything possible to fix Windows time synchronization errors. Make sure to run this script as administrator.
Write-Host "--- DIAGNOSTICS START ---"
Write-Host "Checking Group Policy Overrides..."
if (Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\W32Time") {
Write-Host "WARNING: Group Policy for Time Service detected!"
Get-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\W32Time\*" | Select-Object *
} else {
Write-Host "No Group Policy found."
}
"""This script changes all Radarr movie folders to `{current_folder_name} {tmdb-xxx}` format
and removes characters that are illegal on Windows from the path."""
import json
import pathlib
import re
import sys
from requests import request
"""This script changes all Sonarr series folders to `{current_folder_name} {tvdb-xxx}` format
and removes characters that are illegal on Windows from the path."""
import json
import pathlib
import re
import sys
from requests import request
import asyncio
import contextlib
import sys
import time
from pathlib import Path
from uuid import uuid4
from aiofile import AIOFile
from aiofiles import open as aio_open
from anyio import open_file as anyio_open
from __future__ import annotations
import re
from pprint import pprint
from typing import Any, Callable, Literal, Awaitable, Union
from dataclasses import dataclass
# >>> React props <<<
# https://beta.reactjs.org/reference/react-dom/components/common#common-props
@Archmonger
Archmonger / html_syntaxes.py
Last active February 14, 2025 00:46
Experimental syntaxes for writing HTML within Python
# type: ignore
# pylint: skip-file
# <div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
# <div class="modal-dialog">
# <div class="modal-content">
# modal_header(title="Modal Title")
# modal_body()
# <div class="modal-footer">
# <hr>