This commit is contained in:
light
2019-01-30 17:16:51 +08:00
parent bbfe5ed3a6
commit 7f24f5478e
82 changed files with 136 additions and 11 deletions
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
+22
View File
@@ -0,0 +1,22 @@
# install cartographer
```bash
sudo apt-get update
sudo apt-get install -y \
cmake \
g++ \
git \
google-mock \
libboost-all-dev \
libcairo2-dev \
libeigen3-dev \
libgflags-dev \
libgoogle-glog-dev \
liblua5.2-dev \
libprotobuf-dev \
libsuitesparse-dev \
libwebp-dev \
ninja-build \
protobuf-compiler \
python-sphinx
```
Executable → Regular
View File
+11 -2
View File
@@ -11,7 +11,16 @@ cd ~
mkdir mysql
cd mysql
docker run -p 3306:3306 --name mymysql -v ~/mysql/conf:/etc/mysql/conf.d -v ~/mysql/logs:/logs -v ~/mysql/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 -d mysql:5.6
docker run -p 3306:3306 -p 8090:80 --name mymysql -v ~/mysql/conf:/etc/mysql/conf.d -v ~/mysql/logs:/logs -v ~/mysql/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 -d mysql:5.6
docker exec -i -t id /bin/bash
```
```
## 可视化
```bash
docker pull quantumobject/docker-mywebsql
docker run --rm-p 8090:80 --name mywebsql quantumobject/docker-mywebsql
docker run -dit --name mywebsql --network=container:mymysql quantumobject/docker-mywebsql
```
Vendored
+10
View File
@@ -0,0 +1,10 @@
# install fzf ag autojump
```bash
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
sudo apt install silversearcher-ag
sudo apt install autojump
echo ". /usr/share/autojump/autojump.sh" >> ~/.zshrc
```
+1 -1
View File
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
sudo add-apt-repository ppa:fossfreedom/indicator-sysmonitor -y
sudo apt-get -y install indicator-sysmonitor
sudo apt -y install indicator-sysmonitor
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
+6
View File
@@ -0,0 +1,6 @@
# gocode vim不更新提示
```bash
# 退出gocode 服务
gocode exit
```
+12
View File
@@ -0,0 +1,12 @@
# 源码分析
## 入口
```go
app := iris.New()
app.Run(iris.Addr("0.0.0.0:8080"))
```
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
+1
View File
@@ -4,4 +4,5 @@
```bash
docker run -dit --privileged --cap-add=ALL --network=host --name=controller -h controller -v /lib/modules:/lib/modules openstack_base:rocky_ovs
docker run -dit --privileged --cap-add=ALL --network=host --name=compute -h compute -v /lib/modules:/lib/modules openstack_compute:rocky_ovs
docker run -dit --privileged --cap-add=ALL --network=host --name=cinder -h cinder -v /lib/modules:/lib/modules openstack_cinder:dscloud
```
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
+6
View File
@@ -0,0 +1,6 @@
# version
```bash
apt install software-properties-common
add-apt-repository cloud-archive:rocky
```
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
+1 -2
View File
@@ -88,6 +88,5 @@ esac
``` bash
docker pull redis
mkdir /db/redis/
docker run -p 127.0.0.1:6379:6379 --name myredis -v /db/redis/:/data -d redis redis-server --appendonly yes --requirepass "abc123456"
```
```
+9
View File
@@ -21,3 +21,12 @@ cd ..
catkin_make
```
## 安装依赖包
```bash
rosdep install --from-paths src --ignore-src --rosdistro=${ROS_DISTRO} -y
```
View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Executable → Regular
View File

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Executable → Regular
View File

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

Executable → Regular
View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

+17
View File
@@ -0,0 +1,17 @@
# apt 源
## ubuntu 18.04
```bash
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted
deb http://mirrors.aliyun.com/ubuntu/ bionic universe
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates universe
deb http://mirrors.aliyun.com/ubuntu/ bionic multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted
deb http://mirrors.aliyun.com/ubuntu/ bionic-security universe
deb http://mirrors.aliyun.com/ubuntu/ bionic-security multiverse
```
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
+6
View File
@@ -0,0 +1,6 @@
# synergy
```bash
sudo apt install synergy
sudo apt-get install sni-qt
```
Executable → Regular
View File
Executable → Regular
View File
Executable → Regular
View File
+24
View File
@@ -0,0 +1,24 @@
# user
## create user
```bash
useradd git
# 制定用户默认的shell
chsh git -s /bin/bash
# 更改权限
chown -R git:git /home/git
```
## auth
```bash
## 只修改文件权限 -type d 为修改目录权限
find workspace -type f -exec chmod 644 {} \;
```
Executable → Regular
View File
+10 -6
View File
@@ -9,12 +9,15 @@ Plugin 'VundleVim/Vundle.vim'
Plugin 'junegunn/fzf.vim'
" 搜索
nmap <Leader>l :BLines
nmap <Leader>L :Lines
" 全局搜索,即使文件没打开
Plugin 'rking/ag.vim'
" 新建文件自动添加模板
Plugin 'aperezdc/vim-template.git'
let g:templates_directory = '~/.vim/templates'
@@ -73,7 +76,7 @@ set updatetime=100
Plugin 'godlygeek/tabular'
Plugin 'plasticboy/vim-markdown'
Plugin 'suan/vim-instant-markdown'
"Plugin 'suan/vim-instant-markdown'
Plugin 'Valloric/YouCompleteMe'
@@ -83,8 +86,8 @@ let g:ycm_collect_identifiers_from_tags_files = 1 " 开启 YCM基于
"let g:syntastic_ignore_files=[".*\.py$"]
let g:ycm_seed_identifiers_with_syntax = 1 " 语法关键字补全
let g:ycm_confirm_extra_conf = 0 " 关闭加载.ycm_extra_conf.py提示
let g:ycm_key_list_select_completion = ['<c-n>', '<Down>'] " 映射按键,没有这个会拦截掉tab, 导致其他插件的tab不能用.
let g:ycm_key_list_previous_completion = ['<c-p>', '<Up>']
let g:ycm_key_list_select_completion = ['<Down>'] " 映射按键,没有这个会拦截掉tab, 导致其他插件的tab不能用.
let g:ycm_key_list_previous_completion = ['<Up>']
let g:ycm_complete_in_comments = 1 " 在注释输入中也能补全
let g:ycm_complete_in_strings = 1 " 在字符串输入中也能补全
let g:ycm_collect_identifiers_from_comments_and_strings = 1 " 注释和字符串中的文字也会被收入补全
@@ -103,7 +106,7 @@ let g:SuperTabDefaultCompletionType = "<c-n>"
" xml html auto close
Plugin 'alvan/vim-closetag'
let g:jedi#documentation_command = ""
let g:closetag_filenames = '*.html,*.xhtml,*.phtml,*.launch'
let g:closetag_filenames = '*.html,*.xhtml,*.phtml,*.launch,*.vue'
Plugin 'jiangmiao/auto-pairs'
@@ -207,9 +210,10 @@ Plugin 'posva/vim-vue'
"Plugin 'https://github.com/taketwo/vim-ros.git'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'terryma/vim-multiple-cursors'
"Plugin 'Shougo/neocomplete.vim'
call vundle#end() " required
Executable → Regular
View File