Skip to content

Instantly share code, notes, and snippets.

View barnumbirr's full-sized avatar

Martin Simon barnumbirr

View GitHub Profile
#!/usr/bin/env python
# http://stackoverflow.com/questions/16977588/reading-dns-packets-in-python
import pprint
import socket
import struct
def decode_labels(message, offset):
@barnumbirr
barnumbirr / viedemerde.py
Last active August 29, 2015 14:00
Parse viedemerde.fr for a random quote.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
import urllib
__title__ = 'viedemerde'
__version__ = '0.1'
__author__ = 'Martin Simon <me@martinsimon.me>'
__license__ = 'Apache v2.0 License'