knet's haven
»
Software
»
Snippets
Content
Martial Arts
Software
Writing
Photography
Site
About
Changes
Email me
David Taylor
Snippets
Here is a collection of code snippets.
Python
html2mime.py
: A simple script that will convert HTML to MIME (multipart/alternative)
getWebFiles.py
: Downloads files of a given type from a web page
linuxTodayHeadlines.py
: Retrieves the Linux Today headlines as HTML
squidTally.py
: Tallies per-user usage from Squid's logs
popcount.py
: Checks the amount of e-mail in a POP3 account
popclean.py
: Deletes e-mail from a POP3 account
rmEmptyDirs.py
: Removes empty subdirectories
log.py
: A very simple logging module
ReadOnly.py
: Class to emulate the const operator in Python
TupleDict.py
: Class to create dictionaries that support tuple retrieval
WriteableDict.py
: Class for dictionaries that can be written to file
WriteableList.py
: Class for lists that can be written to file