# CSL的筆記 :house: [回筆記首頁](https://www.mirai.tw) [![hackmd-github-sync-badge](https://hackmd.io/B7_KbNXyRSGSKxny0cTKqg/badge)](https://hackmd.io/B7_KbNXyRSGSKxny0cTKqg) ###### tags: `Notes`, `Old`, `Index`,`Home` [toc] 隨著年紀越來越大,記憶力也逐漸消逝。是時候該做個筆記來幫助自己學習了! ## 0.LineBOT課程資料 112學年度第二學期LineBOT課程資料 (教師:林奇賢 辦公室:數學科) :arrow_right:[112學年度第二學期LineBOT課程資料](https://hackmd.io/8frig-3ZS2uMOgiLQVRmGQ) ## 1.markdown語法 花了半天學會的markdown語法,可不能忘記了! :arrow_right:[簡易的Markdown語法(on HackMD)](https://hackmd.io/@CSL/BJkKSZ1Os) :arrow_right:[簡易的Markdown語法(on GitHUB)](./Markdown) ## 2. Unit設定 Unit的設定可參閱Unit的官網 https://unit.nginx.org/configuration/ :arrow_right:[unit的簡易設定](https://hackmd.io/@CSL/HJopMcXOj) ## 3. VPS Linux re-build後設定 Linux裝好後設定指令step by step :arrow_right: [VPS Linux re-build後設定](https://hackmd.io/@CSL/Sk2BKOX_o) ## 4. ngrok轉發伺服器 在筆電寫app時,可使用ngrok將localhost:port導到外網中,常用於測試Bot app :arrow_right: [ngrok轉發伺服器](https://hackmd.io/@CSL/Hk6aDDQdi) ## 5. 網路上的Git筆記 Git指令會常常用到,連結一個筆記,以防忘記! :arrow_right: [Git 與 GitHub 起手式](https://medium.com/wenchin-rolls-around/git-%E8%88%87-github-%E8%B5%B7%E6%89%8B%E5%BC%8F-966e18da84f2) :arrow_right: [Git 個人常用指令筆記](https://icguanyu.github.io/other/git%E5%B8%B8%E7%94%A8%E6%8C%87%E4%BB%A4/) :arrow_right: [Git 官方教學文件](https://git-scm.com/book/zh-tw/v2) ## 6. Docker 很簡單-安裝現成的image 簡易版的 docker指令,我們可用它來封裝webapp :arrow_right: [Docker 很簡單-安裝現成的image](https://hackmd.io/@CSL/r1LkbTZuo) ## 7. Nginx 設定方法 Nginx的設定因不常更改常會忘記,做個筆記 :arrow_right: [Nginx 設定方法](https://hackmd.io/@CSL/H1Z_ikZOj) ## 8. Flask、Fastapi、Bottle與Python內建wsgi 這裡我們介紹寫Web API時常用的小框架,Python內建wsgi、Bottle、Flask、Fastapi入門寫法的比較 Bottle模組只有一個py檔,很小,是個通用型框架 :arrow_right: [Bottle與Python內建wsgi](https://hackmd.io/@CSL/SySo6HG_i) FastAPI效能高,新興的 web api的框架,資源沒flask多 :arrow_right: [FastAPI:asgi與Python內建wsgi](https://hackmd.io/@CSL/Hyzuh83Oo) Flask在網路上的資源非常豐富,開發app首選,效能比FastAPI略低,但之後有[apiflask](https://apiflask.com/)出現,不比FastAPI遜色 :arrow_right: [Flask與Python內建wsgi](https://hackmd.io/@CSL/ry3rWp8ds) ## 9. 製作Line Bot 連接 Line,來製作最簡單的 message api BOT :arrow_right: [Lesson 1](https://hackmd.io/@CSL/By2Q3GIdo) :arrow_right: [Lesson 2](https://hackmd.io/@CSL/r1pLWiC_i) :arrow_right: [Lesson 3](https://hackmd.io/mQAwolZvRKWQw5XSzFwMNg) :arrow_right: [Line - Message Api - Message types筆記](https://hackmd.io/@CSL/HkuqgjzYo) ## 10. python的環境設定與多版本管理 :arrow_right: [虛擬環境設定](https://hackmd.io/5WErNa21QmCUwEWmCEAu3g) :arrow_right: [update-alternatives︰管理指令和檔案的多個版本 (python的多版本管理)](https://hackmd.io/@CSL/r1j8oHgFj) ## 11. Nginx/Unit vs Gunicorn 效能與消耗資源比較 :arrow_right: [Nginx/Unit vs Gunicorn 效能與消耗資源比較](https://hackmd.io/@CSL/SJCnbHvKo) ## 12. 將LineBot移植到 Deta.sh :arrow_right: [將LineBot移植到Deta.sh](https://hackmd.io/@CSL/HJcsPvhOj) ## 13. WSL (Windows Subsystem for Linux) 安裝與使用教學 :arrow_right: [WSL (Windows Subsystem for Linux) 安裝與使用教學](https://hackmd.io/aitP3VASSj-5H_Dd7NV32A) ## 14. Deta.sh Micros Base Drive 使用方法 :arrow_right: [Deta.sh Micros Base Drive 使用方法](https://hackmd.io/mQiOGfQRSBCjHjx-EAHxHg) ## 15. Python Dict物件與JSON類型轉換 :arrow_right: [Python Dict物件與JSON類型轉換](https://hackmd.io/8-UqaQCfQnKDVdA5_eawMQ) ## 16. Python 連結NoSQL資料庫(Firebase)的 CRUD :arrow_right: [Python 連結NoSQL資料庫(Firebase)的 CRUD](https://hackmd.io/@CSL/BJVz8SFl3) Author: - [name=林奇賢]