發表文章

MS Office 免費大量授權

  MS Office 官方大量授權啟用步驟 下載 Office 部署工具 Download Office Deployment Tool from Official Microsoft Download Center 透過 Office 自訂工具,您可以在 Web 介面中輕鬆建立和修改組態檔。 標準設定檔範例 Office 部署工具的設定選項 - Deploy Office | Microsoft Learn 官方在線 Office 自訂工具 Microsoft 365 Apps 系統管理中心 (office.com)  MS Office 大量授權金鑰 KMS 和 Active Directory 型啟用 Office、Project 和 Visio 的 GVLK - Deploy Office | Microsoft Learn

python pandas dataframe to_html table

dataframe.to_html() 這個方法可以滙出 html 的表格(table code) DataFrame.to_html(buf = None,columns = None,col_space = None,header = True,index = True,na_rep ='NaN',formatters = None,float_format = None,sparsify = None,index_names = True,justify = None,bold_rows = True,classes = None,escape = True,max_rows = None,max_cols = None,show_dimensions = False,notebook = False,decimal ='.',border = None,table_id = None) 參數 index:bool,可選項 是否需要索引行標籤,預設為True , 不需要為 False. table_id: str ,可選項 添加<table>元素的id

docker 清理篇

 刪除沒有被使用的的資源. docker system prune WARNING! This will remove: - all stopped containers - all networks not used by at least one container - all dangling images - all dangling build cache Are you sure you want to continue? [y/N] 這佪不會清理掉未被使用的容器引用的數據卷,可使用參數 --volumes docker system prune --volumes WARNING! This will remove:   - all stopped containers   - all networks not used by at least one container   - all volumes not used by at least one container   - all dangling images   - all dangling build cache Are you sure you want to continue? [y/N] y

debian 10 apache2 VirtualHost

最基本的VirtualHost配置 新增配置文件 nano /etc/apache2/sites-available/example.hkcto.com.conf     <VirtualHost *:80>   ServerAdmin webmaster@example.hkcto.com DocumentRoot "/var/www/example.hkcto.com" ServerName example.hkcto.com ErrorLog "${APACHE_LOG_DIR}/example.hkcto.com-error_log" TransferLog "${APACHE_LOG_DIR}/example.hkcto.com-access_log" </VirtualHost>      2. 使VirtualHost 配置文件生效 a2ensite example.hkcto.com.conf     3. apache 重新加載配置文件 systemctl reload apache2

Debian 安裝 docker

apt-get remove docker docker-engine docker.io containerd runc -y apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common -y curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" apt-get update apt-get install docker-ce docker-ce-cli containerd.io -y apt-get remove docker docker-engine docker.io containerd runc -y apt-get install apt-transport-https ca-certificates curl gnupg2 software-proper$ curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $$ apt-get update apt-get install docker-ce docker-ce-cli containerd.io -y

Debian 安裝 Kubernetes

環境準備 debian Linux node01 192.168.99.22 (Master) node02 192.168.99.23 (Worker) Linux Node 預先關閉 swap 關閉 swap:  swapoff -a 註解  /etc/fstab 內裡的swap ,防止下次開機載入 swap 每部 debian linux 都需安裝 docker https://docs.docker.com/install/linux/docker-ce/debian/ Kubernetes 安裝開始 安裝 kubernetes 所需套件(node01和node02都需要安裝) apt-get update && apt-get install -y apt-transport-https curl gnupg2 curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - cat <<EOF>>/etc/apt/sources.list.d/kubernetes.list deb https://apt.kubernetes.io/ kubernetes-xenial main EOF apt-get update apt-get install -y kubelet kubeadm kubectl apt-mark hold kubelet kubeadm kubectl 初始化 Kubernetes cluster ( kubeadm init 這個初始化命令,不帶任何參數,全部使用默認值. 正常情況下都需使用參數  --pod-network-cidr= 需要參考所選的 Pod Network Plugin kubeadm reset 重設 kubernetes cluster 安裝 Pod Network (任選一個) 在這裡可以查看到相容的Pod Network Plugin:  Installing Addons | Kubernetes Calico Network:  Quickstart for Calico on K

HTML5 語意標籤

語意標籤的使用時機 / 意義 <header>:網頁的標頭,通常放置網站標題。 <nav>:網頁的選單、導覽。 <main>:網頁的主要內容。 <aside>:網頁的側欄、附加內容。 <article>:一篇文章內容。內容本身是有意義的.如新聞故事,評論 <section>:自訂的區塊,例如數篇摘要組成的空間。 <footer>:網頁的頁尾,通常放置聯絡方式、著作權宣告等等。 <mark>:強調一小塊內容。 <time>:顯示日期時間。