frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Once: Cache CLI Commands

https://github.com/alex0ptr/once
21•baquero•3h ago

Comments

baquero•3h ago
Do you have CLI calls that you want to cache? Here you go!
stingraycharles•1h ago
Seems well-designed, but what’s the use case? I’m trying to think of them but my creativity is failing me.
frizlab•1h ago
From the example in the Readme, I guess retrieving a token from an API, using a secret fetched from a secure vault that requests a password or TouchID validation.

Not sure if there could be other interesting uses. I can’t think of one anyways.

whilenot-dev•1h ago
I have the same question, especially since any CLI output can be stored explicitly in some variable or temp file. What's the advantage of storing the output implicitly?
adregan•42m ago
I have a small fish function that does something similar. It saves output to a file in XDG_CACHE_HOME. I wouldn’t use it for sensitive items like passwords or tokens in the examples, but I do use it for scripts that need to fetch some data from the network.

For example, I have a script for automating the creation of PRs which fetches the available labels for a repo from github and presents them with fzf multi select. I store the labels with a TTL of a week so that I don’t have to fetch them every time and the script compares the file’s age against the desired TTL to invalidate.

I find it useful for augmenting other programs, but I’m not typically using it on the cli directly.

deadbunny•1h ago
I've always wanted to deal with cache invalidation in my terminal.
xuhu•1h ago
I wish this worked without prefixing the commands with "once". Especially if I ran a command with verbose output and afterwards decided I wanted to grep something from it. Terminals have the output in their scrollback buffer and maybe it's just a matter of writing an "output" command that lets me run:

    $ cmake ..
    $ output | grep "libssl version"
aktau•54m ago
These kinds of tools are very useful. I have my own called memo (which is just a shell script: https://github.com/aktau/dotfiles/blob/master/bin/memo).

It was discussed in https://news.ycombinator.com/item?id=45670052 and others chimed in with their own (like bkt(1) and up(1)).

The main differences I see:

  - memo doesn't need to be built (its a shell script)
  - once keeps output cache in a running daemon. By contrast, memo stores content under /tmp with whatever the best compression available is (it prefers zstd). There's trade-offs in that. More pareto-optimal from the security front may be to have a sort of session key and to compress-then-encrypt files on disk.

Let your AI agents paint big arrows, boxes and text on your screen

https://github.com/franzenzenhofer/big-arrow-on-the-screen
117•franze•1h ago•41 comments

Nobel Peace Prize for 2026 to Navanethem "NAVI" Pillay

https://www.nobelprize.org/prizes/peace/2026/press-release/
151•Anon84•2h ago•67 comments

I'm in a Meeting

https://iminafleeting.com/
105•splintersio•3h ago•37 comments

Why isn't the industry freaking out about DeepSeek 4.1 Flash?

https://www.dgt.is/blog/2026-10-07-deepseek-freek-out/
856•jonotime•1d ago•766 comments

Whistle: Speech to Text in 16.9 MB

https://cactuscompute.com/blog/whistle
813•gmays•19h ago•163 comments

Once: Cache CLI Commands

https://github.com/alex0ptr/once
21•baquero•3h ago•8 comments

MXC - a sandboxed code execution system

https://github.com/microsoft/mxc
71•nreece•7h ago•37 comments

Man discovers his parents' coffee machine used 1TB of data in 10 days

https://www.dexerto.com/entertainment/man-discovers-his-parents-coffee-machine-used-1tb-of-data-i...
768•ck2•1d ago•474 comments

Keyboard differences between Windows and Macs

https://unsung.aresluna.org/deeper-dive-keyboard-differences-between-windows-and-macs/
193•sohkamyung•9h ago•167 comments

I hired an illustrator to draw my house. Now it's my Home Assistant dashboard

https://antonfrolov.substack.com/p/i-hired-an-illustrator-to-draw-my
715•soheilpro•2d ago•143 comments

Yes, and

https://htmx.org/essays/yes-and/
528•Michelangelo11•1d ago•182 comments

US proposes $100k charge for international students to do post-graduate work

https://www.nature.com/articles/d41586-026-02921-7
24•bluenose69•1h ago•16 comments

Theranos.world

https://www.theranos.world/
483•kbyatnal•19h ago•170 comments

OpenAI fires three safety researchers for "mishandling research information"

https://techcrunch.com/2026/10/08/fired-openai-safety-researchers-dispute-misconduct-claims-warn-...
67•trakkstar•2h ago•31 comments

The value of not getting to the point (2015)

https://ken.arneson.name/2015/11/the-value-of-not-getting-to-the-point/
187•NaOH•17h ago•64 comments

Ask HN: What do you run on a $5 VPS that's worth keeping online 24/7?

272•mariocesar•2d ago•448 comments

The Hetzner Cloud network stack – history and technical overview

https://www.hetzner.com/blog/the-hetzner-cloud-network-stack-history-and-technical-overview/
9•cnkk•33m ago•0 comments

OpenAI, the Partition Principle, and Mathematics

https://karagila.org/2026/openai-pp/
142•md224•13h ago•221 comments

ETH-68: Ethernet Audio Interface for Linux

https://naturalsystems.io/eth68
177•chabad360•1d ago•103 comments

AI-ready biological data: $1.8B global commitment

https://biohub.org/news/virtual-biology-initiative-expansion/
133•ray__•16h ago•19 comments

Beauty in DVD Menus

https://vale.rocks/posts/dvd-menus
317•speckx•23h ago•167 comments

DuckDB Ducklake

https://github.com/duckdb/ducklake
196•saikatsg•1d ago•23 comments

Show HN: Quake ported to safe Rust, playable in browser

https://quake-srp.pages.dev/
187•ilreb•7h ago•148 comments

A Terminal Protocol for Program Status (OSC 7501)

https://mitchellh.com/writing/program-status-osc7501
164•mfiguiere•2d ago•49 comments

Show HN: Making a flexible "neon" t-shirt with LED filaments

http://scottbezek.blogspot.com/2026/10/making-flexible-neon-t-shirt-with-leds.html
185•scottbez1•20h ago•33 comments

OpenAI withdraws three mathematical results

https://twitter.com/danintheory/status/2108065033070789090
335•sashank_1509•1d ago•584 comments

I think I found a planet nobody knew existed. I used Claude Code to find it

https://www.reddit.com/r/ClaudeAI/s/mbe5IY2LF9
215•pyduan•1d ago•101 comments

Step 5 Preview, a 1M-context MoE from StepFun, shows up on OpenRouter

https://openrouter.ai/stepfun/step-5-preview
133•AnneWodell•20h ago•32 comments

ADHD as a circadian rhythm disorder: evidence and implications for chronotherapy (2025)

https://www.frontiersin.org/journals/psychiatry/articles/10.3389/fpsyt.2025.1697900/full
341•bookofjoe•16h ago•217 comments

Archaeologists Are Reconstructing the 'Invisible' Technologies of the Stone Age

https://www.smithsonianmag.com/science-nature/archaeologists-are-reconstructing-the-invisible-tec...
139•Hooke•1d ago•55 comments