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
@sxalexander
sxalexander / -
Last active August 29, 2015 14:16
$ magerun dev:setup:script:attribute catalog_product product_finish
<?php
$setup = new Mage_Catalog_Model_Resource_Setup('core_setup');
$attr = array (
'attribute_model' => NULL,
'backend' => NULL,
'type' => 'int',
http://rally-asu-superbowl.s3.amazonaws.com/ASU_Reaching_New_Heights_20k.webm
http://rally-asu-superbowl.s3.amazonaws.com/ASU_Partnering_for_Impact_20k.webm
http://rally-asu-superbowl.s3.amazonaws.com/ASU_MarsRover_20k.webm
http://rally-asu-superbowl.s3.amazonaws.com/ASU_Evolving_Education_20k.webm
http://rally-asu-superbowl.s3.amazonaws.com/output/Keyframed-ASU%20Did%20you%20Know-Partnering%20for%20Impact_hd.webm
http://rally-asu-superbowl.s3.amazonaws.com/output/Keyframed-ASU%20Did%20you%20Know-Reaching%20New%20Heights%20in%20service_hd.webm
http://rally-asu-superbowl.s3.amazonaws.com/output/Keyframed-ASU%20Did%20you%20Know-Evolving%20Through%20Education_hd.webm
http://rally-asu-superbowl.s3.amazonaws.com/output/Keyframed-ASU%20Did%20you%20Know-Mars%20Rover_hd.webm
http://jsfiddle.net/b55Cz/9/
git checkout master; git clone [email protected]:galois.git tmp; rm -rf .git; mv tmp/.git .git; rm -rf tmp; git reset --hard origin/master