Skip to content

Instantly share code, notes, and snippets.

@Shpigford
Shpigford / CLAUDE.md
Created January 6, 2026 20:04
The starting CLAUDE.md file I (@Shpigford) use for all new dev projects. This assumes using Rails + Inertia.js, but many of the rules can be ported over to other languages/frameworks.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

About Yeetsheet

The name of this project is "Yeetsheet". Yeetsheet is a spreadsheet automation tool. It connects to Google Sheets, Excel, and Airtable. Core functionality: watch spreadsheets for changes, run transformations on cell data, sync data between multiple spreadsheet sources, and send notifications based on conditions. Users create automations through a visual node-based editor rather than code. Common use cases include consolidating data from multiple sheets into one, auto-populating templates when source data changes, and validating data against rules. Has a REST API for programmatic access. Data transformations support filtering, mapping, lookups, and basic aggregations.

Development Commands

IDrive e2 - $0.005/GB - $0 for download bandwidth - 1:3 upload:download ratio allowed <- questionable data privacy - custom domains offered - has audit logging - supports event notifications with AWS SQS - $0.01/GB overage on bandwidth - has replication
Backblaze B2 - $0.006/GB - $0 for download bandwidth if through Worker (or $0.01/GB past a 1:3 upload:download ratio) <- decent data privacy record - no custom domains - has audit logging - has replication
Vultr - $0.018/GB - $0.01/GB for download <- https://www.vultr.com/products/object-storage/#pricing
Wasabi - $0.0069/GB - $0 for download bandwidth - 1:1 and billed for 90 days <- has audit logging - no custom domains - min object size billed at 4 kilobytes
Storj - $0.004/GB - $0.007/GB for download <- not good for small files due to segment pricing
Scaleway - $0.013/GB - $0.011/GB for download <- estimate, had to do EUR to USD conversion https://www.scaleway.com/en/pricing/storage/
Cloudflare R2 - $0.015/GB - $0.00/GB
@RubenKelevra
RubenKelevra / fast_firefox.md
Last active January 20, 2026 14:22
Make Firefox fast again
@makevoid
makevoid / install-ruby-3-debian.sh
Last active November 27, 2025 14:39
Install Ruby 3 from soure on Debian (11)
# onliner usage:
# bash <(curl -s https://gist.githubusercontent.com/makevoid/2be2170f17801c761aadfe7d9978b003/raw/b3d9c62bdd157bf46b8a95660bccfa86cad02118/install-ruby-3-debian.sh)
set -xeuo pipefail
apt update -y
apt install -y build-essential git redis-server cmake vim wget curl libsqlite3-dev python3 apt-transport-https ca-certificates automake libtool libzlcore-dev libyaml-dev openssl libssl-dev zlib1g-dev libreadline-dev libcurl4-openssl-dev software-properties-common libreadline6-dev
mkdir -p ~/tmp
@kathawala
kathawala / datetime_to_cron.py
Created April 21, 2020 22:23
Converts a python datetime to a crontab expression which fires once (at the date+time specified in the python datetime object)
from datetime import datetime
def datetime_to_cron(dt):
# FYI: not all cron implementations accept the final parameter (year)
return f"cron({dt.minute} {dt.hour} {dt.day} {dt.month} ? {dt.year})"
@matt2005
matt2005 / lambda_function.py
Last active January 22, 2026 03:13 — forked from awarecan/lambda_function.py
Alexa Smart Home Skill Adapter for Home Assistant
"""
Copyright 2019 Jason Hu <awaregit at gmail.com>
Modified 2020 Matthew Hilton <matthilton2005@gmail.com>
Refactor and Modernised 2025 Matthew Hilton <matthilton2005@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Links:
https://elixir-lang.org/learning.html
https://exercism.io/tracks/elixir
https://github.com/happi/theBeamBook
https://www.manning.com/books/elixir-in-action
@marcelobbfonseca
marcelobbfonseca / middleware.rb
Last active December 13, 2024 13:43
Sinatra ruby JWT authentication middleware
# To connect this middleware.rb file to your sinatra app
# add 'use JWTAuthorization' as one of your first lines in
# your Application class.
# e.g.
# require 'middlewares.rb'
# class Application < Sinatra::Base
# use JWTAuthorization
# ...
# end
@oonsamyi
oonsamyi / enzyme_render_diffs.md
Last active October 21, 2019 07:21 — forked from fokusferit/enzyme_render_diffs.md
Difference between Shallow, Mount and render of Enzyme

Shallow

Real unit test (isolation, no children render)

Simple shallow

Calls:

  • constructor
  • static getDerivedStateFromProps
@prestia
prestia / installing_MTGO_on_macOS_with_Retina_support.md
Last active January 13, 2026 15:47
Instructions on how to install Magic the Gathering Online on macOS with Retina support.

Installing MTGO on macOS using Wine, and making it look pretty!

The following instructions are heavily inspired by @pauleve. I modified his instructions and then added details about how to make a shortcut and support Retina/HiDPI displays.

Installing MTGO (and Wine and Homebrew and Xquartz and ...)

  1. Install Homebrew by opening Terminal and executing the following command:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"