binreplace is a command line tool to search and replace binary sequences in a file. It can be very powerful when used together with grep and sed. It uses prefix tree internally to search. It's efficient even with millions of search terms.
'genpasta' is a simple command-line tool written in PHP to generate static web pages from a source tree containing HTML fragments, which are annotated with special directives.