Git
git checkout --orphan test-branch
git push -u origin :test
git push origin --delete test
git push origin localbranch:remotebranch
git bundle create myrepo.bundle HEAD master
git bundle create commits.bundle master ^9a466c5
git bundle verify ./myrepo.bundle
git bunlde list-heads ./myrepo.bundle
cd ../
git clone myrepo.bundle testrepo
git fetch ./myrepo.bundler master:other-master
MySQL
CREATE USER 'demo_user'@'localhost' IDENTIFIED BY '123456';
GRANT INSERT,SELECT ON demo_db.demo_table TO 'demo_user'@'localhost';
Linux
nohup sh demo.sh > demo.log 2>&1 &
sed -i 's/ONBOOT=no/ONBOOT=yes/' /etc/sysconfig/network-scripts/ifcfg-enp0s8
cat /etc/docker/daemon.json
{
"registry-mirrors": ["https://xxx.mirror.aliyuncs.com"]
}
cat /etc/docker/daemon.json
{
"insecure-registry": ["139.219.8.133:5000"]
}
Elasticsearch
GET _template/index_name
PUT /_template/index_name
{...}
Docker
curl http://host:port/v2/_catalog
curl http://host:port/v2/<image_name>/tags/list
其它
- MinGW-w64 离线安装
https://blog.youkuaiyun.com/u012278016/article/details/101101486
https://sourceforge.net/projects/mingw-w64/files/