Skip to content

Instantly share code, notes, and snippets.


++ATH0 dapperfu

View GitHub Profile
dapperfu / ZZexample
Last active Jul 27, 2022
Enable mdns on a FreeNAS/BSD jail.
View ZZexample
freenas2# jls
JID IP Address Hostname Path
5 - etherpad /mnt/basin/jails/etherpad
freenas2# ./ 5
Updating FreeBSD repository catalogue...
[etherpad] Fetching meta.txz: 100% 944 B 0.9kB/s 00:01
[etherpad] Fetching packagesite.txz: 100% 6 MiB 5.9MB/s 00:01
dapperfu / gist:426a60313f21fa57e69c55dcb6f14344
Last active Oct 2, 2020
Ubuntu 20.04 new install fails to boot if install disk was previously part of a ZFS pool.
View gist:426a60313f21fa57e69c55dcb6f14344


Ubuntu 20.04 will fail to boot if you install to a disk that was previously part of a ZFS pool.

A fresh Ubuntu 20.04 install will drop to (initramfs) prompt without much indication of why it failed.

mount has an issue where it doesn't automatically detect the file system (ext4). wipefs shows left over ZFS settings.


dapperfu / gist:2e40f774204a55e86993a6875517ed5d
Created Aug 18, 2020
Batch Convert .MFC to .MF4 (MDF) files from CSS Electronics CAN Edge 2 in Linux.
View gist:2e40f774204a55e86993a6875517ed5d
# CSS Electronics
# CAN Edge 2
# Convert all .MFC found MFC files using all cores of the computer.
# Replace -P8 with the number of cores/threads.
find . -name "*.MFC" | xargs -n1 -P8 mdf2finalized --name "" --verbose 5 -i
View gist:93a6184421e07185053210cbf03031a9
echo "set prefix C-a" >> ~/.tmux.conf
tmux source-file ~/.tmux.conf
dapperfu /
Last active Jul 1, 2020
Installing Numba (requiring llvm) on Ubuntu 16.04

Installing Numba from pip fails since Ubuntu 16.04 only has up through llvm-3.8 in its repositories.

As of version 0.16.0, llvmlite requires LLVM 3.9. It does not support earlier or later versions of LLVM.

Install LLVM-3.9 through the LLVM's Debian/Ubuntu packages (


dapperfu / Makefile
Created Jun 10, 2020
Notebook to Docs.
View Makefile
# Python Bits
VENV = /tmp/Kalman-and-Bayesian-Filters-in-Python
.PHONY: venv
venv: ${VENV}
@python3.8 -mvenv ${@}
@${VENV}/bin/pip install --upgrade pip setuptools wheel
@${VENV}/bin/pip install --upgrade --requirement requirements.txt
dapperfu / Ubuntu20.04 ZFS on
Last active May 12, 2020
Lessons learned from Ubuntu 20.04 [Focal Fossa] ZFS-on-Root.
View Ubuntu20.04 ZFS on
View gist:df049955dc76fca8c5373eea63a0a7d4
screen -dmS screen_name bash -c 'ls; exec bash'
screen -S screen_name -x -X screen bash -c 'ls; exec bash'
screen -S screen_name -x -X screen bash -c 'ls; exec bash'
screen -S ${ -x -X screen bash -c 'ls; exec bash'
dapperfu / algebra2.m
Created Feb 16, 2020
Learning Matlab through Algebra examples.
View algebra2.m
%% Multiplying a Matrix by Another Matrix
% But to multiply a matrix by another matrix we need to
% do the "dot product" of rows and columns ...
% what does that mean? Let us see with an example:
% Method 1: Using MATLAB.
A = [1 2 3
4 5 6]
dapperfu /
Created Feb 2, 2020
Install inkcut with pipx
pipx install inkcut
pipx runpip inkcut install pyside2 pyqt5