GothamCode.com
Stuff & Various Nasty Hacks, Mostly Written in PHP, Not All
Written Here, Code That Makes Babies Cry
- assblocker blocks IPv4 addresses of
assholes at the local firewall by manual use and automatically by
monitoring mail log files. Does not support the shitshow that are IPv6
addresses, which you shouldn't be allowing on mail servers anyway, due
to the shitshow of trying to get IPv6 e-mail into the e-mail shitshow
known as Google Inc., World's Largest Spammer
- gfm2html is a script for creating
valid HTML documents from Markdown to HTML converters that don't produce
valid HTML documents. It is designed for cmark-gfm, but can be
used with any other Markdown filter that accepts input on STDIN end
emits HTML on STDOUT.
- ml-web-archiver is a script for
generating web pages from mailing list archives, that will not make you
want to rip your hair out. It produces archives similar to pipermail,
It is not fancy, but it just works.
- tmuxie is a small and lightweight tmux
session manager (wrapper) written as a POSIX shell script (Bourne, Bash,
Dash, ksh,..) forked from screenie
for GNU Screen, dual-licensed GPLv2 and BSD.
- star is the Simple Templates And Renderer HTML
template engine for PHP 7.3 and later. Unlike virtually every
other contemporary PHP template engine, star has zero
dependencies and you can paste it right into your existing script.
It is simple, unsophisticated code. star compiles
templates to PHP code for optimal performance.
- check-ssl-certs is a script for
monitoring SSL/TLS certificates for expiration. It can check
directories of certificates and it can scan Apache site configuration
files for certificates to check. It can be used as a replacement
for the discontinued LetsEncrypt certificate expiration notification
email service.
- weather.php is a script for obtaining a
tiny current weather string from a METAR
weather station. It was created to be used with tmux
to put the weather into the status bar.
- dog, better than cat is a PHP
port of Jason Cohen and Jacob Leverich's defunct dog.c,
an enhanced version of the *nix cat
program. Some options intended to amuse have been left out, and some new
options added.
- EggLogging is a BSD-licensed plugin
for the Phergie (v2) IRC bot to create
text log files for monitored channels in an Eggdrop-compatible format.
EggLogging is intended to produce output that can be fed to stats
programs like PISG, and log
to HTML converters like irclog2html.py
.
- Phailomatic, a PHP-based intrusion
prevention system/DoS mitigation tool similar to Fail2ban or Denyhosts.
It is intended to be small, relatively lightweight, and simple.
- Getmail Retriever plugin for Roundcube
is a GPL licensed fork of the ispcp_fetchmail plugin for Roundcube
webmail. getmail
is an alternative to fetchmail with a better track record for
reliability and security. This plugin allows your Roundcube users
to use getmail to retrieve mail via POP3 or IMAP and deliver that mail
to the user. The back end is a PHP-CLI/PDO script run from cron
that executes getmail according to the administrator and user settings.
- PowerDynDNS for PowerDNS is
an under-development, GPLv2 licensed, open source dynamic DNS service,
usably compatible with the DynDNS.org
API when used in conjunction with PowerDNS. PowerDynDNS
can be combined with PowerTinyDynDNS for compatibility with
both the DynDNS.org API and TinyDynDNS.
- PowerTinyDynDNS for PowerDNS
is a GPLv2 licensed, open source dynamic DNS service, usably compatible
with the tinydyndns API,
when used in conjunction with PowerDNS. TinyDynDNS can
be combined with PowerDynDNS for compatibility with both the DynDNS.org
API and TinyDynDNS. As PowerTinyDynDNS uses POP3 email protocol,
virtually anything that connects to the Internet is already ready to use
with PowerTinyDynDNS.
- POP-before-SMTP-Auth is a GPLv2
licensed, open source mail log scanner daemon that implements a
POP-before-SMTP authorization service for Postfix/Dovecot. It can
probably be easily adapted to use other SMTP servers and other POP3
servers.
- DPopper 1.0 is an original-BSD-licensed 'dummy'
POP3 server written in C by Karl Pielorz. It can be used to handle
hoards of marauding customers while your real POP3 server is having a
bad day. It will appear to authenticate anybody, and will accept any
password they offer. It will also tell them they have no new mail, hence
provides the backend for 'transparently' failing POP3 servers. (Not
written here, but seems to have disappeared from http://tdx.com/software
along with their site. Mirrored here because we found it useful with TinyDynDNS.)
DPopper is licensed under "the Original BSD License". That's the one
with the "advertising
clause".
- Miscellaneous: You may find other miscellaneous
stuff in here, tersely described in a directory listing.
What is here, is here. If it's not, then it's not. If it doesn't work for
you, then it doesn't work for you. No promises made about it. But that
doesn't mean I won't try to help make it work for you. there is a mailing
list, and list
archives, where you can ask questions. You can find the git
repositories at https://code.gothamcode.com,
where you can open and view "issues".
Some projects have been temporarily hidden because they need some
attention to make them work and/or be available to download.
© 2001-2025 Gotham Code