Skip to content

Instantly share code, notes, and snippets.

View goelze's full-sized avatar

Garrett Oelze goelze

View GitHub Profile
@goelze
goelze / ZBase32String.cs
Last active July 14, 2017 20:42
A struct containing a string in z-base-32 encoding.
/*
* ZBase32String.cs by Garrett Oelze <garrett@oelze.com>
*
* This work is licensed under a Creative Commons Attribution 4.0 International License.
* http://creativecommons.org/licenses/by/4.0/
*
* z-base-32 encoding is derived from the specification at http://philzimmermann.com/docs/human-oriented-base-32-encoding.txt
*/
using System;
using System.Collections.Generic;
@goelze
goelze / arch-linux-install
Last active January 22, 2020 00:07 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# This assumes a wifi only system...

Keybase proof

I hereby claim:

  • I am goelze on github.
  • I am garrettoelze (https://keybase.io/garrettoelze) on keybase.
  • I have a public key ASABcs6WDYUvfk0bGz8Gg1dXhKWR5zJHRxiNJbtB2y_5Fwo

To claim this, I am signing this object:

using System;
using System.Collections;
using System.Collections.Generic;
namespace Heap
{
public class Heap<T> : IReadOnlyCollection<T>
{
const int defaultCapacity = 6;