Personal notes on my journey into game modding.
Mods I've authored or contributed to.
Personal notes on my journey into game modding.
Mods I've authored or contributed to.
Example of what a running Go program looks like from https://go.dev/tour/concurrency/9.
Using the delve
debugger: https://github.com/go-delve/delve
Use delve
to compile and debug:
$ dlv debug mutex-counter.go
(dlv) l main.main:3
Showing /home/rmanes/Downloads/mutex-counter.go:34 (PC: 0x49b82f)
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) |
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: podman-api-host | |
labels: | |
app: podman-api-host | |
--- | |
apiVersion: v1 | |
kind: ServiceAccount |
- 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" |
import csv | |
import requests | |
import sys | |
RCON_URL='http://mycoolrcon.example' | |
RCON_USERNAME='admin' | |
RCON_PASSWORD='password' | |
CSV_FILE='vips.csv' | |
def main(): |
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() { |
#!/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) |
#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 |