From: TRS-80 <lists.trs-80@isnotmyreal.name>
To: help-gnu-emacs@gnu.org
Subject: Private Internet Access (PIA) VPN region chooser in Emacs
Date: Thu, 04 Mar 2021 12:28:14 -0500 [thread overview]
Message-ID: <d9a01193f3ed8dbdf4eacfdc84a0d618@isnotmyreal.name> (raw)
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
next reply other threads:[~2021-03-04 17:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-04 17:28 TRS-80 [this message]
2021-03-05 17:23 ` Private Internet Access (PIA) VPN region chooser in Emacs Leo Butler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d9a01193f3ed8dbdf4eacfdc84a0d618@isnotmyreal.name \
--to=lists.trs-80@isnotmyreal.name \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).