-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtips
More file actions
139 lines (98 loc) · 5.53 KB
/
tips
File metadata and controls
139 lines (98 loc) · 5.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
Python JSON formatting:
======================
cat rsvp_instance.tree.old | python -c 'import sys,json;print(json.dumps(json.load(sys.stdin),indent=2))' > rsvp_instance.tree
References:
===========
https://tools.ietf.org/id/draft-ietf-netmod-rfc6087bis-20.html
I-Ds:
====
pyang --ietf --verbose --lint -f tree --tree-line-length=69
grunt-init rfc
:set hlsearch | /\%>69v.\+
set shiftwidth=2 | set tabstop=2 | set softtabstop=2
set spell spelllang=en_us
set tabstop=2 shiftwidth=2 expandtab
git difftool --tool=vimdiff --no-prompt HEAD
sshfs tsaad@mybooklive.local:/ ~/mybooklive
sshfs pi@192.168.0.27:/home/pi ~/raspberry
sshfs pi@raspberrypi.local:/home/pi ~/raspberry
mosh --server="setenv LD_LIBRARY_PATH /users/tsaad/lib && ~/bin/mosh-server" tsaad-ads
mosh --server="setenv LD_LIBRARY_PATH /users/tsaad/lib && ~/bin/mosh-server" tsaad-ads -- tmux a
mosh --server="setenv LD_LIBRARY_PATH /users/tsaad/lib && ~/bin/mosh-server" tsaad-ads2 -- tmux a
Passwordless:
ssh pi@192.168.0.27 mkdir -p .ssh
cat .ssh/id_rsa.pub | ssh pi@192.168.0.27 'cat >> .ssh/authorized_keys'
Raspberry:
sudo vi /etc/xdg/lxsession/LXDE/autostart
pi@raspberrypi ~ $ sudo more /etc/xdg/lxsession/LXDE/autostart
@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE
@libreoffice --norestore --impress -show /home/pi/media/slideshow/slideshow.odp
@mp3-decoder --list /home/pi/playlist.m3u --random --loop 0
pyang -f uml --uml-no=circles,stereotypes,annotation ietf-mpls-static.yang -o ietf-mpls-static.uml
plantuml ietf-mpls-static.uml
pyang -f uml --uml-no=circles,stereotypes,annotation ietf-rsvp-extended.yang ietf-rsvp.yang ietf-te.yang ietf-rsvp-te-mpls.yang ietf-rsvp-te.yang ietf-te-device.yang ietf-te-sr-mpls.yang -o te_model.uml
ADD: skinparam dpi 300
pyang --ietf --lint -f tree ietf-rsvp.yang ietf-rsvp-te.yang ietf-rsvp-te-mpls.yang ietf-rsvp-extended.yang ietf-te.yang ietf-te-types.yang ietf-te-mpls.yang ietf-te-sr-mpls.yang ietf-te-mpls-types.yang > rsvp_te_model.tree
wgstatus --org-mode mpls
umount -f pi@192.168.0.18:/home/pi
sshfs tsaad@tsaad-ads1:/nobackup/tsaad/ ~/ads -o auto_cache,reconnect,defer_permissions,noappledouble
pyang -f tree --strict --lint network-instance/* --path=`pwd` > all.tree
pyang -f uml --uml-no=module,circles,stereotypes,typedef,import --uml-classes-only --uml-split-pages=1x2 ietf-te.yang -o ietf-te.uml
fold -w 80 rsvp_te_model.tree > rsvp_te_model.tree.folded
confdc -c ietf-rsvp-extended.yang && confdc -c ietf-rsvp.yang && confdc -c ietf-te.yang && confdc -c ietf-rsvp-te.yang && confdc -c ietf-rsvp-te-mpls.yang && confdc -c ietf-te-sr-mpls.yang && confdc -c ietf-te-device.yang && confdc -c ietf-mpls-static-extended.yang && confdc -c ietf-mpls-static.yang && confdc -c ietf-mpls.yang && confdc -c ietf-te-mpls.yang && confdc -c ietf-te-sr-mpls.yang
git config --global core.editor $(which vim)
/\%>72v.\+
nnoremap <C-J> ciW<CR><Esc>:if match( @", "^\\s*$") < 0<Bar>exec "norm P-$diw+"<Bar>endif<CR>
% normal @1
set colorcolumn=72 | set formatoptions+=w | set tw=72
gggqG
pyang --ietf --lint -f tree ietf-te.yang ietf-te-device.yang ietf-te-types.yang ietf-te-mpls.yang ietf-te-sr-mpls.yang > ietf-te-all.tree
pyang --ietf --lint -f tree --tree-line-length=69 ietf-te.yang ietf-te-types.yang > ietf-te.tree
pyang --ietf --lint -f tree --tree-line-length=69 --tree-depth=2 ietf-te.yang ietf-te-types.yang > ietf-te-01.tree
pyang --ietf --lint -f tree --tree-line-length=69 --tree-depth=2 ietf-te.yang drafts/te-types-update/ietf-te-types.yang > ietf-te-01.tree
pyang --ietf --lint -f tree --tree-line-length=69 ietf-te-device.yang ietf-te-types.yang > ietf-te-dev.tree
pyang --ietf --lint -f tree --tree-line-length=69 ietf-rsvp.yang ietf-rsvp-te.yang ietf-rsvp-te-mpls.yang ietf-rsvp-extended.yang ietf-te.yang ietf-te-device.yang ietf-te-types.yang ietf-te-mpls.yang ietf-te-packet-types.yang > rsvp_te_model.tree
pyang --ietf --lint -f tree --tree-path="/te/globals" --tree-line-length=69 ietf-te.yang ietf-te-types.yang > ietf-te-globals.tree
java -jar plantuml.jar ietf-netconf-monitoring.uml
tsaad@TSAAD-M-V046:~/temp/YangMapper$ pwd
/Users/tsaad/temp/YangMapper
tsaad@TSAAD-M-V046:~/temp/YangMapper$ ./start.sh
Activating virtualenv ..
Starting YangMapper server ..
java -jar ../plantuml.jar oc-srte-policy.uml
pyang -f uml --uml-no=circles,stereotypes oc-srte-policy.yang -o oc-srte-policy.uml
yanglint -f yang ietf-te.yang -V
yanglint --verbose ietf-te.yang
pyang --ietf --verbose --lint -f tree --tree-line-length=69
pyang --ietf --lint -f tree --tree-line-length=69 ietf-te.yang ietf-te-device.yang ietf-te-types.yang > ietf-te-all.tree
pyang --ietf --lint -f tree --tree-line-length=69 ietf-rsvp-extended.yang > ietf-rsvp-extended.yang.tree
pyang --ietf --lint -f tree --tree-line-length=69 ietf-rsvp.yang > ietf-rsvp.yang.tree
pyang -f yang --keep-comments --yang-line-length 69 ietf-mpls.yang
pyang --ietf --max-line-length 69 FILE
open -a "Microsoft Word" draft-ip-rsvp-te.txt
{:req: counter="bar" style="format %c."}
{: req}
* Foo
* Bar
* Bax
{: req}
dummy change...
## append '.' at end of comment
%s/\([a-z]\)\(\";\)/\=submatch(0)[:0].'.";'/gc
.,$s/\([a-z]\)\(\";\)/\=submatch(0)[:0].'.";'/gc
## format to 69
pyang -f yang --keep-comments --yang-line-length 69 ietf-te-device.yang > ietf-te-device.yang
pyang --ietf --max-line-length 69 ietf-te.yang
### UML
protoc \
--plugin=protoc-gen-doc=protoc-gen-doc \
--doc_out=./doc \
--doc_opt=html,index.html \
topo_svc.proto
protoc \
--plugin=protoc-gen-doc=./protoc-gen-doc \
--doc_out=./doc \
--doc_opt=html,index.html \
topo_svc.proto
export JAVA_HOME=/Library/Java/JavaVirtualMachines/temurin-17.jdk