Skip to content

Instantly share code, notes, and snippets.

View robbmanes's full-sized avatar
🎮
pew pew

Robb Manes robbmanes

🎮
pew pew
View GitHub Profile
@robbmanes
robbmanes / game_modding_notes.md
Last active April 18, 2025 18:35
Robb's Game Modding Notes
@robbmanes
robbmanes / quick-delve-golang-example.md
Created February 28, 2025 20:54
Quick Delve Golang Example
@robbmanes
robbmanes / .env
Created December 23, 2024 02:10
Media Server Containers
TZ=US/Eastern
PUID=1000
GUID=1000
PATH_MEDIA=/mnt/plex/Media
PATH_BASE_CONFIG=/mnt/plex/AppConfig
# bittorrent protocol port, tcp & udp
PORT_TORRENT=57849
#!/bin/bash
# rh-download-blob
# Downloads a blob path from a Red Hat Container Registry location, using a username/password combo
# Input your username or service account and password/token.
USERNAME="username"
PASSWORD="password"
# Change this to the required blob location (SHA256 path)
@robbmanes
robbmanes / podman-api-host.yaml
Last active February 27, 2024 16:15
[WIP] Configuring a podman API socket on an OpenShift 4 cluster
---
apiVersion: v1
kind: Namespace
metadata:
name: podman-api-host
labels:
app: podman-api-host
---
apiVersion: v1
kind: ServiceAccount
@robbmanes
robbmanes / test_systemd_session.yaml
Last active February 18, 2024 19:10
systemd user test within Ansible playbook
- name: Verify if a user can run `systemctl` commands as a non-root user
hosts: localhost
vars:
rootless_user: "rmanes"
rootless_uid: "1000"
become_method: machinectl
tasks:
- name: Check if DBUS socket exists for session user
stat:
path: "/run/user/{{ rootless_uid }}/bus"
@robbmanes
robbmanes / hll_crcon_get_vip_ids_to_csv.py
Created May 10, 2023 19:13
Get HLL CRCON VIP ID's and export them to CSV
import csv
import requests
import sys
RCON_URL='http://mycoolrcon.example'
RCON_USERNAME='admin'
RCON_PASSWORD='password'
CSV_FILE='vips.csv'
def main():
@robbmanes
robbmanes / container_labeler.go
Last active February 20, 2023 18:10
Go program that tests the container labeling capabilites of `go-selinux/label`.
package main
import (
"fmt"
"github.com/opencontainers/selinux/go-selinux/label"
)
// Mirroring the behavior found here:
// https://github.com/containers/podman/blob/8432ed7488e9c62738f9308fcc03f2ae9c2cd615/libpod/util_linux.go#L110-L129
func main() {
@robbmanes
robbmanes / build-support-tools-infiniband.sh
Last active January 18, 2023 16:39
Adds Infiniband support to Red Hat Support Tools container image
#!/bin/bash
# Builds infiniband support into the base RHEL support-tools image.
# Must be run from a subscribed RHEL host.
IMAGE_NAME="quay.io/robbmanes/support-tools-ib:latest"
function main() {
echo "Pulling latest support-tools container image..."
CONTAINER=$(buildah from registry.redhat.io/rhel8/support-tools)
@robbmanes
robbmanes / bad-exit-ptracer.c
Last active August 8, 2022 19:58
Bad Exit Ptracer
#include <stdio.h>
#include <stdlib.h>
#include <syscall.h>
#include <sys/user.h>
#include <sys/types.h>
#include <sys/ptrace.h>
#include <errno.h>
#define SYSCALL_EXIT 60
#define SYSCALL_EXIT_GROUP 231