Skip to content

Instantly share code, notes, and snippets.

John Ellis deckerego

Block or report user

Report or block deckerego

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
legastero /
Last active Jul 24, 2019
Send an image in a chat message with SleekXMPP
import logging
import threading
import sleekxmpp
class Bot(sleekxmpp.ClientXMPP):
def __init__(self, jid, password):
russss /
Created Aug 13, 2011
Grab a single frame from an MJPEG stream
#!/usr/bin/env python
import socket
import sys
if len(sys.argv) != 3:
print "Usage: %s host:port destfile.jpg" % sys.argv[0]
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
host, port = sys.argv[1].split(':')
You can’t perform that action at this time.