Nothing special, just a laptop

20/Maggio/2020 laptopsony-vaio

Laptop fan
Laptop fan 4128x3096
SL_20200520_135937.jpg
Dried thermal compound
Dried thermal compound 4128x3096
SL_20200520_141548.jpg
Dried thermal compound
Dried thermal compound 4128x3096
SL_20200521_155357.jpg


Nothing special, just...

Optimizing the number of font glyphs for web use

12/Marzo/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/Dicembre/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/Dicembre/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...

Snippets mdadm

24/Gennaio/2019 mdadmraid

Setting minimum and maximum speeds for devices

1
2
3
# 70000 kilobytes/s ~ 68 Mb/s
echo "70000" > /proc/sys/dev/raid/speed_limit_min
echo "100000" > /proc/sys/dev/raid/speed_limit_max

sysctl analogue

1
2
dev.raid.speed_limit_min=70000
dev.raid.speed_limit_max=100000
Snippets mdadm
Pagina 12 di 14