Random command line tools I use day to day. Currently porting from various shell, Python, and JavaScript scripts to Go for portability.
One-off, throw-away scripts I tend to run wherever like this:
///usr/bin/env go run "$0" "$@" ; exit "$?"
package main
func main() {
println("Hello world!")
}
The things that get moved here are something I use regularly, and don't want to always re-compile, and do want to revision control.
Create a github pull request populated with data from Jira ticket
$ jp
If you are on a topic branch that matches a jira ticket, and you have committed and pushed your changes, this will convert the jira ticket's Description from Atlassian WikiMarkUp syntax to Github Markdown, and open a new Github pull request with that title and description.
Equivalent to:
$ wti $(git rev-parse --abbrev-ref HEAD) -resolves | j2m | gh-make-pull
cat ./cmd/j2m/j2m.jira | j2m
$ wti CORE-5339
$ github-make-token "My token for triaging pull requests"
$ github-make-pull "My title for pull requests"
$ eureka-lookup search3 prod
$ generate-tls-cert --host=localhost,127.0.0.1