Skip to content

Instantly share code, notes, and snippets.

@WJDigby
WJDigby / sendmail.py
Last active August 3, 2023 13:21
python3 send email via gmail API
from apiclient.discovery import build
from apiclient import errors
from httplib2 import Http
from oauth2client import file, client, tools
from email.mime.text import MIMEText
from base64 import urlsafe_b64encode
SENDER = <sender>
RECIPIENT = <recipient>
@Gestas
Gestas / MP02_Ubuntu_tethering.md
Last active October 26, 2021 19:30
Punkt MP02 Ubuntu 20 tethering

USB Tethering Punkt MP02 <-> Ubuntu 20

Problem -

USB tethering isn't working between my Punkt MP02 phone and any of my computers. I've tested on Windows, macOS, and Linux. WiFi tethering works. Troubleshooting is easiest with Linux so I'm going to use my Ubuntu 20.04 laptop.

Current behaviour -

The MP02 does not export a network device via USB when tethering is turned on.

Expected behaviour -

The MP02 should export a network device and DHCP services via USB when tethering is turned on.