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

0
.gitignore vendored Executable file → Normal file
View File

0
LICENSE Executable file → Normal file
View File

0
README.md Executable file → Normal file
View File

22
cartographer/install.md Normal file
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
```

0
csdn_markdown.md Executable file → Normal file
View File

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
```

10
env/fzf.md vendored Normal file
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
```

2
env/sysmonitor.sh vendored
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

0
esp/build_code_with_micropython.md Executable file → Normal file
View File

0
esp/emqtt.md Executable file → Normal file
View File

0
esp/http Executable file → Normal file
View File

0
gfw/shadowsockes.md Executable file → Normal file
View File

0
git/change_repo.md Executable file → Normal file
View File

0
git/gitlab_nginx.md Executable file → Normal file
View File

0
git/install_git.md Executable file → Normal file
View File

0
git/install_gitlab.md Executable file → Normal file
View File

0
git/ssh_key.md Executable file → Normal file
View File

6
go/gocode.md Normal file
View File

@ -0,0 +1,6 @@
# gocode vim不更新提示
```bash
# 退出gocode 服务
gocode exit
```

12
go/iris/source.md Normal file
View File

@ -0,0 +1,12 @@
# 源码分析
## 入口
```go
app := iris.New()
app.Run(iris.Addr("0.0.0.0:8080"))
```

0
go/安装go1.4.md Executable file → Normal file
View File

0
light.md Executable file → Normal file
View File

0
markdown/add image.md Executable file → Normal file
View File

0
markdown/csdn_markdown.md Executable file → Normal file
View File

0
mongodb/auth.md Executable file → Normal file
View File

0
mongodb/use.md Executable file → Normal file
View File

0
ngrok/ngrok.md Executable file → Normal file
View File

0
nodejs/install.md Executable file → Normal file
View File

0
openstack/apt_download.sh Executable file → Normal file
View File

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
```

0
openstack/openstack_conf/compute/cinder/api-paste.ini Executable file → Normal file
View File

0
openstack/openstack_conf/compute/cinder/cinder.conf Executable file → Normal file
View File

0
openstack/openstack_conf/compute/cinder/logging.conf Executable file → Normal file
View File

0
openstack/openstack_conf/compute/cinder/rootwrap.conf Executable file → Normal file
View File

View File

0
openstack/openstack_conf/compute/neutron/neutron.conf Executable file → Normal file
View File

0
openstack/openstack_conf/compute/nova/api-paste.ini Executable file → Normal file
View File

0
openstack/openstack_conf/compute/nova/logging.conf Executable file → Normal file
View File

View File

0
openstack/openstack_conf/compute/nova/nova.conf Executable file → Normal file
View File

0
openstack/openstack_conf/compute/nova/rootwrap.conf Executable file → Normal file
View File

View File

View File

View File

View File

View File

View File

0
openstack/openstack_conf/controller/nova/api-paste.ini Executable file → Normal file
View File

0
openstack/openstack_conf/controller/nova/nova.conf Executable file → Normal file
View File

6
openstack/version.md Normal file
View File

@ -0,0 +1,6 @@
# version
```bash
apt install software-properties-common
add-apt-repository cloud-archive:rocky
```

0
python/ReformFileName.py Executable file → Normal file
View File

0
python/command.md Executable file → Normal file
View File

0
python/pyqt.md Executable file → Normal file
View File

0
python/uncompyle2.md Executable file → Normal file
View File

0
python/virtualenv.md Executable file → Normal file
View File

0
rabbitmq/install.md Executable file → Normal file
View File

0
raspberry/main.md Executable file → Normal file
View File

0
raspberry/router.md Executable file → Normal file
View File

0
raspberry/sound.md Executable file → Normal file
View File

0
raspberry/wifi.md Executable file → Normal file
View File

3
redis/配置.md Executable file → Normal file
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"
```
```

View File

@ -21,3 +21,12 @@ cd ..
catkin_make
```
## 安装依赖包
```bash
rosdep install --from-paths src --ignore-src --rosdistro=${ROS_DISTRO} -y
```

0
static/img/iptables_examples_network_topology.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

0
static/img/iptables_frame.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

0
static/img/ssh_key.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

0
static/img/test.jpg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

17
ubuntu/apt_source.md Normal file
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
```

0
ubuntu/aria2.md Executable file → Normal file
View File

0
ubuntu/install_nginx.md Executable file → Normal file
View File

0
ubuntu/iptables.md Executable file → Normal file
View File

0
ubuntu/iptables设置端口转发.md Executable file → Normal file
View File

0
ubuntu/minicom.md Executable file → Normal file
View File

0
ubuntu/nmap.md Executable file → Normal file
View File

0
ubuntu/scp.md Executable file → Normal file
View File

0
ubuntu/screen.md Executable file → Normal file
View File

6
ubuntu/synergy.md Normal file
View File

@ -0,0 +1,6 @@
# synergy
```bash
sudo apt install synergy
sudo apt-get install sni-qt
```

0
ubuntu/ubuntu_install_pyqt4.md Executable file → Normal file
View File

0
ubuntu/uget.md Executable file → Normal file
View File

0
ubuntu/update-alternatives.md Executable file → Normal file
View File

24
ubuntu/user.md Normal file
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 {} \;
```

0
ubuntu/网络相关命令.md Executable file → Normal file
View File

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

0
vue/start_project.md Executable file → Normal file
View File