💾 Archived View for station.martinrue.com › bacardi55 › 93167109194b4f999e9f7e177630cc2d captured on 2024-05-12 at 16:48:44. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-03-20)
-=-=-=-=-=-=-
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
gemini://gmi.bacardi55.io/gemlog/2021/08/08/gemini-to-wallabag/
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
https://proxy.vulpes.one/gemini/
@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
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
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