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
<!-- | |
* @Author: your name | |
* @Date: 2020-03-01 20:18:19 | |
* @LastEditTime: 2020-03-04 15:40:53 | |
* @LastEditors: Please set LastEditors | |
* @Description: In User Settings Edit | |
* @FilePath: /vim-study/.vscode/02 vim-plug安装.md | |
--> | |
[演示视频地址](https://www.bilibili.com/video/av92997128/) |
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
<!-- | |
* @Author: your name | |
* @Date: 2020-02-27 11:32:56 | |
* @LastEditTime: 2020-02-27 11:32:58 | |
* @LastEditors: Please set LastEditors | |
* @Description: In User Settings Edit | |
* @FilePath: /vim-study/Users/zhaobo/Desktop/1.md | |
--> | |
vscode使用自动同步同步配置 |
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
<!-- | |
* @Author: your name | |
* @Date: 2020-02-27 11:12:36 | |
* @LastEditTime: 2020-02-27 11:12:38 | |
* @LastEditors: Please set LastEditors | |
* @Description: In User Settings Edit | |
* @FilePath: /vim-study/Users/zhaobo/Desktop/1.md | |
--> | |
编译安装vim并支持python3,以centos7为例子 | |
### 1 编译安装python3 |
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
<!-- | |
* @Author: your name | |
* @Date: 2020-02-26 17:52:13 | |
* @LastEditTime: 2020-02-26 17:52:14 | |
* @LastEditors: Please set LastEditors | |
* @Description: In User Settings Edit | |
* @FilePath: /vim-study/Users/zhaobo/Desktop/1.md | |
--> | |
## 1 在本地配置服务器别名 | |
编辑本地`~/.ssh/config`文件,写入别名,ip,端口,登入用户等信息 |
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
<!-- | |
* @Author: your name | |
* @Date: 2020-02-26 16:19:56 | |
* @LastEditTime: 2020-02-26 16:19:57 | |
* @LastEditors: Please set LastEditors | |
* @Description: In User Settings Edit | |
* @FilePath: /vim-study/Users/zhaobo/Desktop/1.md | |
--> | |
### 1 WireGuard介绍 |
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
#### yum(centos7)镜像 | |
```centos | |
# 自行备份CentOS-Base.repo 文件 | |
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo | |
yum clean all | |
yum makecache | |
``` | |
#### apt镜像 | |
```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
```linux | |
sudo '/Library/Application Support/org.pqrs/Karabiner-Elements/[uninstall.sh](http://uninstall.sh/)' | |
``` |
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
最近试了试sonarqube来检测自己的代码, = =不知道是不是我自己电脑配置低转了好久踩了好多坑才装上。 | |
#### 安装sonarqube7.4 | |
这里我主要是安装来检测php代码的。数据库选择mysql,就不额外装其他库了。最新的7.9版貌似已经不支持mysql。这里我就选择7.4了。[下载地址](https://www.sonarqube.org/downloads/) | |
下载完成之后修改配置文件 `/conf/sonar.properties` 追加一下内容 | |
```linux | |
// 修改默认web访问端口 | |
sonar.web.port=9889 | |
// 连接数据库配置 |
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
公司最近又遇到一次因为磁盘满了导致的问题,讲道理这个完全可以避免嘛。搞个监控就好了。自动检测磁盘使用情况,提前预警。 | |
#### 磁盘检测脚本 | |
```shell | |
#!/bin/sh | |
###################################################### | |
# Create by VIM | |
# Author: ache | |
# Created Time : 2019年11月02日 星期日 08时24分56秒 | |
# File Name: autoload.sh |
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
今年用了大半年的vim感觉越来越好用了。但是vim的配置迁移比较麻烦的,之前自己安装的时候都没做记录,导致现在要在新电脑上装一个都不知道怎么装。这里记录一下在构件一个vim的docker镜像用于编写php。 | |
#### 镜像选择 | |
这里我选用最新的alpine为基础镜像。原因无它,这个小。我电脑上的alpine,ubuntu,centos,以此为5M,64M,220M。这里我并不打算使用这个镜像来作为本地的运行环境,只是简单的来编写代码而已。 | |
```dockerfile | |
FROM alpine | |
``` | |
#### 导入配置文件 | |
这里我预先准备好的vim和coc.nvim的配置文件 [github地址](https://github.com/Oh-ache/vim-php) 。 |
NewerOlder