{
 "cron 排程:語法與常見陷阱#1": {
  "type": "cards",
  "reveal": [
   0,
   0,
   1,
   2,
   3,
   4
  ],
  "cards": [
   {
    "title": "*",
    "points": [
     "每一個"
    ]
   },
   {
    "title": ",",
    "points": [
     "列舉",
     "例:1,15"
    ]
   },
   {
    "title": "-",
    "points": [
     "範圍",
     "例:星期欄 1-5"
    ]
   },
   {
    "title": "/",
    "points": [
     "間隔",
     "例:*/5"
    ]
   }
  ]
 },
 "cron 排程:語法與常見陷阱#2": {
  "type": "flow",
  "layout": "snake",
  "reveal": [
   0,
   6,
   6,
   6
  ],
  "nodes": [
   {
    "label": "分",
    "sub": "0-59"
   },
   {
    "label": "時",
    "sub": "0-23"
   },
   {
    "label": "日",
    "sub": "1-31"
   },
   {
    "label": "月",
    "sub": "1-12"
   },
   {
    "label": "星期",
    "sub": "0-7,0 和 7 是週日"
   },
   {
    "label": "指令",
    "sub": "最後才是指令"
   }
  ]
 },
 "cron 排程:語法與常見陷阱#3": {
  "type": "table",
  "reveal": [
   0,
   1,
   2,
   3
  ],
  "head": [
   "時間欄位",
   "意思"
  ],
  "rows": [
   [
    "30 2 * * *",
    "每天 02:30 備份"
   ],
   [
    "*/10 * * * *",
    "每 10 分鐘一次"
   ],
   [
    "0 9 * * 1-5",
    "週一到週五 09:00"
   ]
  ],
  "widths": [
   2,
   3
  ]
 },
 "cron 排程:語法與常見陷阱#6": {
  "type": "table",
  "reveal": [
   0,
   1,
   2,
   3,
   4
  ],
  "head": [
   "指令",
   "用途"
  ],
  "rows": [
   [
    "crontab -e",
    "編輯自己的排程"
   ],
   [
    "crontab -l",
    "列出自己的排程"
   ],
   [
    "sudo crontab -u alice -l",
    "查看別人的排程"
   ],
   [
    "crontab -r",
    "刪除全部,無確認!"
   ]
  ],
  "widths": [
   3,
   3
  ]
 },
 "cron 排程:語法與常見陷阱#7": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2
  ],
  "cards": [
   {
    "title": "/etc/crontab 與 cron.d",
    "points": [
     "多一欄使用者",
     "套件與管理員常用"
    ]
   },
   {
    "title": "cron.hourly/daily/weekly/monthly",
    "points": [
     "放可執行腳本",
     "檔名只能英數底線連字號"
    ]
   }
  ]
 },
 "systemd timer 與排程選擇#1": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   5
  ],
  "cards": [
   {
    "title": ".service",
    "points": [
     "描述要執行的工作",
     "Type 通常是 oneshot"
    ]
   },
   {
    "title": ".timer",
    "points": [
     "決定何時觸發"
    ]
   },
   {
    "title": "journald",
    "points": [
     "日誌自動進 journal",
     "journalctl 可查"
    ]
   },
   {
    "title": "Persistent=true",
    "points": [
     "錯過的排程",
     "開機後補跑"
    ]
   },
   {
    "title": "資源與安全",
    "points": [
     "可套用資源限制",
     "可指定執行使用者"
    ]
   }
  ]
 },
 "systemd timer 與排程選擇#2": {
  "type": "table",
  "reveal": [
   0,
   2
  ],
  "head": [
   "情境",
   "選擇"
  ],
  "rows": [
   [
    "簡單的一行排程",
    "cron"
   ],
   [
    "要日誌、相依、補跑",
    "systemd timer"
   ]
  ],
  "widths": [
   3,
   2
  ]
 },
 "systemd timer 與排程選擇#6": {
  "type": "table",
  "reveal": [
   0,
   1,
   2,
   3,
   3,
   4
  ],
  "head": [
   "設定",
   "值"
  ],
  "rows": [
   [
    "OnCalendar",
    "*-*-* 02:30:00"
   ],
   [
    "Persistent",
    "true,錯過會補跑"
   ],
   [
    "RandomizedDelaySec",
    "300,隨機延後"
   ],
   [
    "WantedBy",
    "timers.target"
   ]
  ],
  "widths": [
   2,
   3
  ]
 },
 "systemd timer 與排程選擇#7": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   1,
   2,
   3
  ],
  "nodes": [
   {
    "label": "daemon-reload",
    "sub": "重新讀取單元檔"
   },
   {
    "label": "enable --now",
    "sub": "啟用並啟動 timer"
   },
   {
    "label": "list-timers",
    "sub": "確認在清單中",
    "kind": "end"
   }
  ]
 },
 "日誌系統:journald、rsyslog 與 logrotate#2": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   4
  ],
  "cards": [
   {
    "title": "journald",
    "points": [
     "二進位格式",
     "用 journalctl 讀"
    ]
   },
   {
    "title": "rsyslog",
    "points": [
     "傳統文字格式",
     "寫到 /var/log"
    ]
   },
   {
    "title": "Debian / Ubuntu",
    "points": [
     "綜合:syslog",
     "認證:auth.log"
    ]
   },
   {
    "title": "Red Hat 系列",
    "points": [
     "綜合:messages",
     "認證:secure"
    ]
   }
  ]
 },
 "日誌系統:journald、rsyslog 與 logrotate#4": {
  "type": "table",
  "reveal": [
   0,
   5
  ],
  "head": [
   "等級",
   "名稱"
  ],
  "rows": [
   [
    "0",
    "emerg"
   ],
   [
    "3",
    "err"
   ],
   [
    "4",
    "warning"
   ],
   [
    "6",
    "info"
   ],
   [
    "7",
    "debug"
   ]
  ],
  "widths": [
   1,
   2
  ]
 },
 "日誌系統:journald、rsyslog 與 logrotate#7": {
  "type": "table",
  "reveal": [
   0,
   1,
   2,
   3
  ],
  "head": [
   "指令",
   "用途"
  ],
  "rows": [
   [
    "journalctl --disk-usage",
    "日誌佔用的磁碟空間"
   ],
   [
    "journalctl --list-boots",
    "列出每一次開機"
   ],
   [
    "dmesg -T",
    "核心訊息,可篩錯誤、OOM"
   ]
  ],
  "widths": [
   3,
   3
  ]
 },
 "系統監控:負載、記憶體、磁碟與 I/O#2": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   3
  ],
  "cards": [
   {
    "title": "uptime",
    "points": [
     "現在時間",
     "開機多久",
     "登入人數",
     "load average"
    ]
   },
   {
    "title": "load average",
    "points": [
     "1、5、15 分鐘平均",
     "要除以核心數",
     "四核心:負載 4 約滿載"
    ]
   },
   {
    "title": "top 的 CPU 列",
    "points": [
     "us 使用者程式",
     "sy 核心",
     "id 閒置",
     "wa 等磁碟",
     "st 虛擬機被超賣"
    ]
   }
  ]
 },
 "系統監控:負載、記憶體、磁碟與 I/O#6": {
  "type": "bar",
  "unit": "Gi",
  "labels": [
   "總量",
   "已使用",
   "空閒",
   "快取",
   "可用"
  ],
  "values": [
   7.7,
   2.1,
   1.2,
   4.4,
   5.3
  ],
  "highlight": 4,
  "reveal": [
   0,
   0,
   5,
   5
  ]
 }
}