Skip to content

Instantly share code, notes, and snippets.

View joshrotenberg's full-sized avatar
🐢

Josh Rotenberg joshrotenberg

🐢
View GitHub Profile
@joshrotenberg
joshrotenberg / claude-status-messages.txt
Created March 10, 2026 01:38
Claude Code status line messages extracted from the binary
Accomplishing
Actioning
Actualizing
Antialiasing
Architecting
Ascending
Assuming
Baking
Beaming
Befuddling
@joshrotenberg
joshrotenberg / redisctl-v0.5.0-announcement.md
Created September 15, 2025 20:31
redisctl v0.5.0 Release Announcement

Introducing redisctl v0.5.0 - Unified CLI for Redis Cloud & Enterprise

Hey team,

I've been working on redisctl, a CLI tool that provides a consistent interface for both Redis Cloud and Enterprise APIs. Just shipped v0.5.0 and thought you might find it useful.

What it does

It's a single binary that works with both Redis Cloud and Enterprise deployments. Instead of writing curl commands or Python scripts, you get a proper CLI with:

POSSIBLY OUTDATED!!

Claude Context System: Complete Setup & Guide

A self-contained, AI-managed system for maintaining project context and architectural decisions. You focus on coding, your AI assistant handles the rest.

🎯 The Promise: AI Does the Work, You Stay Focused

@joshrotenberg
joshrotenberg / RUST-PROJECT-SETUP.md
Created July 18, 2025 02:22
Rust Project ADR Setup Guide - Rust-specific companion guide for setting up ADR system in Rust projects

Rust Project ADR Setup Guide

A companion guide to the main ADR-SYSTEM-GUIDE.md, specifically tailored for Rust projects.

Quick Start for Rust Projects

1. Initial Setup

# In your Rust project root (where Cargo.toml lives)
@joshrotenberg
joshrotenberg / ADR-SYSTEM-GUIDE.md
Created July 18, 2025 02:22
Claude ADR System Guide - Comprehensive architectural decision record system for software projects with AI assistant integration

Claude ADR System Guide

A comprehensive Architectural Decision Record system designed for AI-assisted development workflows

Overview

This ADR (Architectural Decision Record) system is specifically designed for projects where AI assistants (like Claude) work alongside human developers. It provides structured decision tracking, context preservation, and branching strategy integration that scales from small chores to major architectural changes.

Key Principles

@joshrotenberg
joshrotenberg / Dockerfile.oso-local
Created April 2, 2024 01:36
A Dockerfile to run the Oso Local Development Binary
# syntax=docker/dockerfile:1
# The Oso Local Development binary will be available at http://localhost:8080
# Test it out with the following curl command:
#
# Simple Dockerfile to run the Oso Local Development binary in a container.
#
# To build the image, run:
# docker build -t oso-local .
#
import kotlin.math.absoluteValue
fun diagonalDifference(arr: Array<Array<Int>>) = arr
.mapIndexed { index, ints -> Pair(ints[index], ints[arr.size - index - 1]) }
.reduce { pair, acc -> Pair(pair.first + acc.first, pair.second + acc.second) }
.let { pair -> pair.first - pair.second }
.absoluteValue
(def input [[1 2 3] [4 5 6] [9 8 9]])
(defn diag-diff2
[arr]
(->> arr
(map-indexed (fn [i e] [(nth e i) (nth e (- (count arr) i 1))]))
(reduce (fn [acc [x y]] [(+ (first acc) x) (+ (second acc) y)]))
(reduce -)
Math/abs))
defmodule MyApp.SSERouter do
use Plug.Router
@event_delay 2000
plug(:match)
plug(:dispatch)
defp send_chunk(conn) do
:timer.sleep(@event_delay)
package main
import (
"fmt"
"log"
"net/http"
"github.com/gin-gonic/gin"
)