Posts by Tag

Python

Linebot Google Restaurant Machine Learning

less than 1 minute read

自 LINE 推出 API 後越來越多開發者分享, 今天就完全發落 pyladies 的gitbook 練習做習題. 內容有趣且詳細, 搭配 Line SDK 寫出美美的程式碼 (根本不是新手寫的!!) 功能: 用 “機器學習” 了解你”是否詢問” 餐廳or肚子餓. 並依據你提供的地址回答隨機一間附近的美食

Linebot Django 8

less than 1 minute read

LINE BOT Message 初學者記錄(八)  Casual template: Yelp restaurant + Location 為了能在各國旅遊時可以方便找到優質餐廳, 結合 Location 和 Yelp 即可輕鬆達成

Linebot Django 4

less than 1 minute read

LINE BOT Message 初學者記錄(四) 由於初步功能完成後 Azure 試用也到期了. 忍痛轉移平台到 RHC. 中間曾試過 AWS EC2(一年試用), 可惜 Domain & SSL 持續沒搞定 ORZ. 只好躲在朋友 RHC 裡佔一個位置. 參考 Openshift 安裝使用 Op...

Linebot Django 3

less than 1 minute read

LINE BOT Message 初學者記錄(三) 參考 LINE 官方網站提供新的 API referense 加入不同 Messaging API 功能並做出: Weather, Eats, News

Linebot Django 1

1 minute read

LINE BOT 初學者記錄(一) 1. 申請 LINE BOT 帳號: 開放平台資源,LINE 提供 1 萬個免費「BOT API 試用」帳號申請 可以得出包含以下三個值:

Back to top ↑

Linebot

Linebot Google Restaurant Machine Learning

less than 1 minute read

自 LINE 推出 API 後越來越多開發者分享, 今天就完全發落 pyladies 的gitbook 練習做習題. 內容有趣且詳細, 搭配 Line SDK 寫出美美的程式碼 (根本不是新手寫的!!) 功能: 用 “機器學習” 了解你”是否詢問” 餐廳or肚子餓. 並依據你提供的地址回答隨機一間附近的美食

Linebot Django 8

less than 1 minute read

LINE BOT Message 初學者記錄(八)  Casual template: Yelp restaurant + Location 為了能在各國旅遊時可以方便找到優質餐廳, 結合 Location 和 Yelp 即可輕鬆達成

Linebot Django 4

less than 1 minute read

LINE BOT Message 初學者記錄(四) 由於初步功能完成後 Azure 試用也到期了. 忍痛轉移平台到 RHC. 中間曾試過 AWS EC2(一年試用), 可惜 Domain & SSL 持續沒搞定 ORZ. 只好躲在朋友 RHC 裡佔一個位置. 參考 Openshift 安裝使用 Op...

Linebot Django 3

less than 1 minute read

LINE BOT Message 初學者記錄(三) 參考 LINE 官方網站提供新的 API referense 加入不同 Messaging API 功能並做出: Weather, Eats, News

Linebot Django 1

1 minute read

LINE BOT 初學者記錄(一) 1. 申請 LINE BOT 帳號: 開放平台資源,LINE 提供 1 萬個免費「BOT API 試用」帳號申請 可以得出包含以下三個值:

Back to top ↑

Feature

Webp Basic

less than 1 minute read

WebP 是一種圖片檔案格式,  與 jpg 相同品質但檔案更小

Quic Basic

less than 1 minute read

在不需要任何修改的情況下就能提升 15% 以上的訪問速度 一般使用者基本上不太會考慮 QUIC 如何運作, 原理分析…等等 本篇只介紹 如何使用. 目前已知 Web Server 支援 QUIC 功能的僅 LSWS Enterprise Version. 有興趣也可參與   LiteSpeed QUIC Clie...

Config Ip2location

1 minute read

基於 IP 分辨使用者來源/國家, 並做出適當的回應. E.g. 德國來的 IP, 則直接回傳德文的網站網址. 都不符合則回傳英文網站網址. 更多使用, 如禁止某些國家的拜訪 本篇只介紹 如何使用 於LiteSpeed / Openlitespeed 上.

Back to top ↑

Grafana

Setup Grafana Alert On Slack

less than 1 minute read

繼上一篇 “伺服器效能監控Prometheus 與 Grafana 安裝教學”. 此篇介紹如何設定 Alert 直接先看結果. 當 Server CPU 高於設定值, 則 send to Slack  一張 CPU screenshot. 當 CPU 平均值降回正常, 則會再寄一張 CPU screensh...

