selectolax
is a fast, easy-to-use, modern HTML5 parser with CSS selectors. A good replacement for lxml.html
. #html
#document-conversion
const blobToDataURL = (blob) =>
new Promise((res, rej) => {
const r = new FileReader();
r.onload = () => res(r.result);
r.onerror = () => rej(r.error);
r.readAsDataURL(f);
});
// @ts-check
to a JavaScript file and documenting types via JSDoc might be the simplest way to migrate phase-wise from JS to Typescript. #document-conversion
envsubst < file.txt
replaces file.txt
with the environment variable, e.g. $HOME
is replaced by the HOME
environment variable. Clean shell-level templating.yt-dlp
requires Deno from now on. #14404wrkflw
is a quick and light way to test GitHub actions before publishing. It runs GitHub actions locally. #github
#ai-coding
#best-practices
#future
#github
#markdown
#prompt-engineering
uv
becomes the knight in shining armor.#future
uvx --with visidata vd
gives you a command-line Excel editor to edit / convert CSV, Excel, JSON, SQLite, directories, etc. #dev
#markdown
uvx markitdown https://example.com/
fetches example.com
as Markdown. I learnt this when I told Codex it could use uvx markitdown
to convert PDFs and it figured this part out by itself. #document-conversion
#html
#markdown
yt-dlp
has a --download-sections
option that downloads specific YouTube time ranges. For example --download-sections "*00:01:00-00:03:00"
downloads roughly (not exactly) from 1 min to 3 min. Note the *
at the beginning.#chatgpt
#automation
#future
#github
npx -y @github/copilot
#github
#ai-coding
#chatgpt
#code-agents
#llm-ops
#chatgpt
#chatgpt
#gpu
#speech-to-text