Skip to content

Instantly share code, notes, and snippets.

@mark-ignacio
mark-ignacio / docs.md
Created February 19, 2022 04:58
Gentei v2 - soft launch docs

Gentei v2 Soft Launch documentation

Until I rebuild the Doctave site for the real launch, this sloppy GitHub gist will contain most info. It will be updated periodically during the soft launch period, which should last until mid-March 2022.

Feel free to contact のヮの#6969 or post in #gentei-限定 on the Hololive Creators Club Discord server to get my attention or ask questions not addressed below.


Gentei's batteries-included Discord bot is called gentei-bouncer#9835. It's a fully automated wrapper for managing one or more members-only roles on enrolled Discord servers.

@mark-ignacio
mark-ignacio / fmdraw.py
Created August 3, 2019 17:17
draw things on the FLORIDA_MAN 2019 Splunk dashboard
#!/usr/bin/env python3
"draws a sine wave on the FLORIDA_MAN 2019 temperature Splunk dashboard"
import time
import random
import math
import requests
# put your shit right hurr
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd
root@pve:~# for d in /sys/kernel/iommu_groups/*/devices/*; do
> n=${d#*/iommu_groups/*}; n=${n%%/*}
> printf 'IOMMU Group %s ' "$n"
> lspci -nns "${d##*/}"
> done;
IOMMU Group 0 00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1452]
IOMMU Group 10 00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1460]
IOMMU Group 10 00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1461]
IOMMU Group 10 00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1462]
IOMMU Group 10 00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1463]
@mark-ignacio
mark-ignacio / 6502_to_d.py
Last active November 16, 2015 17:40
csaw2015 blox
import re
bit_map = {
'$8731': 'out_bit',
'$871A': 'in_bit',
'$875F': 'and_bit',
'$8769': 'or_bit',
'$8773': 'xor_bit'
}
@mark-ignacio
mark-ignacio / what-ca-are-you.cpp
Created July 12, 2015 01:00
Returns the CA type of a pem file
#include <iostream>
#include <openssl/pem.h>
#include <openssl/x509v3.h>
int main(int argc, char *argv[]) {
if (argc != 2) {
std::cout << "usage: ./what-ca-are-you [certificate.crt]" << std::endl;
return 0;
}