Skip to content

Instantly share code, notes, and snippets.

View jcpowermac's full-sized avatar

Joseph Callen jcpowermac

View GitHub Profile
@jcpowermac
jcpowermac / README.md
Last active June 12, 2026 14:06
Serena MCP + Cursor global setup (hooks, MCP config, user rules)

Serena + Cursor (global setup)

Make Cursor agents actually use Serena symbolic tools instead of defaulting to Read/Grep/SemanticSearch. Adapted from Serena's Claude Code client docs.

This is a user-global setup (~/.cursor/). It applies to every project you open in Cursor.

Prerequisites

  1. Install Serena (do not use marketplace/plugin installers):
@jcpowermac
jcpowermac / README.md
Created May 24, 2026 16:24
pangolin 1.18 upgrade sqlite issue and fix via cursor

cursor determined the fix

Pangolin 1.18 upgrade: SqliteError: no such column: resources.health

A troubleshooting guide for Pangolin upgrades from 1.17.x → 1.18.x when the SQLite database schema is out of sync with the running application.

Tested fix path: seed versionMigrations with 1.17.0, then re-run migrations.


@jcpowermac
jcpowermac / Dockerfile
Created August 6, 2025 19:27
openshift 4.18 rhel 9.4 bcc tools
FROM registry.redhat.io/rhel9/support-tools:latest
RUN dnf install -y --disablerepo='*' --enablerepo=rhel-9-for-x86_64-baseos-rpms --enablerepo=rhel-9-for-x86_64-appstream-rpms --releasever=9.4 --allowerasing --nobest wget tcpdump vim bind-utils sysstat procps-ng ncurses curl wget tcpdump vim iproute -y
RUN dnf install --disablerepo='*' --enablerepo=rhel-9-for-x86_64-baseos-eus-rpms --enablerepo=rhel-9-for-x86_64-appstream-eus-rpms --releasever=9.4 kernel-core-5.14.0-427.68.2.el9_4.x86_64 kernel-headers-5.14.0-427.68.2.el9_4.x86_64 -y
RUN dnf install --disablerepo='*' --enablerepo=rhel-9-for-x86_64-baseos-eus-rpms --enablerepo=rhel-9-for-x86_64-appstream-eus-rpms --releasever=9.4 --allowerasing --nobest bpftrace bpftool -y
COPY tcptop /root
RUN dnf clean all
event:13 ticks:0 rip:0x70d545c6fe40
event:14 ticks:0 rip:0x70d545c6fe40
event:15 ticks:0 rip:0x70d545c6fe43
event:15 ticks:0 rip:0x70d545c70b60
event:15 ticks:0 rip:0x70d545c70b64
event:15 ticks:0 rip:0x70d545c70b65
event:15 ticks:0 rip:0x70d545c70b68
event:15 ticks:0 rip:0x70d545c70b6a
event:15 ticks:0 rip:0x70d545c70b6c
event:15 ticks:0 rip:0x70d545c70b6e
event:13 ticks:0 rip:0x70d545c6fe40
event:14 ticks:0 rip:0x70d545c6fe40
event:15 ticks:0 rip:0x70d545c6fe43
event:15 ticks:0 rip:0x70d545c70b60
event:15 ticks:0 rip:0x70d545c70b64
event:15 ticks:0 rip:0x70d545c70b65
event:15 ticks:0 rip:0x70d545c70b68
event:15 ticks:0 rip:0x70d545c70b6a
event:15 ticks:0 rip:0x70d545c70b6c
event:15 ticks:0 rip:0x70d545c70b6e
@jcpowermac
jcpowermac / camera.yaml
Created June 24, 2023 22:21
ESP32-S3-WROOM-1-N8R8 FREENOVE ESP32-S3-WROOM CAM
esphome:
name: camera
platformio_options:
build_flags: "-DBOARD_HAS_PSRAM -UARDUINO_USB_CDC_ON_BOOT"
board_build.memory_type: dio_opi
esp32:
board: esp32-s3-devkitc-1
variant: esp32s3
framework:
$region = new-tagcategory openshift-region
$zone = new-tagcategory openshift-zone
new-tag us-west -Category $region
new-tag us-east -Category $region
new-tag us-west-1a -Category $zone
@jcpowermac
jcpowermac / compile.patch
Last active January 6, 2023 00:19
golang, delve, rr, openshift-installer
diff --git a/hack/build.sh b/hack/build.sh
index c5b9156ed3..0c157442bf 100755
--- a/hack/build.sh
+++ b/hack/build.sh
@@ -52,7 +52,7 @@ export CGO_ENABLED=0
case "${MODE}" in
release)
- LDFLAGS="${LDFLAGS} -s -w"
+ #LDFLAGS="${LDFLAGS}"
@jcpowermac
jcpowermac / create-backends.sh
Last active January 9, 2023 14:54
haproxy dataplaneapi - create many backend servers
#!/bin/bash
USERNAME=dataplaneapi
PASSWORD=dataplaneapi
MASTER_BACKENDS=("api-server" "machine-config-server")
INGRESS_BACKENDS=("router-http" "router-https")