This file contains 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 | |
:verbose set conceallevel | |
``` | |
verbose命令可以查看是哪个插件设置的这个值 | |
如果直接禁用可以设置 | |
let g:indentLine_conceallevel = 0 | |
```shell | |
autocmd FileType json,markdown let g:indentLine_conceallevel=0 |
This file contains 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
export LESS="-eirMX" |
This file contains 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
unmout /path/to/mm | |
fuser /path/to/mm 获得这个挂在使用的pid |
This file contains 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
sslocal | |
{ | |
"server": "", | |
"server_port": 15938, | |
"method": "", | |
"password": "", | |
"local_address": "127.0.0.1", | |
"local_port": 8700 | |
} |
This file contains 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
// 生成http Date | |
var today = new Date() | |
var apiDate = today.toUTCString() | |
postman.setEnvironmentVariable("api-date", apiDate); | |
// 获取请求method | |
var method = request.method |
This file contains 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
ffmpeg -ss 00:00:03 -t 60s -i test.flv -c:v libx264 -c:a aac -strict experimental -b:a 98k out.mp4 | |
# 从test.flv视频中的00:00:03时间点开始,截取60s时间的视频,输出为out.mp4视频文件 | |
ffmpeg -i test.flv -strict -2 -vf crop=1920:1000:430:0 out.mp4 | |
# 具体含义是 crop=width:height:x:y,其中 width 和 height 表示裁剪后的尺寸,x:y 表示裁剪区域的左上角坐标。将该点作为基准点,向右下进行裁剪得到输出视频。 | |
ffmpeg -i test.flv -filter_complex transpose=1 -y out.mp4 | |
# transpose=1为顺时针旋转90°,transpose=2逆时针旋转90°。 |
This file contains 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
git fetch -p | |
git remote prune origin | |
# 删除所有已经merge到master上的分支 | |
git branch --merged master | grep -v '^\*\| master' | xargs -n 1 git branch -d | |
# 查找所有远程分支不存在的本地分支,然后再用git branch -d进行删除 | |
for b in $(git branch -vv | grep -v origin | awk '{print $1}'); do |
This file contains 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
[share] | |
comment = Share Files | |
path = /root | |
valid users = root | |
write list = root | |
writeable = yes | |
browsable = yes | |
This file contains 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
* hostnamectl | |
* rpm --query centos-release | |
* lsb_release -d | |
* cat /etc/centos-release | |
* cat /etc/os-release | |
* cat /etc/redhat-release | |
* cat /etc/system-release |
This file contains 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
sudo groupadd docker | |
sudo gpasswd -a ${USER} docker || sudo usermod -aG docker ${USER} | |
sudo systemctl restart docker | |
sudo chmod a+rw /var/run/docker.sock | |
# 退出当前用户重新进来,就可以用非root用户使用docker命令 | |
NewerOlder