Useful command line tool for developers
go get github.com/parkjangwon/jtl;
cd $GOPATH/src/github.com/parkjangwon/jtl;
go build jtl.go;
# cp ./jtl /usr/local/bin; chmod a+x /usr/local/bin/jtl
go get github.com/parkjangwon/jtl;
# for linux x86_64
cd $GOPATH/src/github.com/parkjangwon/jtl;
env GOOS=linux GOARCH=amd64 go build -v jtl.go
# cp ./jtl /usr/local/bin; chmod a+x /usr/local/bin/jtl
# jtl help
jtl <command> [arguments]
# Check jtl version
jtl v
jtl version "0.0.2"
or
jtl version
jtl version "0.0.2"
# Base64 Encoder : Outputs the Base64 encoded result of the arguments.
jtl b64e foo
Zm9v
# Base64 Decoder: Outputs the Base64 decoded result of the arguments.
jtl b64d Zm9v
foo
# Telnet Client : This is a telnet client. argument must in the form "host:port".
jtl tel aspmx.l.google.com:25
220 mx.google.com ESMTP bj14si3555710pjb.77 - gsmtp
helo aa
250 mx.google.com at your service
........
........
quit
# get OS Infomation: Outputs the OS platform Information. No require arguments
jtl sys
GoOS: linux
Kernel: Linux
Core: 3.10.0-1127.18.2.el7.x86_64
Platform: x86_64
OS: GNU/Linux
Hostname: your hostname
CPUs: 2
Ip (Local): 192.168.x.x
Loadavg (1m, 5m, 15m): 0.11 0.23 0.29
Memory (Total): 15701 MB
Memory (Used): 10657 MB
Memory (Cached): 2567 MB
Memory (Free): 3178 MB