Skip to content

Instantly share code, notes, and snippets.

View robzolkos's full-sized avatar

Rob Zolkos robzolkos

View GitHub Profile
@robzolkos
robzolkos / opencode-press-release.md
Created January 19, 2026 19:03
OpenCode v1.1.25 Press Release

OpenCode v1.1.25: The Forgetful Developer's Memory Palace

FOR IMMEDIATE RELEASE


Desktop App: Your Projects, Remembered (At Last)

Tired of hunting through your project list every time you fire up OpenCode? This release brings persistent project memory, automatically reopening your last active workspace on app startup. No more morning coffee-fueled project archaeology—your app now behaves like that one colleague who actually remembers where you left off.

@robzolkos
robzolkos / interview.md
Created December 28, 2025 20:39
Claude Code Interview command by Thariq
description argument-hint model
Interview me about the plan
plan
opus

Read this plan file $1 and interview me in detail using the AskUserQuestionTool about literally anything: technical implementation, UI & UX, concerns, tradeoffs, etc. but make sure the questions are not obvious.

@robzolkos
robzolkos / generate_image.sh
Created December 10, 2025 23:47
Command line script to generate an image from Replicate using the Nano Banana Pro model
#!/bin/bash
# Generate an image from a text prompt using Replicate API
# Usage: ./generate_image.sh "paris in the spring"
# Make sure to put the REPLICATE_API_TOKEN in your .env or environment
set -e
# Load .env file if it exists (check script dir, then current dir)
@robzolkos
robzolkos / prompt.md
Last active January 3, 2026 01:34
Project specification prompt template for AI coding assistants

You are a senior software architect creating detailed project specifications for AI coding assistants. Generate a comprehensive project specification document for building an application.

Output Format Requirements

Structure your response as an XML document with the following exact structure and tags:

<project_specification>
  <project_name>[Concise, descriptive project title]</project_name>
@robzolkos
robzolkos / speedrun.sh
Created November 21, 2024 01:06
See Rails parallel test speed with various cores
#!/bin/bash
# Get the number of CPU cores available
num_cores=$(nproc)
# Set the test seed to ensure the tests are deterministic
seed=$(ruby -e 'puts Random.new_seed')
# Create a temporary file to store the results
output_file="test_times.txt"
# CLI
sudo apt update && apt install \
git curl docker.io \
build-essential pkg-config autoconf bison rustc cargo clang \
libssl-dev libreadline-dev zlib1g-dev libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev libjemalloc2 \
libvips imagemagick libmagickwand-dev libsqlite3-0 \
redis-server mysql-server sqlite3 libmysqlclient-dev apache2-utils \
rbenv
# UI apps
@robzolkos
robzolkos / ci.yml
Created November 20, 2023 19:21
Github Action for CI for Rails app
name: CI
on:
pull_request:
branches:
- master
env:
RAILS_ENV: test
REDIS_URL: redis://redis:6379/1
@robzolkos
robzolkos / kamal.txt
Created September 27, 2023 00:14
kamal log
d622b2a6e45b# git ci
[main 9fd846e] Move github icon
1 file changed, 6 insertions(+), 6 deletions(-)
d622b2a6e45b# bundle exec kamal deploy
INFO [6f51ddc7] Running /usr/bin/env mkdir -p .kamal on 137.184.192.228
INFO [6f51ddc7] Finished in 2.554 seconds with exit status 0 (successful).
Acquiring the deploy lock...
Log into image registry...
INFO [4cbcab2b] Running docker login registry.digitalocean.com -u [REDACTED] -p [REDACTED] as root@localhost
INFO [4cbcab2b] Finished in 1.282 seconds with exit status 0 (successful).
@robzolkos
robzolkos / issue.md
Last active April 12, 2024 14:15
kamal deploy error
  1. create new droplet, make sure domain points to it.
  2. clone repo https://github.com/robzolkos/turbonativedirectory
  3. bundle exec kamal setup

At this point the application is deployed and working

  1. Update a css class/change some text on placeholder home page
  2. commmit
  3. bundle exec kamal deploy
@robzolkos
robzolkos / Dockerfile
Last active October 30, 2024 15:06
Kamal / SQLite3 issue
# syntax = docker/dockerfile:1
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile
ARG RUBY_VERSION=3.2.2
FROM registry.docker.com/library/ruby:$RUBY_VERSION-slim as base
# Rails app lives here
WORKDIR /rails
# Set production environment