Skip to content

Instantly share code, notes, and snippets.

View PhilippeOlivier's full-sized avatar

Philippe Olivier PhilippeOlivier

View GitHub Profile
@PhilippeOlivier
PhilippeOlivier / full-disk-encryption-arch-uefi.md
Created January 16, 2020 17:09 — forked from huntrar/full-disk-encryption-arch-uefi.md
Arch Linux Full-Disk Encryption Installation Guide [Encrypted Boot, UEFI, NVMe, Evil Maid]

Arch Linux Full-Disk Encryption Installation Guide

This guide provides instructions for an Arch Linux installation featuring full-disk encryption via LVM on LUKS and an encrypted boot partition (GRUB) for UEFI systems.

Following the main installation are further instructions to harden against Evil Maid attacks via UEFI Secure Boot custom key enrollment and self-signed kernel and bootloader.

Preface

You will find most of this information pulled from the Arch Wiki and other resources linked thereof.

Note: The system was installed on an NVMe SSD, substitute /dev/nvme0nX with /dev/sdX or your device as needed.

@PhilippeOlivier
PhilippeOlivier / lot-generator.py
Created July 22, 2023 14:05
Constraint-guided 2D spatial generator.
"""Constraint-guided 2D spatial generator.
We have a lot of size 60x40. We want to place up to 5 residential buildings (blue), up to 2 parking
lots (grey), and 1 park (green). There are 2 problematic areas on the lot. The first one (red) is a
floodable area, and nothing can be built there. The second one (orange) is a utility pole: we cannot
build a residential building there nor have it in the park, but we are allowed to build a parking
lot around it. The size of the park must be at least as large as the largest of the residential
buildings. The combined area of the parkings must be at least 10% of the combined area of the
residential buildings. We want to maximize the yield of the lot, which is the combined area of the
residential buildings.

Keybase proof

I hereby claim:

  • I am philippeolivier on github.
  • I am pedtsr (https://keybase.io/pedtsr) on keybase.
  • I have a public key whose fingerprint is D237 FC6A 7F32 89A6 4435 5BBC 212A 8C16 AF7A CDAF

To claim this, I am signing this object: