Skip to content

Instantly share code, notes, and snippets.

@brndd
brndd / sriov-notes.md
Last active October 10, 2023 13:27
Intel iGPU SR-IOV notes

Steps taken to enable (using the kmod RPMs from here: https://github.com/sihawken/i915-sriov-kmod/, forked by me to rebuild to include 6.5.x kernel support from the upstream dkms):

dnf copr enable peoinas/akmods
dnf install akmod-i915-sriov
akmods --force
depmod -a
dracut --force

Then append intel_iommu=on i915.enable_guc=3 i915.max_vfs=7 to /etc/default/grub and run sudo grub2-mkconfig -o /boot/grub2/grub.cfg.

import sys
from PIL import Image
infile = sys.argv[1]
outfile = infile + "_fixed.tiff"
im = Image.open(infile)
newimdata = []
for color in im.getdata():
<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="34">
<CheatEntries>
<CheatEntry>
<ID>0</ID>
<Description>"Disable NITG prisoner spawning"</Description>
<LastState Activated="1"/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>[ENABLE]
AOBSCAN(var, 83 E8 07 83 F8 01 76 29)
<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="34">
<CheatEntries>
<CheatEntry>
<ID>0</ID>
<Description>"Disable NITG prisoner spawning"</Description>
<LastState Activated="1"/>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>[ENABLE]
AOBSCAN(var, 41 8d 45 f9 83 f8 01 0f 86 ae 01 00 00)
Name: snap-sync
Version: 0.7
Release: 2%{?dist}
Summary: Use snapper snapshots to backup to external drive
License: GPLv2
URL: https://github.com/wesbarnett/snap-sync/
Source0: https://github.com/wesbarnett/snap-sync/releases/download/%{version}/%{name}-%{version}.tar.gz
Requires: bash, snapper, btrfs-progs, gawk, util-linux, sed, openssh-clients, pv
Name: snap-sync
Version: 0.6.1
Release: 1%{?dist}
Summary: Use snapper snapshots to backup to external drive
License: GPLv2
URL: https://github.com/wesbarnett/snap-sync/
Source0: https://github.com/wesbarnett/snap-sync/releases/download/%{version}/%{name}-%{version}.tar.gz
Requires: bash, snapper, btrfs-progs, gawk, util-linux, sed, openssh-clients
@brndd
brndd / flip_dmm.py
Last active November 13, 2019 11:13
crappy experiment in flipping byond maps
"""
This rotates dmm maps around 180°
only works on SINGLE Z-LEVEL dmm files because I'm lazy and rotating Centcomm is a bad idea
"""
import re
import sys
import os
import csv
import sys
import os
import math
import random
infilename = sys.argv[1]
if not os.path.exists(infilename):
print("Invalid input file name.")
exit(1)