使用 JWT token 免不了有時會需要解碼看裡面存放的內容,在可以連到外網的環境下,很多網站工具都可以滿足我們的需求,但若是在網路比較受限的環境下,就不能依賴於外網的網站工具了。
Generate self-signed certificates with dotnet dev-certs
dotnet dev-certs 提供 https 命令可供自產 HTTPS 開發憑證。
gauth - Host Google authenticator server
要起 gauth 服務供二階段認證使用,可將 gauth 程式碼下載下來。
NuGet - Create and publish a package with dotnet CLI
要建立 NuGet 套件,需先確認專案檔內有設計 NuGet 套件所需之資訊,像是套件識別碼、版本、作者、公司等。
MongoDB - Creating a MongoDB replica set in single Docker container
透過 Docker 去起 MongoDB replica set,多半網路上的做法都是用多個容器去做,這邊筆者考量測試與開發上的便利性,試著用一個容器去起 MongoDB replica set。
dotnet-counters - Monitor specified process
dotnet-counters 可用來監控 .Net Core 的 Process,像是這邊筆者準備了一份簡單的程式想要觀察其 CPU 與 Memory 這些資源上的變化狀況。
dotnet-counters - Install with dotnet tool
要用 dotnet tool 安裝 dotnet-counters,可調用 d otnet tool install 帶入 –global 參數指定安裝至全域,並在最後帶入 dotnet-counters 指定安裝 dotnet-counters 套件。
dotnet-trace - Install with dotnet tool
要用 dotnet tool 安裝 dotnet-trace,可調用 dotnet tool install 帶入 –global 參數指定安裝至全域,並在最後帶入 dotnet-trace 指定安裝
dotnet-trace 套件。
HomeBrew - Error: homebrew-core is a shallow clone.
使用 HomeBrew 如果出現 “Error: homebrew-core is a shallow clone.” 錯誤。
OpenSSL - Encryption with the OpenSSL Command-Line Interface
要使用 OpenSSL CLI 進行加密,可先透過命令列帶入參數 -help 查閱一下 OpenSSL enc 的使用方式。