Skip to content

Instantly share code, notes, and snippets.

@researcx
researcx / luks-encrypt-in-place.sh
Created September 18, 2020 07:46 — forked from samdoran/luks-encrypt-in-place.sh
Encrypt a physical volume using LUKS without erasing the drive.
#!/bin/bash
# Encrypt existing hard drive in place.
# Requires a second physical drive to temporarily store data. This drive will be erased.
# This script is meant to be run on Clonezilla 1.2.9-19 or later.
# The cryptsetup syntax is different in Clonezilla than in Red Hat.
# --- Variables --- #
@researcx
researcx / arch-linux-install.sh
Last active January 10, 2019 19:51 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing Arch Linux on GPT or MBR on UEFI or Legacy BIOS
# Download an Arch ISO from https://www.archlinux.org and copy it to a USB drive:
sudo dd bs=4M if=archlinux-2019.01.01-x86_64.iso of=/dev/sdb status=progress oflag=sync
# then plug it into the device of your preference, boot it and start the installation process.
# Installation process:
# Set UK keymap
loadkeys uk
# Set up partitions (MBR)
parted /dev/sdX mklabel msdos
@researcx
researcx / myweechat.md
Last active January 30, 2021 16:03 — forked from pascalpoitras/config.md
My always up-to-date WeeChat configuration (requires weechat 2.3-dev (weechat-devel) or higher)

idea and some snippets taken from pascalpoitras' weechat config

Enable mouse

/mouse enable

Set up encrypted data

/secure passphrase <pass>
/secure set relaypass <pass>
/secure set bitlbeepass <pass>
/secure set bncaddrport