Skip to content

Instantly share code, notes, and snippets.

View theturtle32's full-sized avatar

Brian McKelvey theturtle32

View GitHub Profile
@theturtle32
theturtle32 / cursor-agent-system-prompt.txt
Created March 20, 2025 21:43 — forked from sshh12/cursor-agent-system-prompt.txt
Cursor Agent System Prompt (March 2025)
You are a powerful agentic AI coding assistant, powered by Claude 3.5 Sonnet. You operate exclusively in Cursor, the world's best IDE.
You are pair programming with a USER to solve their coding task.
The task may require creating a new codebase, modifying or debugging an existing codebase, or simply answering a question.
Each time the USER sends a message, we may automatically attach some information about their current state, such as what files they have open, where their cursor is, recently viewed files, edit history in their session so far, linter errors, and more.
This information may or may not be relevant to the coding task, it is up for you to decide.
Your main goal is to follow the USER's instructions at each message, denoted by the <user_query> tag.
<communication>
1. Be conversational but professional.
@theturtle32
theturtle32 / keybase.md
Created January 5, 2021 19:29
Keybase Proof of Identity

Keybase proof

I hereby claim:

  • I am theturtle32 on github.
  • I am theturtle32 (https://keybase.io/theturtle32) on keybase.
  • I have a public key ASCCAAyUGtSa9VsBW5JyyTzAI0GL6Jh1UD6Ii2c-c_SgHQo

To claim this, I am signing this object:

@theturtle32
theturtle32 / color-change.gcode
Created January 14, 2016 07:00
Color Change GCode Script
G1 Z70 F360 ; move up above object
G1 X150 Y200 F3600 ; move to center of build area
G1 E-40 F1800 ; eject filament from extruder
M84 ; disable motors
M0 Change Color...
M17 ; enable motors
G92 E0 ; reset extruder coordinates
G1 E50 F60 ; prime new filament
G92 E0
@theturtle32
theturtle32 / repairshop_example.md
Last active August 29, 2015 14:21
Rails Repair Shop Example for Eric

Models

app/models/customer.rb

class Customer < ActiveRecord::Base
  has_many :tickets
  has_many :item_ownerships
  has_many :items, through: :item_ownerships
  has_many :comments, as: :commentable
  
@theturtle32
theturtle32 / NoSoup.as
Last active December 11, 2015 18:19
The code for "Harry" in Harry's Bar on Worlize.
package
{
import com.worlize.api.WorlizeAPI;
import com.worlize.api.event.ChatEvent;
import com.worlize.api.event.UserEvent;
import flash.display.Sprite;
import flash.events.TimerEvent;
import flash.geom.Point;
import flash.utils.Timer;
@theturtle32
theturtle32 / node-amazon-linux-install.md
Created October 8, 2012 20:05
Installing Node on Amazon Linux

Compiling/Installing Node 0.8.11 on Amazon Linux

Verify Python 2.6 is ready to go. (Should print "Python 2.6.8")

$ python -V

Install Development Toolchain

@theturtle32
theturtle32 / compilingNode0.8.4onCentOS5.md
Created July 25, 2012 20:57
Compiling and Installing Node v0.8.4 on CentOS 5.x

Compiling/Installing Node 0.8.4 (and Python 2.6, required by Node) on CentOS 5

Update system packages -- will migrate system forward to CentOS 5.8. (Optional?)

$ sudo yum update

Install the EPEL Repo:

package
{
import com.worlize.api.WorlizeAPI;
import com.worlize.api.event.ChatEvent;
import flash.display.Sprite;
public class EmbedClientTest extends Sprite
{
private var api:WorlizeAPI;
@theturtle32
theturtle32 / ws_streaming_api.md
Created September 6, 2011 09:41
WebSocket streaming api

The methods and events here are in addition to the ones already defined in the documentation for WebSocket-Node

WebSocketConnection

Methods

@theturtle32
theturtle32 / websocket-fallback.js
Created August 16, 2011 08:52
Example of how to fallback to alternative websocket library for old protocol clients.
#!/usr/bin/env node
var WebSocketRequest = require('websocket').request;
var http = require('http');
var server = http.createServer(function(request, response) {
console.log((new Date()) + " Received request for " + request.url);
response.writeHead(404);
response.end();
});
server.listen(8080, function() {