Skip to content

Instantly share code, notes, and snippets.

Tom Sheffler sheffler

Block or report user

Report or block sheffler

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
@sheffler
sheffler / ex2.py
Created Sep 22, 2011
Twisted11 Digest Auth using Password Dictionary
View ex2.py
#!/usr/bin/env python
from zope.interface import implements
from twisted.cred import portal, checkers, credentials, error as credError
from twisted.internet import defer, reactor
from twisted.web import static, resource
from twisted.web.resource import IResource
from twisted.web.http import HTTPChannel
from twisted.web import server
from twisted.web.guard import HTTPAuthSessionWrapper
@sheffler
sheffler / err1.py
Created Sep 22, 2011
Twisted11 Erroneous Digest Auth using Password Dictionary
View err1.py
#!/usr/bin/env python
from zope.interface import implements
from twisted.cred import portal, checkers, credentials, error as credError
from twisted.internet import defer, reactor
from twisted.web import static, resource
from twisted.web.resource import IResource
from twisted.web.http import HTTPChannel
from twisted.web import server
from twisted.web.guard import HTTPAuthSessionWrapper
@sheffler
sheffler / ex1.py
Created Sep 22, 2011
Twisted11 Basic Auth using Password Dictionary
View ex1.py
#!/usr/bin/env python
from zope.interface import implements
from twisted.cred import portal, checkers, credentials, error as credError
from twisted.internet import defer, reactor
from twisted.web import static, resource
from twisted.web.resource import IResource
from twisted.web.http import HTTPChannel
from twisted.web import server
from twisted.web.guard import HTTPAuthSessionWrapper
@sheffler
sheffler / sensr_ffmpeg_mjpeg.sh
Created Aug 1, 2011
Streaming Webcam upload to Sensr via ffmpeg and MJPEG
View sensr_ffmpeg_mjpeg.sh
#!/bin/bash
# Sensr FTP information
HOST=f7.sensr.net
USER=cam28
PASS=l4hqpy0ywm
echo Starting SensrCam ${HOST} ${USER} ${PASS}
# Exit by hitting ^C
@sheffler
sheffler / linuxftpwebcam01.sh
Created Jul 29, 2011
Webcam upload to Sensr using periodic FTP
View linuxftpwebcam01.sh
#!/bin/bash
# Example FTP upload to Sensr from /dev/video0
# (uses ffmpeg to grab frames from webcam)
# Sensr FTP information
HOST=f7.sensr.net
USER=cam28
PASS=l4hqpy0ywm
echo Starting FtpCam ${HOST} ${USER} ${PASS}
You can’t perform that action at this time.