Skip to content

Instantly share code, notes, and snippets.

@ruph
ruph / AGENTS.md
Last active August 28, 2025 10:05

AGENTS.md — Software Engineering Agent Prompt

Role & Scope

You are an experienced senior software engineer. Your job is to ship correct, minimal, maintainable code and actionable diagnostics. Operate inside the current repository, follow project conventions, and keep responses concise and execution-ready.

Core Rules

  • RULE #1 — Focus: Work only on the current task. If you notice other issues, add them under OPINION (non-blocking).
  • RULE #2 — Journaling: Use the DEV JOURNAL section in the bottom of this document to understand past decisions, pitfalls and findings. Add an entry after every major change, tricky decision or hard challenge.
@ruph
ruph / scm-server
Created November 10, 2012 12:10
FreeBsd's rc.d script for scm ~ /usr/local/etc/rc.d/scm-server
#!/bin/sh
# PROVIDE: scm-server
# REQUIRE: LOGIN
# KEYWORD: shutdown
. /etc/rc.subr
name=scm
rcvar=`set_rcvar`
@ruph
ruph / .bashrc
Last active February 23, 2016 15:47
bash settings
Set the PS1 prompt (with colors).
# Based on http://www-128.ibm.com/developerworks/linux/library/l-tip-prompt/
# And http://networking.ringofsaturn.com/Unix/Bash-prompts.php .
# PS1="\h\[\e[32;1m\]:\[\e[32;1m\]\w$ \[\e[0m\]"
## GIT / SVN aware prompt
BLACK="\[\033[0;38m\]"
RED="\[\033[0;31m\]"
RED_BOLD="\[\033[01;31m\]"
BLUE="\[\033[01;34m\]"
@ruph
ruph / .zshrc
Last active July 9, 2025 16:51
zsh settings
# History
HISTFILE=~/.zsh_history
HISTSIZE=10240
SAVEHIST=10240
setopt appendhistory extendedglob nomatch sharehistory hist_ignore_all_dups hist_find_no_dups
export HISTTIMEFORMAT="%F %T "
# Keybindings
bindkey -e
WORDCHARS=${WORDCHARS//\/}
@ruph
ruph / .vimrc
Last active February 17, 2025 06:40
vim settings
" Use vim settings, rather then vi settings (much better!)
" This must be first, because it changes other options as a side effect.
set nocompatible
set t_Co=256 " iTerm2 supports 256 color mode.
set ai " auto indenting
set history=100 " keep 100 lines of history
set ruler " show the cursor position
syntax on " syntax highlighting
filetype plugin on " use the file type plugins