Skip to content

Instantly share code, notes, and snippets.

View rmb938's full-sized avatar

Ryan Belgrave rmb938

View GitHub Profile
import datetime
import PyKCS11
from cryptography import x509
from cryptography.hazmat.primitives.asymmetric import ec
from cryptography.hazmat.primitives import _serialization
from cryptography.x509.oid import NameOID, ExtendedKeyUsageOID
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives import serialization
@rmb938
rmb938 / README.md
Last active October 19, 2024 17:30
Bootstrap Proxmox Container Template Commands

Bootstrap

  1. Create Proxmox Container based on Ubuntu with SSH Key, not a password
    1. No IPv4, SLAAC for IPv6
  2. Modify container via host shell to add tun device, this will get copied when cloning /etc/pve/lxc/$ID.conf
    lxc.cgroup2.devices.allow: c 10:200 rwm
    lxc.mount.entry: /dev/net/tun dev/net/tun none bind,create=file
  3. Start Container
@rmb938
rmb938 / .env
Last active July 25, 2024 17:24
podman system service command
CONTAINER_HOST=unix:///run/user/1000/podman/test-podman.sock
@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