💾 Archived View for station.martinrue.com › bacardi55 › 93167109194b4f999e9f7e177630cc2d captured on 2023-04-20 at 01:09:25. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-03-20)

➡️ Next capture (2024-05-12)

-=-=-=-=-=-=-

👽 bacardi55

Saving gemini pages (via lagrange) to wallabag (via wallabag-cli) with 2 lines of bash:

gemini://gmi.bacardi55.io/gemlog/2021/08/08/gemini-to-wallabag/

2 years ago · 👍 mc, skyjake

Links

[1] gemini://gmi.bacardi55.io/gemlog/2021/08/08/gemini-to-wallabag/

Actions

👋 Join Station

4 Replies

👽 isoraqathedh

Here's my take. I tend to not like to use temporary variables in shells, substituting them with piplines whenever possible.

lagrange --tab-url |

sed 's|^gemini://|https://proxy.vulpes.one/gemini/|' |

xargs wallabag add · 2 years ago

👽 bacardi55

@skyjake : Good to know! Thanks :)

@isoraqathedh : I'm not a bash expert but I'm happy to put an example your way if you give me the exact command you would have in mind :) · 2 years ago

👽 isoraqathedh

Very cool. I would have written it as a pipeline, with the proxy URL rolled into the substitution (and swapping s/// with s||| - you can do that!) and then an xargs to throw the argument into the wallabag command. To me that's a bit clearer what you're doing. · 2 years ago

👽 skyjake

Nifty! One thing to note about Lagrange's --tab-url option, though: since it uses IPC, at the moment it doesn't work in Flatpak builds due to sandbox restrictions. Flatpak requires all IPC to use D-Bus and that has not been implemented yet. · 2 years ago