All Projects → xuxinkun → Littletools

xuxinkun / Littletools

Licence: apache-2.0
A set of short commands used to make the input of some commands simple.

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Littletools

Kube Aliases
Kubernetes Aliases and Bash Functions
Stars: ✭ 40 (-68.25%)
Mutual labels:  autocomplete, kubectl
Kube Shell
Kubernetes shell: An integrated shell for working with the Kubernetes
Stars: ✭ 2,012 (+1496.83%)
Mutual labels:  autocomplete, kubectl
Tribute
ES6 Native @mentions
Stars: ✭ 1,551 (+1130.95%)
Mutual labels:  autocomplete
Outdated
Kubectl plugin to find and report outdated images running in a Kubernetes cluster
Stars: ✭ 122 (-3.17%)
Mutual labels:  kubectl
Django Autocomplete Light
A fresh approach to autocomplete implementations, specially for Django. Status: v4 alpha, v3 stable, v2 & v1 deprecated.
Stars: ✭ 1,559 (+1137.3%)
Mutual labels:  autocomplete
Libvirt K8s Provisioner
Automate your k8s installation
Stars: ✭ 106 (-15.87%)
Mutual labels:  kubectl
Go Plus
An Enhanced Go Experience For The Atom Editor
Stars: ✭ 1,519 (+1105.56%)
Mutual labels:  autocomplete
React Input Enhancements
Set of enhancements for input control
Stars: ✭ 1,375 (+991.27%)
Mutual labels:  autocomplete
Mypy boto3 builder
Type annotations builder for boto3 compatible with VSCode, PyCharm, Emacs, Sublime Text, pyright and mypy.
Stars: ✭ 123 (-2.38%)
Mutual labels:  autocomplete
Vim Kubernetes
vim-kubernetes
Stars: ✭ 112 (-11.11%)
Mutual labels:  kubectl
Bootstrap Autocomplete
Bootstrap Autocomplete
Stars: ✭ 121 (-3.97%)
Mutual labels:  autocomplete
Input Autocomplete
Tiny react input component with autocomplete.
Stars: ✭ 110 (-12.7%)
Mutual labels:  autocomplete
Kubectx
Faster way to switch between clusters and namespaces in kubectl
Stars: ✭ 11,922 (+9361.9%)
Mutual labels:  kubectl
Kubectl Sheetcheat
The Definitive Kubectl Sheetcheat. ⭐ Give it a star if you like it. Work (always) in progress !
Stars: ✭ 119 (-5.56%)
Mutual labels:  kubectl
Vue Places
Places component is based on places.js for Vue 2.x. Turn any <input> into an address autocomplete.
Stars: ✭ 106 (-15.87%)
Mutual labels:  autocomplete
Kubectl Reap
kubectl plugin that deletes unused Kubernetes resources
Stars: ✭ 123 (-2.38%)
Mutual labels:  kubectl
Ncm R
R autocompletion for Neovim and vim 8 📝 📊 ⚡️
Stars: ✭ 102 (-19.05%)
Mutual labels:  autocomplete
Kuberos
An OIDC authentication helper for Kubernetes' kubectl
Stars: ✭ 109 (-13.49%)
Mutual labels:  kubectl
Pydantic Pycharm Plugin
PyCharm plugin for pydantic. This plugin provides autocompletion, inspection, type-checking, inserting unfilled argument, and more.
Stars: ✭ 116 (-7.94%)
Mutual labels:  autocomplete
Deoplete Rust
Rust completion for Neovim (Deoplete) via Racer
Stars: ✭ 126 (+0%)
Mutual labels:  autocomplete

littleTools

littleTools contains a set of short commands used to make the input of some commands simple.

littleTools is written by shell function. So tab key can help the users to complete the command automaticly.

docker-tools and kube-tools

littleTools has docker-tools and kube-tools to simplify the input of command docker and kubectl.

For example, if you want to exec into a container, you may enter the command docker exec -it xxx bash. With littleTools, just use dt-exec xxx can achieve it.

azk8spull

azk8spull is using to pull image from mirror registry azk8s.cn.

Since 2020, the proxy server is limited to Azure China IP, and no longer provides external services. See more info at http://mirror.azk8s.cn/help/docker-registry-proxy-cache.html.

install

git clone https://github.com/xuxinkun/littleTools
cd littleTools
chmod +x install.sh
./install.sh
source /etc/profile

azk8spull function can not work with zsh. So, bin/azk8spull is provided for zsh. Install it as follow if using zsh or just using azk8spull without other tools.

curl -Lo /usr/local/bin/azk8spull https://github.com/xuxinkun/littleTools/releases/download/v1.0.0/azk8spull && chmod +x /usr/local/bin/azk8spull

usage

docker tools(docker-tools)

command params description
dt-exec {containerid} Exec into the container with bash.
dt-exec-sh {containerid} Exec into the container with sh.
dt-show-pid {containerid} Show the pid of the num 0 process of the container.
dt-show-pid-all {containerid} Show the pids of all the processes of the container.
dt-show-flavor {containerid} Show the flavor info such as cpu/memory of the container.
dt-show-flavor-all None Show the flavor info such as cpu/memory of all the containers.
dt-show-volume {containerid} Show the volume path on host of the container.
dt-show-volume-all {containerid} Show the volume path on host and bind path in container of the container.
dt-lookup-by-pid {pid} Look up the container which contains the process with the {pid} on host.
dt-lookup-by-volume {volume path} Look up the container with volumes which contains the {volume path} on host.

kubernetes tools(kube-tools)

command params description
kt-exec {pod name} or {namespace} {pod name} Exec into the pod with bash.
kt-exec-sh {pod name} or {namespace} {pod name} Exec into the pod with sh.
kt-get-node {node name} Describe the node.
kt-get-node-ready None List all the ready nodes.
kt-get-node-notready None List all the not ready nodes.
kt-get-node-all None List all the nodes
kt-get-pod {pod name} or {namespace} {pod name} Describe pod.
kt-get-node-by-pod {pod name} or {namespace} {pod name} Get the pod and the node with pod.
kt-get-pod-all None Get all the pods of all namespaces.
kt-get-pod-by-ns {namespace} Get all the pods in the namespace.
kt-get-pod-by-rs {rs name} or {namespace} {rs name} Get all the pods of the rs.
kt-get-pod-by-deploy {deploy name} or {namespace} {deploy name} Get all the pods of the deploy.
kt-get-pod-by-svc {svc name} or {namespace} {svc name} Get all the pods of the svc.
kt-get-pod-by-ip {ip} Get pod with the ip.
kt-get-pod-by-node {nodeName} get pods on the node.

azk8spull

azk8spull makes use of azk8s.cn mirror to pull image from container registries like docker.io, gcr.io, quay.io in China. azk8spull will pull the image from azk8s.cn and then tag to the origin image name. Thanks to Azure China.

For more information, please visit https://github.com/Azure/container-service-for-azure-china/tree/master/aks#22-container-registry-proxy.

[[email protected] ~]# azk8spull quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.24.1
## azk8spull try to pull image from mirror quay.azk8s.cn/kubernetes-ingress-controller/nginx-ingress-controller:0.24.1.
0.24.1: Pulling from kubernetes-ingress-controller/nginx-ingress-controller
Digest: sha256:76861d167e4e3db18f2672fd3435396aaa898ddf4d1128375d7c93b91c59f87f
Status: Image is up to date for quay.azk8s.cn/kubernetes-ingress-controller/nginx-ingress-controller:0.24.1
## azk8spull try to tag quay.azk8s.cn/kubernetes-ingress-controller/nginx-ingress-controller:0.24.1 to quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.24.1.
## azk8spull finish pulling.

[[email protected] ~]# azk8spull k8s.gcr.io/pause-amd64:3.1
## azk8spull try to pull image from mirror gcr.azk8s.cn/google_containers/pause-amd64:3.1.
3.1: Pulling from google_containers/pause-amd64
Digest: sha256:59eec8837a4d942cc19a52b8c09ea75121acc38114a2c68b98983ce9356b8610
Status: Image is up to date for gcr.azk8s.cn/google_containers/pause-amd64:3.1
## azk8spull try to tag gcr.azk8s.cn/google_containers/pause-amd64:3.1 to k8s.gcr.io/pause-amd64:3.1.
## azk8spull finish pulling. 

examples

kube-tools and docker-tools

See more examples

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].