CodExt is a Python library and command-line tool that extends the standard library's codecs with over 120 custom encodings for data transformation. It provides encoding/decoding functionalities across domains including base encodings (baseN, base45, base85, etc.), cryptography (Vigenère, RSA, XOR), compression (gzip, LZ77/LZ78), steganography, and language-based transformations (Leetspeak, Morse, Braille). The system features a heuristic-based guess mode for automated multi-layered decoding and a macro system for chaining codecs. Architected as a plugin-based library, it allows dynamic registration of new codecs and is designed for CTF, security, and data obfuscation tasks. The codebase demonstrates strong modularity with clear separation of concerns between core functionality, codec implementations, and utility modules.
Flog is a Ruby code complexity analyzer that calculates an ABC (assignments, branches, conditionals) complexity metric with Ruby-specific enhancements. It processes Ruby source files to identify complex/tortured code that is difficult to test and maintain. The system consists of a core Flog library that performs the analysis, a CLI interface for command-line usage, a Rake task for integration with build systems, and a plugin system for extensibility. The architecture cleanly separates concerns: the Flog class handles AST processing and scoring, FlogCLI manages option parsing and file discovery, and FlogTask provides Rake integration. Recent versions have switched to using the prism parser for improved performance while maintaining backward compatibility with a --legacy flag for RubyParser.
mdless is a Ruby-based command-line utility that renders Markdown files with syntax highlighting, formatting, and pager functionality. It acts as a 'less' replacement for Markdown, offering features like syntax highlighting via Pygments, image rendering with imgcat/chafa, table formatting, and support for TaskPaper syntax. The application processes input from files or stdin, applies Markdown parsing via Redcarpet, and outputs formatted terminal-ready text with ANSI color codes. It includes configurable themes, optional pager usage, and various output customization options. The codebase shows consistent maintenance with recent commits and demonstrates thoughtful handling of terminal rendering complexities.
docker-copyedit is a CLI tool for editing Docker image metadata, including removing/adding volumes, ports, environment variables, labels, and modifying image configuration like user, workdir, entrypoint, and cmd. The tool works by saving a Docker image to a tarball, extracting and modifying the metadata JSON files (manifest.json and config files), then re-packaging and loading the modified image. It supports both Docker and Podman via command-line flags. The architecture is a monolithic Python application with a clear separation between the CLI wrapper and core implementation. Key functions include parsing Docker image names, executing shell commands with proper error handling, and a custom command-line DSL for specifying image modifications.