This gist will collects all issues we solved with Rails 5.2 and Webpacker
# Last few parameters(--skip-* part) is only my habbit not actully required
$ rails new <project_name> --webpack=stimulus --database=postgresql --skip-coffee --skip-test| #!/bin/bash | |
| # | |
| # PostgreSQL Backup Script Ver 1.0 | |
| # http://autopgsqlbackup.frozenpc.net | |
| # Copyright (c) 2005 Aaron Axelsen <axelseaa@amadmax.com> | |
| # | |
| # This script is based of the AutoMySQLBackup Script Ver 2.2 | |
| # It can be found at http://sourceforge.net/projects/automysqlbackup/ | |
| # | |
| # The PostgreSQL changes are based on a patch agaisnt AutoMySQLBackup 1.9 |
| def select_date(date, options = {}) | |
| field = options[:from] | |
| base_id = find(:xpath, ".//label[contains(.,'#{field}')]")[:for] | |
| year, month, day = date.split(',') | |
| select year, :from => "#{base_id}_1i" | |
| select month, :from => "#{base_id}_2i" | |
| select day, :from => "#{base_id}_3i" | |
| end | |
| def select_time(hour, minute, options = {}) |
This gist will collects all issues we solved with Rails 5.2 and Webpacker
# Last few parameters(--skip-* part) is only my habbit not actully required
$ rails new <project_name> --webpack=stimulus --database=postgresql --skip-coffee --skip-test| #!/bin/bash | |
| # ───────────────────────────────────────────────────────────────────────────── | |
| # Production Docker Host Setup & Hardening Script — v3.1.0 | |
| # For Ubuntu Server 24.04 LTS (Noble) and 26.04 LTS (Resolute) | |
| # Suitable for both Kamal 2.x deployment hosts and remote builder hosts | |
| # | |
| # Part of RailsFast (https://railsfast.com) — free & open source, MIT licensed. | |
| # | |
| # Usage (as root, on a fresh server): |
Protecting Against Autonomous Agent rm -rf Commands
AI coding agents can run shell commands. Sometimes they run rm -rf by mistake. This deletes files forever. While of course I always read and approve all tool calls manually, by hand, and never let my agents work except under direct supervision 100% of the time, sometimes I miss things.
rm -rf before it runstrash