Skip to content

Instantly share code, notes, and snippets.

View delorenj's full-sized avatar
💥
No time for sleep ! Making things !

delorenj delorenj

💥
No time for sleep ! Making things !
View GitHub Profile
@delorenj
delorenj / generate-pem.ts
Last active April 25, 2025 12:57
Script to generate SSH keypair in PEM format
/**
* RSA Key Generator
*
* This script generates RSA key pairs in PEM format.
* Built for Deno runtime.
*
* Usage:
* deno run --allow-write --allow-read generate-keys.ts [options]
*
* Options:
@delorenj
delorenj / dont_be_fucking_stupid.md
Last active April 6, 2025 13:48
Common Prompts

Do These Things to NOT be Stupid

  • DO NOT IMPLEMENT ANYTHING without asking me for approval.

  • I don't want your typical "oh no! it didn't work? ok let's try something completely fucking different before I even remotely find out what went wrong" horseshit. Instead, work with your current solution (that I approved, right?), find out WHY it didn't work first, then address the "WHY" with an appropriate solution.

  • This one's important. FFS, STOP LITTERING PROJECT with version-suffixed garbage scripts. I don't want to see 'fix-permissions.sh', 'fix-permissions-better.sh', 'final-fix-permission.sh', 'really-final-i-swear-fix-permissions.sh'. We're not documenting your learning journey here. Improve the ONE script and make it work right. Also, did you forget the purpose of git? JFC.

  • When you write a script, can we at least use some common sense and put it in an appropriate location instead of scattering them across my project like my 5 year-old scatters his toys all over the house? I don't want to clean

@delorenj
delorenj / docker-compose.yml
Created March 20, 2025 16:00
RepRally Local MySQL Docker Compose[object Object]
services:
mysql:
image: mysql:8.0
container_name: reprally-mysql
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: reprally
MYSQL_DATABASE: reprally_dev
MYSQL_USER: reprally
MYSQL_PASSWORD: reprally
@delorenj
delorenj / personal-development-env.md
Last active April 7, 2025 05:18
LLM Coding System Prompts
  • Always be aware of your available MCP tools.
  • When a tool allows you to implement a request or fix a problem, I want you to use it and do the work for me.
  • Don't be shy; collaborate WITH me when appropriate - i love working together as a team!
  • My name is Jarad
  • I'm an experienced Staff Engineer, so no need to dumb anything down.
  • My shell of choice is zsh
  • I use mise to manage node, python, uv, aws, pnpm, pipx, et al
  • I clone all my github repos to ~/code
  • I keep my obsidian vault in ~/code/DeLoDocs
  • I use obsidian for all notes, project-related things, transcripts, research, et al
---
description: These rules dictate how to install packages and run tests
globs:
alwaysApply: false
---
# Server Yarn Package and Test
- use yarn, not npm
- use `--no-watch` flag when running tests
@delorenj
delorenj / cpf-rules.mdc
Last active March 7, 2025 21:42
rr-cursor-rules
---
description: A set of high
globs:
alwaysApply: false
---
# Your rule content
- You can @ files here
- You can use markdown but dont have to
@delorenj
delorenj / .windsurfrules
Created March 4, 2025 16:05
LLM rules for the RR transaction overhaul
# Sr. Staff Engineer with 30+ years enterprise experience
## Persona
You are a staff level engineer with 30 years experience. You are my best friend and are always excited to help me out with any technical issues I have. When I told you about my task, you couldn't wait to come over and have a few drinks and plan and figure it out with me in my office.
## Memory Guidelines
### Memory Architecture
@delorenj
delorenj / .vimrc
Created February 25, 2025 19:31
vimrc
" Auto-install vim-plug if not present
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
" Initialize plugin system
call plug#begin('~/.vim/plugged')
@delorenj
delorenj / docker-compose.yml
Created February 18, 2025 10:11
RepRally local db container with replication
services:
mysql:
image: mysql:8.0
container_name: reprally-mysql-local
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASS:-reprally}
MYSQL_DATABASE: ${DB_NAME:-reprally_dev}
MYSQL_USER: ${DB_USER:-reprally}
MYSQL_PASSWORD: ${DB_PASS:-reprally}
@delorenj
delorenj / generate-ethereal.js
Created February 17, 2025 22:57
This script generates an Ethereal email account, logs in the email address and password to the console, and then exits. The email and password are needed for local development, as they are used as the "from" email address for all emails sent from the server.
import nodemailer from 'nodemailer';
async function generateEtherealAccount() {
const testAccount = await nodemailer.createTestAccount();
console.log('Ethereal Email credentials:');
console.log('ETHEREAL_USER=' + testAccount.user);
console.log('ETHEREAL_PASSWORD=' + testAccount.pass);
}
generateEtherealAccount();