HNHacker News
TopNewBestAskShowJobs

Piraty

102 karma · joined May 5, 2023

https://piraty.dev/
submissionscomments
Piraty··on Show HN: Ledge.sh – Runnable Markdown Notes
> I built Ledge because I spend much of my day copy/pasting commands from my notes into the terminal. I was inspired by how much cmux helped me organize my terminals - but there was still a split brain between my notes and frequently Run commands. I've been daily-driving it for the past few weeks and use it for deploys, API calls, smoke tests, etc.

I see it might be handy for exploring your own pipelines (and so are things like https://github.com/akavel/up/ ) , but I advise against using this for any serious project management. Nontrivial and/or crucial code-blocks in markdown files is an anti-pattern.

Once i find I'm re-using code from my markdown notes, I make it a script in ${dotfiles}/bin or in ${project}/scripts and put related docs in there. This feels like the inverse of this tool's imposed workflow and has the upside of composability of tools.

Then use something like a makefile to call these tools/scripts behind generic phony targets (or you can roll your own 'project.sh' entry point script if really needed). It then becomes just `make release`. it is portable already and does not add yet another host dependency on everybody nor a fricking javascript engine.

ps1: Same goes for weird stuff like https://pypi.org/project/taskipy/ . use `make release` over `poetry run task release`

ps2: if you're copy/pasting-workflow sucks: improve it. vim has :Terminal, it has yank-to-clipoard etc.

Piraty··on Registration without a phone number on Signal will use zero-knowledge proofs
wake me up when signal can be used with no significant loss of feature or extra-hoops like signal-cli+SMS on non-google/non-apple devices like my linux desktops / linux phones.
Piraty··on Visualizing Binary Files
arcan [1] has senseye [2][3].

[1] https://arcan-fe.com

[2] youtu.be/WBsv9IJpkDw

[3] youtu.be/ALA1W-BL8fA

Piraty··on How Shamir's Secret Sharing Works
which is in fact by Max Levchin: https://max.levch.in/post/724289457144070144/shamir-secret-s...
Piraty··on Linux Terminal Memory Usage
there is more to your choice of terminal emulators than pure memory usage.

https://lwn.net/Articles/749992/

https://lwn.net/Articles/751763/

Piraty··on Scotty: A beautiful SSH task runner
every sunday
Piraty··on Flash media longevity testing – 6 years later
https://blog.dshr.org/2025/03/archival-storage.html
Piraty··on Building a new Flash
there is electron already. https://news.ycombinator.com/item?id=14087381
Piraty··on WiFi could become an invisible mass surveillance system
related (2022): DensePose From WiFi https://arxiv.org/abs/2301.00250
Piraty··on Todd C. Miller – Sudo maintainer for over 30 years
solved long ago. https://github.com/jirutka/doas-sudo-shim/
Piraty··on Defeating a 40-year-old copy protection dongle
well done. this brought up fond memories of crackme communities in the early web... looking at asm callgraphs in ollydbg ... I just found my +20y old patch.exe that 'NOP's the correct address of a popular windows archive handling software just to get rid of its nag screen ;-)
Piraty··on The C-Shaped Hole in Package Management
yes, i found conan appears to have lax rules regarding package maintenance which leads to incosistent recipes
Piraty··on The C-Shaped Hole in Package Management
very related: https://michael.orlitzky.com/articles/motherfuckers_need_pac...
Piraty··on A static site generator written in POSIX shell
i write in markdown, use lowdown + make to build html, push the html to a branch that my hoster serves from : https://piraty.dev/
Piraty··on Stunnel
I was involved in a very similar situation once. I recommend wireguard for this, it's mature for years, has superb support in linux and some BSDs and there are userspace implementations if you need that. It wraps traffic in UDP, the overhead is much smaller thus throughput mich higher than traditional TCP-based VPN (you want to avoid tcp-in-tcp!). There were once patches posted to lkml that passed QoS-flags from the inner packet to the wireguard packet, if you need that. not sure if that landed upstream in the end. key distribution and lifecycle management is what was still unsolved years back when this was evaluated, nowadays tailscale and its clones and similar oss should serve you well.
Piraty··on Nukeproof: Manifesto for European Data Sovereignty
install ublock-origin, right-click on the element, choose the new 'block element...' option, preview, verify, create .done.
Piraty··on The Overcomplexity of the Shadcn Radio Button
> Web development is hard.

