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 Protobuf:新的 Opaque API
  • Go Style Decisions - Pass values
  • Golang tips
  • Google Infra
  • Go实战指南:使用 go-redis 执行 Lua 脚本
  • GraphQL Introspection Query
  • How Core Git Developers Configure Git
  • I use Zip Bombs to Protect my Server
  • Install Chrome OS
  • iTerm2 features I find useful
  • Lightweight Linux Distributions For Older PCs
  • LLM Visualization
  • LLMs Hackmd Docs
  • Mac 小众软件推荐与工作流分享(2024)
  • macOS Tips & Tricks
  • Marp教學:Markdown搭配VS Code做簡報,快速輸出為PPTX或PDF,提昇做簡報效率
  • 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
  • TaigiTube 台語水管
  • TIL: timeout in Bash scripts
  • Use terminal and SSH to remote host
  • Why are QR Codes with capital letters smaller than QR codes with lower-case letters?
  • 一文读不懂的 Go 1.21 GA 的 PGO 优化——一次在 WebP Server Go 上的尝试
  • 人人都需要一個 HTTP proxy 來 debug
  • 朋友旅行防止絕交檢查表
  • 永齡基金會AI大師論壇:人工智慧如何形塑人類未來
  • 調整系統使得 EMQX 可以支援 1M 連線
Hero Image
Emoji 正则匹配

Emoji 正则匹配 /\p{Emoji}/u 既然是匹配 Emoji,那么 loneProperty (\p{loneProperty}) 就应该是 Emoji ? 实际测试并不符合需求,因为在 Emoji 官方文档中, 123456789*# 也是被看作是 Emoji, 如果用这个正则的话,就会把数字也认为是 Emoji,不符合只排除特殊表情的要求。 /\p{Extended_Pictographic}/u 而 Extended_Pictographic 表示的 Emoji 才是我们认为的那些表情符号。

Sunday, May 19, 2024 閱讀
Hero Image
Prometheus relabeling and linux metrics

Prometheus relabeling and linux metrics Adding new label - target_label: "foo" replacement: "bar" metrics rkB/s: rate(node_disk_read_bytes_total[*]) Unit: bytes per second wkB/s: rate(node_disk_written_bytes_total[*]) Unit: bytes per second Reference How to use relabeling in Prometheus and VictoriaMetrics Interpreting Prometheus metrics for Linux disk I/O utilization

Tuesday, May 14, 2024 閱讀
Hero Image
LLMs Hackmd Docs

LLMs Hackmd Docs LM STUDIO chromadb/chroma ollama/ollama mintplexlabs/anythingllm References 大型語言模型 LLMs 課程教學 課程大綱 (四) 大型語言模型 LLMs 課程教學 課程大綱 (五) 大型語言模型 LLMs 課程教學 課程大綱 (六)

Friday, May 10, 2024 閱讀
Hero Image
Taide - training data

Taide - training data

Saturday, April 27, 2024 閱讀
Hero Image
Run llama3

ollama Instructions Docker-compose version: "3.8" services: ollama: image: ollama/ollama:latest container_name: ollama restart: unless-stopped volumes: - ./ollama/ollama:/root/.ollama tty: true ports: - 11434:11434 networks: - ollama-docker # deploy: # resources: # reservations: # devices: # - driver: nvidia # count: 1 # capabilities: [gpu] ollama-webui: image: ghcr.io/ollama-webui/ollama-webui:main container_name: ollama-webui restart: unless-stopped volumes: - ./ollama/ollama-webui:/app/backend/data ports: - 8080:8080 environment: - "/ollama/api=http://ollama:11434/api" extra_hosts: - host.docker.internal:host-gateway networks: - ollama-docker networks: ollama-docker: Setup # Run docker-compose docker-compose up -d # Pull model(https://ollama.com/library) docker exec -it ollama /bin/bash ollama pull llama3 Chat with Web-UI port defined in docker-compose.yml ollama-webui.ports

Thursday, April 25, 2024 閱讀
Hero Image
一文读不懂的 Go 1.21 GA 的 PGO 优化——一次在 WebP Server Go 上的尝试

