Skip to content

Instantly share code, notes, and snippets.

View jkeam's full-sized avatar
🍻

Jon Keam jkeam

🍻
View GitHub Profile
@jkeam
jkeam / install-acm-observability.md
Last active February 19, 2026 22:58
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 February 21, 2026 00:12
Digital Ocean Create Kubernetes
#!/bin/bash
doctl kubernetes options sizes
# Create cluster
doctl kubernetes cluster create lfe-cluster \
--region nyc1 \
--version 1.34.1-do.3 \
--maintenance-window saturday=02:00 \
--node-pool "name=worker-pool;size=s-2vcpu-2gb-90gb-intel;count=2;tag=lfecluster;tag=jkeam;tag=clustername:lfe-cluster"
@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
@jkeam
jkeam / chrome-fonts.md
Created December 11, 2025 03:06
How to use fonts in chromebook termina.

Chrome OS: Nerd Fonts for the terminal

tutorial

@jkeam
jkeam / base64image.sh
Created December 10, 2025 23:28
Convert image to base64 encoded string
#!/bin/bash
PNGLOGOB64=$(base64 -i logo.png)
B64_FULL_LOGO="data:image/png;base64,$PNGLOGOB64"
@jkeam
jkeam / install-rocm-fedora.sh
Created November 9, 2025 18:47
Install ROCm on Fedora Server
#!/bin/bash
# for fedora server, you might need to expand the root
sudo lvextend -r -L+500g /dev/mapper/fedora-root
sudo usermod -a -G render,video $LOGNAME
sudo dnf install rocm rocm-devel
# test
# rocminfo
@jkeam
jkeam / grd.te
Created October 12, 2025 05:16
Gnome Remote Login on Fedora
module grd 1.0;
require {
type system_dbusd_t;
type unconfined_service_t;
type xdm_t;
class tcp_socket { getattr getopt read setopt shutdown write };
}
allow system_dbusd_t unconfined_service_t:tcp_socket { read write };
allow xdm_t unconfined_service_t:tcp_socket { getattr getopt read setopt shutdown write };