Logo Ricky
  • 首頁
  • 關於
  • 更多的
    技能 經歷 學歷 專案
  • 文章
  • 筆記
  • 活動
  • 跑步
  • Chinese
    English Chinese
  • Dark Theme
    Light Theme Dark Theme System Theme
Logo Inverted Logo
  • 文章
  • A python script that allows your terminal to snow.
  • Add SFTP user and share directory
  • Advanced Shell Scripting Techniques: Automating Complex Tasks with Bash
  • Ansible 簡介
  • Cloudflare Tunnel
  • Cloudflare Zero Trust
  • Configuring SSH Keys for Multiple GitHub Accounts
  • Container security fundamentals
  • datavizproject
  • Docker Introduction
  • Emoji 正则匹配
  • Fetch GraphQL schema information
  • Git force push
  • Gitlab-CI Introduction
  • Go articles
  • Go leetcode
  • Go Style Decisions - Pass values
  • Golang tips
  • Google Infra
  • GraphQL Introspection Query
  • How Core Git Developers Configure Git
  • Install Chrome OS
  • iTerm2 features I find useful
  • Lightweight Linux Distributions For Older PCs
  • LLM Visualization
  • LLMs Hackmd Docs
  • Mac 小众软件推荐与工作流分享(2024)
  • macOS Tips & Tricks
  • Nginx 筆記
  • Objective-See: 一个关于 Apple 设备隐私与安全的开源项目组织
  • Prometheus relabeling and linux metrics
  • Rules that terminal programs follow
  • Run llama3
  • Smarter than 'Ctrl+F': Linking Directly to Web Page Content
  • Supply chain attack
  • Taide - training data
  • Use terminal and SSH to remote host
  • 一文读不懂的 Go 1.21 GA 的 PGO 优化——一次在 WebP Server Go 上的尝试
  • 朋友旅行防止絕交檢查表
  • 永齡基金會AI大師論壇:人工智慧如何形塑人類未來
  • 調整系統使得 EMQX 可以支援 1M 連線
Hero Image
Cloudflare tunnel on Synology

Setup Synology Create a directory in docker directory, such as cloudflare-tunnel. Download cloudflared/cloudflared image to registry. ssh to admin@synology Change cloudflare-tunnel owner, sudo chown -R 65532:65532 /volume1/docker/cloudflare-tunnel. Run containers - cloudflared tunnel login Run container and mount volume docker/cloudflare-tunnel:/home/nonroot/.cloudflared. Select Use the same network as Docker Host in network tab. Add command tunnel login in envorinment tab. Go to container log, and copy login url. Paste url to browser and authorize the zone.

Monday, September 25, 2023 閱讀
Hero Image
Nginx 筆記

紀錄 Nginx 設定檔及說明 檔案結構 . ├── geoip.conf ├── nginx.conf ├── sites-available │ ├── default.conf ├── sites-enabled │ ├── default.conf -> ../sites-available/default.conf ├── upstream.conf geoip.conf ## module: ngx_http_geoip2_module ## https://github.com/leev/ngx_http_geoip2_module ## 讀取 GeoIP 資料庫,並進行變數設定 geoip2 /usr/share/GeoIP/GeoLite2-Country.mmdb { auto_reload 60m; $geoip2_metadata_country_build metadata build_epoch; ## 自定義 $geoip2_data_country_code 值為 $remote_addr 對應的 ISO 3116 規範的國碼 $geoip2_data_country_code source=$remote_addr country iso_code; ## 自定義 $geoip2_data_country_name 值為對應的英文城市名 $geoip2_data_country_name country names en; } upstream.conf ## module: ngx_http_upstream_module ## 定義 server 組別 upstream to_nodejs1 { ## server address [parameters]; 定義 server ## parameters: ## weight=number 定義權重,預設為 1 ## max_fails=number 設定到 upstream server 的最大重試次數,預設為 1 ## fail_timeout=time 設定到達 max_fails 次數之後,暫停向此 upstream server 傳送請求的時間,預設為 10 秒 ## backup 標記此 upstream server 為備用,當其他 upstream server 不可用時,此 upstream server 可接受請求 ## down 標記此 upstream server 為不可用 server 10.

Friday, November 19, 2021 閱讀
Hero Image
Gitlab-CI Introduction

Gitlab CI Concept Gitlab DevOps GitOps Workflow code push -> pipeline -> stage -> job Design plan -> code -> build -> test -> release -> deploy -> operate -> monitor -> plan Runner Executors Shell VirtualBox Docker Docker Machine Kubernetes Else… References Gitlab CI/CD Gitlab Runner .gitlab-ci.yaml Runner Register gitlab-runner register After register concurrent = 1 check_interval = 0 [session_server] session_timeout = 1800 [[runners]] name = "public-shell" url = "https://gitlab.

Friday, September 24, 2021 閱讀
Hero Image
Docker Introduction

Docker Concept VM vs Container VM - Base on OS Container - Base on Application (Linux Kernel: Namespace and Cgroup) Client to Server Docker daemon - containerd, docker-containerd-shim, docker-runc Docker client - cli command docker cli -> docker daemon -> containerd -> runc -> namespace & cgroup Image Snapshots Container Read-Only processes on image Hub / Registry Store images References Docker —— 從入門到實踐 docker docs Docker commands Dockerfile ARG dist="/tmp/password" ARG projectDir="/password" FROM golang:1.

Friday, September 17, 2021 閱讀
Hero Image
Ansible 簡介

認識 Ansible 大綱 簡介 安裝 常用模組 資料夾結構 結語 簡介 安裝部署工具、設定管理工具等 同類型工具:Chef、Puppet、SaltStack 不需要 Agent、透過 ssh Linux 有 python 即可 ( ssh port ) Win 啟用 winrm 即可 ( 5986 port ) https://docs.ansible.com/ansible/latest/user_guide/windows_winrm.html#inventory-options 資料夾結構簡單易懂、官方文件豐富易懂、模組多支援設備多、易撰寫 安裝 pip install ansible pip3 install ansible yum install ansible apt-get install ansible apk add ansible 常用模組 ping shell / command file yum systemd / service template / copy debug 常用模組 - ping 常用模組 - shell / command 常用模組 - file 常用模組 - yum 常用模組 - systemd / service 常用模組 - template / copy 常用模組 - debug / register 資料夾結構 結語 選擇適合的 ansible ad-hoc ansible gitlab -m ping ansible gitlab -m shell -a 'rm -rf /' playbook role collection shell script python script others

Saturday, September 26, 2020 閱讀
  • ««
  • «
  • 1
  • 2
  • 3
  • 4
  • »
  • »»
導覽列
  • 關於
  • 技能
  • 經歷
  • 學歷
  • 專案
聯絡方式:
  • zeyanlin@outlook.com
  • linzeyan
  • Ricky
  • Ricky
  • Ricky