Notes hebdo #31

27 mai 2024

Danger Zone ⚠️

DangerZone transforme des documents potentiellement dangereux en documents sûrs.

Des joies 🤗

Des peines 😬

Vu, Lu, etc

Notes

Magic Numbers

One way to incorporate file type metadata, often associated with Unix and its derivatives, is to store a "magic number" inside the file itself. Originally, this term was used for a specific set of 2-byte identifiers at the beginnings of files, but since any binary sequence can be regarded as a number, any feature of a file format which uniquely distinguishes it can be used for identification. GIF images, for instance, always begin with the ASCII representation of either GIF87a or GIF89a, depending upon the standard to which they adhere.

J'étais tombé sur ce concept, mais je n'avais pas réalisé que c'était une pratique courrante :-)

Aur helpers

So, what I use at least, is aurutils along with aurto. Essentially, a cron that checks for updates, downloads the updates pkgbuilds and compiles them if there are any, and puts those in a repo for when I next install updates. Pretty cool system, IMO. Others work similarly just more on-demand.

Host your own docker image

En parcourant les issues de Dangerzone, je suis tombé sur cet utilitaire pour Archlinux que je ne connaissais pas, pas mal, surtout quand on a pas la fibre à la maison.

Harassment prevention

New York State Law requires that employers of one or more employees must conduct sexual harassment prevention training for all employees each year

sexual-harassment-training

La prévention pour les violences sexuelles en milieu pro est obligatoire dans l'état de New York, et la formation était plutôt réussie je dois dire.

Secomp filters

Seccomp is a feature of the Linux kernel that is enabled in (most) contemporary Linux distributions. It restricts a thread to a small number of system calls: read(), write(), exit(), sigreturn()

If the thread calls any other system call, the entire process gets terminated.

Seccomp sandbox Wiki.

Je suis en train d'apprendre le fonctionnement de Docker et de son écosystème. J'en ai profité pour découvrir gVisor qui permet de « proposer un runtime qui réimplémente le noyau Linux dans le userspace, en utilisant un language memory-safe » 🤯

Tech debt

Your developers end up spending more time dealing with the debt than writing new code. I’ve seen this happen over-and-over again with various employers and clients.

If you value shipping quickly, you need to take a quarter to pay that tech debt down. Yes, that means you’ll have to pause on shipping new features for a bit. The payoff is you’ll be able to ship them much more quickly going forward.

Why paying down tech debt matters | Go Make Things

Ça fait du bien à lire une fois de temps en temps :-)