HNHacker News
TopNewBestAskShowJobs

simon04

765 karma · joined April 5, 2016

submissionscomments
simon04··on I wrote an bash enumerator because I was sick of xargs
Here is a 136 line Python version: https://github.com/simon04/dotfiles/blob/master/.local/bin/e...
simon04··on Painting the sides of railroad rails white to reduce derailment
Italy has been doing this for decades.[citation needed]
simon04··on Hardware Touch, Stronger SSH
Using a Token2 based id_ed25519_sk_rk key, I found very helpful to configure a different `pushurl` in `.git/config`. This allows to pull via HTTPS w/o a hardware touch.

    [remote "origin"]
            url = https://github.com/freeCodeCamp/devdocs.git
            pushurl = git@github.com:freeCodeCamp/devdocs.git
simon04··on What's New in Python 3.15
Ruff's rule is derived from Pylint: https://docs.astral.sh/ruff/rules/unspecified-encoding/
simon04··on Build Your Own Router with URLPattern()
A very tiny router is provided by nanostores: https://github.com/nanostores/router
simon04··on Build Your Own Router with URLPattern()
Maybe not so much for an Internet Protocol router?
simon04··on Greg Kroah-Hartman explains the Cyber Resilience Act for open source developers
Video: https://youtu.be/U7pZbCnJxEw?t=6105 (Kernel Recipes 2025 - Day 2)
simon04··on A Python dict that can report which keys you did not use
Very useful. For configparser.ConfigParser I've found https://stackoverflow.com/a/57307141
simon04··on Fish 4
Nice, it has landed. Now I'm getting:

> warning: Could not set up terminal for $TERM 'xterm-ghostty'. Falling back to hardcoded xterm-256color values

simon04··on Abusing Git branch names to compromise a PyPI package
How could this happen? We're storing deploy credentials in GitHub, and configure fully automated deploy pipelines using YAML and Shell. Escaping 101. xD

https://xkcd.com/1638/

simon04··on Rust for Filesystems
tl;dr?
simon04··on Wikimedia Gitlab Migration Status
They're self-hosting at https://gitlab.wikimedia.org/explore
simon04··on Wikimedia Gitlab Migration Status
> other CI systems also have this problem, but often provide mechanisms to write individual tasks in other languages

GitLab CI allows to run a bunch of commands in any Docker image you specify. The Docker image and/or your scripts may be self-written.

How do you find, for instance, GitHub Actions more advanced?

simon04··on Wikimedia Gitlab Migration Status
Have you tried Gitea Actions? https://docs.gitea.com/usage/actions/overview
simon04··on Currying
Unfortunately typing doesn't fix this. The 2nd callback function argument of Array.map is (index:number), and the 2nd argument of Number.parseInt is (radix:number).

It's a very nasty issue to debug.

simon04··on IrfanView
Or the good (old) Scanner from http://www.steffengerlach.de/freeware/ (a <1MB executable)
simon04··on Htmx become 0 clause BSD-licensed
https://news.ycombinator.com/item?id=39003292
simon04··on DevDocs
Here you go: https://devdocs.io/playwright/
simon04··on DevDocs
I'd need to look up the individual scrapers for a fair comparison, since I tend to forget/mixup the challenges. Some scrapers have been around for 10 years and only required little updates.

In general the more native HTML elements and the more descriptive CSS classes are used the easier it gets. Disadvantageous is when great parts of a doc page are built using JavaScript, e.g. when the whole nav is generated dynamically as the nav is typically the source for categorization/grouping on devdocs.

simon04··on DevDocs
Not that I'm aware of. In a way this contradicts the minimalistic and offline approach.
simon04··on DevDocs
Here's how to add a new scraper: https://github.com/freeCodeCamp/devdocs/blob/main/.github/CO...

Or open an issue and wait for somebody else to implement the scraper.

simon04··on DevDocs
The enabled docs are stored in local storage. Are you frequently deleting your browser data? The enabled docs may also be exported as well as re-imported as JSON.
simon04··on DevDocs
I'm one of the few maintainers.

Updating docs to a new release is easy unless the documentation system (such as react.dev redesign) or design is rewritten. Some projects seem to do this on a regular basis.

Some documentation generators generate random class names (such as .gtWOdv, .ezMiXD, .gOhcvK on docs.npmjs.com by Gatsby) which makes cleaning the docs from superfluous content (such as on-page navigation) very cumbersome and flaky.

Monthly, we auto-generate a list of outdated docs, here is the latest: https://github.com/freeCodeCamp/devdocs/issues/2105

Help is always welcome. :-)

simon04··on Anything longer ago than yesterday should just say the actual date
I'm waiting for the day when I can additionally configure "use ISO8601/RfC3339 timestamps"

Not only on GitLab, but everywhere. In any application. On any website. It's a pain in the ass on Linux.

simon04··on Bun v1.0.0
That's my understanding, too.

> Bun can run .js, .ts, .cjs, .mjs, .jsx, and .tsx files, which can replace: > > tsc — (but you can keep it for typechecking!)

simon04··on Clean mount lists in Linux
Plus the regex is more likely incorrect in the first attempt and needs to be fixed.
simon04··on Pydantic V2 rewritten in Rust is 5-50x faster than Pydantic V1
Related: Ruff, a fast Python linter, written in Rust, claiming to be 10-100x faster than existing linters.

https://news.ycombinator.com/item?id=34788020 and https://news.ycombinator.com/item?id=32666035

simon04··on How to own your own Docker Registry address
Nobody except for paid editors: https://en.wikipedia.org/wiki/Wikipedia%3APaid-contribution_... andhttps://en.wikipedia.org/wiki/Editing#Editing_services
simon04··on Bitwarden design flaw: Server side iterations
vaultwarden (an unofficial Bitwarden compatible server written in Rust) has been updated two hours ago via https://github.com/dani-garcia/vaultwarden/commit/2d8c8e18f7... –

- Change default Password Hash KDF Storage from 100_000 to 600_000 iterations

- Update Password Hash when the default iteration value is different

- Validate password_iterations

- Validate client-side KDF to prevent it from being set lower than 100_000

simon04··on Confluence on-premise is dead, what now?
Anyone using OprnProject? https://www.openproject.org/
Page 1 of 3Next →