Skip to content

Instantly share code, notes, and snippets.

@eggman64
eggman64 / Efficient Encrypted UEFI-Booting Arch Installation
Created November 27, 2018 14:12 — forked from HardenedArray/Efficient Encrypted UEFI-Booting Arch Installation
An effcient method to install Arch Linux with encrypted root and swap filesystems and boot from UEFI. Multi-OS, and VirtualBox, UEFI-booting are also supported.
# OBJECTIVE: Install Arch Linux with encrypted root and swap filesystems and boot from UEFI. Optionally, we will also encrypt
/boot and then decrypt and mount our entire encrypted system using a single LUKS passphrase entry.
# Note: This method supports both dedicated Arch installs and those who wish to install Arch on a multi-OS-UEFI booting system.
# External USB HDD/SSD Installers Notes: Encrypted Arch installs can be booted and run from an external USB HDD or SSD, but
# only when the installation is correctly set up. There are several necessary changes to my standard procedure you'll want
# to make during the install process. Read my External USB HDD/SSD Installation section below before proceeding.
@eggman64
eggman64 / tar_encrypt.sh
Last active November 28, 2018 10:20
encrypt tarball with openssl
# Encrypt
tar cz folder_to_encrypt | \
openssl enc -aes-256-cbc -e > out.tar.gz.enc
# Decrypt
openssl enc -aes-256-cbc -d -in out.tar.gz.enc | tar xz
# Consider using -pbkdf2 instead of -aes-256-cbc for slower but more secure encryption
@eggman64
eggman64 / proxy-chromium
Created March 17, 2020 10:40
set up a socks5 proxy with ssh in chromium
#!/bin/bash
chromium --user-data-dir="$HOME/tmp/proxy" --proxy-server="socks5://127.0.0.1:8080" --proxy-bypass-list='<-loopback>' --host-resolver-rules="MAP * 0.0.0.0 , EXCLUDE localhost"
@eggman64
eggman64 / nixos.md
Created July 9, 2020 10:21 — forked from martijnvermaat/nixos.md
Installation of NixOS with encrypted root