Skip to content

Instantly share code, notes, and snippets.

View bgarber's full-sized avatar

Bryan Garber bgarber

View GitHub Profile
@bgarber
bgarber / installing-debian-arch-way.md
Last active April 4, 2025 19:30
The Art of Installing Debian the Arch-way

The Art of Installing Debian the Arch-way

Around 2005, I published in my personal blog in Wordpress a small tutorial on how to install Debian the Nerd-way. That post is long gone now, and it was more like a small reference guide for myself than anything else. Recently I tried some of those steps again just for fun to see they still work and they do!

As you move on in this tutorial, you will notice it resembles a lot the Arch Linux installation method (hence the title). That's not a surprise since all of this existed even before Arch was popularized.

This work grabs some steps from the Instaling Debian GNU/Linux from a Unix/Linux System, in the Random Bits appendix from the Debian documentation. I decided to create one of my own because some of those steps could be either abbreviated or more detailed.

DISCLAIMER: as you already suspect, these steps will potentially break your system! Read every step carefully and check what applie

@bgarber
bgarber / afn.lisp
Created May 29, 2013 16:51
This is a Non-deterministic Finite Automata executor.
; trans - transition function in the following format
; '((:s "q0" :c #\a :f "q1") ...)
(defun exec-afn (word stat trans end)
(if (= 0 (length word))
(if (remove-if-not #'(lambda (fs) (remove-if-not #'(lambda (s) (string= fs s)) stat)) end)
(progn (format t "Done! Returned TRUE~%") t)
(progn (format t "Done! Returned FALSE~%") nil))
(dolist (s stat)
(exec-afn (subseq word 1)
(let ((next-states nil))