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
"aws-kb-retrieval": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-aws-kb-retrieval"
],
"env": {
"AWS_ACCESS_KEY_ID": "YOUR_ACCESS_KEY_HERE",
"AWS_SECRET_ACCESS_KEY": "YOUR_SECRET_ACCESS_KEY_HERE",
"AWS_REGION": "YOUR_AWS_REGION_HERE"
{
"mcpServers": {
"obsidian": {
"command": "npx",
"args": [
"-y",
"mcp-obsidian",
"/your/obsidian/vault/path"
]
},
{
"AI": {
"provider": "openai",
"model_id": "gpt-4o-mini",
"max_tokens": 300,
"temperature": 0.3,
"user_prompt": "Generate a concise and informative commit message based on the following git diff:\n\n{diff}",
"system_prompt": "You are an AI assistant helping to generate Git commit messages."
}
}
@delorenj
delorenj / .vimrc
Last active January 30, 2025 07:58
Gruvbox theme Vim configuration with auto-installation
" Auto-install vim-plug if not present
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
if empty(glob(data_dir . '/autoload/plug.vim'))
silent execute '!curl -fLo '.data_dir.'/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 with explicit directory
call plug#begin('~/.vim/plugged')
@delorenj
delorenj / Watch Markdown Files
Created February 3, 2025 13:36
Watches markdown files and runs them through markdown-cli when changes detected
{
"version": "2.0.0",
"tasks": [
{
"label": "Watch Markdown Files",
"type": "shell",
"command": "watchman-make",
"args": [
"-p",
"**/*.md",
@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();
@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 / .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 / .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 / 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