HNHacker News
TopNewBestAskShowJobs

Liskni_si

404 karma · joined March 30, 2018

https://github.com/liskin https://lisk.in/

https://meet.hn/city/gb-London

Socials: - github.com/liskin - linkedin.com/in/pivnik - reddit.com/user/Liskni_si

Interests: Cycling, Fitness, Gaming, Hacking, Hiking, Open Source, Outdoor Activities, Programming, Remote Work, Running

---

submissionscomments
Liskni_si··on PyPI Blog: Token Exfiltration Campaign via GitHub Actions Workflows
If you can change a GitHub Actions workflow to exfiltrate a token, what prevents you from changing the workflow that uses Trusted Publishing to make changes to the package before publishing it? Perhaps by adding an innocent looking use of an external Action?
Liskni_si··on Xmonad seeking help for Wayland port (2023)
> no legacy Xorg code

This is not accurate. It runs quite a lot of legacy Xorg code actually, just without the input and video drivers.

Liskni_si··on Xmonad seeking help for Wayland port (2023)
GitHub Sponsors is where most of the money came from.
Liskni_si··on Shai-Hulud malware attack: Tinycolor and over 40 NPM packages compromised
That Cargo.lock will only be used for the library's own CI though (and also for development if you git clone it). It will not be used by downstream dependencies at all.
Liskni_si··on Shai-Hulud malware attack: Tinycolor and over 40 NPM packages compromised
> If npm respected every upstream lockfile, then it could never share a single version that satisfied all dependencies.

I'm asking in the context of installing a single CLI tool into ~/bin or something. There's no requirement to satisfy all dependencies, because the only dependency I care about is that one CLI tool. All I want is an equivalent of what `cargo install --locked` does — use the top-level lockfile of the CLI tool itself.

Liskni_si··on Shai-Hulud malware attack: Tinycolor and over 40 NPM packages compromised
In the Rust ecosystem, you only publish lock files for binary crates. So yeah then you get churn like https://github.com/cargo-bins/cargo-binstall/releases/tag/v1... bumping transitive deps, but this churn/noise doesn't exist for library crates - because the lock file isn't published for them.
Liskni_si··on Shai-Hulud malware attack: Tinycolor and over 40 NPM packages compromised
Is there any way to install CLI tools from npmjs without being affected by a recent compromise?

Rust has `cargo install --locked`, which will use the pinned versions of dependencies from the lockfile, and these lockfiles are published for bin packages to crates.io.

But it seems npmjs doesn't allow publishing lockfiles, neither for libraries nor for CLI tools, so if you try to install let's say @google/gemini-cli, it will just pull the latest dependencies that fit the constraints in package.json. Is that true? Is it really this bad? If you try to install a CLI tool on a bad day when half of npmjs is compromised, you're out of luck?

How is that acceptable at all?

Liskni_si··on Tell HN: Cloudflare is blocking Pale Moon and other non-mainstream browsers
Yeah maybe if you somehow managed to email them without their email provider stopping that email from reaching them…
Liskni_si··on Show HN: X11 tool to share a screen area in any video meeting
Also looks like one can just do

xrandr --delmonitor screenshare

before this to seamlessly update the shared region — Chrome will immediately pick up the change and continue sharing the updated virtual monitor.

Liskni_si··on Show HN: X11 tool to share a screen area in any video meeting
To make the selection interactive, the command becomes:

geo=$(slop -f '%w/1x%h/1+%x+%y') && xrandr --setmonitor screenshare "$geo" none

Liskni_si··on Engineering for Slow Internet
Yes, right now it's mostly just wifi at stations only. However, they're deploying 4G/5G coverage in the tunnels and expect 80% coverage by the end of 2024 [1].

So… you can expect apps developed by engineers in London to get much worse on slow internet in 2025. :-)

[1]: https://tfl.gov.uk/campaign/station-wifi

Liskni_si··on Pluckable Strings
yes, me. Chrome 125, Linux x86_64, pipewire.
Liskni_si··on Glider – open-source eInk monitor with an emphasis on low latency
Try using KOReader instead of the built-in reader software. It's a bit faster (doesn't wait to reflow the entire book if you change fonts, margins, orientation, whatever), and also it's easier to achieve consistent rendering of books (fonts, spacing, etc.) as it supports overriding the stylesheet, and just generally handles HTML/CSS better.

Oh, and speaking of responsiveness, I found that it depends on temperature a lot. E-ink apparently has a sweet spot at room temperature, but when I use the device outdoors, in either sub 10 ˚C temperatures or over 30 ˚C the screen changes noticeably slower.

Liskni_si··on KeePassXC Debian maintainer has removed all network features
Right, I should have been more careful with the word "exactly". I don't think the proposed solution can be implemented, though.

