Skip to content

Instantly share code, notes, and snippets.

@seiferteric
seiferteric / mw-event-dev.c.patch
Created June 30, 2023 18:05
Magewell Pro Capture HDMI linux drivers patch fix for 6.4 kernel
diff -u --recursive src/sources/avstream/mw-event-dev.c ../ProCaptureForLinux_4328_fixed/src/sources/avstream/mw-event-dev.c
--- src/sources/avstream/mw-event-dev.c 2022-12-16 01:04:51.000000000 -0800
+++ ../ProCaptureForLinux_4328_fixed/src/sources/avstream/mw-event-dev.c 2023-06-30 11:04:45.660541222 -0700
@@ -155,7 +155,11 @@
g_dev.c_major = MAJOR(dev_id);
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0)
g_dev.c_class = class_create(THIS_MODULE, MW_EVENT_NAME);
+#else
@seiferteric
seiferteric / manage_vm.sh
Last active February 13, 2018 08:28
Script to start/stop my windows libvirt vm with Nvidia IOMMU GPU Passthrough
#!/bin/bash
DEV1=01:00.0
DEV2=01:00.1
VM=Windows10
NV_VER=384
NV_MIN_VER=111
ACTION=$1
#!/bin/sh
set -e
if [ ! -e ".babelrc" ]; then
npm init
npm i webpack -S
cat >webpack.config.js <<EOF
var webpack = require('webpack');