Command line tools helpful for software development.
Use make install
to install the scripts into $HOME/bin
.
If you want to install them for all users, use make install PREFIX=/usr/local/bin
.
Abbreviate long lines:
$ cat access.log | abbreviate
Push the current local branch to the matching remote branch and open the GitHub page to create a new pull request:
$ git ghpr
Copy another repository into the current repository, including git history:
$ ls -a
.git README.md
$ ls -a ../other-repo
.git test1.txt test2.txt
$ git-import-repository ../other-repo
$ ls -a ./other-repo
test1.txt test2.txt
Merge another branch, using strategy theirs
to use all changes from their branch:
$ git checkout my-branch
$ git merge -s theirs their-branch
Show branches merged into the current branch:
$ git show-merged-branches
Show all branches, sorted by last commit date:
$ git show-unused-branches
Delete IDE configuration files, prompting before deleting:
$ ide-delete-eclipse-settings
$ ide-delete-intellij-settings
Filter Java stack traces by only showing lines from the com.example
package:
$ cat exception.log | java-filter-stacktrace com.example
Generate kubectl
alias commands based on the existing contexts:
$ eval "$(kubectl-generate-context-aliases)"
$ kubectl-docker-for-desktop get all
Download a Maven artifact to your local repository:
$ mvn-download-artifact commons-io:commons-io:2.5
Show a condensed version of the Maven log output:
$ mvn clean install &> maven.log
$ mvn-parse-log maven.log
Parse Maven POM files:
$ mvn-parse-pom ~/.m2/repository/commons-io/commons-io/2.5/commons-io-2.5.pom
commons-io:commons-io:2.5
Parse Maven output and report test duration:
$ cat mvn.log | mvn-parse-test-run
Count,Failures,Errors,Skipped,Duration,Test
2,0,0,0,0.987,com.example.ServiceTest
5,0,0,0,0.654,com.example.DaoTest
Upload a Maven artifact to the remote repository:
$ ls
commons-io-2.5.pom commons-io-2.5.jar commons-io-2.5.jar.sha1
$ mvn-upload-artifact http://username:password@localhost:8080/ commons-io-2.5.pom
Upload multiple artifacts to the remote repository:
$ mvn-upload-repository http://username:password@localhost:8080/ commons-io/commons-io
All tools are licensed under the MIT License