Skip to content

Instantly share code, notes, and snippets.

View xthezealot's full-sized avatar

The Zealot xthezealot

View GitHub Profile
@xthezealot
xthezealot / Dockerfile
Created March 18, 2024 15:35
Ruby on Rails in Alpine Docker container
# syntax = docker/dockerfile:1
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile
ARG RUBY_VERSION=3.3.0
FROM registry.docker.com/library/ruby:$RUBY_VERSION-alpine as base
# Rails app lives here
WORKDIR /rails
# Set production environment
@xthezealot
xthezealot / README-real.md
Last active January 27, 2025 15:52
Hello World HTTP benchmark

Real HTTP form routing benchmark

  • Hardware: macOS on M3

Cost Efficiency

Cost Efficiency

Crystal 1.15

@xthezealot
xthezealot / README.md
Last active January 29, 2025 14:59
Crystal SMTP Client

Crystal SMTP Client

Usage

smtp = SmtpClient.new("SMTP_HOST")
begin
  smtp.authenticate("SMTP_USERNAME", "SMTP_PASSWORD")
  smtp.send_email(
 from: "FROM_EMAIL",
@xthezealot
xthezealot / README.md
Last active April 17, 2025 17:04
AI Editor Rules

AI Prompts for Code Editors

Currently available prompts:

  • Generic Rules
  • Expo v52 Rules
  • Next.js v15 Rules

See the prompt details for the complete tech stack of each prompt.