2023年4月30日星期日。
2023/4/30
2023/4/29
2023/4/28
2023/4/27
2023/4/25
Git 復原/撤銷合併 undo merge commit
Git撤銷合併提交(merge commit)可使用git reset --hard <before-merge-commit-hash>
,<before-merge-commit-hash>
為合併前的commit。
Golang GCP VPC network private service connection新增allocated IP range
Go以Google API Client Libraries來在GCP VPC network的private service connection連線加入新的allocated IP range。
2023/4/22
2023/4/21
GCP gcloud CLI 刪除VPC network private service connection與service producer的連線
GCP gcloud cli刪除VPC network的private service connection與service producer的連線。
2023/4/20
Golang 刪除GCP VPC network private service connection IP allocated range
Go以Google API Client Libraries來刪除GCP VPC network的private service connection的IP range。
Golang 取得GCP VPC network private service connection IP allocated range清單
Go以Google API Client Libraries來查詢GCP VPC network的private service connection的IP range列表。
Golang 建立GCP VPC network private service connection與service producer的連線
Go以Google API Client Libraries來建立GCP VPC network的private service connection連線到service producer。
GCP gcloud CLI 建立VPC network private service connection與service producer的連線
GCP gcloud cli建立VPC network的private service connection與service producer的連線。
Golang 建立GCP VPC network private service connection IP allocated range
Go以Google API Client Libraries來建立GCP VPC network的private service connection的IP range。
GCP gcloud CLI 建立VPC network private service connection IP range
GCP gcloud cli建立VPC network的private service connection的IP address range。
GCP VPC network private service connection簡介
GCP VPC的private service connection用來讓Google或三方服務(稱為service producers)透過內部IP位址與VPC內的資源如VM instance溝通,而不用透過外部IP來存取。
2023/4/19
Git 比較分支間的檔案差異 compare two branches files difference
Git比較目前分支與另一分支的檔案差異可用git diff --name-status <another-branch>
,<another-branch>
是另一個分支名稱。
Chrome HTTPS 你的連線不是私人連線 ERR_CERT_AUTHORITY_INVALID 錯誤
不知何種原因有時用Chrome上公司內部網站會出現「你的連線不是私人連線」錯誤訊息ERR_CERT_AUTHORITY_INVALID
。
2023/4/17
2023/4/15
AWS Route table route destination不可重複
AWS Route table的route不可有重複的destination,新增重複的destination route會出現錯誤。
2023/4/14
2023/4/12
2023/4/10
系統設計 遠端資源狀態一致性問題 - 遠端資源已建立但本地紀錄更新失敗
在本地紀錄建立後(狀態為「建構中(building)」)並成功建立遠端資源,但更新本地記錄狀態為「已建立(created)」時更新失敗(e.g. 資料庫連線失敗)。
plantuml
@startuml
participant client
participant app
database db
participant remote
skinparam sequenceMessageAlign center
skinparam ParticipantPadding 50
client ->> app : create request
activate app
app -->> client : accepted
app -> db : CREATE record\nwith state 'building'
activate db
db -->> app : success
deactivate db
|||
app -> remote : CREATE resource
activate remote
remote -->> app : success
deactivate remote
|||
app -[#red]>x db : UPDATE record state\n to 'created'
note right : transaction failed\n due to network failure
activate db
db -->> app : failed
deactivate db
app ->> client : failed message
deactivate app
note over db : record state remains 'building',\n but resources existed.
@enduml
同「資源已建立但系統失效」的處理。
且在本地服務的資料庫未回復正常以前,健康偵測應將應用程式功能關閉避免使用者持續操作發生重複的錯誤,「系統維護中請稍候再試」。
2023/4/9
2023/4/8
2023/4/6
Homebrew PostgreSQL 啟動狀態錯誤 status error 256
終端機執行brew services start postgresql
啟動Homebrew安裝的PostgreSQL資料庫時狀態為error 256錯誤。