hjtech

@hjtech

Public team

Joined on Oct 16, 2023

  • gcloud auth activate-service-account \ --key-file $(serviceAccount.secureFilePath) 更新image gcloud run services update ezpay-thirdparty \ --image=$(Docker.Registry)/ezpay.thirdparty:$(Build.BuildNumber) \ --update-env-vars ELASTIC_APM_SERVICE_VERSION=$(Build.BuildNumber) \ --region=$(GCP.Region) \ --project=$(GCP.ProjectId)
     Like  Bookmark
  • 在左側邊欄上,選擇「搜尋」或前往並尋找您的群組。 選擇設定 > 常規 > 權限和群組功能。 清除服務帳戶令牌過期複選框。 現在您可以為服務帳戶使用者建立沒有到期日的個人存取權杖。 個人Token 登入gitlab registry docker login registry.example.com -u <username> -p <token> docker login -u armin31 -p glpat-Kuj1PNqBMbxfYqykQiNM registry.gitlab.com registry路徑
     Like  Bookmark
  • 轉到ELK Cloud,費用省400~500 需要GCP權限,和帳單管理員權限 才能用Macket Place新增 建立ELK Cloud Instance 調整logstash,加入Namespace 調整Index Pattern 改用serilog 加入APM CloudRun調整
     Like  Bookmark
  • version: '3.5' services: elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:8.6.2 container_name: elasticsearch environment: discovery.type: single-node ES_JAVA_OPTS: '-Xms1g -Xmx1g' ELASTIC_USERNAME: elastic
     Like  Bookmark
  • https://www.nuget.org/packages/Elastic.Apm https://www.nuget.org/packages/Elastic.Apm.NetCoreAll 安裝套件 dotnet add package Elastic.Apm.NetCoreAll --version 1.25.1 curl -X POST -H "Content-Type: application/json" -d '{"password" : "changeme"}' http://elastic:changeme@localhost:9200/_security/user/kibana_system/_password 設定
     Like  Bookmark
  • https://serilog.net/ 安裝套件 dotnet add package Serilog --version 3.1.1 dotnet add package Serilog.Sinks.Console --version 5.0.1 dotnet add package Serilog.AspNetCore --version 8.0.0 dotnet add package Serilog.Settings.Configuration dotnet add package Serilog.Sinks.Elasticsearch --version 9.0.3 appsetting.json {
     Like  Bookmark
  • https://nlog-project.org/ 加入套件 dotnet add package NLog --version 5.2.7 dotnet add package NLog.Web.AspNetCore --version 5.3.7 dotnet add package NLog.Targets.ElasticSearch --version 7.7.0 修改Program.cs using NLog.Web; var builder = WebApplication.CreateBuilder(args);
     Like  Bookmark
  • Windodws Terminal 官方推薦: winget install --id=Microsoft.WindowsTerminal -e github: https://github.com/microsoft/terminal Download the Microsoft.WindowsTerminal_<versionNumber>.msixbundle choco install microsoft-windows-terminal winget install --id=Microsoft.WindowsTerminal -e 快速鍵 Ctrl + Shift + T 打開新標籤頁 Ctrl + Shift + W 關閉分屏
     Like  Bookmark
  • https://github.com/prometheus-net/prometheus-net
     Like  Bookmark
  • https://www.cnblogs.com/jlion/p/12394949.html
     Like  Bookmark
  • 【彩票】 1.Prod環境: crpati.com crpati11.com 2.Beta環境: crptb.com ================== 【包網】
     Like  Bookmark
  • https://hackmd.io/9QPpKRnETMOAVO9EJXHC_Q 啟動Ubuntu:23.10 docker run -it --rm ubuntu:23.10 https://learn.microsoft.com/zh-tw/dotnet/core/install/linux-ubuntu-2310 安裝相關套件 apt-get update apt-get install wget apt-get install vim
     Like  Bookmark
  • docker 特性 說明 靈活性 複雜的應用程式也可以容器化 輕量化 容器共享內核,系統消耗比虛擬機器低
     Like  Bookmark
  • install gcloud cli oh-my-zsh plugin gcloud components install kubectl gcloud components update kubectl syntax kubectl [command] [TYPE] [NAME] [flags] command: 對資源進行的操作, ex: create, get, describe, delete TYPE: 資源類型, ex: pod, deploy, svc...
     Like  Bookmark
  • 雲端交接記錄 網域: xrszyc.com 注意到期時間: 2023-12-25 https://sg.godaddy.com/whois/results.aspx?itc=dlp_domain_whois&domain=xrszyc.com
     Like  Bookmark
  • NodeJS檔開發環境 VSCode開發環境 NestJS框架 GCP 雲端 docker command & dockerfile k8s command
     Like  Bookmark
  • nestjs 框架 https://docs.nestjs.com/
     Like  Bookmark
  • NodeJS開發環境設定 安裝nvm https://github.com/coreybutler/nvm-windows nvm ls-remote: 列出遠端可用的 NodeJS 版本 nvm ls: 列出本機安裝的 NodeJS 環境 nvm install: 安裝指定版本的 NodeJS nvm uninstall: 移除指定版本的 NodeJS nvm alias: 設定別名 nvm unalias: 移除別名
     Like  Bookmark
  • npm init -y npm i express npm i -D nodemon index.js const express = require('express'); const app = express(); const port = 3000; app.get('/', (req, res) => { res.send('hello');
     Like  Bookmark
  • npm init -y 安裝 typescript 相關套件 npm i express npm i -D typescript @types/node @types/express npm i -D ts-node nodemon 初始化 typescript 設定檔 npx tsc --init 修改 tsconfig.json { "outDir": "./dist"
     Like  Bookmark