Skip to content

Instantly share code, notes, and snippets.

@huntrar
huntrar / full-disk-encryption-arch-uefi.md
Last active May 8, 2025 14:09
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.

@cameronlai
cameronlai / gtfs_bus_data.py
Created August 4, 2018 16:06
Mapping bus data from data.gov.hk to GTFS format
import os
import re
import datetime
import pyodbc
from pyproj import Proj, transform
import zipfile
# File Directories
dirMDB = "./data_gov/"
output_folder = "./my-feed/"
@asugai
asugai / Install composer on Amazon AMI running on EC2
Last active May 14, 2024 15:14
Install composer on Amazon AMI running on EC2
$ cd ~
$ sudo curl -sS https://getcomposer.org/installer | sudo php
$ sudo mv composer.phar /usr/local/bin/composer
$ sudo ln -s /usr/local/bin/composer /usr/bin/composer
then you can run
$ sudo composer install