The Wayback Machine - https://web.archive.org/web/20210107101138/https://github.com/oldratlee/useful-scripts/releases
Skip to content

@oldratlee oldratlee released this Dec 2, 2019 · 3 commits to dev-2.x since this release

Normalized directory structure, New beginning!

  • normalize directory structure: bin, lib, doc, etc #87 πŸ†•βœ¨πŸ’–

Have Fun! πŸ’•
2019-12-02

Assets 2

@oldratlee oldratlee released this Jun 1, 2019

Code Cleanup

  1. improve help message: one line contains less 80 chars 🎢
    • show-busy-java-threads
    • find-in-jars
  2. improve docs πŸ“š
  3. fix typo: seperator -> separator 🀑
    • show-busy-java-threads
    • find-in-jars

Have Fun! πŸ’•
2019-06-01

Assets 2

@oldratlee oldratlee released this Jan 28, 2019 · 5 commits to master since this release

Improvements

  1. show-busy-java-threads:
    • check before write file ✍️
  2. find-in-jars:
    • check dirs
  3. coat & a2l
    • reorder color, avoid first line is red

Code Cleanup

  1. show-busy-java-threads:
    • extract util functions: logAndRun, logAndCat
    • use satisfy condition or die pattern
    • use printf instead of print in awk script.
    • use pipe instead <(), improve readability. πŸ˜‹
    • reorder/extract functions/variables.
  2. find-in-jars:
    • use arithmetic operation
    • use satisfy condition or die pattern
    • use pipe instead <(), improve readability.
  3. documentation:
    • compress png files 🐾
    • improve docs of coat, find-in-jars
    • improve format of markdown

Have Fun! πŸ’•
2019-01-28

Assets 2

@oldratlee oldratlee released this Jun 17, 2018 · 22 commits to master since this release

New Features

  1. show-busy-java-threads:
    • store all intermediate output for review/debug #74 🍭
    • support command name jsvc to find java process #72 πŸŒ€

Bug Fix

  1. show-busy-java-threads:
    • fix bug for top v3.2 #71 🎩

Improvements

  1. show-busy-java-threads:
    • check append file of -a option #70 β˜”
    • ensure output blank line between thread stacks #68
  2. find-in-jars:
    • reecho wc -l, ensure no extra whitespace for jar file total count.

Code Cleanup

  1. show-busy-java-threads:
    • use printf instead of print in awk script.
    • use pipe instead <(), improve readability. πŸ˜‹
    • reorder/extract functions/variables.
  2. find-in-jars:
    • use pipe instead <(), improve readability.

Have Fun! πŸ’•
2018-6-17

Assets 2

@oldratlee oldratlee released this May 22, 2018 · 33 commits to master since this release

New Features

  1. show-busy-java-threads:
    • use top command to get percent of thread cpu usage 🎩 πŸŽ‰
      you can use -P, --use-ps option so as to use ps command to find busy thead(cpu usage) instead of top command.
    • support -S, --jstack-file-dir option to specify the dir for storing jstack output files, and keep files. πŸ›
      default store jstack output files at tmp dir, and auto remove after run.
      use this option to keep files so as to review jstack output later.
    • support -d, --top-delay option to specifies the delay between top samples. πŸ˜‹
      get thread cpu percentage during this delay interval.
  2. xpf/xpl:
    • support mac, parse option by hand instead of getopt #66 🍑

Bug Fix

  1. show-busy-java-threads:
    • should re-jstack when next update
    • option parse fail should exit

Improvements

  • show-busy-java-threads:
    • improve show-busy-java-threads help format πŸ“š
    • improve output color 🌈
    • improve docs

Code Cleanup

  • show-busy-java-threads:
    • main function style πŸ’…
    • reorder functions
    • use ARITHMETIC EVALUATION explicitly instead of -gt etc πŸ”’

Have Fun! πŸ’•
2018-5-22

Assets 2

@oldratlee oldratlee released this Mar 5, 2018 · 62 commits to dev-2.x since this release

New Features

  1. c:
    • add quiet option(-q) πŸ™‰
    • add keep eol option(-k) 🐽
    • check unrecognized option πŸŒͺ
    • improve stability πŸ’Ž
      • check pipe fail
      • use if instead &&/||, avoid exit logic bug when "if clause" fail
  2. find-in-jars:
    • add separator option(-s) 🌈
    • check unrecognized option πŸŒͺ

Code Cleanup

  1. improve usage function to simplify exit code 🌡

Have Fun! πŸ’•
2018-3-5

Assets 2

@oldratlee oldratlee released this Jan 1, 2018 · 69 commits to dev-2.x since this release

New Features

  1. show-busy-java-threads:
    • support unlimited use name width(use ps wide output) 🍻
  2. find-in-jars:
    • color grep match pattern #63 🌈
    • support absolute path option(-a)

Improvements

  1. coat: if not in console, use cat command directly 🐯
  2. improve docs and comments

Code Cleanup

  1. use &&/|| instead of if/else if code is more concise and readable.
  2. use fatal function to simplify exit logic
  3. improve option parse of find-in-jars, support --
  4. remove unnecessary arithmetic parenthesis
  5. fix typo

Have Fun! πŸ’•
Happy new year!
2018-1-1

Assets 2

@oldratlee oldratlee released this Nov 2, 2017 · 86 commits to dev-2.x since this release

Chang Log

  1. show-busy-java-threads
    • fix bug: long username(more 8 chars) will be trunk, cause jstack fail #62 ✨
      PR from @xiongchen2012 ❀️
  2. find-in-jars
    • support support ignore case option -i
  3. code cleanup
    • remove sh file name suffix for shell script
    • remove unnecessary arithmetic parenthesis

Have Fun! πŸ’•
2017-11-2

Assets 2

@oldratlee oldratlee released this Oct 23, 2017 · 90 commits to master since this release

Chang Log

  1. show-busy-java-threads
    • support full options of jstack, like -m/-l 😱
  2. rewrite coat(formerly colines)
    • use cat instead of self implementation, so as to support all options of cat πŸ’‹
    • rewrite by bash, faster and less dependency(python) 🍬
  3. improve stability & readability, clean code:
    • use -t 1 check instead of -c /dev/stdout when check is tty/console
    • use escape sequence syntax to avoid separated echo, avoid break line when parallel output from multi-process
    • adjust color order of coat/a2l, more human friendly
  4. several documentation improvement

Have Fun! πŸ’•
2017-10-23

Assets 2

@oldratlee oldratlee released this Oct 1, 2017 · 108 commits to dev-2.x since this release

Change Log

  1. show-busy-java-threads
    • support delay/count arguments, so as to run multiply time automatically 🍬
    • support options -a to append info to log file, so as to review later πŸ˜‹
    • support jstack options -F, force dump 😱
    • support options -s to specify jstack path, it's convenient when run by sudo
    • check os support, report os unsupported info and exit
    • fix wrong user bug, when run by sudo -u user_foo
  2. find-in-jars
    • support macOS (reimplement option parse)
    • support multiply find directories
    • support all pattern mode of grep, -E/-F/-P options ✨
    • support responsive process info output when run at console(tty) πŸ™†
    • performance optimization, use zipinfo/unzip command first
      zipinfo -1/unzip -Z1 is ~25 times faster than jar tf ⚑️ 😎
  3. tcp-connection-state-counter
  4. Documentation update
    • add OS support info
    • hide doc for svn related scripts from index readme. (Yes, please use git instead! πŸ’₯ )
    • several documentation improvement

Have fun! πŸ’•
2017-10-03

Assets 2
You can’t perform that action at this time.