Skip to content

Instantly share code, notes, and snippets.

View TeamDman's full-sized avatar
🌜
Ahoy!

TeamDman

🌜
Ahoy!
View GitHub Profile
@TeamDman
TeamDman / spinnerVerbs.ts
Created March 31, 2026 12:36
Claude code spinner verbs
// https://github.com/instructkr/claude-code/blob/936e6c8e8d7258dd1b2bc127d704f02cc23076d5/src/constants/spinnerVerbs.ts#L16
// https://news.ycombinator.com/item?id=47584540
export const SPINNER_VERBS = [
'Accomplishing',
'Actioning',
'Actualizing',
'Architecting',
'Baking',
'Beaming',
"Beboppin'",
@TeamDman
TeamDman / crowdin-browserscript-v02.js
Created January 31, 2026 02:29
Crowdin browserscript
// just paste in console and hit f9 to extract JSON to clipboard
(() => {
const STATE_KEY = "__crowdin_extractor_state__";
// Cleanup previous run
if (window[STATE_KEY]) {
console.log("Crowdin Extractor: Removing previous state");
window.removeEventListener("keydown", window[STATE_KEY].handler);
window[STATE_KEY].toast?.remove();
window[STATE_KEY].popover?.remove();
@TeamDman
TeamDman / settings.json
Created January 17, 2026 00:06
Zed rust-analyzer all-features
"lsp": {
"rust-analyzer": {
"initialization_options": {
"cargo": {
"features": "all",
},
},
},
},
@TeamDman
TeamDman / get-stars.ps1
Created December 28, 2025 05:53
Search GitHub stars using fuzzy finder
gh api --paginate 'user/starred' | ConvertFrom-Json -Depth 100 | ConvertTo-Json -Depth 100 > my_github_stars.json
@TeamDman
TeamDman / ratatui_key_debug.rs
Created July 17, 2025 15:59
A program to display what keyboard events the terminal is receiving
use std::time::{Duration, Instant};
use ratatui::{
crossterm::event::{self, Event, KeyEventKind},
symbols,
text::Line,
widgets::{Block, Padding, Paragraph, Widget},
};
fn main() {
@TeamDman
TeamDman / rename-windows.ps1
Last active May 3, 2025 17:55
Renaming files with invalid characters on windows
git ls-tree HEAD 'test/gemma2:latest.Modelfile'
git ls-tree HEAD 'test/llama3.1:latest.Modelfile'
git ls-tree HEAD 'test/llama3.1:latest.model.json'
git ls-tree HEAD 'test/llama3.2:latest.Modelfile'
git ls-tree HEAD 'test/mistral-nemo:latest.Modelfile'
git ls-tree HEAD 'test/mistral-nemo:latest.model.json'
git ls-tree HEAD 'test/mxbai-embed-large:latest.Modelfile'
git ls-tree HEAD 'test/mxbai-embed-large:latest.model.json'
git ls-tree HEAD 'test/qwen2.5:latest.Modelfile'
git ls-tree HEAD 'test/starcoder2:latest.Modelfile'
@TeamDman
TeamDman / Install-Torch.ps1
Last active May 1, 2025 22:26
Behold, a consistent way to install PyTorch on Windows using uv
# https://gist.github.com/TeamDman/f05ec9944b956e21fd1ec120af6adbad
uv sync
$index_url = "https://download.pytorch.org/whl/cu128"
$packages = @(
"torch",
"torchvision",
"torchaudio"
)
$to_add = @(
"markupsafe<3.0.2" # fuck python package management, windows fails without this
@TeamDman
TeamDman / response.md
Last active April 16, 2025 06:40
Asking GPT4.1 about SFM

Response from GPT 4.1 on 2025-04-16

Absolutely! Here’s a comprehensive demonstration of my understanding of Super Factory Manager (SFM), based on your documentation, examples, and test code.


Super Factory Manager: Comprehension Overview

1. What is Super Factory Manager?

@TeamDman
TeamDman / README.md
Last active March 20, 2025 16:36
Addressing CVE-2025-30258 on Windows, Gpg4Win
@TeamDman
TeamDman / ask.ps1
Created March 12, 2025 20:51
A PowerShell function that lets you use Ollama with piped content `echo "25*25" | ask "What numbers are present in the expression?"`
function ask {
[CmdletBinding()]
param(
# We expect pipeline input to be strings (lines)
[Parameter(ValueFromPipeline)]
[string]
$StdinContent,
[Parameter(Mandatory, Position=0)]
[string]