mirror of
https://github.com/Estom/notes.git
synced 2026-04-13 18:00:27 +08:00
$date
This commit is contained in:
19
zshell/multi_sync.bat
Normal file
19
zshell/multi_sync.bat
Normal file
@@ -0,0 +1,19 @@
|
||||
git remote remove gitee_notes
|
||||
git remote remove github_notes
|
||||
git remote remove coding_notes
|
||||
|
||||
git remote add gitee_notes git@gitee.com:Eyestorm/notes.git
|
||||
git remote add github_notes git@github.com:Estom/notes.git
|
||||
git remote add coding_notes git@e.coding.net:cloudengine/notes/notes.git
|
||||
|
||||
|
||||
git pull gitee_notes master
|
||||
git pull github_notes master
|
||||
git pull coding_notes master
|
||||
|
||||
git add *
|
||||
git commit -m $date
|
||||
|
||||
git push gitee_notes
|
||||
git push github_notes
|
||||
git push coding_notes
|
||||
17
zshell/multi_sync.sh
Normal file
17
zshell/multi_sync.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
git remote remove gitee_notes
|
||||
git remote remove github_notes
|
||||
git remote remove coding_notes
|
||||
|
||||
git remote add gitee_notes git@gitee.com:Eyestorm/notes.git
|
||||
git remote add github_notes git@github.com:Estom/notes.gitgit@github.com:Estom/notes.git
|
||||
git remote add coding_notes git@e.coding.net:cloudengine/notes/notes.git
|
||||
|
||||
|
||||
git pull gitee_notes master
|
||||
git pull github_notes master
|
||||
git pull coding_notes master
|
||||
|
||||
|
||||
git push gitee_notes
|
||||
git push github_notes
|
||||
git push coding_notes
|
||||
15
zshell/start.sh
Normal file
15
zshell/start.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
# 将笔记推送到不同的仓库中
|
||||
git push git@github.com:Estom/notes.git
|
||||
git push git@github.com:Estom/notes.git
|
||||
|
||||
|
||||
# 统计代码的数量
|
||||
find . -name "*.java" -exec wc -l {} \;#利用exec参数
|
||||
find . -name "*.java" |xargs wc -l # 利用xargs参数
|
||||
find . -name "*.java" -exec wc -l {} \; | awk 'BEGIN{num=0} {num+=$1;print $1;}END{print num}'
|
||||
|
||||
# 查看今天的日志
|
||||
find . -name "*.log" | xargs grep "wrod"
|
||||
|
||||
# wsl访问宿主机网络
|
||||
New-NetFirewallRule -DisplayName "WSL" -Direction Inbound -InterfaceAlias "vEthernet (WSL)" -Action Allow
|
||||
Reference in New Issue
Block a user