Skip to content

Instantly share code, notes, and snippets.

View danielabar's full-sized avatar

Daniela Baron danielabar

View GitHub Profile
class BaseClient
class APINotFound < StandardError; end
attr_reader :auth_strategy
def initialize(auth_strategy: :headers, headers: {})
@auth_strategy = auth_strategy
@headers = headers
end
@danielabar
danielabar / ruby-3.0.x.patch
Created October 18, 2024 13:39 — forked from nicksieger/ruby-3.0.x.patch
Patch to build ruby-3.0.x on Sequoia
--- ext/bigdecimal/bigdecimal.c.orig 2024-09-25 16:24:50
+++ ext/bigdecimal/bigdecimal.c 2024-09-25 16:25:15
@@ -65,7 +65,7 @@
static ID id_half;
/* MACRO's to guard objects from GC by keeping them in stack */
-#define ENTER(n) volatile VALUE RB_UNUSED_VAR(vStack[n]);int iStack=0
+#define ENTER(n) volatile VALUE vStack[n];int iStack=0
#define PUSH(x) (vStack[iStack++] = (VALUE)(x))
#define SAVE(p) PUSH((p)->obj)
@danielabar
danielabar / gist:87730357992409e51384cc41bdc0e07a
Created June 7, 2026 14:35
Thoughtbot Rails Audit → GitHub Backlog: Agent Playbook

Thoughtbot Rails Audit → GitHub Backlog: Agent Playbook

Companion artefact to the post "Auditing a Rails Side Project with the thoughtbot Audit Skill."

This file is written for a coding agent (Claude Code, etc.) to act on. The intended workflow:

  1. Run /rails-audit-thoughtbot on your Rails project so you have a RAILS_AUDIT_REPORT.md under scratch/rails-audit/.
  2. Save this file into your project as scratch/rails-audit/AGENT_PLAYBOOK.md.
  3. In a Claude Code session, hand it over with one line: