Logo Ricky
  • Home
  • About
  • More
    Skills Experiences Education Projects
  • Posts
  • Notes
  • Activities
  • Running
  • English
    English Chinese
  • Dark Theme
    Light Theme Dark Theme System Theme
Logo Inverted Logo
  • Posts
  • 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 Introduction
  • Cloudflare Tunnel
  • Cloudflare Zero Trust
  • Configuring SSH Keys for Multiple GitHub Accounts
  • Container security fundamentals
  • datavizproject
  • Docker Introduction
  • Emoji Regular expression
  • 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 notes
  • 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
  • Tuning EMQX to Scale to One Million Concurrent Connection on Kubernetes
  • 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大師論壇:人工智慧如何形塑人類未來
Hero Image
Emoji Regular expression

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

Sunday, May 19, 2024 Read
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 Read
Hero Image
LLMs Hackmd Docs

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

Friday, May 10, 2024 Read
Hero Image
Taide - training data

Taide - training data

Saturday, April 27, 2024 Read
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 Read
Hero Image
一文读不懂的 Go 1.21 GA 的 PGO 优化——一次在 WebP Server Go 上的尝试

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

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

Go Style Decisions - Pass values Do not pass pointers as function arguments just to save a few bytes. If a function reads its argument x only as *x throughout, then the argument shouldn’t be a pointer. Common instances of this include passing a pointer to a string (*string) or a pointer to an interface value (*io.Reader). In both cases, the value itself is a fixed size and can be passed directly.

Saturday, April 13, 2024 Read
Hero Image
LLM Visualization

LLM Visualization Github

Sunday, January 21, 2024 Read
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 Read
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 Read
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 Read
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 Read
  • ««
  • «
  • 1
  • 2
  • 3
  • 4
  • 5
  • »
  • »»
Navigation
  • About
  • Skills
  • Experiences
  • Education
  • Projects
Contact me:
  • zeyanlin@outlook.com
  • linzeyan
  • Ricky
  • Ricky
  • Ricky