Skip to content

Instantly share code, notes, and snippets.

View androchentw's full-sized avatar
🧙
Go get it. Make it fun

陳俊安 (Chen Chun-An) androchentw

🧙
Go get it. Make it fun
View GitHub Profile
@androchentw
androchentw / 2023-05-07-dlai-chatgpt-prompt-engineering.md
Last active May 7, 2023 00:44
2023-05-07-dlai-chatgpt-prompt-engineering.md
  • 前情提要
    • 課程目標: 激發應用想像力
    • 明確指示: 將 LLM 視為 "聰明但不清楚任務細節的人"
    • 結合日常實務,改善流程
  • 02 準則 Guidelines
    1. 清晰且具體的指示 Clear and specific
      • 分隔符號 (```, ...)
      • 結構化輸出 (JSON, ...)
  • 🎨 when improving the format/structure of the code
  • 🚀 when improving performance
  • ✏️ when writing docs
  • 💡 new idea
  • 🚧 work in progress
  • ➕ when adding feature
  • ➖ when removing feature
  • 🔈 when adding logging
  • 🔇 when reducing logging
  • 🐛 when fixing a bug
@androchentw
androchentw / git_remote_set-url.md
Created August 14, 2021 03:06 — forked from fokayx/git_remote_set-url.md
Git switch remote URLs. Git 更換遠端伺服器倉庫網址

Git 更換遠端伺服器倉庫網址URL

1.確認目前Git遠端伺服器網址: git remote -v

git remote -v
origin  https://github.com/USERNAME/REPOSITORY.git (fetch)
origin  https://github.com/USERNAME/REPOSITORY.git (push)

2.更換Git遠端伺服器位網址,使用:git remote set-url

This is a Gist of useful Splunk Queries.

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@androchentw
androchentw / README.md
Created January 2, 2018 07:14 — forked from halr9000/README.md
How to make fake data in Splunk using SPL

How to make fake data in Splunk using SPL

Sometimes, you need to fake something in Splunk. Might be during development and you don't feel like writing a real search, but you really need a number for a dashboard panel to look right. Maybe you are helping someone with a hairy regex, and you don't want to index data just to test it on your instance. Whatever the reason, here are some searches that have helped me out.

Note that when using these techniques, you are not going through the indexing