Skip to content

Instantly share code, notes, and snippets.

View peteonrails's full-sized avatar

Pete Jackson peteonrails

View GitHub Profile
@peteonrails
peteonrails / before-after-output.txt
Created April 17, 2026 11:13
ENG1S-712: Test artifacts — seed task, Playwright scripts, before/after proof
/home/pete/.local/share/mise/installs/ruby/3.4.7/lib/ruby/3.4.0/bundled_gems.rb:82: warning: ⛔️ WARNING: Sidekiq testing API enabled, but this is not the test environment. Your jobs will not go to Redis.
⛔️ `require "sidekiq/testing"` is deprecated and will be removed in Sidekiq 9.0. See https://sidekiq.org/wiki/Testing#new-api
======================================================================
ENG1S-712: Before/After Proof — SubscriptionSeats::Assign
======================================================================
--- BEFORE (main's code) ---
User: 32 | Subscription: active | Membership: 38
ReplaceIndividualWithAgencyJob enqueued: 0
RESULT: NO JOB — subscription keeps running until period end
@peteonrails
peteonrails / README.md
Created April 15, 2026 23:57
Alpenglow Waybar config + Tempest Weather widget for Omarchy

Alpenglow Waybar config

Waybar configuration for the Alpenglow Omarchy theme, including a Tempest Weather System module.

Files

  • config.jsonc — Waybar layout (left/center/right modules).
  • style.css — Waybar styling. The fenced alpenglow-waybar-scheme block at the bottom is the warm/cool colorization. Only has effect when using
@peteonrails
peteonrails / Alpenglow Waybar.md
Last active April 15, 2026 23:55
Alpenglow Waybar config + Tempest Weather widget for Omarchy

Alpenglow Waybar config

Waybar configuration for the Alpenglow Omarchy theme, including a Tempest Weather System module.

Files

  • config.jsonc — Waybar layout (left/center/right modules).
  • style.css — Waybar styling. The fenced alpenglow-waybar-scheme block at the bottom is the warm/cool colorization. Only has effect when using
@peteonrails
peteonrails / seed_contacts_for_migration.rb
Last active February 9, 2026 23:48
Seed script for testing marketing codes data migration locally
contact_ids = [
1069803, 1101193, 1365371, 1378337, 1416654, 1417908, 1423274, 1449297,
1449298, 1449300, 1449308, 1449309, 1449359, 1449365, 1449415, 1449438,
1449592, 1449644, 1449690, 1449756, 1449761, 1450003, 1450055, 1450157,
1450218, 1450309, 1450762, 1450923, 1451070, 1451095, 1451209, 1451265,
1451392, 1451443, 1451562, 1451680, 1451835, 1451937, 1451946, 1451963,
1452013, 1452156, 1452181, 1452222, 1452275, 1452289, 1452299, 1452300,
1452413, 1452418, 1452421, 1452425, 1452426, 1452441, 1452516, 1452545,
1452597, 1452598, 1452643, 1452733, 1452747, 1452762, 1452950, 1452955,
1452960, 1452964, 1452969, 1452971, 1452979, 1452987, 1453015, 1453052,
@peteonrails
peteonrails / playwright-test-datepicker-extreme.js
Created December 16, 2025 01:04
Playwright test for datepicker calendar positioning fix (PR #10638)
const { chromium } = require('playwright');
const TARGET_URL = 'http://localhost:3000';
const LOGIN_EMAIL = 'emmie@tern.travel';
const LOGIN_PASSWORD = 'abc12345!1!1';
(async () => {
console.log('Testing EXTREME edge case - datepicker at very top of viewport...\n');
const browser = await chromium.launch({
@peteonrails
peteonrails / database_truncator.rb
Created January 24, 2019 15:16
Database Truncation
# frozen-string-literal: true
class DatabaseTruncator
def self.truncate
skipped = 'schema_migrations'
ActiveRecord::Base.establish_connection
ActiveRecord::Base.connection.tables.each do |table|
puts "Truncating #{table}"
ActiveRecord::Base.connection.execute("TRUNCATE #{table} CASCADE") unless skipped.include?(table) # rubocop:disable Metrics/LineLength
@peteonrails
peteonrails / README.md
Created January 4, 2019 14:40 — forked from jondkinney/README.md
jondkinney's console vim setup

Console VIM and Tmux setup compatible with Mac OS X and Linux.

Installation

Install by running the following command in your terminal:

exec 3<&1;bash <&3 <(curl https://gist.githubusercontent.com/jondkinney/2040114/raw/vim.sh 2> /dev/null)
@peteonrails
peteonrails / Overview
Last active February 11, 2017 22:30
ASUS z270 Motherboard with Intel onboard controller Fix EEPROM Checksum for e1000 Linux Driver
The ASUS z270 motherboard ships with a bug in the firmware that prevents the Linux kernel driver (e1000)
from activating the hardware. The system will boot correctly, but will not activate your network interface
with this error in place.
In order to fix the issue, I followed these steps:
1. Download the latest Intel Linux drivers from https://downloadcenter.intel.com/product/19297/Intel-82573L-Gigabit-Ethernet-Controller
2. Transfer the drivers to the z270 machine with a thumbdrive
3. Patch the linux drivers to ignore the checksum error. See diff below.
4. make, make install the patched driver. Please note, this will taint your kernel We can fix that later.
@peteonrails
peteonrails / Copyright correction
Created April 8, 2016 08:43
HAMLIB IC-7300 Rig Driver (patches submitted to upstream)
@peteonrails
peteonrails / ic7300.rules
Created April 2, 2016 00:21
UDEV file for ICOM IC-7300
SUBSYSTEM!="tty",GOTO="hamlib_end"
# Bus 004 Device 026: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge
ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", TEST!="/dev/ic7300", SYMLINK+="ic7300", MODE="666"
LABEL="hamlib_end"