Monthly Shaarli
February, 2022
Cube de verre optique.
Ça a l’air sympa pour expliquer plein de petits principes 🧐
Django Ninja - Django REST framework with high performance, easy to learn, fast to code.
L’orgie 🍿
$ vagrant init centos/8
$ vagrant up
$ ssh vagrant@192.168.121.10 -i .vagrant/machines/default/libvirt/private_key
Last login: Wed Feb 16 18:07:34 2022 from 192.168.121.1
[vagrant@localhost ~]$ cat /etc/redhat-release
CentOS Linux release 8.3.2011
(fonctionne aussi avec debian/{bullseye64|buster64|testing64|whatever64}
💖
You can now right-click on an image file and set it as the wallpaper — I know, revolutionary! 😆
… bon, sans dec’: la 5.24 de KDE a l’air vraiment bien (mais KDE EST vraiment bien depuis au moins la 5.18, non?)
Flake9, pour que Flake8 supporte pyproject.toml #python #lint
En complément:
flake9 is a hostile (unmaintained) fork. It's not that "the authors [maintainer] of flake8 won't implement it", it's that the config system in flake8 is already overcomplicated and they want to tidy it before adding pyproject.toml support: PyCQA/flake8#234
🙃
Ma version la plus avancée :
youtube-dl -x --audio-format mp3 -o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' --yes-playlist <playlist_url>
Cela télécharge toute une playlist, convertit les éléments au format MP3 (après n'avoir extrait que l'audio, forcément) et structure la sortie selon "<titre de la playlist> / <index> - <titre>.<extension>".
Par exemple:
youtube-dl -x --audio-format mp3 -o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' --yes-playlist https://music.youtube.com/playlist?list=OLAK5uy_k8ARotdTcPd8k49xPX3msjL1U_Woah4bA