Twitxy Saved

Gregoire Pineau

@lyrixx

Paris blog.lyrixx.info Joined March 2008
179 Following 4.3K Followers 17K Posts

Latest posts 5

Gregoire Pineau @lyrixx
I can die in peace (no rush): I've transferred all my secrets to the people I trust. Encrypted, and each one holds a piece of the key. Together, they can open them. Alone, a piece reveals nothing.

How Shamir's secret sharing works, with a few drawings:
blog.lyrixx.info/posts/what-s-n…
blog.lyrixx.info What's new in private-stuff, my emergency website My emergency website got a new theme, a safer deployment, and a way to share a secret with people you trust, with Shamir's secret sharing.
Gregoire Pineau @lyrixx
My Raspberry Pi plays Spotify in the living room, and I wanted a pause button in Home Assistant.

But librespot has no local control at all: no HTTP API, no D-Bus, nothing.

I ended up with three pull requests to librespot:

blog.lyrixx.info/posts/how-to-c…
blog.lyrixx.info How to control Spotify on a Raspberry Pi from Home Assistant raspotify turns a Raspberry Pi into a Spotify speaker, but nothing can control it locally. Here is how I plugged it into Home Assistant, with MQTT, MPRIS, and three pull requests to librespot.
Gregoire Pineau @lyrixx
La raclette est-elle de gauche ou de droite ? De droite, à 80 %. Le vélo, lui, est de gauche à 72 %.

J'ai entraîné un petit modèle sur 972 clichés pour trancher. Il tourne entièrement dans le navigateur, sans serveur ni API.

blog.lyrixx.info/posts/la-racle…
blog.lyrixx.info La raclette est-elle de gauche ou de droite ? Une IA vous dit si la raclette ou le vélo sont de gauche ou de droite. Le modèle a appris des clichés, et il tourne entièrement dans votre navigateur.
Gregoire Pineau @lyrixx
On symfony/symfony, git blames a file in 0.6 s. libgit2 takes 10 minutes.

It ignores the commit-graph because of one section it doesn't know, and looks for a rename even when the file is still there.

blog.lyrixx.info/posts/why-libg…
blog.lyrixx.info Why libgit2 takes 10 minutes to blame a file when git takes 0.6 s Through libgit2, reading a commit is 10 times faster than running git. But on symfony/symfony, blaming one file takes 10 minutes instead of 0.6 s. Here is why.