Skip to content

Instantly share code, notes, and snippets.

View thomasgallagher's full-sized avatar

Tom Gallagher thomasgallagher

View GitHub Profile
@rameerez
rameerez / kamal-production-server-setup.sh
Last active June 29, 2025 17:37
Set up a Ubuntu server to deploy Kamal 2.x Docker containers to, hardened security and production ready
#!/bin/bash
# Production Docker Host Hardening Script v2
# For Ubuntu Server 24.04 LTS (Noble)
# Suitable for both Kamal deployment and builder hosts
set -euo pipefail
IFS=$'\n\t'
# --- Constants ---
@Andrew8xx8
Andrew8xx8 / Gemfile
Created June 14, 2013 10:32
Example of API with ransack search and kaminari paginate.
gem 'kaminari'
gem 'ransack'