Skip to content

Instantly share code, notes, and snippets.

View sxalexander's full-sized avatar
🚌
Reticulating Splines

Sam Alexander sxalexander

🚌
Reticulating Splines
View GitHub Profile
@sxalexander
sxalexander / 001-follow-rules.mdc
Last active May 14, 2025 02:03
My ./.cursor/rules template
---
description: How to use Cursor rules effectively - READ THIS FIRST for any project work
globs:
alwaysApply: true
---
# Understanding Rules
Rules are your project-specific knowledge base. They guide your decision-making with context that doesn't exist in code alone. **ALWAYS CHECK FOR RELEVANT RULES** when making decisions.
@sxalexander
sxalexander / compact-prompt.txt
Last active May 31, 2025 18:08
The "compact" prompt from claude-coder (as of April 18, 2025/v0.2.74)
Your task is to create a detailed summary of the conversation so far, paying close attention to the user's explicit requests and your previous actions.
This summary should be thorough in capturing technical details, code patterns, and architectural decisions that would be essential for continuing development work without losing context.
Before providing your final summary, wrap your analysis in <analysis> tags to organize your thoughts and ensure you've covered all necessary points. In your analysis process:
1. Chronologically analyze each message and section of the conversation. For each section thoroughly identify:
- The user's explicit requests and intents
- Your approach to addressing the user's requests
- Key decisions, technical concepts and code patterns
- Specific details like file names, full code snippets, function signatures, file edits, etc

Keybase proof

I hereby claim:

  • I am sxalexander on github.
  • I am extendedplay (https://keybase.io/extendedplay) on keybase.
  • I have a public key ASAUFvOiinzoi5X9cf_2KzBBJsKKZoOLXg6dOqjVAEaUogo

To claim this, I am signing this object:

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<?php
/*****
* WordPress Bootstrap Example
*****/
// prevent remote execution
if ($_SERVER['SERVER_ADDR'] != $_SERVER['REMOTE_ADDR']) exit();
/** Load WordPress Bootstrap, relative to the script directory */
require_once( dirname( __FILE__ ) . '/../wp-load.php' );
#! /bin/sh
# DESCRIPTION Setup wildcard domains using dnsmasq so *.doc is automatically sent to a running boot2docker vm
# MAINTAINER [email protected]
# See:
# https://echo.co/blog/never-touch-your-local-etchosts-file-os-x-again
# https://gist.github.com/r10r/5108046
# http://passingcuriosity.com/2013/dnsmasq-dev-osx/
# check for homebrew
if ! command -v brew >/dev/null; then
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@sxalexander
sxalexander / ssh-copy-id
Created September 1, 2011 23:39
Copy your local ssh key to a remote machine
#!/bin/sh
# Shell script to install your public key on a remote machine
# Takes the remote machine name as an argument.
# Obviously, the remote machine must accept password authentication,
# or one of the other keys in your ssh-agent, for this to work.
ID_FILE="${HOME}/.ssh/id_rsa.pub"
if [ "-i" = "$1" ]; then
@sxalexander
sxalexander / .gitconfig
Created December 8, 2010 22:45
my gitconfig settings
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true
[color "branch"]
current = yellow reverse
@sxalexander
sxalexander / memusage.rb
Created November 3, 2010 00:13
WebFaction Memory Usage Script
#!/usr/bin/env ruby
# Memory usage script for WebFaction customers adapted to attempt to
# draw username from the pwd
# Nick Trew <[email protected]>
# 2009-05-25
# START CONFIG #
require 'pathname'