Keep cryptsetup headers separate from the block device

5/November/2022 cryptsetuplukssecurity

Storing cryptsetup headers separately has some advantages, firstly, without them, the block device itself is a set of Entropy, from which it is impossible to determine the type of partition / encryption / device.
Secondly, it is a small file that can be easily backed up without using dd.

Simple cheat sheet


Generate a password.

1
cat /dev/urandom | tr -dc '[[:print:]]' | fold -w 256 | sed 's/ //g' | fold -w128 | head -n 1
Keep cryptsetup headers...

When you read some pdf datasheet

22/December/2020 mediateklow-powerpdfdatasheet

Looking for whatever with low power consumption.
Found modules on mediatek, download documentation for SoM (System on Module).
You scroll through in search of how much the chip consumes.

MT7628 data not entered
MT7628 data not entered 826x1100
MT7628_no_power_data_exw.png
MT7688 data not entered
MT7688 data not entered 826x1169
MT7688_no_mAh_data_exw.png
When you read...

Optimizing the number of font glyphs for web use

12/March/2020 fontforgeglyphpyftsubsetwofffont

Select the required glyphs 1590x814 PTSansNarrowRegular.png
fontforge glyphs

Required packages apt install fontforge и pip install fonttools.

Let’s decide on the necessary glyphs: we need Latin, Cyrillic, special characters, including some Greek symbols (ΣΩαβγμ), Greek analogues that are similar in style but have different codes (∆∑µ), and a few more that can be used somewhere in the text or as elements to replace graphics (♪♫♬).

Why are there multiple variants of similar glyphs with different codes?

Because the µ (mu U+00b5) symbol and the Greek letter μ (mu U+03bc) in extended fonts can have their own glyph with different shapes, or, conversely, a common glyph, where similar characters in shape refer to the same glyph. Or, for example, the Greek Σ (Sigma U+03a3) is not the same as the symbol ∑ (summation U+2211).
But perhaps these symbols look the same on your screen.

Optimizing the number...

KVM over LVM

20/December/2019 kvmlvmpartedvirsh

Without further explanation

1
2
3
4
5
6
7
8
9
10
parted -a optimal /dev/sda
unit MiB
print free

#    Number  Start     End        Size       Type     File system     Flags
#            0,03MiB   1,00MiB    0,97MiB             Free Space
#     1      1,00MiB   1025MiB    1024MiB    primary  ext4            boot
#     2      1025MiB   5121MiB    4096MiB    primary  linux-swap(v1)
#     3      5121MiB   70657MiB   65536MiB   primary  ext4
#            70657MiB  476940MiB  406283MiB           Free Space
KVM over LVM...

Missing mime-types in nginx

5/December/2019 nginxmime-typeswoff

To display Content-Type correctly, you need to add the following values ​​to mime.types
otherwise the default_type application/octet-stream; directive will be used.

Missing mime-types in...
Page 3 from 4