Skip to content

Instantly share code, notes, and snippets.

View ruph's full-sized avatar
💭
Hi! 👋

Davor Strehar ruph

💭
Hi! 👋
View GitHub Profile
@ruph
ruph / AGENTS.md
Last active October 24, 2025 12:41

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 October 23, 2025 15:59
zsh settings
# Find and set branch name var if in git repository.
function git_branch_name()
{
branch=$(git symbolic-ref HEAD 2> /dev/null | awk 'BEGIN{FS="/"} {print $NF}')
if [[ $branch == "" ]];
then
:
else
echo '%F{242}['$branch']%f'
fi
@ruph
ruph / .vimrc
Last active October 23, 2025 15:59
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