Skip to content

Instantly share code, notes, and snippets.

@ryanli1994
ryanli1994 / webtail.py
Last active August 30, 2016 01:36 — forked from scoffey/webtail.py
HTTP server that provides a web interface to run "tail" on a file, like the Unix command
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import BaseHTTPServer
import SocketServer
import collections
import logging
import os
import sys
import urlparse
import socket