TIL o delta, a syntax-aware diff highlighter for git diff
TIL that the Bash manual says: “For almost every purpose, shell functions are preferred over aliases.”
TIL about alternative starting line comments: <!-- and --> (didn’t know they made it also to the JS standard, see here.
TIL about https://node-modules.dev/ - a tool that lets you preview sizes of dependencies of a npm package. It runs npm install… in a browser!
TIL about dalfox automated open-source XSS scanner. On Arch Linux it’s easiest to install it as Go dependency
TIL about GitHub - medialab/xan: The CSV magician - a tool that can generate neat charts from a csv file :3
TIL about uv - an extremely fast Python package and project manager, which aims to replace pip, pip-tools, pipx, poetry, pyenv, twine, virtualenv. I’ve tried it and seems to just work
(does it show any hints of xkcd.com/927 ? :P )
TIL about atuin a terminal tool to sync (also using a self-hosted solution), search (normal, fuzzy and regex) and backup your shell history. Very simple - yet powerful - feature is that history is organized in contexts e.g. atuin may search only commands run in the current directory
TIL about the lh unit in CSS: Polishing your typography with line height units | WebKit
TIL, that in JS you can use _ as part of a number to make it more (or less) readable:
> 100_000_000 === 100000000
true
TIL about ControlMaster, ControlPath and ControlPersist options you may define for host in ~/.ssh/config. For instance, the following snippet:
Host my_host
ControlMaster auto
ControlPath ~/.ssh/my_host-%r@%h:%p
ControlPersist 1m
will keep your connection alive between multiple ssh invocations. Fairly useful when you run a script that runs multiple commands on a remote host using ssh
TIL about structuredClone WHATWG function (also available in Node.js) which may be a great alternative for JSON.stringify & JSON.parse combo to create deep copies (though they are differences between both approaches)
TIL about statement_timeout PostgreSQL connection setting which prevents queries in a particular connection from running too long:
set statement_timeout to '15s';
TIL about the Prettify trick in Typescript, that “converts” a complex union type into a flattened version, making it more readable in the IDE:
TIL about the satisfies keyword in Typescript: Satisfies in TypeScript – Frontend Masters Blog
TIL about the override keyword in Typescript: Introducing Typescript `override` keyword - DEV Community
TIL In journald(part of systemd) user service logs are segregated by sender’s UID - not originating service unit. This leads to corner case where owner of Linux container can’t read logs from spawned container using user namespace(mapped UIDs). Doesn’t sound harmful, but was a nightmare to debug and a completely counterintuitive solution.
TIL, that Nginx will have support for ACME protocol:
TIL that you can style target text with CSS:
