Skip to content

Instantly share code, notes, and snippets.

View jkeam's full-sized avatar
🍻

Jon Keam jkeam

🍻
View GitHub Profile
@jkeam
jkeam / update-fedora.sh
Last active April 26, 2026 22:28
Upgrade Fedora
#!/bin/bash
# update
sudo dnf upgrade --refresh
sudo dnf system-upgrade download --releasever=44 --allowerasing
sudo dnf5 offline reboot
@jkeam
jkeam / config.yaml
Created April 16, 2026 18:22
Continue Local Config (~/.continue/config.yaml)
name: Local Config
version: 1.0.0
schema: v1
models:
- name: Granite
provider: openai
model: granite-3-1-8b-instruct
apiKey: sk-abc123def456ghi789jkl012mno345pqr678stu901vwx234
apiBase: "http://granite-3-1-8b-instruct-predictor.ic-shared-llm.svc.cluster.local:8080/v1"
@jkeam
jkeam / certificate-testing.sh
Created April 3, 2026 18:09
Certificate Testing
#!/bin/bash
# get certs
openssl s_client -showcerts -connect YOUR_REG.COM:8443 </dev/null
# see subject and issuer
openssl x509 -noout -subject -issuer
<PASTE YOUR CERT HERE>
@jkeam
jkeam / wipe-disk.sh
Created April 3, 2026 17:05
Wipe Disk
#!/bin/bash
# check
blkid /dev/<disk>
wipefs -n /dev/<disk>
# wipe
wipefs -a /dev/<disk>
sgdisk --zap-all /dev/<disk>
dd if=/dev/zero of=/dev/<disk> bs=1M count=100 oflag=direct,dsync
@jkeam
jkeam / install-acm-observability.md
Last active February 23, 2026 04:35
Install OpenShift ACM Observability

Installing The OpenShift Advanced Cluster Management (ACM) Observability

This turns on the observability component of ACM. The common use case is for virtualization metrics.

Steps

  1. Install ACM using the Ecosystem -> Software Catalog and accept all defaults, wait until done.

    acm
@jkeam
jkeam / ocp-virt-vis-demo.txt
Created February 18, 2026 03:15
OCP Virt Visualization Demo
Visualization in OCP Demo
1. Virtual Machine - click on specific virtual machine
CPU, Memory, Storage, Network
2. Click Graphs and talk about PromQL and refresh timer
winweb01
database
@jkeam
jkeam / doctl-create-kube.sh
Last active March 18, 2026 00:57
Digital Ocean Create Kubernetes
#!/bin/bash
# Prerequisites:
# doctl, helm, kubectl
doctl kubernetes options sizes
# Create cluster
doctl kubernetes cluster create lfe-cluster \
--region nyc1 \
@jkeam
jkeam / shutdown-openshift.sh
Created January 24, 2026 22:17
Script to shutdown OpenShift
#!/bin/bash
echo "Start the cluster before this date"
oc -n openshift-kube-apiserver-operator get secret kube-apiserver-to-kubelet-signer -o jsonpath='{.metadata.annotations.auth\.openshift\.io/certificate-not-after}'
echo ""
echo "Marking nodes as unscheduable"
for node in $(oc get nodes -o jsonpath='{.items[*].metadata.name}'); do
echo ${node}
oc adm cordon ${node}
@jkeam
jkeam / gist:d4641451b272d815c791e5a94e8e9698
Created January 6, 2026 13:59
In the GRUB bootmenu, I needed these options to make my NVIDIA card work.
rd.driver.blacklist=nouveau,nouveau.modeset=0,nvidia-drm.modeset=1
@jkeam
jkeam / tl3-test1-devfile.yaml
Created December 19, 2025 23:27
Technical Level 3 - Test 1 App
schemaVersion: 2.2.0
metadata:
generateName: tl3test1
components:
- name: development-tooling
container:
image: registry.redhat.io/devspaces/udi-rhel9@sha256:bb5baa05f316944ca6df56ad718c368b248e8f4b2488551549b1b13c4ed5844b
env:
- name: QUARKUS_HTTP_HOST
value: 0.0.0.0