Skip to content

Instantly share code, notes, and snippets.

View swombat's full-sized avatar

Daniel Tenner swombat

View GitHub Profile
@swombat
swombat / sumsub_api.rb
Created March 12, 2025 06:42
Sumsub API example
class SumsubApi < GenericApi
BASE_URL = "https://api.sumsub.com"
def initialize(api_token: Rails.application.credentials[:sumsub][:api_token], secret_key: Rails.application.credentials[:sumsub][:secret],
base_url: BASE_URL, debug: true)
@api_token = api_token
@secret_key = secret_key
@base_url = base_url
@debug = debug
require "faraday"
require "json"
class BrowserlessApi
def initialize(api_key: Rails.application.credentials.dig(:browserless, :api_key) || "<BROWSERLESS_API_KEY>", debug: false)
@api_key = api_key
@base_url = "https://production-sfo.browserless.io"
@debug = debug
end

The user has requested: $ARGUMENT

Before doing anything, read claude.md, then read any other relevant files in the /docs/ directory.

Avoid doing tasks that require approval from the user. Whenever doing so, please instruct the user on how they can add permanent permissions for this task (some tasks show up with a shift-tab option but many, sadly, don't). The user wants you to operate in agentic mode rather than requiring frequent approval.

@swombat
swombat / db_backup.rake
Created July 24, 2025 09:19
Download backup from AWS and restore
namespace :db_backup do
desc "Download the latest database backup from AWS S3"
task download: :environment do
require 'aws-sdk-s3'
bucket_name = "<your-bucket>"
download_path = Rails.root.join('db', 'backups')
FileUtils.mkdir_p(download_path)
@swombat
swombat / honey.md
Created September 28, 2025 07:03
A Claude Code command for fixing a bug picked up by Honeybadger.

Honeybadger Issue Investigation

Use the Honeybadger MCP to investigate a Honeybadger issue and provide analysis and a potential fix.

Steps

Investigate the following issue: $ARGUMENT

Describe the following: