finds.dev← search

// the find

oldratlee/useful-scripts

★ 7,525 · Shell · Apache-2.0 · updated Jun 2026

🐌 useful scripts for making developer's everyday life easier and happier, involved java, shell etc.

A collection of shell and Java diagnostic scripts maintained by a single developer and used in production at Alibaba and similar companies. The standout scripts are the Java ones — show-busy-java-threads maps high-CPU threads to their stack traces automatically, which is the kind of thing you'd otherwise assemble by hand from jstack output. Aimed at developers who live in the terminal and want sharp tools for debugging JVM apps.

show-busy-java-threads is genuinely useful: it combines top, jstack, and thread ID conversion into one command that would otherwise take 5 manual steps. The shell scripts follow Google's style guide with shellcheck in CI — unusually rigorous for a personal utility repo. parseOpts.sh fills a real gap (getopt handling arrays), and uq doing order-preserving deduplication without sort is the right fix for a common annoyance. Active CI with lint and integration tests means the scripts aren't just dumped and abandoned.

The README is primarily in Chinese with no English equivalent for the docs, which will wall off a large portion of potential users regardless of how useful the tools are. The Java scripts depend on specific JDK tool availability (jstack, jmap) and won't work cleanly on containers or restricted JVMs. The shell utility scripts (a2l, coat, c) are thin wrappers around standard tools — fine to have, but not things worth installing a whole repo for. No structured install via a package manager; it's curl-pipe or manual PATH setup, which is friction for anything beyond personal use.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →