Skip to content

Instantly share code, notes, and snippets.

View abyrne55's full-sized avatar

Anthony Byrne abyrne55

  • Red Hat
  • United States
View GitHub Profile
@abyrne55
abyrne55 / vsh
Created April 17, 2026 21:43
Script for SSH-ing into a QEMU VM
#!/bin/bash
# vsh - SSH shortcut for the homelab QEMU VM
SSH_KEY="$HOME/src/homelab/secrets/core/id_ed25519"
ssh \
-i "$SSH_KEY" \
-p 2222 \
-o LogLevel=QUIET \
-o StrictHostKeyChecking=no \
-o UserKnownHostsFile=/dev/null \
@abyrne55
abyrne55 / SKILL.md
Created April 17, 2026 04:51
Claude skill for importing recipes into Mealie
name mealie-import
description Import or update a recipe from a local markdown file into a Mealie instance. Use this whenever the user wants to add, import, sync, push, or upload a recipe to Mealie — whether they say "add pancakes.md to Mealie", "import this recipe", "sync my recipes", "push the pizza dough to Mealie", or anything similar. Also use it when the user wants to update an existing Mealie recipe from a local file. Don't wait for the user to say "use the mealie-import skill" — if they're talking about getting a recipe into Mealie, this is the skill.

Mealie Recipe Import

Import or update a markdown recipe file into a self-hosted Mealie instance.

Connection details

@abyrne55
abyrne55 / unattended-poweroff.service
Last active April 16, 2026 17:42
Systemd user units: graceful shutdown on battery after 11pm
[Unit]
Description=Graceful shutdown if running on battery late at night
ConditionACPower=false
# Once triggered, don't trigger again for 30 minutes
StartLimitIntervalSec=30minutes
StartLimitBurst=1
[Service]
Type=oneshot
@abyrne55
abyrne55 / test-results.md
Created February 4, 2026 18:57
BuildSignerURI Policy Enforcement Test Results
@abyrne55
abyrne55 / fulcio-extensions.md
Created February 3, 2026 21:48
Extracting Fulcio Certificate Extensions with Cosign

Extracting Fulcio Certificate Extensions with Cosign

Sigstore's Fulcio CA embeds provenance metadata in X.509 certificate extensions. These OIDs (under 1.3.6.1.4.1.57264.1.*) provide verifiable build context for container images.

Key Extensions

OID Name Description
1.3.6.1.4.1.57264.1.8 Issuer (v2) OIDC token issuer URL
1.3.6.1.4.1.57264.1.9 Build Signer URI Workflow that signed the image
@abyrne55
abyrne55 / verify_egress.go
Created December 7, 2022 17:11
Quick testing script for openshift/osd-network-verifier PR#161
package main
import (
"context"
"fmt"
"os"
"time"
awsconfig "github.com/aws/aws-sdk-go-v2/config"
ocmlog "github.com/openshift-online/ocm-sdk-go/logging"
@abyrne55
abyrne55 / ochello.sh
Last active May 3, 2023 15:54
Source-able script for fast OSD cluster descriptions/environment setup
#!/bin/sh
### SOURCE THIS FILE; DON'T RUN IT DIRECTLY ###
# Instead, copy this file to a safe location, and add the following line to your .bashrc
# alias ochello="source /path/to/ochello"
# Then just run "ochello <CLUSTER_NAME_OR_ID>"
export CDESCFILE=`mktemp`
ocm describe cluster $1 --json > $CDESCFILE
if [ "$?" != '0' ]; then
@abyrne55
abyrne55 / stackedit_sticky_navbar.html
Created February 3, 2020 16:54
StackEdit HTML export template with sticky navbar showing H2 headers
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{files.0.name}}</title>
<link rel="stylesheet" href="https://stackedit.io/style.css" />
<style>
.topnav{background-color:#f1f1f1;overflow:hidden;position:fixed;width:100%;text-align:center;height:40px;z-index:1}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>SLI Report: 2019-07-29 to 2019-07-30 </title>
<style>
*{font-family:Sans-serif}
table{border-collapse:collapse;border-spacing:0;empty-cells:show;border:1px solid #cbcbcb}
td,th{font-size:inherit;margin:0;overflow:visible;padding:.5em 1em;border-bottom:1px solid #cbcbcb}
thead{background-color:#e0e0e0;color:#000;text-align:left;vertical-align:bottom}
@abyrne55
abyrne55 / vmsetup.yaml
Last active August 13, 2019 13:59
Simple cloud-config script for configuring my VMs
#cloud-config
hostname: %HOSTNAME%
fqdn: %HOSTNAME%.n-x.win
timezone: US/Eastern
manage_etc_hosts: localhost
package_upgrade: true
users:
- default
- name: anthony
shell: /bin/bash