Skip to content

Instantly share code, notes, and snippets.

View gitunit's full-sized avatar
🎯
Focusing

gitunit

🎯
Focusing
View GitHub Profile
@gitunit
gitunit / dashbutton.py
Last active September 14, 2016 22:28 — forked from mr-pj/dashbutton.py
if dhcp request matches a given mac, an action will be taken. Requires pydhcplib - check: https://github.com/dgvncsz0f/pydhcplib
from pydhcplib.dhcp_network import *
def do_something():
print("button has been pressed")
netopt = {'client_listen_port':"68", 'server_listen_port':"67", 'listen_address':"0.0.0.0"}
class Server(DhcpServer):
def __init__(self, options, dashbuttons):