GithubHelp home page GithubHelp logo

inbravo / useful-scripts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oldratlee/useful-scripts

0.0 1.0 0.0 509 KB

:snail: useful scripts

Home Page: https://github.com/oldratlee/useful-scripts/blob/master/README.md

License: Apache License 2.0

Shell 88.71% Python 11.29%

useful-scripts's Introduction

🐌 useful-scripts License

GitHub stars GitHub forks

把平时有用的手动操作做成脚本,这样可以便捷的使用。 ✨

有自己用的好的脚本 或是 平时常用但没有写成脚本的功能,欢迎提供(提交Issue)和分享(Fork后提交代码)! 💖

🔰 快速下载&使用

source <(curl -fsSL https://raw.githubusercontent.com/oldratlee/useful-scripts/master/test-cases/self-installer.sh)

更多下载&使用方式,参见下载使用

📚 使用文档

  1. show-busy-java-threads.sh
    用于快速排查JavaCPU性能问题(top us值过高),自动查出运行的Java进程中消耗CPU多的线程,并打印出其线程栈,从而确定导致性能问题的方法调用。
  2. show-duplicate-java-classes
    找出jar文件和class目录中的重复类。用于排查Java类冲突问题。
  3. find-in-jars.sh
    在目录下所有jar文件里,查找类或资源文件。

Shell使用加强:

  1. c
    原样命令行输出,并拷贝标准输出到系统剪贴板,省去CTRL+CCTRL+V操作。
  2. colines
    彩色cat出文件行,方便人眼区分不同的行。
  3. a2l
    按行彩色输出参数,方便人眼查看。
  4. ap and rp
    批量转换文件路径为绝对路径/相对路径,会自动跟踪链接并规范化路径。
  5. xpl and xpf
    在命令行中快速完成 在文件浏览器中 打开/选中 指定的文件或文件夹的操作。
  6. tcp-connection-state-counter.sh
    统计各个TCP连接状态的个数。用于方便排查系统连接负荷问题。

Shell开发/测试加强:

  1. echo-args.sh
    输出脚本收到的参数,在控制台运行时,把参数值括起的括号显示成 红色,方便人眼查看。用于调试脚本参数输入。
  2. console-text-color-themes.sh
    显示Terminator的全部文字彩色组合的效果及其打印方式,用于开发Shell的彩色输出。
  3. parseOpts.sh
    提供命令行选项解析函数parseOpts。用于加强支持选项的值有多个值(即数组)。
  1. swtrunk.sh
    自动svn工作目录从分支(branches)切换到主干(trunk)。
  2. svn-merge-stop-on-copy.sh
    把指定的远程分支从刚新建分支以来的修改合并到本地svn目录或是另一个远程分支。
  3. cp-svn-url.sh
    拷贝当前svn目录对应的远程分支到系统的粘贴板,省去CTRL+C操作。

useful-scripts's People

Contributors

oldratlee avatar melin avatar liuyangc3 avatar superhj1987 avatar silentforce avatar toolchainx avatar ivanzhangwb avatar tg123 avatar khotyn avatar

Watchers

Amit Dixit avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.