If the "keepassxc" package is to be replaced by the two alternatives ("keepassxc-full" and "keepassxc-minimal"), you'd still need a transitional dummy package named "keepassxc". That package would depend on "keepassxc-full | keepassxc-minimal", giving the user a choice to satisfy the dependency by installing either of those. So far so good. What if the user doesn't explicitly choose, though? The idea is that an upgrade would keep the "-full" variant but "apt install keepassxc" would pull in the "-minimal" variant. How do you encode this in Debian package metadata?

I think both "apt install" and "apt full-upgrade" will simply choose the first alternative, so you get either "-full" in both scenarios, or "-minimal" in both.

Liskni_si··on KeePassXC Debian maintainer has removed all network features
It not only _is_ the obvious choice, it is _exactly_ what has actually happened in Debian: https://salsa.debian.org/debian/keepassxc/-/commit/7d6d16e3f...

The original post is just a badly written clickbait. Nothing was removed, it was just moved to the keepassxc-full package.

Liskni_si··on Caniemail.com – like caniuse but for email content
It is, although practically I don't really mind as my mutt is configured to filter text/html through elinks, so I see the content just fine. It's those other annoyances like tracking links that span a dozen lines that annoy me more. :-(
Liskni_si··on Caniemail.com – like caniuse but for email content
Quite a lot of services send both… and the text/plain version is completely different. They used to be the same many years ago, but then whoever is in charge of changing the email template only changes the text/html variant, and keeps the text/plain content stuck in the old times. It'd be almost funny if it wasn't tragic.
Liskni_si··on Aider: AI pair programming in your terminal
Yes, except it's "bad automation", because as opposed to the automation referred to by GP, boilerplate written by an LLM (or an intern or whomever) is extra code that costs a lot of time to be maintained.
Liskni_si··on New 13- and 15‑inch MacBook Air with M3 chip
Imagine buying a MacBook Air only to need an external keyboard to be able to use it comfortably…
Liskni_si··on Wintergatan Marble Machine (2016) [video]
I have both Wintergatan and Detektivbyrån in my "calm/reading" playlist, and it's such a joy whenever the random shuffle decides to play it. So yeah I wish there was more! :-)
Liskni_si··on CSS for printing to paper
Should be doable using paged.js - https://gitlab.coko.foundation/pagedjs/pagedjs/-/issues/91
Liskni_si··on The Matrix Trashfire
> If you think running a Matrix server is difficult, you are probably not the intended audience: running an IRC server, an email server, or some other server, is mostly similarly difficult.

Running an IRC server is absolutely not as difficult as running a Matrix server.

There is no state, so you can literally build a tiny Docker image with the config baked in, run it on a VM with the specs of a cheap computer from the 1990s, and then forget about it for years. If it gets hacked (which I think isn't super likely as it's a small codebase that's been out there for decades), you build a new image with a more recent version of ircd.

Liskni_si··on Bard is now Gemini, and we’re rolling out a mobile app and Gemini Advanced
It could be worse.

Google Play in a browser: "This app is not available for your device"

Google Play app: "This item is not available in your country."

Aurora Store: "Download Failed. App not purchased"

Great launch indeed. Bravo.

Liskni_si··on Framework Laptop 16 Review
Apart from the 51nb stuff from China (https://www.xyte.ch/mods/x210-x2100/ and the like), the ThinkPad 25 is the closest official thing, but it's over 6 years old now (released in October 2017, but mine's still going strong and I haven't even replaced the batteries yet).
Liskni_si··on Writing a TrueType font renderer
> People still connect their Apple computers to low-DPI monitors all the time.

They do, but the fonts are visibly blurry on those, as they did indeed remove the subpixel antialiasing. Thankfully, the Gtk4 developers removed it as well, so Linux (or at least the GNOME desktop) will soon look like crap as well.

Liskni_si··on Playstation is erasing seasons of Discovery shows from customer libraries
> If I could support artists directly, I would. But I can't, and I refuse to support predatory labels, so I don't. I do feel a little bad about it, but options are limited.

I've had artists send me mp3 in the morning after I gave them cash at a concert the night before. :-)

Liskni_si··on Jaq – A jq clone focused on correctness, speed, and simplicity
I use it as a "JSON library for bash". :-)

Not really in "production", but I have a lot of small-ish shell scripts all over the place, mostly in ~/bin, and some in CI (GitHub Actions) as well.

Liskni_si··on Getting my library cards onto my phone the hard way
There's an app that lets you add whatever barcodes you want into Google Wallet: https://play.google.com/store/apps/details?id=color.dev.com....
Liskni_si··on Was Rust Worth It?
What window manager is that, may I ask out of curiousity?
Liskni_si··on Stacked Diffs (and why you should know about them)
Re

> 1. … You'll need some rebase-fu to handle that, and the pain is significant if the chain is long.

`git rebase --update-refs` on the last branch will handle updating of all the intermediate branches in the stack, you just need to force-push them all at the end.

It does help with 2. as well, but you will indeed need to manually update the target branch of a single PR on GitHub.

← PreviousPage 2 of 7Next →