Skip to content

Instantly share code, notes, and snippets.

View tomm1996's full-sized avatar
🎯
Focusing

Tom McLean tomm1996

🎯
Focusing
View GitHub Profile
@tomm1996
tomm1996 / global-llm-instructions.md
Created February 21, 2026 20:51
Global LLM Instructions for local agent

General Conduct

  • You do neither commit nor push. You can propose commit messages and recommend branches to push to, but you never execute a commit or push action.
  • When you are not certain of something, do not try to bridge gaps yourself.
    • If certainty is below 70% when business logic is ambiguous, ask for input or say you don't know instead of making things up.
    • If certainty is below 90% when schema or API contracts are missing, ask for input or say you don't know instead of making things up.
    • If multiple reasonable interpretations exist, explicitly present them instead of choosing one silently.
  • Do not touch external APIs, production databases, or any other external systems unless explicitly requested by me. You can propose API calls, but you never execute them.

Security

  • Never log sensitive information such as API keys, user data, or internal system details.
@tomm1996
tomm1996 / WeakAuras.md
Last active May 6, 2020 21:14
WeakAuras Configs

Discipline Priest

Track all affected Atonement and Purge of the Wicked Targets

!TJ1xZPnoq8pn3d3djJTdn)5H7MbOK2md1qrojTVyIWwaQ1irTKjH8q(SF7kzJn2Mu6m5U7H7MKXyVA9QF7Q9p)Gq3WGqcfUOdjQqI3PUxCANqYQqsm(pS4mA03JtLR7ltKPGaFxZ)EMRNzU2j03503HMyMmnML2l)vcj9s4p)mnn(LhcKYenhe90O5ZvmD41NCU35Ex6CrNR6C2vND57opC(jDExHncNfs2MRQ)jUD8cjPSfCPiy7AwizrQmBDHUe(Zmer5pwfPogK6yqQJbPUio1YOnSufyUq)lDoZXbccrA4rf6YknnvBJjZ5cUAP9E4wRu0aP8flaly3MGDcm3AqinlLcMkBgBdtOjzZNZFkKmTFxsWusq3jGIMvcjFKrt0ll1DCkZOlz8GHdbXRzjj3eRSGiMndmLni8XbdhF9TGkziYiRtOBbeqe0vSCTrDjlLposa2X8zxWn3WW1YeLy24tuZsbwHFsgZYdwQiAI5EicOzPcAYDfXoVRkc6dIxaiI8JmAk7LhUolj5LhUFjxJrcbFffdUvJTKyi(GcNAdxkwKuaozE0tifWvgvXGiltSaIpWrOrqqPca4wr5I3qZT78(nYGyAduj1vdpUcoBF5H(Ym8JpytGPIOLY0XsoMi0FGFWGjaisHtqWUun1e2TkDnk1ACs)jdg4hsainNVi)O2CmCJWuW4w8Crfuh0dsMNVr9gfem6tdhCnw8NPbJpADr2V2y2yELNtKutRanKhi0E4TRYGQ5DjoyUTjLBF5w9BiokHQutPI4PqQDuJLBvO5Dm5pCXciBKmEYndi11cwZewRlpMdimcKSTXsPsWATd8ZAiF9M1hWNMBBF0080OMMptXMADi4qodtUWgy10c1dtD(I6U7wjc4Fn4ctGyxhNYUJEUhirkcA6glFuqEKdPn9kfyQwN1Atp
@tomm1996
tomm1996 / findElementByInnerText.js
Last active September 7, 2017 09:26
Recursive string search in DOM-Nodes using a generator
/*
* @param {HTMLElement} node
* @yields {Iterable.<*>}
*/
function* _deepTraverseElements (node) {
if (node.nodeType !== 1) {
return;
}
for (let i = 0; i < node.children.length; i++) {