Skip to content

Instantly share code, notes, and snippets.

View jonjonw's full-sized avatar

Jonathan Wiersma jonjonw

View GitHub Profile
@jonjonw
jonjonw / MAKEFILE.patch
Created December 31, 2020 07:58
Updated PKGBUILD for linux-sgx-driver-dkms-git with fix for dkms
diff --unified --recursive --text linux-sgx-driver.orig/Makefile linux-sgx-driver/Makefile
--- linux-sgx-driver.orig/Makefile 2020-12-30 23:35:25.706859158 -0800
+++ linux-sgx-driver/Makefile 2020-12-30 23:47:34.306602884 -0800
@@ -9,7 +9,7 @@
sgx_encl2.o
obj-m += isgx.o
else
-KDIR := /lib/modules/$(shell uname -r)/build
+KDIR := /lib/modules/${kernelver}/build
PWD := $(shell pwd)
@jonjonw
jonjonw / README.md
Last active August 29, 2020 17:49
Patch for lib32-gtkglext in archlinux AUR

This a patch for https://aur.archlinux.org/packages/lib32-gtkglext/ to fix the compile error arond the use of the variable name 'index'.

To apply, clone the repo and apply git git patch before building:

git clone https://aur.archlinux.org/lib32-gtkglext.git
cd lib32-gtkglext
curl -LO https://gist.github.com/jonjonw/39031796ca230e240311fbb73085bd80/raw/lib32-gtkglext.git.diff
git apply lib32-gtkglext.git.diff
makepkg -si
@jonjonw
jonjonw / fix-route-metric.conf
Created September 30, 2018 22:26
This is a hack to work around https://github.com/systemd/systemd/issues/928 and add metrics to all routes on an interface/network.
# /etc/systemd/system/systemd-networkd.service.d/fix-route-metric.conf
[Service]
ExecStartPost=/usr/local/lib/ip-route-change-metric.sh 192.168.0.0/24 net0 1024
@jonjonw
jonjonw / gist:8010127
Created December 17, 2013 18:28
lsyncd compile error
$ HOMEBREW_MAKE_JOBS=1 brew install -v lsyncd 2>&1
==> Downloading https://github.com/axkibe/lsyncd/archive/release-2.1.5.tar.gz
Already downloaded: /Library/Caches/Homebrew/lsyncd-2.1.5.tar.gz
==> Verifying lsyncd-2.1.5.tar.gz checksum
tar xf /Library/Caches/Homebrew/lsyncd-2.1.5.tar.gz
==> Downloading http://www.opensource.apple.com/tarballs/xnu/xnu-2422.1.72.tar.gz
Already downloaded: /Library/Caches/Homebrew/lsyncd--xnu-2422.1.72.tar.gz
==> Verifying lsyncd--xnu-2422.1.72.tar.gz checksum
tar xf /Library/Caches/Homebrew/lsyncd--xnu-2422.1.72.tar.gz
==> autoreconf --install