Install Prometheus Grafana

1 minute read

Prometheus 是一個基於 Golang 語言所撰寫的服務效能測量監控系統。它通過 HTTP 協定從遠方機器收集數據並儲存於本機時序數據上。 本機須安裝 Prometheus 軟體, 而被監控的伺服器則需要安裝exporter 來收集監控數據. 我將使用 node_exporter 來當作範例. Grafa...

Back to top ↑

Cache

Warm Up Prestashop Cache

1 minute read

如果網站已安裝 Cache Plugin 但沒有提供 warmup(crawler)功能, 此篇可以教學如何使用 script 去產生每一頁的快取. 這樣第一次訪問的客戶都將可以快入的載入頁面.

Setup Magento2 Cache

1 minute read

跳步教學, 如何設定 Magento 2 + 樣品資料 + LiteMage Cache 環境: cPanel + LSWS + PHP7 + LiteMage + Magento 2.2 頁面載入時間 4.49s -> 15ms 頁面+網路延遲 載入時間 6.35s -> 1.64s

Compare Cache Plugins

less than 1 minute read

WordPress Caching Plugins 至少有以下常見的六種可使用. 但哪個 WordPress Cache plugin 最快最適合我呢? Benchmark 分別約多少? 我們將可以由下圖看出哪一項提供最快的服務, 同時也介紹附加功能. 以上測試於 AWS 上使用兩台 lightsail 最便宜...

Back to top ↑

WordPress

Setup Wordpress Multisite

less than 1 minute read

(教學)建立多個 WordPress 於同一個站上 Follow WordPress Doc Install WordPress 就先不介紹了

Compare Cache Plugins

less than 1 minute read

WordPress Caching Plugins 至少有以下常見的六種可使用. 但哪個 WordPress Cache plugin 最快最適合我呢? Benchmark 分別約多少? 我們將可以由下圖看出哪一項提供最快的服務, 同時也介紹附加功能. 以上測試於 AWS 上使用兩台 lightsail 最便宜...

Back to top ↑

OpenLiteSpeed

Cyberpanel 1.6

3 minute read

After introducing the concepts of Web Server Software & hosting control panel, we are moving on to hands on and build our very first web server using an ...

Back to top ↑

CyberPanel

Cyberpanel 1.6

3 minute read

After introducing the concepts of Web Server Software & hosting control panel, we are moving on to hands on and build our very first web server using an ...

Back to top ↑

LiteSpeed Web Server

Back to top ↑

CentOS 7

Install Craftcms 3

less than 1 minute read

快速安裝教學 準備環境: CentOS7 + PHP72 + cPanel + LSWS/Apache 從 WHM/cPanel 建立 user “democraftcms” 並建立 mysql database + user SSH to server and run following command

Back to top ↑

Mkdocs

Mkdocs Start

less than 1 minute read

  MkDocs 快速上手教學, 主要就是編輯 yml 檔案去更改 Theme 和 doc 語法

Install Mkdocs

less than 1 minute read

MkDocs 快速安裝教學 準備環境: Ubuntu 18.0.4 + Web Server (LiteSpeed or OpenLiteSpeed) Ubuntu 18 已內建 Python3 可方便安裝 mkdoc 新版(>1.0) 並支援更多語法

Back to top ↑

Optimize

Back to top ↑

Magento 2

Warm Up Magento2 Cache

1 minute read

如果網站已安裝 Cache Plugin 但沒有提供 warmup(crawler)功能, 此篇可以教學如何使用 script 去產生每一頁的快取. 這樣第一次訪問的客戶都將可以快入的載入頁面.

Setup Magento2 Cache

1 minute read

跳步教學, 如何設定 Magento 2 + 樣品資料 + LiteMage Cache 環境: cPanel + LSWS + PHP7 + LiteMage + Magento 2.2 頁面載入時間 4.49s -> 15ms 頁面+網路延遲 載入時間 6.35s -> 1.64s

Back to top ↑

Bash

Warm Up Prestashop Cache

1 minute read

如果網站已安裝 Cache Plugin 但沒有提供 warmup(crawler)功能, 此篇可以教學如何使用 script 去產生每一頁的快取. 這樣第一次訪問的客戶都將可以快入的載入頁面.

Warm Up Magento2 Cache

1 minute read