一文读不懂的 Go 1.21 GA 的 PGO 优化——一次在 WebP Server Go 上的尝试

Thursday, April 25, 2024 閱讀
Hero Image
Go Style Decisions - Pass values

Go Style Decisions - Pass values 不要僅僅為了節省一些位元組而將指標作為函數參數傳遞。如果函數始終將其參數 x 讀取為 *x,則該參數不應該是指標。常見的實例包括傳遞指向字串的指標 (*string) 或指向介面值的指標 (*io.Reader)。在這兩種情況下,值本身都是固定大小的,可以直接傳遞。 此建議不適用於大型結構,甚至不適用於可能增加大小的小型結構。特別是,協定緩衝區訊息通常應透過指標而不是值來處理。指標類型滿足 proto.Message 介面(被 proto.Marshal 、 protocmp.Transform 等接受),且協定緩衝區訊息可能非常大,並且通常會隨著時間的推移而變得更大。

Saturday, April 13, 2024 閱讀
Hero Image
LLM Visualization

LLM Visualization Github

Sunday, January 21, 2024 閱讀
Hero Image
A python script that allows your terminal to snow.

A python script that allows your terminal to snow. docker run --rm -ti sontek/snowmachine tree --color rainbow --particle "*" --snow true --lights-color rainbow

Sunday, December 24, 2023 閱讀
Hero Image
Add SFTP user and share directory

Add SFTP user and share directory dev_test_user, qa_test_user 同權限 dev_user, qa_user 同權限 1. 建立共享資料夾(SFTP 使用的資料夾) sudo mkdir -p /home/{test,prod}/{exchange,upload} sudo mkdir -p /home/{test,prod}/exchange/success sudo mkdir -p /home/{test,prod}/upload/backup 2. 建立使用者群組 sudo groupadd share01-test sudo groupadd share01-prod 3. 創建 qa_test_user 使用者並設定 qa_test_user 使用者的群組為 share01-test sudo useradd -m -G share01-test qa_test_user # 設定 dev_test_user 使用者的群組為 share01-test sudo usermod -G share01-test dev_test_user # 設定密碼 sudo passwd qa_test_user 4. 創建 qa_user 使用者並設定 qa_user 使用者的群組為 share01-prod sudo useradd -m -G share01-prod qa_user # 設定 dev_user 使用者的群組為 share01-prod sudo usermod -G share01-prod dev_user # 設定密碼 sudo passwd qa_user 5. 設定權限 # 設定 /home/test 資料夾(含下級資料夾)的使用者為 qa_test_user,群組為 share01-test sudo chown -R qa_test_user:share01-test test/ # 設定 /home/prod 資料夾(含下級資料夾)的使用者為 qa_user,群組為 share01-prod sudo chown -R qa_user:share01-prod prod/ # SFTP 登入資料夾權限要給 root sudo chown root:root /home/test sudo chown root:root /home/prod 6. 設定 /etc/ssh/sshd_config /etc/ssh/sshd_config

Thursday, November 30, 2023 閱讀
Hero Image
Use terminal and SSH to remote host

Use terminal and SSH to remote host 1. Modern Terminals Hyper iTerm2 Tabby Warp Wez’s Terminal WindTerm 2. Open terminal in macOS ⌘ + space open Spotlight search terminal.app press ↩ 3. SSH to remote host ensure the private key file path. enter the command in the terminal: ssh -i /path/to/private_key.pem ubuntu@ubuntu.host.com

Friday, November 24, 2023 閱讀
Hero Image
Fetch GraphQL schema information

curl \ -XPOST \ -H "Content-Type: application/json" \ -d '{"query":"{__schema { types { name enumValues { name } fields { name type {name kind enumValues { name } ofType { name kind ofType {name kind}}}}}}}"}' \ https://example.com/graphql

Wednesday, October 18, 2023 閱讀
  • ««
  • «
  • 1
  • 2
  • 3
  • 4
  • 5
  • »
  • »»
導覽列
  • 關於
  • 技能
  • 經歷
  • 學歷
  • 專案
聯絡方式:
  • zeyanlin@outlook.com
  • linzeyan
  • Ricky
  • Ricky
  • Ricky