Skip to content

Instantly share code, notes, and snippets.

View techhazard's full-sized avatar

Vince van Oosten techhazard

View GitHub Profile
techhazard / regression.diffs
Last active August 28, 2021 20:35
citus build arm64 pi 4
diff -dU10 -w /home/pi/citus/citus/src/test/regress/expected/multi_extension.out /home/pi/citus/citus/src/test/regress/results/multi_extension.out
--- /home/pi/citus/citus/src/test/regress/expected/multi_extension.out.modified 2021-08-28 21:29:26.756869458 +0100
+++ /home/pi/citus/citus/src/test/regress/results/multi_extension.out.modified 2021-08-28 21:29:26.824868875 +0100
@@ -321,82 +321,88 @@
| view citus_shard_indexes_on_worker
| view citus_shards_on_worker
| view citus_stat_statements
| view citus_worker_stat_activity
| view pg_dist_shard_placement
(188 rows)
techhazard /
Last active August 13, 2020 08:22 — forked from Attumm/



Read the code like a compiler

Read each line of code line by line. Never assume, always check.

Trust but verify.
  • When in doubt create a dissuscion to check.
  • Learn the list of code smells by heart.
techhazard / programmer-dvorak.nix
Last active April 9, 2017 12:10
NixOS: Programmer dvorak
# place this file in /etc/nixos/ and add
# ./programmer-dvorak.nix
# to /etc/nixos/configuration.nix in `imports`
{config, pkgs, ...}:
# TTY settings
i18n = {
# luckily this also changes the keyboard layout at boot (for e.g full disk encryption passwords)
consoleKeyMap = "dvorak-programmer";
techhazard /
Last active May 24, 2024 16:51
NixOS: PCI Passthrough

PCI Passthrough

Warning: unfinished (but successfull!)

I did PCI passthrough on Archlinux and Debian with the old PCI-stub method (this was pre-4.0 era). And later I did PCI passthrough on the 4.1+ kernels on Arch and Ubuntu (16.10 I think?).

This is my attempt at doing the same on Nixos.


techhazard /
Last active November 6, 2017 12:39
Nixos with ZFS on encrypted LUKS as root filesystem
techhazard / Description
Created December 8, 2014 23:59
Laravel chaining reations?
I have several Models:
Course (id, line_id, category_id name...)
Category (id,name...)
Line (id, name...)
Semester (id, year_id, name...)
Year (id, study_id, name...)
Study (id,name...)
and 1 pivot table