如果網站已安裝 Cache Plugin 但沒有提供 warmup(crawler)功能, 此篇可以教學如何使用 script 去產生每一頁的快取. 這樣第一次訪問的客戶都將可以快入的載入頁面.

Back to top ↑

Apache

Back to top ↑

Nginx

Back to top ↑

Heroku

Linebot Google Restaurant Machine Learning

less than 1 minute read

自 LINE 推出 API 後越來越多開發者分享, 今天就完全發落 pyladies 的gitbook 練習做習題. 內容有趣且詳細, 搭配 Line SDK 寫出美美的程式碼 (根本不是新手寫的!!) 功能: 用 “機器學習” 了解你”是否詢問” 餐廳or肚子餓. 並依據你提供的地址回答隨機一間附近的美食

Back to top ↑

Diaglogflow

Linebot Google Restaurant Machine Learning

less than 1 minute read

自 LINE 推出 API 後越來越多開發者分享, 今天就完全發落 pyladies 的gitbook 練習做習題. 內容有趣且詳細, 搭配 Line SDK 寫出美美的程式碼 (根本不是新手寫的!!) 功能: 用 “機器學習” 了解你”是否詢問” 餐廳or肚子餓. 並依據你提供的地址回答隨機一間附近的美食

Back to top ↑

Brotli

Back to top ↑

Web Server

Back to top ↑

Drupal 8

Back to top ↑

Varnish

Back to top ↑

IP2Location

Config Ip2location

1 minute read

基於 IP 分辨使用者來源/國家, 並做出適當的回應. E.g. 德國來的 IP, 則直接回傳德文的網站網址. 都不符合則回傳英文網站網址. 更多使用, 如禁止某些國家的拜訪 本篇只介紹 如何使用 於LiteSpeed / Openlitespeed 上.

Back to top ↑

CodiMD

Install Codemi

less than 1 minute read

Quick install Codimd locally in few commands

Back to top ↑

docker

Install Codemi

less than 1 minute read

Quick install Codimd locally in few commands

Back to top ↑

CraftCMS 3

Install Craftcms 3

less than 1 minute read

快速安裝教學 準備環境: CentOS7 + PHP72 + cPanel + LSWS/Apache 從 WHM/cPanel 建立 user “democraftcms” 並建立 mysql database + user SSH to server and run following command

Back to top ↑

DirectAdmin

Back to top ↑

CloudLinux

Back to top ↑

Magento 1.9

Back to top ↑

Prometheus

Install Prometheus Grafana

1 minute read

Prometheus 是一個基於 Golang 語言所撰寫的服務效能測量監控系統。它通過 HTTP 協定從遠方機器收集數據並儲存於本機時序數據上。 本機須安裝 Prometheus 軟體, 而被監控的伺服器則需要安裝exporter 來收集監控數據. 我將使用 node_exporter 來當作範例. Grafa...

Back to top ↑

Page Score

Back to top ↑

Page Speed

Back to top ↑

QUIC

Quic Basic

less than 1 minute read

在不需要任何修改的情況下就能提升 15% 以上的訪問速度 一般使用者基本上不太會考慮 QUIC 如何運作, 原理分析…等等 本篇只介紹 如何使用. 目前已知 Web Server 支援 QUIC 功能的僅 LSWS Enterprise Version. 有興趣也可參與   LiteSpeed QUIC Clie...

Back to top ↑

Slack

Setup Grafana Alert On Slack

less than 1 minute read

繼上一篇 “伺服器效能監控Prometheus 與 Grafana 安裝教學”. 此篇介紹如何設定 Alert 直接先看結果. 當 Server CPU 高於設定值, 則 send to Slack  一張 CPU screenshot. 當 CPU 平均值降回正常, 則會再寄一張 CPU screensh...

Back to top ↑

Jenkins

Back to top ↑

Docker

Back to top ↑

Blue Ocean

Back to top ↑

Multisite

Setup Wordpress Multisite

less than 1 minute read

(教學)建立多個 WordPress 於同一個站上 Follow WordPress Doc Install WordPress 就先不介紹了

Back to top ↑

Prestashop

Warm Up Prestashop Cache

1 minute read

如果網站已安裝 Cache Plugin 但沒有提供 warmup(crawler)功能, 此篇可以教學如何使用 script 去產生每一頁的快取. 這樣第一次訪問的客戶都將可以快入的載入頁面.

Back to top ↑

Ubuntu

Back to top ↑