Skip to content

Instantly share code, notes, and snippets.

@pressdarling
pressdarling / tot.sh
Created October 8, 2025 01:15 — forked from chockenberry/tot.sh
A shell script for Tot
#!/bin/sh
basename=`basename $0`
if [ -z "$*" ]; then
echo "usage: ${basename} <dot> [ -o | -r | <file> | - ]"
echo ""
echo "options:"
echo " -o open dot in window with keyboard focus"
echo " -r read contents of dot"
@pressdarling
pressdarling / README.md
Last active October 9, 2025 01:03
Claude Code Tool Extraction Suite - Extract & analyze tool definitions from claude-trace. Security-hardened, 100% tested. Works with Claude Code 1.x-2.x

Claude Code Tool Extraction Suite

Python scripts for extracting Claude Code tool definitions from claude-trace JSONL files and comparing versions. Uses streaming processing for memory efficiency and includes basic security features (size limits, path sanitisation, credential filtering).

Note

HUMAN WARNING: this is pretty much entirely vibecoded lol thx Claude

Quick Start

@pressdarling
pressdarling / README.md
Created July 8, 2025 23:01 — forked from AndrewAltimit/!README.md
Claude Code and Gemini CLI Integration

Gemini CLI Integration for Claude Code MCP Server

A complete setup guide for integrating Google's Gemini CLI with Claude Code through an MCP (Model Context Protocol) server. This provides automatic second opinion consultation when Claude expresses uncertainty or encounters complex technical decisions.

🚀 Quick Start

@pressdarling
pressdarling / GitHubFileDownloader.sh
Last active January 31, 2025 07:42 — forked from electblake/GitHubFileDownloader.sh
Github File Downloader
#!/bin/bash
# Script: GitHubFileDownloader.sh
# Author: electblake <https://github.com/electblake>, pressdarling <https://github.com/pressdarling>
# Version: 1.1
# Description: This script converts one or more GitHub repository file URLs to its GitHub API URL for file contents, checks if the user is logged into GitHub CLI, and downloads the file.
# Source: https://gist.github.com/electblake/7ef3a63e20b3c8db67d9d66f7021d727
# Credits:
# - Inspired by answers on: https://stackoverflow.com/questions/9159894/download-specific-files-from-github-in-command-line-not-clone-the-entire-repo
# - v1 used "Bash Script" GPT by Widenex for script creation assistance.
@pressdarling
pressdarling / Adding a "political spectrum" attribute to VERDAD's analysis prompt - discussion with Claude.md This is how we revised our analysis prompt to add a new attribute to its output, along with defining the guidelines and generating synthetic examples

Political Spectrum Analysis Prompt

human (Oct 30, 2024, 06:03 PM)

I want to ask the analysis stage llm (a very advanced multimodal LLM) to assess I want to ask the LLM to assess is the snippet politically left-leaning or right-leaning (on a spectrum of -1.0 to +1.0 where -1.0 is extremely left-leaning and +1.0 is extremely right leaning). Please help me to add this to the prompt. Here is the existing prompt that I want you to add it to:

paste.txt
{
"model_type": "ane",
"model_config": "v3-3b",
"backbone_signature": "d95e977fa8053546c6b733aa9d28367d6b23c822",
"adapter_type_to_signature_mapping": {
"lora_8": "6c95e384657fa683f8cbd794b893b0171dcc5978",
"lora_32": "c36b2dd9364c7f12a2d4020f4ebe074458820be7",
"lora_16": "75f8bce3c9072389a4f73c72390540afde6c93aa"
},
"adapter_type_to_symbol_mapping": {
{
"model_type": "mlm",
"tamm_id": "afm-text-30b-instruct-v5-astc-6x6-20240709",
"checkpoint": "model.mlm",
"tokenizer": "afm-text-instruct-multilingual-100k-20240701",
"original_checkpoint": "bolttorchmodel://x5bhyxgsn7/440",
"export_date": "07/22/2024-11:36:33",
"mlm_config": {
"model_name": "ajax",
"backend": "metal",
@pressdarling
pressdarling / claude_3.5_sonnet_artifacts.xml
Created September 20, 2024 04:09 — forked from dedlim/claude_3.5_sonnet_artifacts.xml
Claude 3.5 Sonnet, Full Artifacts System Prompt
<artifacts_info>
The assistant can create and reference artifacts during conversations. Artifacts are for substantial, self-contained content that users might modify or reuse, displayed in a separate UI window for clarity.
# Good artifacts are...
- Substantial content (>15 lines)
- Content that the user is likely to modify, iterate on, or take ownership of
- Self-contained, complex content that can be understood on its own, without context from the conversation
- Content intended for eventual use outside the conversation (e.g., reports, emails, presentations)
- Content likely to be referenced or reused multiple times