Posts
Use machine learning to write
Next time when you don’t know how to continue a sentence, use this to help you write your whole essay. =) https://writeup.ai
Oauth2 protocol
Nice to know what’s going on when we use oauth2 to get access. https://milapneupane.com.np/2019/09/02/a-complete-guide-to-oauth2-protocol/
Curl Cookbook
Many useful curl arguments. https://catonmat.net/cookbooks/curl
How Does BitTorrent Work? a Plain English Guide
Good read. https://skerritt.blog/bit-torrent/
Water Hammer
Solitude and Leadership
So what I saw around me were great kids who had been trained to be world-class hoop jumpers. Any goal you set them, they could achieve. Any test you gave them, they could pass with flying colors. They were, as one of them put it herself, “excellent sheep.” Because excellence isn’t usually what gets you up the greasy pole. What gets you up is a talent for maneuvering. Not taking stupid risks like trying to change how things are done or question why they’re done. Just keeping the routine going. ...
Get the First or Last Value in a Group Using Group By in SQL
Sample code in PostgreSQL [code] SELECT account, MAX(ARRAY[id, (data->‘credit’)::int]) FILTER (WHERE type = ‘credit_set’)) FROM event GROUP BY account; [/code] ref: https://hakibenita.com/sql-group-by-first-last-value
USB-C cables
Turns out there are 6 kinds of USB-C cables. USB 2.0 rated at 3A USB 2.0 rated at 5A USB 3.2 Gen 1 (5gbps) rated at 3A USB 3.2 Gen 1 (5gbps) rated at 5A USB 3.2 Gen 2 (10gbps) rated at 3A USB 3.2 Gen 2 (10gpbs) rated at 5A ref: https://people.kernel.org/bleung/how-many-kinds-of-usb-c-to-usb-c-cables-are-there
pyrasite
Tools for injecting code into running Python processes http://pyrasite.com/ (see the video in action) https://github.com/lmacken/pyrasite