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 / .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 / 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 / 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 / .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')
{
"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."
}
}
{
"mcpServers": {
"obsidian": {
"command": "npx",
"args": [
"-y",
"mcp-obsidian",
"/your/obsidian/vault/path"
]
},
"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"
"brave-search": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-brave-search"],
"env": {
"BRAVE_API_KEY": "BSA_QV3LiLfkzOYb5lAzc5rZuUTHt4Y"
}
},
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/home/delorenj"
],
"alwaysAllow": [
"read_file",
"read_multiple_files",
{
"mcpServers": {
"mcp-installer": {
"command": "/bin/zsh",
"args": ["-c", "mise x -- npx -y @anaisbetts/mcp-installer"]
},
"sequential-thinking": {
"command": "/bin/zsh",
"args": ["-c", "mise x -- npx @modelcontextprotocol/server-sequential-thinking"]
},