File tree 3 files changed +13
-3
lines changed
3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,12 @@ function ysh(){
146
146
fi
147
147
}
148
148
149
+ function wssh(){
150
+ for i in ` wss " $1 " --short ` ; do
151
+ screen -t $i ssh $i
152
+ done
153
+ }
154
+
149
155
# Git
150
156
alias syncupstream=" git fetch upstream && git checkout master && git merge upstream/master"
151
157
@@ -198,6 +204,10 @@ function kubeimage(){
198
204
function kubenodepods(){
199
205
kubectl get pods --field-selector " spec.nodeName=$1 " --all-namespaces
200
206
}
207
+ function kubenodedelpods(){
208
+ kubectl get pods --all-namespaces --field-selector " spec.nodeName=$1 " -o json | jq ' .items[] | "kubectl delete pods \(.metadata.name) -n \(.metadata.namespace)"'
209
+ }
210
+
201
211
202
212
# Glances
203
213
alias glances=" docker run --rm -v /var/run/docker.sock:/var/run/docker.sock:ro --pid host --network host -it nicolargo/glances"
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ let g:solarized_termtrans=1
14
14
" Make Vim more useful
15
15
set nocompatible
16
16
" Use the OS clipboard by default (on versions compiled with `+clipboard`)
17
- set clipboard = unnamed
17
+ " set clipboard=unnamed
18
18
" Enhance command-line completion
19
19
set wildmenu
20
20
" Allow cursor keys in insert mode
Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ wget -O $HOME/.vim/plugin/puppet_helpers.vim \
12
12
13
13
* ** Parameters description** In ` VISUAL ` mode select class parameters,
14
14
press ` CTRL+P ` . Then in ` INSERT ` mode you can paste parameters description
15
- template by pressing ` CTRL+r ` and then ` p ` .
15
+ template by pressing ` CTRL+r ` and then ` p ` (or ` "pp ` in normal mode) .
16
16
17
17
[ ASCIINEMA DEMO] ( https://asciinema.org/a/k5ZjjpkRcT7vDmGqmnR6ZFEO7 )
18
18
19
19
* ** Parameters validation** In ` VISUAL ` mode select class parameters (you can
20
20
include class name in selection if you want to use Qualified Variable Names),
21
21
press ` CTRL+O ` . Then in ` INSERT ` mode you can paste parameters validation
22
- functions pressing ` CTRL+r ` and then ` o ` .
22
+ functions pressing ` CTRL+r ` and then ` o ` (or ` "op ` in normal mode) .
23
23
24
24
[ ASCIINEMA DEMO] ( https://asciinema.org/a/GmS7qDXN8nYShjSPsi9atPCP4 )
You can’t perform that action at this time.
0 commit comments