Skip to content

Instantly share code, notes, and snippets.

@ifundef
ifundef / multicat.py
Created March 22, 2018 17:37
Python implementation of multicast equivalent of trivial netcat functionality
#!/usr/bin/env python
# http://docs.python.org/lib/socket-example.html
from optparse import OptionParser
import socket
import struct
import sys
@ifundef
ifundef / python2_test_dhcrypto.pytb
Last active August 29, 2015 14:01
test_dhcrypto.py traceback (python2: struct.unpack() can't operate on bytearray)
$ PYTHONPATH=. python2 tests/test_dhcrypto.py
Traceback (most recent call last):
File "tests/test_dhcrypto.py", line 8, in <module>
from secretstorage.dhcrypto import long_to_bytes, bytes_to_long
File "/tmp/secretstorage/secretstorage/__init__.py", line 14, in <module>
from secretstorage.collection import Collection, create_collection, \
File "/tmp/secretstorage/secretstorage/collection.py", line 21, in <module>
from secretstorage.item import Item
File "/tmp/secretstorage/secretstorage/item.py", line 15, in <module>
from secretstorage.util import InterfaceWrapper, bus_get_object, \