Skip to content

Instantly share code, notes, and snippets.

View stbenjam's full-sized avatar
🙃

Stephen Benjamin stbenjam

🙃
View GitHub Profile
@stbenjam
stbenjam / new_tests_screener.html
Last active April 21, 2026 15:59
David's New Test Screener - New tests in OpenShift 4.22 vs 4.21 and 4.21 vs 4.20
This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>David's New Test Screener</title>
<style>
:root {
--bg: #0d1117; --surface: #161b22; --surface2: #1c2128; --border: #30363d;
--text: #e6edf3; --text-muted: #8b949e; --accent: #58a6ff; --accent-hover: #79c0ff;
@stbenjam
stbenjam / skb_cpu_fsm_diagram.html
Created April 15, 2026 01:16
SKB CPU — interactive FSM navigator (Main + Memory FSMs from skb_cpu.vhd)
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>SKB CPU — FSM Navigator</title>
<meta name="viewport" content="width=device-width,initial-scale=1"/>
<style>
:root {
--bg-0: #05060f;
--bg-1: #0b0f1f;
@stbenjam
stbenjam / aro-reclassification.md
Created March 18, 2026 14:41
ARO job runs that would be reclassified with new infrastructure detection
@stbenjam
stbenjam / release-page-local.html
Created March 4, 2026 15:52
Release page with expandable retry attempt links (local snapshot)
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"><title>Release 4.22.0-0.nightly-2026-03-04-024042</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/4.6.1/css/bootstrap.min.css" integrity="sha512-T584yQ/tdRR5QwOpfvDfVQUidzfgc2339Lc8uBDtcp/wYu80d7jwBgAxbyMh0a9YM9F8N3tdErpFI8iaGx6x5g==" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.5.0/font/bootstrap-icons.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<style>
@media (max-width: 992px) {
.container {
@stbenjam
stbenjam / release-page-mock.html
Created March 4, 2026 15:29
Mock release page with expandable retry attempt links
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"><title>Release 4.22.0-0.nightly-2026-03-04-024042</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/4.6.1/css/bootstrap.min.css" integrity="sha512-T584yQ/tdRR5QwOpfvDfVQUidzfgc2339Lc8uBDtcp/wYu80d7jwBgAxbyMh0a9YM9F8N3tdErpFI8iaGx6x5g==" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.5.0/font/bootstrap-icons.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<style>
@media (max-width: 992px) {
.container {
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Payload Analysis: 4.22.0-0.nightly-2026-03-04-084819</title>
<style>
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; margin: 0; padding: 20px; background: #f5f5f5; color: #333; }
.container { max-width: 1200px; margin: 0 auto; }
h1 { color: #1a1a2e; border-bottom: 3px solid #e94560; padding-bottom: 10px; }
option arch code 93 = unsigned integer 16; # RFC4578
local-address 192.168.73.1;
class "pxeclients" {
match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
next-server 192.168.73.1;
log(info, "PXE Client Detected");
if exists user-class and option user-class = "iPXE" {
@stbenjam
stbenjam / squid.md
Last active August 2, 2018 17:25
Running a squid docker container with a whitelist
  1. Create a squid.conf file, for example, here's one that whitelists the Satellite 6.3 hosts only.
acl CONNECT method CONNECT
acl ssl_ports port 443

acl whitelist dstdomain subscription.rhsm.redhat.com
acl whitelist dstdomain cdn.redhat.com
acl whitelist dstdomain .akamaiedge.net
@stbenjam
stbenjam / 2fa.rb
Created July 26, 2018 19:07
Finds the users in your orgs who have commit but no 2FA enabled
#!/usr/bin/env ruby
require 'octokit'
require 'set'
ORGS = %w[catello].freeze
unless ENV['GITHUB_TOKEN']
puts 'You must specify a github token in the GITHUB_TOKEN environment variable.'
exit 1
@stbenjam
stbenjam / 80-libvirt.rules
Created June 6, 2018 16:20
Libvirt polkit rules
polkit.addRule(function(action, subject) {
if (action.id == "org.libvirt.unix.manage" &&
subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
});