Skip to content

Instantly share code, notes, and snippets.

View TeamDman's full-sized avatar
🌜
Ahoy!

TeamDman

🌜
Ahoy!
View GitHub Profile
@fofr
fofr / SKILL.md
Last active September 18, 2026 01:58
An agent skill for writing in the GOV.UK style
name govuk-style
description Write and edit in GOV.UK / GDS house style — plain English, active voice, front-loaded content, sentence case, and no bold or italics for emphasis. Use when writing or editing reports, research write-ups, guidance, documentation, summaries, or any prose where clarity and accessibility matter.
user-invokable true
args
name description required
target
The document or text to write or rewrite in GOV.UK style (optional)
false
@juleskuehn
juleskuehn / azure-log-analytics.ts
Created June 25, 2026 13:26
Azure log analytics extension for Pi coding agent
/**
* Azure Log Analytics Extension
*
* Adds the `azure_log_analytics_query` tool, which runs bounded read-only KQL
* queries through the local Azure CLI (`az monitor log-analytics query`). The
* tool uses the current Azure CLI login (`az login`) and that account's RBAC
* permissions; no Azure credentials are stored by Pi.
*
* Prerequisites:
* - Azure CLI is installed and available as `az`.
@andrewsf
andrewsf / gist:174b127798ba80b5130750a97b994d73
Created June 2, 2026 19:11
SFM Brewing Stand automation
NAME "Brewing Stand"
EVERY 20 TICKS DO
-- Dragon's Breath leaves an empty bottle
FROM brew INPUT glass_bottle
TO interface OUTPUT
FORGET
IF EACH brew SLOT 3 HAS EQ 0 AND EACH hopper HAS EQ 0
THEN
@aparente
aparente / SKILL.md
Last active September 5, 2026 22:12
tufte-viz Claude Code skill — Edward Tufte data visualization principles

name: tufte-viz description: | Ideate and critique data visualizations using Edward Tufte's principles from "The Visual Display of Quantitative Information." Use this skill when: (1) Designing new data visualizations or charts (2) Critiquing or improving existing visualizations (3) Reviewing dashboards or reports for graphical integrity (4) Deciding between visualization approaches (5) Reducing chartjunk or improving data-ink ratio (6) Planning small multiples or high-density displays

@Vonr
Vonr / CachedSort.java
Last active May 14, 2026 09:03
CachedSort for Java, BSD-0
// Copyright (C) 2026 by Qther <qther@tuta.io>
//
// Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.function.*;
  • Shall i implement it?
  • No ...
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.10"
# dependencies = [
# "numpy>=1.26",
# "torch>=2.4",
# "transformers>=4.45",
# "accelerate>=1.12.0",
# "gguf>=0.17.1",
# ]
@karpathy
karpathy / microgpt.py
Last active September 22, 2026 03:53
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@hackermondev
hackermondev / writeup.md
Last active August 27, 2026 01:24
How we pwned X (Twitter), Vercel, Cursor, Discord, and hundreds of companies through a supply-chain attack

hi, i'm daniel. i'm a 16-year-old high school senior. in my free time, i hack billion dollar companies and build cool stuff.

about a month ago, a couple of friends and I found serious critical vulnerabilities on Mintlify, an AI documentation platform used by some of the top companies in the world.

i found a critical cross-site scripting vulnerability that, if abused, would let an attacker to inject malicious scripts into the documentation of numerous companies and steal credentials from users with a single link open.

(go read my friends' writeups (after this one))
how to hack discord, vercel, and more with one easy trick (eva)
Redacted by Counsel: A supply chain postmortem (MDL)

@rebane2001
rebane2001 / twitter-card-mod.js
Last active November 14, 2025 02:10
Twitter Card Mod (paste into console) // Note: Moved to https://github.com/rebane2001/TweetsAgainstHumanity/ (get the extension/userscript there)
twitterCardCount = 5;
function getNextTweets(count) {
const nextTweets = [...document.querySelectorAll("[data-testid='cellInnerDiv']:not(:has(>.HiddenTweet)) [data-testid='tweet']:not([data-twc-used])")].slice(0, count);
nextTweets.forEach(e => e.dataset.twcUsed = true);
return nextTweets;
}
function setStyle(styleText) {
let styleEl = document.querySelector(".twc-style");