Skip to content

Instantly share code, notes, and snippets.

View Wenri's full-sized avatar

Bingchen Gong Wenri

View GitHub Profile
@Wenri
Wenri / keybase.md
Created October 27, 2023 08:09
Adding keybase.io proof

Keybase proof

I hereby claim:

  • I am wenri on github.
  • I am wenri (https://keybase.io/wenri) on keybase.
  • I have a public key ASD8MbDb-R1xjb9pjwmuCOp5EPZZUubjQvbePiBvdTTXuAo

To claim this, I am signing this object:

@Wenri
Wenri / encrypted-dvd.md
Created February 25, 2022 12:17 — forked from ansemjo/encrypted-dvd.md
create an encrypted dvd with squashfs and luks

1. Create compressed squashfs image

Use mksquashfs to create a compressed image from a directory. Depending on how compressible the files are you could put on much more than 4.7 GB on a single disc.

mksquashfs /path/to/my/directory image.sqfs

You can use a different compression algorithm with e.g. -comp zstd or append multiple times to one archive to fill it up to almost the allowable size.

2. Reencrypt the image to wrap it in a LUKS container