2022年6月30日 星期四

Docker

# Apache2
docker run -d -p 3000:80 --name myhttpd --restart always  \
-v /c/www:/usr/local/apache2/htdocs/ \
-v /c/config:/usr/local/apache2/conf/ \
httpd



2022年4月15日 星期五

Git 指令

乾合併


--no-ff 不要快速合併
--no-commit 不要直接發 commit ,先進暫存
git merge master --no-commit --no-ff
(將 master Merge 到當前的 branch)
git merge main --no-commit --no-ff
(將 main Merge 到當前的 branch)


Remote


檢視 Remote 路徑
git remote -v
更新 Remote 路徑
git remote set-url origin {URL}
(would clobber existing tag) 更新 Local Tag 問題
git fetch --tags -f


Worktree


建立 Branch 並另開工作目錄
git worktree add -b worktree_branch ../worktree_folder master
檢視目前的 Worktree 清單
git worktree list
刪除 Worktree ,直接刪除目錄,然後執行
git worktree prune

2022年3月26日 星期六

Windows 打不開安全性設定

安全性設定點開後一直跳出 Microsoft Store
以管理員開啟 Windows PowerShell 輸入以下指令後執行:

2022年2月8日 星期二

ESP8266

ESP8266
https://github.com/esp8266/Arduino

額外的開發版管理員網址:


原始的 ESP8266 直接選擇 Generic ESP8266 Module

ESP Link
燒錄模式:將 IO0 跟 GND 接在一起