💾 Archived View for station.martinrue.com › bacardi55 › 93167109194b4f999e9f7e177630cc2d captured on 2023-01-29 at 05:21:03. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-07-16)

➡️ Next capture (2023-03-20)

🚧 View Differences

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

👽 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/

1 year 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 · 1 year 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 :) · 1 year 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. · 1 year 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. · 1 year ago