Skip to content

Instantly share code, notes, and snippets.

sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum makecache fast
sudo yum -y install docker-ce
## if there's a docker installed, please removed it first.
systemctl stop docker
sudo yum remove docker
mvn eclipse:eclipse
-DskipTests,不执行测试用例,但编译测试用例类生成相应的class文件至target/test-classes下。
-Dmaven.test.skip=true,不执行测试用例,也不编译测试用例类。
关闭当前finder窗口:command + w
批量关闭finder窗口: option + command + w
https://vim.rtorr.com/lang/zh_cn
######## submit codes
# step 1. add changes to staging area
git add fileanme
git add .
git add --all .
git rm fileanme
git mv source dst
# step 2. commit to local repostiroy
git commit -m "comments"
########################################################
## nc command
########################################################
## 扫描IP和端口, 查看该ip,端口是否可用
nc -v -z 192.168.0.1 8080
## insecure connection to https
curl -k https://localhost:6443/api