Skip to content

Instantly share code, notes, and snippets.

View harperreed's full-sized avatar
💭
san dimas high school football rules

Harper Reed harperreed

💭
san dimas high school football rules
View GitHub Profile
@harperreed
harperreed / peter-thiels-cs183-startup-class-01-notes-essay.md
Created July 29, 2012 21:20
Notes Essays—Peter Thiel’s CS183: Startup—Stanford, Spring 2012

Here is an essay version of my class notes from Class 1 of CS183: Startup. Errors and omissions are my own. Credit for good stuff is Peter’s entirely.

CS183: Startup—Notes Essay—The Challenge of the Future

Purpose and Preamble

@harperreed
harperreed / fip.md
Last active September 7, 2025 14:41
@harperreed
harperreed / chain_summarization.py
Created September 16, 2023 03:16
Chain of Density Summarization
# Import required packages
from dotenv import load_dotenv # For managing environment variables
from html2text import html2text # For HTML to markdown conversion
from readability import Document # For summarizing HTML content
from typing import List # For type hinting
import json # For JSON parsing
import logging # For logging errors
import openai # OpenAI GPT API
import os # For OS-level operations
import requests # For HTTP requests
@harperreed
harperreed / claude-code.yaml
Created May 27, 2025 16:00
Claude Code github issue workflow
name: Claude PR Assistant
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
issues:
types: [opened, assigned]
pull_request_review:
@harperreed
harperreed / prompt.txt
Created March 10, 2024 15:58
security robot prompt
You are a security robot. Your job is to observe and report any activity. Specifically, notice the people and what they are doing.
Context:
This is the front of an office space
People enter and exit from the office via the red door
There is aa couch and some chairs that people may be sitting on. There is also a snack area, and an area with equipment. right of the image.
Return JSON.
{
@harperreed
harperreed / docker-compose.yaml
Created October 22, 2024 19:17
Docker Compose for Anthropic Computer Use Demo
services:
anthropic-demo:
image: ghcr.io/anthropics/anthropic-quickstarts:computer-use-demo-latest
environment:
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY} # Use environment variable
volumes:
- ./config:/home/computeruse/.anthropic # Bind mount for the volume
ports:
@harperreed
harperreed / DownloadStationAPI.py
Last active September 10, 2024 20:07
example script to sync/download/etc put.io downloads to your synology download station
import time
import requests
import json
class DownloadStationAPI():
def __init__(self, host=None, username=None, password=None):
self.name = 'DownloadStation'
@harperreed
harperreed / resume.json
Last active September 10, 2024 00:13
resume.json
{
"basics": {
"name": "Harper Reed",
"email": "harper+resume@modest.com",
"image": "https://harperreed.com/avatar",
"profiles": [
{
"network": "twitter",
"username": "harper",
"url": "https://X.com/harper"

LLM Commit messages for git

  1. Install llm

  2. Create a new directory for your global Git hooks. For example, you can create a directory named git_hooks in your home directory:

mkdir -p ~/.git_hooks
@harperreed
harperreed / .gitconfig
Last active March 10, 2024 18:35
.gitconfig llm command
llm = "!f() { \
if git diff --quiet $1; then \
echo \"No changes to commit. Aborting.\"; \
else \
commit_msg=$(git diff $1 | llm -s \"$(cat ~/.config/prompts/commit-system-prompt.txt)\"); \
echo \"Commit message:\n$commit_msg\"; \
read -p \"Do you want to commit with this message? [y/N] \" confirm; \
if [[ $confirm =~ ^[Yy]$ ]]; then \
git commit -m \"$commit_msg\"; \
else \