- Btrfs on main drive, replacing GPT/MBR
- Encrypted main drive using key file on flash drive. Add backup passphrase
- No swap, swap files (limitation of Btrfs) or swap partition (so no suspend-to-disk)
- Boot directory and grub on flash drive
- 1st flash drive partition is Vfat partition to allow for cross-platform file transfers
- Ext4 ISO partition for Linux-only data/ISO files, if desired.
- TODO - edit grub to allow booting ISOs stored on the flash drive.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Put app.ico in directory. | |
2. Create app.rc in same directory with one line: | |
IDI_ICON1 ICON DISCARDABLE "app.ico" | |
3. Run command (Warning: it's app.o, not app.res, how it is mentioned in other manuals!) | |
windres app.rc -o app.o | |
4. add_executable(app | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Back" : "Escape; Back; Ctrl+[; Meta+O", | |
"Forward" : "Forward; Ctrl+[; Meta+I", | |
"Change Type..." : "Shift+Y; ", | |
"Close Window" : "Ctrl+W; X", | |
"Command Palette" : "Ctrl+P; Space", | |
"Copy" : "Ctrl+C; Y", | |
"Disassembly Graph" : "G, L", | |
"Display as\\Binary" : "D", | |
"Display as\\Default" : "D", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install a fully encrypted ArchLinux on NVMe with detached LUKS | |
# headers and LUKS encrypted UEFI boot partition on a USB dongle. | |
# | |
# Full tutorial can be found here: | |
# https://headcrash.industries/reference/fully-encrypted-archlinux-with-secure-boot-on-yoga-920/ | |
# | |
# Written by Gerke Max Preussner <[email protected]> | |
# Overview ############################################################ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" betterthreads provides an enhanced replacement for the | |
threading.Thread class geared towards cleanly stopping blocking | |
threads. | |
""" | |
import gevent | |
import uuid | |
from gevent.event import Event |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install arch linux in an encrypted btrfs partition with GPT and UEFI support, gummiboot and hibernate/resume support | |
# sources: | |
# http://hole.tuziwo.info/install-arch-linux-on-uefi-gpt-computer-with-btrfs-support.html | |
# http://www.brunoparmentier.be/blog/how-to-install-arch-linux-on-an-encrypted-btrfs-partition.html | |
# https://wiki.archlinux.org/index.php/Dm-crypt/Swap_encryption | |
# Take note of this: | |
# - The first thing you need is to identify which disk you're going to use. For the purpose of this guide, it will be /dev/sda | |
# Be VERY CAREFUL if you have more than one disk on your computer, and DOUBLE CAREFUL if one of them is the one with your backups | |
# - Since btrfs does not support swapfiles (yet), we'll create a swap partition. In this guide, it will NOT be encrypted |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* depth: 1 - monochrome | |
* 4 - 4-bit grayscale | |
* 8 - 8-bit grayscale | |
* 16 - 16-bit colour | |
* 32 - 32-bit colour | |
**/ | |
function drawArray(arr, depth) { | |
var offset, height, data, image; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Comments start with semicolons. | |
; Clojure is written in "forms", which are just | |
; lists of things inside parentheses, separated by whitespace. | |
; | |
; The clojure reader assumes that the first thing is a | |
; function or macro to call, and the rest are arguments. | |
; | |
; Here's a function that sets the current namespace: | |
(ns test) |