This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Linux recipe: | |
| # python3 -m venv proton-vpn-wireguard-downloader | |
| # pushd proton-vpn-wireguard-downloader | |
| # wget {{ zip url for this gist }} -O proton-vpn-wireguard-downloader.zip | |
| # wget "https://github.com/ProtonVPN/python-proton-core/archive/refs/tags/v0.2.0.zip" -O python-proton-core-0.2.0.zip | |
| # wget "https://github.com/ProtonVPN/python-proton-vpn-logger/archive/refs/tags/v0.2.1.zip" -O python-proton-vpn-logger.0.2.1.zip | |
| # wget "https://github.com/ProtonVPN/python-proton-vpn-api-core/archive/refs/tags/v0.32.2.zip" -O python-proton-vpn-api-core.0.32.2.zip | |
| # unzip -j proton-vpn-wireguard-downloader.zip | |
| # unzip python-proton-core-0.2.0.zip | |
| # unzip python-proton-vpn-logger.0.2.1.zip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Freedium Article Redirect | |
| // @namespace Violentmonkey Scripts | |
| // @run-at document-start | |
| // @match *://medium.com/* | |
| // @match *://*.medium.com/* | |
| // @match *://nytimes.com/* | |
| // @match *://*.nytimes.com/* | |
| // @match *://washingtonpost.com/* | |
| // @match *://*.washingtonpost.com/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import http.client | |
| import http.cookies | |
| import json | |
| import base64 | |
| import hashlib | |
| from cryptography.hazmat.primitives import serialization | |
| from cryptography.hazmat.primitives.asymmetric import x25519 | |
| from cryptography.hazmat.primitives.asymmetric import ec | |
| from cryptography.hazmat.primitives import hashes |