Daily Shaarli

All links of one day in a single page.

April 20, 2022

CSS { In Real Life } | Exciting Times for Browsers (and CSS)
  • trigonometric functions
  • new viewport unites
  • :focus-visible
  • scroll-behavior can be smooth :)
  • lazyloading images by default with an attribute
  • html element to get a modal with all the accessibility stuff baked right in ([demo](https://codepen.io/una/pen/dyJRwvG))
  • array.prototype.at supports negative integers
Assertion Functions in TypeScript — Marius Schulz

A function that returns a type such as

asserts value is NonNullable<T>
Recherche — David Larlet

All the searchable data are loaded into a json inside a script tag. The searchable content is made through title, url, date and content.
It uses 2.14MB used though :/ But no request

Inspiring me to do the same on my blog :)

3615 Quinenveut on Twitter: "Les Français voient trop souvent le verre à moitié vide, au point que certains finissent par s’imaginer vivre dans un pays terrible... Essayons cette fois de voir le verre à moitié plein ! Enfilade à dérouler avec plein de graphiques🧵 https://t.co/dRYdf2dld2" / Twitter
dbcli/litecli: CLI for SQLite Databases with auto-completion and syntax highlighting

A command-line client for SQLite databases that has auto-completion and syntax highlighting.

create-color-palette - CodeSandbox

A way to generate a gradient color depending of a main color. Applied with https://www.opensourcecolorsystem.design/system, it can be awesome :)

Qu'est-ce qu'un TTY sous Linux? (et comment utiliser la commande tty) - Moyens I/O - Shaarli ¦ Orangina Rouge - Liens en vrac de sebsauvage

D'une manière général quand une machine ne répond pas bien, il s'agit de l'un des 4 goulots d'étranglement:

  • le CPU
  • la mémoire
  • le disque
  • le réseau

top/htop te permettent d'examiner la consommation CPU et mémoire.
iotop te permet de voir celle du disque.
pour le réseau, il y a nethogs.