no it's not.

you all make it hard by bloating your sites with Jenga tower abstractions for styling, needlessly load content dynamically via Jenga tower javascript libraries that pulls complexity into frontend and most of the time puts unnecessary load on the content generator ("backend") too. I don't know a lof of sites where that actually makes sense, as web === text.

When html5 came about, along with CSS3, it was such a big leaf in terms of ease of use and accessibility. I argue that what most websites do to my taste nowadays can be achieved by early-stage html5+css3+ a few svg.

Nowadays on about 50% of websites it have to * enable 3rd-party JS just to get the text * enable massive amounts of 3rd-party JS to get the images * enable remote fonts just to grok your pathetic icon-only menu or even spot the 'search' feature (it's not even a 'button' most of the time) because you didn't care to use a proper <img> or <svg>

Piraty··on The spectrum of isolation: From bare metal to WebAssembly
remember the times when common sense was to not accept the remote site's fonts, and thus web devs should not use them
Piraty··on Handling secrets (somewhat) securely in shells
i usually use subshells and a project specific shell script to not have variables linger around in long-lived shell processes: ` ( . ./credentials && PW="$CRED_PW" ./the_thing ) ` so credentials can be retrieved via pass or whatever mechanism provides them.

related: https://news.ycombinator.com/item?id=43721228

Piraty··on Property-Based Testing Caught a Security Bug I Never Would Have Found
It's always good to write tests with the "The Enterprise Developer from Hell" in mind: https://fsharpforfunandprofit.com/posts/property-based-testi...
Piraty··on Here is the 15 sec coding test I used to instantly filter out most applicants
exactly the reason why you NEVER should copy-paste code from a website into your terminal, even if that has paste protection (https://lwn.net/Articles/749992/)
Piraty··on State of Terminal Emulators in 2025: The Errant Champions
a look at terminal emulators

https://lwn.net/Articles/749992/

https://lwn.net/Articles/751763/

Piraty··on Schleswig-Holstein completes migration to open source email
If they (and every public body doing the same move) now start donating 50% of their previous costs to the FOSS projects they, that would most notably put mozilla in a much better position to not have to bow to google money and go down the route they did lately.
Piraty··on What if I don't want videos of my hobby time available to the world?
don't tell author about new meta glasses everybody and their grandma will wear 24/7 in 10y. https://news.ycombinator.com/item?id=45283306
Piraty··on Privacy and Security Risks in the eSIM Ecosystem [pdf]
you could just have read the abstract instead
Piraty··on Meta Ray-Ban Display
so, everybody wearing this in europe will hand out 'may i take photographs of you or your property'-forms + 'do you agree to Facebook's TOS, as your photographs will be uploaded to and processed by them'-forms prior to using this in public? just like owners of all the rolling surveillance stations (some still call them EV) do?

spy state actor's wet dream comes even more true with this, even more than with already overly de-privaciced public spaces.

Piraty··on Neovim Pack
git pull. too often i found breake so i inspect git-log message prior to update, git-bisect came in handy once
Piraty··on Show HN: Kitten TTS – 25MB CPU-Only, Open-Source TTS Model
25M ? lol . the venv is 6.9G
Piraty··on I want an iPhone Mini-sized Android phone (2022)
htc HD mini was the perfect form factor
Piraty··on New EU rules on digital accessibility to come into force
less javascript + less dynamically loaded/changed content is the solution to web accessibility
Page 1 of 3Next →