Skip to content

Instantly share code, notes, and snippets.

View nairteashop's full-sized avatar

Arun Nair nairteashop

View GitHub Profile
@nairteashop
nairteashop / socket-dump.py
Created November 11, 2013 02:39
A simple python server that accepts connections on a given port and simply dumps all data it receives from a client that connects to that port.
#!/usr/bin/python
#
# A simple python server that accepts connections on a given port and simply dumps
# all data it receives from a client that connects to that port.
#
# The listening port number can be provided as an argument; the default is 8080.
#
# Copyright (c) 2013 Arun Nair (http://nairteashop.org).
# Licensed under the MIT license.
@nairteashop
nairteashop / mjpeg-server.py
Created November 11, 2013 04:37
A simple Motion JPEG server in python for creating "virtual cameras" from video sequences.
#!/usr/bin/python
#
# A simple Motion JPEG server in python for creating "virtual cameras" from video sequences.
#
# The cameras will support MJPEG streaming over HTTP. The MJPEG streams are formed from static JPEG images.
# If you wish to stream a video file, use a tool like VirtualDub to break the video into a sequence of JPEGs.
#
# The list of cameras should be defined as a series of entries in a file named 'mjpeg-server.conf', with
# each entry having the following format: