Skip to content

Instantly share code, notes, and snippets.

@davesteele
davesteele / macmon.py
Last active March 19, 2020 01:11
Python asyncio MAC address monitoring
#!/usr/bin/python3
import socket
import logging
import asyncio
import time
from collections import defaultdict
import json
logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
@davesteele
davesteele / gmimap.py
Last active July 17, 2020 04:33
Class and example for using the Gmail IMAP Extensions
#!/usr/bin/python -tt
#
# Note that this uses xlist, which is deprecated.
#
# This also predates the GMail REST API, which is probably a better mechanism
# https://developers.google.com/gmail/api/
#
#
""" Example of how to use Google IMAP Extensions using Python