Devenet Devenet

Liens en vrac

Quelques 337 marque-pages glanés pendant ma navigation sur le Web.

Things they didn’t teach you about Software Engineering

https://vadimkravcenko.com/shorts/things-they-didnt-teach-you/

1. You rarely write something from scratch.
2. Domain knowledge is more important than your coding skills.
3. Writing documentation is not emphasized hard enough.
4. Code is secondary. Business value is first.
5. You’ll need to work around incompetence.
6. You work with uncertainty most of the time.
7. Assume everything has bugs.
8. It’s not a dream job.
9. Aesthetics can’t be taught.
10. Estimations will be asked even when you don’t want to give them.
11. Not all meetings are bad.

Réglages recommandés pour les routeurs et points d’accès Wi-Fi

https://support.apple.com/fr-fr/HT202068

• Sécurité : WPA3 Personnel > WPA2/WPA3 Transitionnel > WPA2 Personnel (AES).
• Nom du réseau (SSID) : unique, quelle que soit la bande 2,4 GHz ou 5 GHz.
• Réseau masqué : désactivé.
• Filtrage d’adresse MAC : désactivé.
• Mises à jour automatiques du programme interne : activé.
• Mode radio : Tous > Wi-Fi 2 à Wi-Fi 6.
• Bandes : activé toutes les bandes disponibles.
• Canal : automatique.
• Largeur de canal : 20 MHz pour la bande 2,4 GHz et toutes les largeurs (20 MHz, 40 MHz, 80 MHz) pour la bande 5 GHz.
• Durée du bail DHCP : 8 h pour réseau perso ou pro, 1 h pour les partages de connexion ou réseau invités.
• Fonction WMM (multimédia sans-fil) : activé.

How to use different git emails for personal and work repositories on the same machine

https://blog.hao.dev/how-to-use-different-git-emails-for-personal-and-work-repositories-on-the-same-machine

Option 1 : avoir deux fichiers .gitconfig-work et .gitconfig-perso, et dans le fichier .gitconfig charger le bon fichier selon le répertoire.
> # ~/.gitconfig
>
> [includeIf "gitdir:~/work/"]
>     path = .gitconfig-work
> [includeIf "gitdir:~/personal/"]
>     path = .gitconfig-personal

Option 2 : modifier dans chaque dépôt l’adresse e-mail Git.

System font stack

https://systemfontstack.com/

• Sans-serif
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;

• Serif
font-family: Iowan Old Style, Apple Garamond, Baskerville, Times New Roman, Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;

•Mono
font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;

Orage et foudre : estimation de la distance

?D-7p2A

⚡️
300 000 km/h : 👀 immédiatement

🔈
3 s pour 1 km

Pour estimer la distance :
1) on compte le nombre de secondes entre la vue de l’éclair et le moment où l’on entend le bruit de la foudre (= quand l’orage touche le sol) ;
2) on divise ce nombre par 3 ;
3) ça donne la distance entre nous et l’éclair.

Position de sécurité :
• se mettre à genoux, les pieds joints.

Configurer et sécuriser un serveur SSH

https://mtacnet.tech/posts/ssh_security.html

Il est recommandé d’utiliser un nombre compris entre 49152 et 65535 pour le port.

> Protocol 2

> PermitRootLogin no
> PermitEmptyPasswords no

> UsePAM no
> KerberosAuthentication no
> GSSAPIAuthentication no
> PasswordAuthentication no

> X11Forwarding no
> X11UseLocalhost no

Liste de mots français

http://www.pallier.org/liste-de-mots-francais.html

Liste au format TXT de 336 531 mots du français (encodés en utf-8), à partir du dictionnaire Francais-Gutenberg.

Defensive CSS

https://ishadeed.com/article/defensive-css/

“Oftentimes, we wish that there was a way to avoid a certain CSS issue or behaviors from happening. You know, content is dynamic, and things can change on a web page, thus increasing the possibility of a CSS issue or a weird behavior.

Defensive CSS is a collection of snippets that can help you in writing CSS that is protected. In other words, you will have fewer issues in the future. If you follow my blog, you might read an article I wrote a while back which is called “The just in case mindset”. This is built upon it, and will be an ongoing list of snippets.”