Random Scripts

git-author-stats.py – Prints commit stats for a specific author in a git repository including number of commits, summary and per file information for the lines added, removed and changed. The code is over-engineered alright. Example usage: git-author-stats.py ivanz

regexp-mv.py – Like mv but allows for source and destination to be regexp such as regexp-mv.py “(*).txt” “\1.sub”. Supports recursive operations.

desinfect.py – Uses supplied regexp to recursively search and remove stuff from .php and .html files. I use this to clean my php/html if and when someone infects them with some code.

eclipse-extract-color-theme.py – Given an Eclipse settings file extract only the color theme portion out of it into a separate settings file.

NOTE: I am not a professional Python developer and those scripts were developed purely for my own personal use whenever I needed to solve a specific problem.