* Private Internet Access (PIA) VPN region chooser in Emacs
@ 2021-03-04 17:28 TRS-80
2021-03-05 17:23 ` Leo Butler
0 siblings, 1 reply; 2+ messages in thread
From: TRS-80 @ 2021-03-04 17:28 UTC (permalink / raw)
To: help-gnu-emacs
Hello *,
Some months ago, I had written for myself a completing-read style VPN
location chooser, implementing PIA's most recent API.
They do publish some F/LOSS shell scripts[0] to do this, but they
automatically choose for you the "closest/fastest" region, instead of
allowing you to choose your exit point.
Of course, preferring not to leave Emacs anyway, I implemented in
Elisp a few functions which first fetch the list of exit points, and
extract the relevant bits using jq. Then a connect function will
present them to you in completing-read style so you can choose a
region, and then connect. Disconnecting and changing regions is also
supported. It's pretty basic, but it does what I need.
I have been using this for some months now without issue. Publishing
them publicly would involve a minimal amount of polish and writing a
README, which I could be bothered to do if there is enough interest.
Cheers,
TRS-80
[0] https://github.com/pia-foss/manual-connections
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Private Internet Access (PIA) VPN region chooser in Emacs
2021-03-04 17:28 Private Internet Access (PIA) VPN region chooser in Emacs TRS-80
@ 2021-03-05 17:23 ` Leo Butler
0 siblings, 0 replies; 2+ messages in thread
From: Leo Butler @ 2021-03-05 17:23 UTC (permalink / raw)
To: help-gnu-emacs
It sounds interesting.
TRS-80 <lists.trs-80@isnotmyreal.name> writes:
> Hello *,
>
> Some months ago, I had written for myself a completing-read style VPN
> location chooser, implementing PIA's most recent API.
>
> They do publish some F/LOSS shell scripts[0] to do this, but they
> automatically choose for you the "closest/fastest" region, instead of
> allowing you to choose your exit point.
>
> Of course, preferring not to leave Emacs anyway, I implemented in
> Elisp a few functions which first fetch the list of exit points, and
> extract the relevant bits using jq. Then a connect function will
> present them to you in completing-read style so you can choose a
> region, and then connect. Disconnecting and changing regions is also
> supported. It's pretty basic, but it does what I need.
>
> I have been using this for some months now without issue. Publishing
> them publicly would involve a minimal amount of polish and writing a
> README, which I could be bothered to do if there is enough interest.
>
> Cheers,
> TRS-80
>
> [0] https://github.com/pia-foss/manual-connections
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-03-05 17:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-04 17:28 Private Internet Access (PIA) VPN region chooser in Emacs TRS-80
2021-03-05 17:23 ` Leo Butler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).