Rapid diagnostic system status tool (performance monitoring, network scanning, mysql performance monitoring, kubectl status)
快速诊断系统状态工具(性能监控、网络扫描、mysql性能监控)
go get -u github.com/lflxp/showme
make install
showme -h
-
[FORK] web在线视频会议screego
- 支持 kubectl | go | git | kill 等命令的自动补全
- 无其它任何依赖,一个文件
smkubectl
搞定所有事情 - 无复杂繁琐的fzf配置,无需安装fzf命令
- 自动生成zsh-completion配置,只需简单配置即可,无需复杂zsh|zsh-completion配置
- 开箱即用,效率提升,简单易用
go install github.com/lflxp/showme@latest
autoload -U compinit && compinit -u
source <(showme completion zsh)
~
-
k + ~
-
k g + ~
-
k get + ~
-
k get po+~ (没有空格)
-
k get po + ~ (有空格)
-
k edit po -n
-
k get po -n namespace pod -c + ~
-
k logs -f + ~
-
【Doing】k8s 【Kubenetes Dashboard】
- 【Doing】轻量音乐播放器 【本地网易云音乐】
-
- http正向代理
- http 反向代理
- mysql tcp代理(负载均衡、读写分离、分布式调度)
- socket5 代理
- ss fq代理
- ss server
安装
make gopacket
基于优秀的nmap工具进行封装,采用gin
+api
+restful
+remote
的方式进行远程调用。
基于Ansible-playbook开发的Go原型工具,功能特点
有:
showme playbook
- RPC远程操作
- Yaml Template
- Go Template
- Plugin Register
- Mini CMDB Required
黑客帝国字母雨
全局模糊搜索
__test() {
local cmd="${FZF_TEST_COMMAND:-"list"}"
setopt localoptions pipefail no_aliases 2> /dev/null
eval "$cmd"
local ret=$?
echo
return $ret
}
# test
fzf-test() {
LBUFFER="${LBUFFER}$(__test)"
local ret=$?
zle reset-prompt
return $ret
}
zle -N fzf-test
bindkey '^[e' fzf-test
基于GOLANG的各种代理工具,处于测试阶段。
Usage
➜ showme git:(master) ✗ showme proxy -h
* http正向代理
* http 反向代理
* mysql tcp代理(负载均衡、读写分离、分布式调度)
* socket5 代理
* ss fq代理
Usage:
showme proxy [command]
Available Commands:
http http正向代理
httpreverse http反向代理
mysql mysql proxy
socket5 socket5 http代理服务器
ss shadowsocks
- go-prompt
- gocui/tcell/tview/ncurses/goncurses
- 提示选项分为两种: 一、命令参数 dashboard status 二、配置参数 dashboard --status
- github.com/jroimartin/gocui
- github.com/gdamore/tcell
- vue 【Element-UI】
- websocket
- gin web api
- yaml
- suggests/commands.go 添加首字符命令添加提示
- completers/options.go 添加含【-】的参数
- completers/common.go -> FirstCommandFunc 添加命令提示 添加基于首字符的二级字符命令提示
- executors 添加目录实现命令gocui展示
- executors/executors.go 添加command对应的执行命令
https://blog.csdn.net/lengyuezuixue/article/details/79664409
- 结合GuiLite进行美化
- tty 添加install自动部署systemctl服务的功能
- 对接Mini CMDB
若要基于本项目进行开发,需要先建立cobra cli命令选项cobra add ${YOUR_CLI} -p rootCmd
alertmanagers.monitoring.coreos.com endpoints nodes.metrics.k8s.io replicasets.extensions
apiservices.apiregistration.k8s.io etcdclusters.etcd.database.coreos.com persistentvolumeclaims replicationcontrollers
certificatesigningrequests.certificates.k8s.io events persistentvolumes resourcequotas
clusterrolebindings.rbac.authorization.k8s.io events.events.k8s.io poddisruptionbudgets.policy rolebindings.rbac.authorization.k8s.io
clusterroles.rbac.authorization.k8s.io horizontalpodautoscalers.autoscaling pods roles.rbac.authorization.k8s.io
componentstatuses ingresses.extensions pods.metrics.k8s.io secrets
configmaps jobs.batch podsecuritypolicies.extensions serviceaccounts
controllerrevisions.apps leases.coordination.k8s.io podsecuritypolicies.policy servicemonitors.monitoring.coreos.com
cronjobs.batch limitranges podtemplates services
customresourcedefinitions.apiextensions.k8s.io mutatingwebhookconfigurations.admissionregistration.k8s.io priorityclasses.scheduling.k8s.io statefulsets.apps
daemonsets.apps namespaces prometheuses.monitoring.coreos.com storageclasses.storage.k8s.io
daemonsets.extensions networkpolicies.extensions prometheusrules.monitoring.coreos.com validatingwebhookconfigurations.admissionregistration.k8s.io
deployments.apps networkpolicies.networking.k8s.io redisfailovers.storage.spotahome.com volumeattachments.storage.k8s.io
deployments.extensions nodes replicasets.apps
go get -u golang.org/x/sys
go get -u github.com/go-eden/routine