{
"a": "green",
"b": "white"
}
{
"a": "red",
"c": "purple"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
set -u | |
#set -x | |
SSH_KEY="05:8b:8f:f5:09:35:ae:61:a9:3b:21:ea:1c:36:bf:0c" | |
USER_DATA_FILE="$(dirname $0)/vps.userdata" | |
### sub functions |
With powerful named capture groups replace, we can quickly add swagger annotations based on comment
find: (?<title1>\/\*\*\n \* (?<title>.*)\n \*/$)
replace: ${title1}\n @ApiModelProperty(notes = "${title}")
Before
https://chromium.googlesource.com/chromiumos/platform/crosvm
https://www.collabora.com/news-and-blog/blog/2017/11/09/quick-hack-experiments-with-crosvm/
You can also bypass this and use installed ubuntu kernel image on your ubuntu.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set smarttab | |
set tabstop=4 | |
set shiftwidth=4 | |
set autoindent | |
set smartindent | |
set encoding=utf-8 fileencodings=ucs-bom,utf-8,cp936 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ~/.config/Code/User/settings.json | |
{ | |
"workbench.colorTheme": "Quiet Light", | |
"window.title": "${activeEditorMedium}", | |
"clang.executable": "/usr/bin/clang-6.0", | |
"http.proxy": "http://example.com:8080", | |
"http.proxyStrictSSL": false, | |
"workbench.editor.enablePreview": false, | |
"go.inferGopath": true, | |
"go.toolsEnvVars": {"GOOS" : "linux"}, |
https://ai.google/research/pubs/pub44824 https://simpleyyt.com/2017/07/05/introduction-to-google-maglev/
- router ECMP
- LB-RS GRE
- Direct Server Return(DSR), send VIP->client IP to router, bypass LB
- bypass kernel, DPDK
- session affinity, consistent hashing
Ucloud vortex http://www.infoq.com/cn/articles/Maglev-Vortex
- GoBGP is just a bgp daemon and itself does not contain any functionality to modify routing table
- If you like to use GoBGP as a component of software router and do packet forwarding, you need to implement that
- There are two options to achieve FIB manipulation with
GoBGP
- Use built-in zebra integration
- Write your own code using gRPC API
[root@tbds-100-88-65-29 /data/gaia/docker]# sqlite3 linkgraph.db
SQLite version 3.7.17 2013-05-20 00:56:22
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> .databases
seq name file
--- --------------- ----------------------------------------------------------
0 main /data/gaia/docker/linkgraph.db
sqlite> .tables