💾 Archived View for gemi.dev › gemini-mailing-list › 000693.gmi captured on 2024-08-19 at 01:43:04. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-12-28)

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

[ANN] Paste it to Gemini

1. Louis Brauer (louis (a) brauer.family)

Since there is no shortage of new Gemini capsules published every day, I'd 
like to announce my newest release:

A Gemini paste service:

gemini://paste.gemigrep.com

Just paste a piece of text or code and you'll get Gemini and HTTPs share links.

I hope that this service s useful to some of you. Have fun!

- Louis

Link to individual message.

2. metalune (metalune (a) mailbox.org)

For the less command-line savvy people here, how exactly do we do this
using the commandline? or is it intended to be used using the gemini
interface?

Link to individual message.

3. Louis Brauer (louis (a) brauer.family)

You can use any Gemini browser for that, 

i.e. Lagrange:
https://share.getcloudapp.com/yAu6ZN8E

or Amfora interactively:
https://share.getcloudapp.com/z8uP4j54

or pass the paste directly to amfora:
$ amfora "gemini://paste.gemigrep.com/paste?This is another way to do it"

This will instantly create a new paste and give you the URL.

Is that what you mean?

- Louis


Am Fr, 12. Feb 2021, um 14:33, schrieb metalune:
> For the less command-line savvy people here, how exactly do we do this
> using the commandline? or is it intended to be used using the gemini
> interface?
>

Link to individual message.

4. Thomas Frohwein (tfrohwein (a) fastmail.com)

On Fri, Feb 12, 2021 at 02:49:08PM +0100, Louis Brauer wrote:
> You can use any Gemini browser for that, 
> 
> i.e. Lagrange:
> https://share.getcloudapp.com/yAu6ZN8E
> 
> or Amfora interactively:
> https://share.getcloudapp.com/z8uP4j54
> 
> or pass the paste directly to amfora:
> $ amfora "gemini://paste.gemigrep.com/paste?This is another way to do it"
> 
> This will instantly create a new paste and give you the URL.
[...]

even more low-level approach:

gemigrep.sh:
 ```
#!/bin/sh
echo "gemini://paste.gemigrep.com/$(echo "gemini://paste.gemigrep.com/paste?$1" \
	| openssl s_client -quiet -connect paste.gemigrep.com:1965 2>&1 | tail -1 
| cut -d / -f 3)"
 ```

Tested on OpenBSD's ksh(1).

Limitations:
- can't deal with newlines. You can insert '%0A' in the string to force a newline.
- I haven't figured out how to simplify this even more to set an alias... :/

Link to individual message.

---

Previous Thread: [ANN] First experiment

Next Thread: Storing capsule pages?