Skip to content

Instantly share code, notes, and snippets.

@christopherwoodall
christopherwoodall / modal_interpreter.py
Created April 27, 2026 03:20 — forked from vishaalram02/modal_interpreter.py
Modal Async Sandboxed Interpreter
"""
Modal Sandbox Interpreter - A stateful Python code execution environment using Modal.
This module provides a secure, isolated Python interpreter that runs code in Modal sandboxes,
allowing for persistent state across multiple code executions through cloudpickle serialization.
Key Features:
- Multiple interpreters: Create and manage multiple independent interpreter instances
- Timeout support: Set an explicit timeout for code execution
- Filesystem API: Read and write files to the sandbox
@christopherwoodall
christopherwoodall / litellm-docker-check.sh
Created March 24, 2026 15:24
LiteLLM docker checker
#!/bin/bash
set -euo pipefail
REPO="litellm/litellm"
TAG="latest"
BASE_DIR="$(pwd)/litellm_inspect"
LAYERS_DIR="${BASE_DIR}/layers"
ROOTFS="${BASE_DIR}/rootfs"
EXTRACT_TMP="${BASE_DIR}/_extract_tmp"
@christopherwoodall
christopherwoodall / PROMPT.md
Created February 4, 2026 18:44
Prompt for Adcock challenge

Begin by pressing start.

Browser Challenge Agent System Prompt

You are an elite browser automation agent specialized in solving JavaScript-based web challenges through code execution and strategic exploitation.

PRIMARY DIRECTIVE: DOMINATE IN 5 MINUTES

You have 5 MINUTES to solve this challenge. Not 6. Not 10. FIVE.

@christopherwoodall
christopherwoodall / browser-agent.tampermonkey.js
Last active January 5, 2026 17:57
An AI Agent that lives in your browser.
// ==UserScript==
// @name Browser AI Agent
// @namespace http://tampermonkey.net/
// @version 2.2
// @description ReACT-based AI agent with JavaScript execution capabilities
// @author You
// @match *://*/*
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_xmlhttpRequest
@christopherwoodall
christopherwoodall / arXivLM.js
Last active November 30, 2025 22:21
arXiv TTS UserScript
// ==UserScript==
// @name ArXiv HTML TTS Reader (Refactored)
// @namespace http://tampermonkey.net/
// @version 2.4
// @description Modularized, high-performance ArXiv reader with OpenAI TTS, Podcast Generation, and Draggable UI
// @author Gemini
// @match https://arxiv.org/html/*
// @grant none
// ==/UserScript==
@christopherwoodall
christopherwoodall / timeit.py
Created October 17, 2025 18:08
Time grep vs cat
import subprocess
import time
import argparse
import statistics
import os
import sys
# --- Configuration ---
DEFAULT_COMMAND_1 = 'grep "foo" "bar.txt"'
DEFAULT_COMMAND_2 = 'cat "bar.txt" | grep "foo"'
@christopherwoodall
christopherwoodall / README.md
Created August 26, 2025 13:16 — forked from rl-grimey/README.md
NBC Russian Twitter Trolls Download

NBC Russian Twitter Trolls Download

Description

This Github Gist contains a makefile for downloading the full set of Russian Twitter Trolls data published by NBC in their article 'Twitter deleted 200,000 Russian troll tweets. Read them here.'.

The makefile will download the following .csv files into a created directory named russian-twitter-trolls.

russian-twitter-trolls/ # Created by makefile
├── tweets.csv # 200,000 tweets (50mb) of propoganda tweets
#!/usr/bin/env python3
"""
Demonstrate banning the em-dash (and common variants) with logit_bias.
import os, sys, textwrap
import openai # pip install openai>=1.9.0
MODEL = "chatgpt-4o-latest"
PROMPT = ("Write a short sentence that would normally include an em dash "
"(for example between two clauses).")
import json
from collections.abc import Callable
import sys
from typing import Annotated
from function_schema import get_function_schema
from openai import OpenAI
from openai.types.chat import ChatCompletionMessageParam
@christopherwoodall
christopherwoodall / pyproject.toml
Created July 11, 2025 02:16
My personal pyproject.toml for ruff and coverage
[tool.coverage.report]
exclude_also = [
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",