WSL2 by default uses at most 8 GB of RAM

WSL2 has a configuration file .wslconfig, which can contain settings for it. Most of the settings don’t ever need to be touched with maybe one exception: memory. By default it’s 50% of total memory on Windows or 8GB, whichever is less, so with effective max of 8 GB unless you set it manually. It’s a reasonable default, though you might encounter it if you are doing something memory intensive. Link to documentation

November 16, 2021 · 1 min · Ondrej Borysek

Eshop může kontrolovat příjmení

Formulář vyžadující příjmení ho může zkusit validovat, nejspíše vůči databázi českých příjmení od ministerstva vnitra. Když je to jako soft-fail, tak to může pomáhat eliminovat překlepy, aniž by to diskriminovalo lidi, jejichž příjmení nebyla v tehdejším snapshotu DB.

October 17, 2021 · 1 min · Ondrej Borysek

HSTS doesn't block Let's encrypt HTTP-01 challenge

During setup of Netlify I’ve noticed, that they were able to get SSL cert even though my domain has HSTS and they don’t have access to my DNS (Cloudflare). Quick check to documentation of Let’s Encrypt revealed that for HTTP-01 challenge they don’t check the certificates. That not only makes the process potentially a bit safer, as it can go through HTTPS with self-signed cert instead of plaintext HTTP, but also solves the edge case of expired cert / first cert and HSTS with no access to DNS....

October 16, 2021 · 1 min · Ondrej Borysek

Crt.sh shows in table whether cert is trusted by browser and usage purpose

Example of a HTTPS certificate and Czech Post / Postsignum Qualified cert CA

October 15, 2021 · 1 min · Ondrej Borysek