Skip to content

Instantly share code, notes, and snippets.

@salut1618
salut1618 / import_rockstar_ipaddresses_to_protonvpn.py
Last active September 3, 2022 11:04
adds rockstars ip addresses to ProtonVpn split tunneling config
# Required dependencies
# ! pip install dnspython
# ! pip install xmltodict
import dns
import dns.resolver
from os import listdir, getlogin
from json import dumps, loads
import xmltodict
from packaging import version
@salut1618
salut1618 / drivebase.py
Last active September 28, 2022 02:40
drive api python wrapper, Oauth2 client credentials required as credentials.json file
# google-api-python-client
# google-auth-httplib2
# google-auth-oauthlib
# requests
import asyncio
from dataclasses import dataclass
from pathlib import Path
from typing import Union
from googleapiclient.errors import HttpError
from google.oauth2.credentials import Credentials