Skip to content

Instantly share code, notes, and snippets.

@Tookmund
Tookmund / Debootstrap Install.rst
Last active April 5, 2024 20:20
Install Debian or Ubuntu like Arch

This guide is a best-effort to configure a system with just debootstrap.

It has been updated so as not to be actively incorrect as of June 2022, when I realized it was still being used, but it was first written in 2015 and I can't guarantee that it's not missing essential parts of the process.

If it breaks, you get to keep both pieces

  1. Download a Debian live standard CD: https://cdimage.debian.org/cdimage/release/current-live/amd64/bt-hybrid/
  2. Login with user:live (if needed, it will probably automatically login)
  3. Check that you have internet with ip a. If you're using ethernet it should already be connected, otherwise you'll need to configure interfaces(5) and probably wpa_supplicant(8)
@rriemann
rriemann / booklet.sh
Created October 9, 2013 12:43
use pdfjam to create a nice A5 booklet
/usr/bin/pdfjam --landscape --suffix book --a4paper --trim '1cm 1cm 1cm 1cm' --clip 'true' --signature '32' -- input.pdf -
@filsinger
filsinger / fnv_hash_example.cpp
Created October 1, 2011 06:36
C++11 : FNV-1 and FNV-1a compile-time string hashing
// C++11 32bit FNV-1 and FNV-1a string hasing (Fowler–Noll–Vo hash)
//
// Requires a compiler with C++11 support
// See main(...) for examples
#include <iostream>
#include <cassert>
namespace hash
{