Skip to content

Instantly share code, notes, and snippets.

View rmb938's full-sized avatar

Ryan Belgrave rmb938

  • Software Engineer @Optum
  • Minneapolis, MN
View GitHub Profile
@rmb938
rmb938 / centos-7.dockerfile
Created April 19, 2024 13:29
kube-router centos & rocky builds
ARG BUILDTIME_BASE=golang:1-alpine
ARG RUNTIME_BASE=centos:7
ARG TARGETPLATFORM
ARG CNI_VERSION
FROM ${BUILDTIME_BASE} as builder
ENV BUILD_IN_DOCKER=false
ENV KUBE_ROUTER_VERSION=v2.1.0
RUN apk add --no-cache make git tar curl

Linux Runelite Debugging

When using the official Runelite Linux AppImage it is impossible to use the --configure flag on the AppImage, at least in my case on Fedora 37.

When saving the configure dialog a stack trace happens with the following error java.nio.file.FileSystemException: /tmp/.mount_RuneLic9UypO/settings.json: Read-only file system

To get around this you can run ./RuneLite.AppImage --appimage-extract and this will extract the AppImage into the local directory.

Then to run Runelite simple use the following ./squashfs-root/RuneLite.

apiVersion: baremetal.com.rmb938/v1alpha1
kind: BareMetalHardware
metadata:
name: baremetalhardware-sample
namespace: default
spec:
canProvision: true
imageDrive: nvme0n1
nics:
- name: eth0
@rmb938
rmb938 / etc_default_grub
Last active February 16, 2020 16:55
fedora 27 vfio
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_DISABLE_OS_PROBER=true
GRUB_CMDLINE_LINUX="resume=/dev/mapper/fedora_magic--muffin-swap rd.lvm.lv=fedora_magic-muffin/root rd.lvm.lv=fedora_magic-muffin/swap rhgb quiet pcie_aspm=off iommu=pt amd_iommu=on isolcpus=1-8 nohz_full=1-8 rd.driver.pre=vfio-pci"
GRUB_DISABLE_RECOVERY="true"
@rmb938
rmb938 / clusterrole.yaml
Last active September 13, 2019 16:04
Prom Operator Deployment
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: prometheus-operator
rules:
- apiGroups:
- apiextensions.k8s.io
resources:
- customresourcedefinitions
verbs:
@rmb938
rmb938 / clusterrole.yaml
Created September 13, 2019 15:36
prom operator examples
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: prometheus
rules:
- apiGroups:
- ""
resources:
- nodes
- services
@rmb938
rmb938 / slack theme
Created June 3, 2019 21:54
slack theme
#333333,#222222,#E51b24,#FFFFFF,#222222,#FFFFFF,#E51B24,#800d07
abrt-2.1.11-52.el7.centos.x86_64
abrt-addon-ccpp-2.1.11-52.el7.centos.x86_64
abrt-addon-kerneloops-2.1.11-52.el7.centos.x86_64
abrt-addon-pstoreoops-2.1.11-52.el7.centos.x86_64
abrt-addon-python-2.1.11-52.el7.centos.x86_64
abrt-addon-vmcore-2.1.11-52.el7.centos.x86_64
abrt-addon-xorg-2.1.11-52.el7.centos.x86_64
abrt-cli-2.1.11-52.el7.centos.x86_64
abrt-console-notification-2.1.11-52.el7.centos.x86_64
abrt-dbus-2.1.11-52.el7.centos.x86_64
# strace -f -p 2344
strace: Process 2344 attached with 20 threads
[pid 2862] futex(0xc4202a3548, FUTEX_WAIT, 0, NULL <unfinished ...>
[pid 2496] futex(0xc42008c948, FUTEX_WAIT, 0, NULL <unfinished ...>
[pid 2494] futex(0xc4202a2948, FUTEX_WAIT, 0, NULL <unfinished ...>
[pid 2493] futex(0xc4202a2548, FUTEX_WAIT, 0, NULL <unfinished ...>
[pid 2404] futex(0xc42037d548, FUTEX_WAIT, 0, NULL <unfinished ...>
[pid 2402] futex(0xc42037d148, FUTEX_WAIT, 0, NULL <unfinished ...>
[pid 2384] futex(0xc42037cd48, FUTEX_WAIT, 0, NULL <unfinished ...>
[pid 2382] futex(0xc42037c948, FUTEX_WAIT, 0, NULL <unfinished ...>
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3559, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=3559, ...}) = 0
write(1, "root 2094 0.0 0.0 10812 "..., 179root 2094 0.0 0.0 10812 2112 ? Sl Mar28 0:02 containerd-shim -namespace k8s.io -workdir /data/var/lib/containerd/io.containerd.runtime.v1.linux/k8s.io/707fec6
) = 179
stat("/proc/2116", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0
open("/proc/2116/stat", O_RDONLY) = 6
read(6, "2116 (configmap-reloa) S 2094 21"..., 2048) = 293
close(6) = 0
open("/proc/2116/status", O_RDONLY) = 6
read(6, "Name:\tconfigmap-reloa\nUmask:\t002"..., 2048) = 1326