Skip to content

Instantly share code, notes, and snippets.

@ccd0
ccd0 / reverser.py
Last active September 22, 2020 17:10
Convert a search of phonetic tripcodes to a search of base64 tripcodes.
#!/usr/bin/env python3
# This program reads patterns to search for in a phonetic tripcode.
# It converts them into a list of regular expressions for matching
# the corresponding base64 tripcodes, which can be fed to
# tripcode engines such as Merikens to search for tripcode passwords.
#
# Search patterns are read on standard input, one per line, and the
# regular expressions are printed to standard output, one per line.
#
@ccd0
ccd0 / combo.py
Last active July 26, 2017 20:21
dual image script
#!/usr/bin/env python2
# dual image script
# requires numpy and PIL
# tested in Python 2.7.13
# Copyright (c) 2017 contributors.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights