Skip to content

Instantly share code, notes, and snippets.

@oddboehs
oddboehs / .cursorrules.md
Last active June 11, 2025 15:26 — forked from boxabirds/.cursorrules
Rock solid: turn Cursor into a rock-solid software engineering companion

Project Policy

This policy provides a single, authoritative, and machine-readable source of truth for AI coding agents and humans, ensuring that all work is governed by clear, unambiguous rules and workflows. It aims to eliminate ambiguity, reduce supervision needs, and facilitate automation while maintaining accountability and compliance with best practices.

1. Introduction

Rationale: Sets the context, actors, and compliance requirements for the policy, ensuring all participants understand their roles and responsibilities.

1.1 Actors

@oddboehs
oddboehs / coverage
Created June 9, 2025 01:39
SimpleCov Coverage Report Parser - Extract and display line and branch coverage from SimpleCov HTML reports in human-readable format
#!/usr/bin/env ruby
require 'nokogiri'
require 'set'
# Path to the SimpleCov HTML report
coverage_file = File.join(Dir.pwd, 'coverage', 'index.html')
unless File.exist?(coverage_file)
puts "❌ No coverage report found at #{coverage_file}"
@oddboehs
oddboehs / watch_and_pull.sh
Created June 4, 2025 22:13
Watch and pull script that monitors git repository for changes and opens localhost:3000 when updates are detected
#!/bin/bash
# Function to open localhost:3000
open_localhost() {
echo "Changes detected! Opening localhost:3000..."
if command -v open >/dev/null 2>&1; then
open http://localhost:3000
elif command -v xdg-open >/dev/null 2>&1; then
xdg-open http://localhost:3000
else