From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Leo Butler Newsgroups: gmane.emacs.help Subject: Re: Private Internet Access (PIA) VPN region chooser in Emacs Date: Fri, 05 Mar 2021 11:23:16 -0600 Message-ID: <867dmlbjln.fsf@x201.butler.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21126"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 05 19:41:38 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lIFOM-0005Q1-50 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 05 Mar 2021 19:41:38 +0100 Original-Received: from localhost ([::1]:42184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIFOL-0007Ya-6f for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 05 Mar 2021 13:41:37 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43488) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIEPC-0000kp-Vj for help-gnu-emacs@gnu.org; Fri, 05 Mar 2021 12:38:27 -0500 Original-Received: from mail-eopbgr670107.outbound.protection.outlook.com ([40.107.67.107]:52288 helo=CAN01-TO1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIEPA-00067x-KX for help-gnu-emacs@gnu.org; Fri, 05 Mar 2021 12:38:26 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LUDGmOKc6jnugMCBqkWKDh8HSIaXyEzrn1M30KCFMIfZ5oHnfmxeos9BMKsZgmP/ex71Y5QmHBDZJ/3gyoffdyvEi5dMSWj8tTdIIjr11EaHd+0/EGZ5TSBG8WGiIXcxJWz+H0V6ktOpnrlHx0pLsFL9vieJ4mX4K6S3EdoxQ4F8bQKT5n7ZAtGPAOx6uzcTHDwLVUcMPiGXZSDoVbYWqvGXNZSNYcK61mEf+5BvXFDxXerNCVJOExPlWb7tMoyFy71UuLHU32KNIirjWGf5XDkBebDGz9sd4Y5TIJGbJdUV6mEolZASKvGBpC11NCKvX37UP8jDxUIaw8etvUZdzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QmDeeBunwLVl5oLBl6rvUfsv2g2Bc9yqcyhcOvqwp5w=; b=RNPd5cACEmb2axUWhdPIoBoNTAPBdPDJP/AnAyedUG72IBxn+4OWel9CmgSnFtd2s8FrvQi0xH1v76bW6lwVOFIJEnMSeAzG+OtjViLJeyoyjXMY07eVBzjqlrhzxffSEXeQaAlEDxy6CG34FxFmYV4M8kmgasAECpzar0Ll+5tO+Rw7xS0FQxOSfw+rmhUVktR4TdktfML1aU4UufclN6O40rqM5xor57jXnmH7utFDYUN/kHhcImDa3DITulGdeADWzMm5BP2bneGNJK8Yb0CGMprOkm5iImMD4oM0zoTws4VzLrnsZsd8hDU/9Sd5EPjlqiOSYBmyCqSHBFcpmg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=umanitoba.ca; dmarc=pass action=none header.from=umanitoba.ca; dkim=pass header.d=umanitoba.ca; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umanitoba.onmicrosoft.com; s=selector2-umanitoba-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QmDeeBunwLVl5oLBl6rvUfsv2g2Bc9yqcyhcOvqwp5w=; b=BA9/EGNGKbTa/aOf87iiuS3XGA3nJi8eWoDtkk/3Wpp1GdaqrT/VZpx7CyHEH3lbWRpo2U1ICjDXVqBjVmpJJ0KPc5KuPEUhzp9kDO1LVi0r3mInNVxFdjHK/3vhKEhjRB72O39irE4Axv9zWbEpfU05+OOjH0gkEc/PXbRmnic= Authentication-Results: gnu.org; dkim=none (message not signed) header.d=none;gnu.org; dmarc=none action=none header.from=umanitoba.ca; Original-Received: from YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:21::31) by YTBPR01MB2846.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:17::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3890.28; Fri, 5 Mar 2021 17:23:19 +0000 Original-Received: from YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM ([fe80::89d0:a70e:edeb:5db8]) by YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM ([fe80::89d0:a70e:edeb:5db8%4]) with mapi id 15.20.3890.032; Fri, 5 Mar 2021 17:23:19 +0000 In-Reply-To: (TRS's message of "Thu, 04 Mar 2021 12:28:14 -0500") X-Originating-IP: [45.44.33.194] X-ClientProxiedBy: MW4PR04CA0251.namprd04.prod.outlook.com (2603:10b6:303:88::16) To YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:21::31) X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from x201 (45.44.33.194) by MW4PR04CA0251.namprd04.prod.outlook.com (2603:10b6:303:88::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17 via Frontend Transport; Fri, 5 Mar 2021 17:23:19 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1b6a17f1-32b1-449a-2f7c-08d8dffb5f10 X-MS-TrafficTypeDiagnostic: YTBPR01MB2846: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YxvuDQoEyGIj+NL+zGhnGgIlG/ouARpqai9I5h8aLDq0eEpGcJpadrHCjCreGKsA1B6kR6R/sYSNsklcqpa+35ug/32C9aI1Uq6FHpn0tcmBf63jejpk5oRpRGQoPtw63+Hd8Bs7dwnwOPasmZPeiqoaOZbaNYHqEPmZ6rapkJdiaMjpm/y915ct4ul/LchATNbpUjInx/OXW/QFSbJgNkXPdccPrLELn1UATJYXTMGFfDPgRWJ2/3XvqSLqYmgP5dDRxZvIjzr5zwi5vxv8+yhZvYBm6LjaZu9mciY2/wQHMXZ40hV6Ax+0QqfkGG2Ak7CfW1mzyQOrMmCjgkF6r8+r5v7S/e0Ln/OWWWI46yNNJTWH6PZZSkjQeWSe/GTUzGCEC/o+YSe3Ms4VREvOfCIdxWOTuqQhdkL6Qn1bYjp0zX2gnEtS4NKa3t/el4w/RyeFslsS3bkFpI7hjmQ0a8/n5Cj0PrHB6lWZUVBVhvSoGaQXMjN+BWGT5ZmPevEbUl3KLFA4Z/BbSPQsMV2ETE3WrBR/FrVcciHNwql/Z8fOCp0LnbqmwQbWPKMG2PhRh7Rkb4q6AIstK6HKbwYgbYcPgHlN/MS/6CNToLApP1k= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(136003)(396003)(346002)(39860400002)(376002)(366004)(52116002)(66476007)(9686003)(2906002)(44832011)(26005)(5660300002)(956004)(66946007)(16526019)(83380400001)(186003)(6666004)(66556008)(86362001)(478600001)(6486002)(8676002)(966005)(6916009)(6496006)(316002)(8936002)(786003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: PqUXRD3dacAFyp32Ux+uoYyLL0X6bLnrjZEMQeUznNzMMnHdvS1OQN/t59w/ObRaunK1R7SNbXhWVbaLQ50Ds0HknzIduBwecqwqA6eLwVOajmHjTGTkT7CpXU+NVHSNXXymRjKiDhCyrvpvHn6acVFwIjuyFxAoqZKHpy+Dvc0slSYSb3EZc9CZIuZbMDUVIIP7sWLiuFkZhz4xQ67iA438svQQ6EIwDWYftA5zTJPSmVZP9prkX0p7FXKPi2acUbo14nYW3Yv7SN/IWEM8AkHYfX9LudRSUIJhsVNyukTHDpWvryHnrJclRO1GnKOClU0XO4eV70Defynt0rBs9Dbi9h6qpZaXMCMyyVlm4dgMTFDQjbkeDjt6J0kw9iuej/BmxdkTGp7NbgVXlrpzqo2pOXjjTlcjnjh3jSOh6S14gnJPdr/NOOYOFBodul3eDvglZ83Dfod8hPHwjAUDXJZfI0+3MUmKdlckMwOdpB72E80K1RzUukL1GpQQhCgObf6ooZw9MvGrv/0V2yg57erc8/ZbWkfK78aSGn4XweRbSLCE1OccxZaycXcFrMCuKl01HEORUmMmwsd0K9NXur2/RxjXHk1uj30s1+uVeLfTu3uSTtg21IQOoLhS+qnSIRfXmI94mRyI/lNURbX2R4Tfz4wGYQth/UJEHrwtC3n3GbFkMqSLC3XOa01DEjGbqN6hK8eU4/a8AOhwJP1khg== X-OriginatorOrg: umanitoba.ca X-MS-Exchange-CrossTenant-Network-Message-Id: 1b6a17f1-32b1-449a-2f7c-08d8dffb5f10 X-MS-Exchange-CrossTenant-AuthSource: YTBPR01MB3053.CANPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Mar 2021 17:23:19.8636 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4f80dd0b-338c-4e4c-8a14-90446962f7b8 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: OuB72Fqfad7i/YSCNrnJDjCXbZhOUAFGxGJ9uI6VqvHrZZNk3nn9syMhfxTWgJQmXDXCwsC26UTkPxm//Lkj3g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: YTBPR01MB2846 Received-SPF: pass client-ip=40.107.67.107; envelope-from=Leo.Butler@umanitoba.ca; helo=CAN01-TO1-obe.outbound.protection.outlook.com X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:128354 Archived-At: It sounds interesting. TRS-80 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