Discover gists
Last updated: April 2021
Also known as itag or format codes and way back they could be specified with the fmt parameter (e.g. &fmt=22).
Depending on the age and/or popularity of the video, not all formats will be available.
| Resolution | AV1 HFR High | AV1 HFR | AV1 | VP9.2 HDR HFR | VP9 HFR | VP9 | H.264 HFR | H.264 |
|---|---|---|---|---|---|---|---|---|
| MP4 | MP4 | MP4 | WebM | WebM | WebM | MP4 | MP4 |
| import hashlib | |
| import json | |
| import os | |
| # originally made by alula | |
| license = { | |
| "header": {"version": 1}, | |
| "payload": { | |
| "name": "TQN", | |
| "email": "bccb.htc@gmail.comn", |
It turns out that MacOS Tahoe can generate and use secure-enclave backed SSH keys! This replaces projects like https://github.com/maxgoedjen/secretive
There is a shared library /usr/lib/ssh-keychain.dylib that traditionally has been used to add smartcard support
to ssh by implementing PKCS11Provider interface. However since recently it also implements SecurityKeyProivder
which supports loading keys directly from the secure enclave! SecurityKeyProvider is what is normally used to talk to FIDO2 devices (e.g. libfido2 can be used to talk to your Yubikey). However you can now use it to talk to your Secure Enclave instead!
| """JSON serializer for Elasticsearch Python client that | |
| uses the 'orjson' library for performance. | |
| https://github.com/ijl/orjson | |
| """ | |
| # Implement the Serializer.loads() and .dumps() APIs w/ orjson: | |
| import orjson | |
| from elasticsearch import SerializationError, JSONSerializer |
Epic Games Lore and Anthropic Scion share a remarkably similar architectural direction: both replace Git's traditional distributed model with centralized, content-addressed storage, lightweight clients, sparse workspaces, and scalable backend services.
However, they optimize for fundamentally different workloads:
- Lore: Massive repositories containing source code and large binary assets, particularly game development and VFX pipelines.
- Scion: Extremely high-frequency source code changes, millions of CI checkouts, and large numbers of autonomous coding agents.
Sources: Lore architecture and Anthropic's Scion engineering article.
| // ==UserScript== | |
| // @name Spotify ad skipper | |
| // @version 1.0 | |
| // @namespace http://tampermonkey.net/ | |
| // @description Detects and skips ads on spotify | |
| // @match https://*.spotify.com/* | |
| // @grant none | |
| // @run-at document-start | |
| // @downloadURL https://gist.githubusercontent.com/Simonwep/24f8cdcd6d32d86e929004013bd660ae/raw | |
| // @updateURL https://gist.githubusercontent.com/Simonwep/24f8cdcd6d32d86e929004013bd660ae/raw |
