Skip to content

Instantly share code, notes, and snippets.

View Lesmiscore's full-sized avatar
💭
🤔

Lesmiscore Lesmiscore

💭
🤔
  • なぞのばしょ
  • Mystery Zone, Pokémon
View GitHub Profile
@Lesmiscore
Lesmiscore / encrypted-dvd.md
Created October 31, 2021 14:19 — 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

@Lesmiscore
Lesmiscore / icons.bash
Last active August 4, 2018 02:35 — forked from bitzeny/gist:0c5ad0526a8e49a38fc8
make icons
#!/bin/bash
#src/qt/res/icons/bitcoin.ico
#share/pixmaps/bitcoin.ico
convert icon.png -define icon:auto-resize bitcoin.ico
#src/qt/res/icons/bitcoin.png
convert -geometry 256x256 icon.png bitcoin.png
#src/qt/res/icons/toolbar.png