Compare commits

...

4 Commits

Author SHA1 Message Date
0d8b55369b vault backup: 2024-02-23 09:56:40 2024-02-23 09:56:40 +08:00
10f4a9d9ba vault backup: 2024-02-20 22:11:52 2024-02-20 22:11:52 +08:00
f077bcaec1 vault backup: 2024-02-20 21:38:12 2024-02-20 21:38:12 +08:00
9f152a8bb3 vault backup: 2024-02-20 21:31:52 2024-02-20 21:31:52 +08:00
11 changed files with 1184 additions and 18 deletions

View File

@@ -0,0 +1,14 @@
[
"table-editor-obsidian",
"dataview",
"obsidian-rollover-daily-todos",
"todoist-sync-plugin",
"obsidian-columns",
"obsidian-tasks-plugin",
"oz-image-plugin",
"periodic-notes",
"obsidian-git",
"obsidian-quiet-outline",
"obsidian-tracker",
"hk-code-block"
]

View File

@@ -0,0 +1,22 @@
{
"useTitleGlobal": "default off, but on when specified",
"useCollapsibleGlobal": "default on, but off when specified",
"defaultCollapse": "expand",
"showCollapseBtn": true,
"useLinenosGlobal": "default on, but off when specified",
"defaultLinenosStart": 1,
"showLinenosSplitter": true,
"useHighlightGlobal": "default off, but on when specified",
"highlightColor": "#ff0000",
"useLanguageGlobal": "default on, but off when specified",
"defaultLanguage": "plain text",
"useCopyBtnGlobal": "default on, but off when specified",
"usePromptGlobal": "default on, but off when specified",
"promptingLanguages": [
"bash"
],
"defaultPrompt": "$",
"useResultGlobal": true,
"defaultResultPrompt": "Result",
"debugMode": false
}

627
.obsidian/plugins/hk-code-block/main.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,11 @@
{
"id": "hk-code-block",
"name": "HK Code Block",
"version": "0.4.1",
"minAppVersion": "1.0.0",
"description": "Obsidian plugin developed by Heekang Park; Make code block looking good on reading view",
"author": "Heekang Park",
"authorUrl": "https://github.com/HeekangPark",
"fundingUrl": "",
"isDesktopOnly": false
}

File diff suppressed because one or more lines are too long

236
.obsidian/workspace-AWIN-DESKMEET.json vendored Normal file
View File

@@ -0,0 +1,236 @@
{
"main": {
"id": "fd76501ab5551c59",
"type": "split",
"children": [
{
"id": "88d942ffc79a2389",
"type": "tabs",
"children": [
{
"id": "182a7e73c49d10ce",
"type": "leaf",
"state": {
"type": "empty",
"state": {}
}
}
]
}
],
"direction": "vertical"
},
"left": {
"id": "c03b931709aac93a",
"type": "split",
"children": [
{
"id": "262a6c92848bc73a",
"type": "tabs",
"children": [
{
"id": "f69acad103e7f817",
"type": "leaf",
"state": {
"type": "file-explorer",
"state": {
"sortOrder": "alphabetical"
}
}
},
{
"id": "bad194a4534ef74b",
"type": "leaf",
"state": {
"type": "search",
"state": {
"query": "",
"matchingCase": false,
"explainSearch": false,
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical"
}
}
},
{
"id": "e41d3ba9ac328959",
"type": "leaf",
"state": {
"type": "bookmarks",
"state": {}
}
}
]
}
],
"direction": "horizontal",
"width": 267.49999618530273
},
"right": {
"id": "bb4f1f6a5dddbb12",
"type": "split",
"children": [
{
"id": "e04f7f5c2b67b828",
"type": "tabs",
"children": [
{
"id": "71679272f2e33a87",
"type": "leaf",
"state": {
"type": "backlink",
"state": {
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
"showSearch": false,
"searchQuery": "",
"backlinkCollapsed": false,
"unlinkedCollapsed": true
}
}
},
{
"id": "e7f5fe3d8a7d256b",
"type": "leaf",
"state": {
"type": "outline",
"state": {}
}
},
{
"id": "bac9d59fdcd09bd8",
"type": "leaf",
"state": {
"type": "advanced-tables-toolbar",
"state": {}
}
},
{
"id": "61119a6658ef61a6",
"type": "leaf",
"state": {
"type": "all-properties",
"state": {
"sortOrder": "frequency",
"showSearch": false,
"searchQuery": ""
}
}
},
{
"id": "d24e22dd36a5a962",
"type": "leaf",
"state": {
"type": "file-properties",
"state": {}
}
},
{
"id": "4a0bb3cb0b31da42",
"type": "leaf",
"state": {
"type": "quiet-outline",
"state": {}
}
}
],
"currentTab": 5
},
{
"id": "ae4bf98badbfc7ee",
"type": "tabs",
"children": [
{
"id": "18b9707a37e1188a",
"type": "leaf",
"state": {
"type": "tag",
"state": {
"sortOrder": "frequency",
"useHierarchy": true
}
}
}
]
}
],
"direction": "horizontal",
"width": 319.5
},
"left-ribbon": {
"hiddenItems": {
"table-editor-obsidian:Advanced Tables Toolbar": false,
"switcher:開啟快速切換": false,
"graph:查看關聯圖": false,
"canvas:建立新畫布": false,
"daily-notes:開啟今天的每日筆記": false,
"templates:插入模板": false,
"command-palette:開啟命令面板": false,
"markdown-importer:開啟 Markdown 格式轉換器": false,
"random-note:開始漫遊筆記": false,
"workspaces:管理工作區配置": false,
"periodic-notes:Open today": false
}
},
"active": "182a7e73c49d10ce",
"lastOpenFiles": [
"05. 資料收集/Programming/C++/万字避坑指南C++ 的缺陷与思考(上).md",
"05. 資料收集/Programming/C++/Modern C++ use in Chromium.md",
"05. 資料收集/Programming/C++/Modern C++ The good parts.md",
"05. 資料收集/Programming/C++/A cheatsheet of modern C++ language and library features.md",
"05. 資料收集/Programming/C++/C++20, How Hard Could It Be.md",
"05. 資料收集/Linux/Docker.md",
"05. 資料收集/軟體工具、設定/Windows Terminal.md",
"orphaned files output.md",
"attachments/Pasted image 20210722145433.png",
"attachments/Pasted image 20220908123355.png",
"attachments/Pasted image 20210818115458.png",
"attachments/Pasted image 20210422205534.png",
"attachments/Pasted image 20210722093705.png",
"attachments/Pasted image 20230504183452.png",
"attachments/Pasted image 20220506145247.png",
"attachments/Pasted image 20210125183754.png",
"attachments/para_example.png",
"attachments/Pasted image 20220815135248.png",
"10. 工作/01. Logitech/Bolide.md",
"Pasted image 20230426213611.png.md",
"Pasted image 20230418111423.png.md",
"02. 個人Daily/2023/01/2023-01-12(週四).md",
"broken links output.md",
"empty files.md",
"02. 個人Daily/2020/12/2020-12-22(Tue).md",
"02. 個人Daily/2020/12/2020-12-27(Sun).md",
"02. 個人Daily/2021/01/2021-01-14(Thu).md",
"02. 個人Daily/2021/01/2021-01-25(Mon).md",
"02. 個人Daily/2021/01/2021-01-28(Thu).md",
"02. 個人Daily/2021/02/2021-02-03(Wed).md",
"02. 個人Daily/2021/02/2021-02-04(Thu).md",
"05. 資料收集/Linux/確認日誌的完整性.md",
"05. 資料收集/Programming/Keras/categorical_crossentropy.md",
"05. 資料收集/Programming/Keras/An example that use categorical_crossentropy and softmax.md",
"05. 資料收集/Linux/journalctl.md",
"02. 個人Daily/2020/12/2020-12-03(Thu).md",
"05. 資料收集/裝置設定",
"05. 資料收集/Programming/OpenCV",
"05. 資料收集/Programming/numpy",
"05. 資料收集/Programming/Keras",
"00. Inbox/自我成長.canvas",
"00. Inbox/vc-fwUpdate code trace(Meetup).canvas",
"00. Inbox/My Mindmap.canvas",
"05. 資料收集/Windows/_Map.canvas",
"05. 資料收集/Programming/C++",
"00. Inbox/CPU Performance Control.canvas",
"05. 資料收集/Linux/_Map.canvas",
"00. Inbox/雜",
"05. 資料收集/樹莓派/_Map.canvas",
"00. Inbox/暫記:以後可能會用到",
"05. 資料收集/Windows",
"00. Inbox/Side project",
"00. Inbox/給孩子的簡報",
"01. 個人/讀書筆記/20240101 - 筆記的魔力.canvas",
"未命名 1.canvas",
"未命名.canvas"
]
}

View File

@@ -23,7 +23,7 @@ docker run -d \
``` ```
### 或使用 docke-compose.yml ### 或使用 docke-compose.yml
```yml ```yaml
version: "3" version: "3"
services: services:
watchtower: watchtower:

View File

@@ -2,25 +2,28 @@
"nodes":[ "nodes":[
{"id":"6c6ff5d0e7850ea8","type":"group","x":920,"y":-360,"width":940,"height":1280,"label":"Docker"}, {"id":"6c6ff5d0e7850ea8","type":"group","x":920,"y":-360,"width":940,"height":1280,"label":"Docker"},
{"id":"e94c9e71b9aeaa89","type":"group","x":440,"y":-360,"width":400,"height":1100,"label":"基本設定"}, {"id":"e94c9e71b9aeaa89","type":"group","x":440,"y":-360,"width":400,"height":1100,"label":"基本設定"},
{"id":"acb6cf6a8010bb24","type":"group","x":1940,"y":-360,"width":480,"height":349,"label":"備份設定"}, {"id":"368b491f60ea8823","type":"group","x":-720,"y":273,"width":480,"height":647,"label":"工具設定"},
{"id":"d624199752cf24de","type":"text","text":"![[更新與安裝工具]]","x":460,"y":-340,"width":360,"height":120}, {"id":"acb6cf6a8010bb24","type":"group","x":-720,"y":-360,"width":480,"height":349,"label":"備份設定"},
{"id":"6875474760fafe7c","type":"text","text":"![[raspi-config]]","x":460,"y":-200,"width":360,"height":140},
{"id":"6e59f6b9f36b24e2","type":"text","text":"![[安裝]]","x":-40,"y":132,"width":383,"height":177}, {"id":"6e59f6b9f36b24e2","type":"text","text":"![[安裝]]","x":-40,"y":132,"width":383,"height":177},
{"id":"a63a5baed201beda","type":"text","text":"![[設定日誌大小]]","x":460,"y":163,"width":360,"height":180}, {"id":"a63a5baed201beda","type":"text","text":"![[設定日誌大小]]","x":460,"y":163,"width":360,"height":180},
{"id":"b77234a9cdf72aad","type":"text","text":"# 安裝 docker\n[[Docker|Docker]]","x":940,"y":-340,"width":440,"height":120},
{"id":"d0711febf5985ed5","type":"text","text":"# 安裝nginx-certbot\n教學: [iT 邦幫忙::一起幫忙解決難題,拯救 IT 人的一天](https://ithelp.ithome.com.tw/m/articles/10301801\n\nGithub: [JonasAlfredsson/docker-nginx-certbot: Automatically create and renew website certificates for free using the Let's Encrypt certificate authority.](https://github.com/JonasAlfredsson/docker-nginx-certbot)","x":940,"y":-190,"width":440,"height":240},
{"id":"b900ad17a2841b99","type":"text","text":"# 安裝 Filebrowser\n[官方安裝流程](https://filebrowser.org/installation#docker)","x":1400,"y":-340,"width":440,"height":120},
{"id":"bc030994aafc5a3b","type":"text","text":"![[05. 資料收集/樹莓派/bashrc]]","x":460,"y":-37,"width":360,"height":177}, {"id":"bc030994aafc5a3b","type":"text","text":"![[05. 資料收集/樹莓派/bashrc]]","x":460,"y":-37,"width":360,"height":177},
{"id":"f210470376a4829d","type":"text","text":"![[設定Cloudflare DDNS]]","x":460,"y":370,"width":360,"height":150}, {"id":"f210470376a4829d","type":"text","text":"![[設定Cloudflare DDNS]]","x":460,"y":370,"width":360,"height":150},
{"id":"d624199752cf24de","type":"text","text":"![[更新與安裝工具]]","x":460,"y":-340,"width":360,"height":120},
{"id":"6875474760fafe7c","type":"text","text":"![[raspi-config]]","x":460,"y":-200,"width":360,"height":140},
{"id":"ef9431e16c90f57f","type":"text","text":"設定![[smb client]]","x":460,"y":540,"width":360,"height":180}, {"id":"ef9431e16c90f57f","type":"text","text":"設定![[smb client]]","x":460,"y":540,"width":360,"height":180},
{"id":"2a7d5efcc0f2dc0e","type":"text","text":"# 安裝 Portainer\n教學 [Portainer一款圖形化容器管理工具方格子 vocus](https://vocus.cc/article/643e9f74fd89780001b51739)\n\n官網[Portainer: Container Management Software for Kubernetes and Docker](https://www.portainer.io/)","x":940,"y":489,"width":440,"height":191}, {"id":"b77234a9cdf72aad","type":"text","text":"# 安裝 docker\n[[Docker#安裝]]","x":940,"y":-340,"width":440,"height":120},
{"id":"8cac63e48dff1f2a","type":"text","text":"# 安裝 Gitea\n官方教學[Installation with Docker](https://docs.gitea.com/installation/install-with-docker)\n\n設定Gmail寄信[Gitea 使用 Gmail 寄信 - 筆記ZONE](https://zonego.tw/2021/11/14/gitea-gmail/)\n","x":940,"y":80,"width":440,"height":140}, {"id":"8cac63e48dff1f2a","type":"text","text":"# 安裝 Gitea\n官方教學[Installation with Docker](https://docs.gitea.com/installation/install-with-docker)\n\n設定Gmail寄信[Gitea 使用 Gmail 寄信 - 筆記ZONE](https://zonego.tw/2021/11/14/gitea-gmail/)\n","x":940,"y":80,"width":440,"height":140},
{"id":"94fa9ef036dbe62a","type":"text","text":"# Speedtest 測試\n超簡單命令`docker run --rm robinmanuelthiel/speedtest:latest`\n\nGithub: [robinmanuelthiel/speedtest: Check internet bandwidth from a Docker container and save the results to an InfluxDB](https://github.com/robinmanuelthiel/speedtest)","x":940,"y":253,"width":440,"height":207}, {"id":"94fa9ef036dbe62a","type":"text","text":"# Speedtest 測試\n超簡單命令`docker run --rm robinmanuelthiel/speedtest:latest`\n\nGithub: [robinmanuelthiel/speedtest: Check internet bandwidth from a Docker container and save the results to an InfluxDB](https://github.com/robinmanuelthiel/speedtest)","x":940,"y":253,"width":440,"height":207},
{"id":"b900ad17a2841b99","type":"text","text":"# 安裝 Filebrowser\n[官方安裝流程](https://filebrowser.org/installation#docker)","x":1400,"y":-340,"width":440,"height":120},
{"id":"2a7d5efcc0f2dc0e","type":"text","text":"# 安裝 Portainer\n教學 [Portainer一款圖形化容器管理工具方格子 vocus](https://vocus.cc/article/643e9f74fd89780001b51739)\n\n官網[Portainer: Container Management Software for Kubernetes and Docker](https://www.portainer.io/)","x":940,"y":489,"width":440,"height":191},
{"id":"94f3e389e2687b35","type":"text","text":"# 安裝 Watch Tower\n![[Watchtower#或使用 docke-compose.yml|docke-compose.yml]]","x":1400,"y":-190,"width":440,"height":322}, {"id":"94f3e389e2687b35","type":"text","text":"# 安裝 Watch Tower\n![[Watchtower#或使用 docke-compose.yml|docke-compose.yml]]","x":1400,"y":-190,"width":440,"height":322},
{"id":"d0711febf5985ed5","type":"text","text":"# 安裝nginx-certbot\n教學: [iT 邦幫忙::一起幫忙解決難題,拯救 IT 人的一天](https://ithelp.ithome.com.tw/m/articles/10301801\n\nGithub: [JonasAlfredsson/docker-nginx-certbot: Automatically create and renew website certificates for free using the Let's Encrypt certificate authority.](https://github.com/JonasAlfredsson/docker-nginx-certbot)","x":940,"y":-190,"width":440,"height":240},
{"id":"3f1bf9d99d9d544d","type":"text","text":"# 安裝 [Nextcloud](https://nextcloud.com/)\n![[Nextcloud]]","x":1400,"y":489,"width":440,"height":191},
{"id":"dac28a6e83be787c","type":"text","text":"# 安裝 Grafana\n![[Grafana]]","x":940,"y":720,"width":440,"height":180},
{"id":"fc32cf264646fdec","type":"text","text":"# 安裝 Storj\n![[Storj]]","x":1400,"y":160,"width":440,"height":300}, {"id":"fc32cf264646fdec","type":"text","text":"# 安裝 Storj\n![[Storj]]","x":1400,"y":160,"width":440,"height":300},
{"id":"ff16e3814718d144","type":"text","text":"# 設定 crontab\n1. 用[[ddns.sh]]定時更新DNS\n2. 用[[backup_docker_gitea.sh]]備份 gitea docker\n3. 用[[backup_pi.sh]]備份整張SD卡","x":1960,"y":-340,"width":440,"height":150}, {"id":"990363c918569555","type":"text","text":"# `~/.vimrc`\n![[vim]]","x":-700,"y":293,"width":440,"height":207},
{"id":"3f1bf9d99d9d544d","type":"text","text":"# 安裝 [Nxtcloud](https://nextcloud.com/)\n![[Nextcloud]]","x":1400,"y":489,"width":440,"height":191}, {"id":"e666f52a66610180","type":"text","text":"# `~/.bashrc`\n![[bashrc#Raspberry Pi]]","x":-700,"y":529,"width":440,"height":371},
{"id":"dac28a6e83be787c","x":940,"y":720,"width":440,"height":180,"type":"text","text":"# 安裝 Grafana\n![[Grafana]]"} {"id":"ff16e3814718d144","type":"text","text":"# 設定 crontab\n1. 用[[ddns.sh]]定時更新DNS\n2. 用[[backup_docker_gitea.sh]]備份 gitea docker\n3. 用[[backup_pi.sh]]備份整張SD卡","x":-700,"y":-340,"width":440,"height":150}
], ],
"edges":[ "edges":[
{"id":"9683c15c63c167c0","fromNode":"6e59f6b9f36b24e2","fromSide":"right","toNode":"e94c9e71b9aeaa89","toSide":"left"}, {"id":"9683c15c63c167c0","fromNode":"6e59f6b9f36b24e2","fromSide":"right","toNode":"e94c9e71b9aeaa89","toSide":"left"},
@@ -29,6 +32,7 @@
{"id":"f1a7af20d2d64873","fromNode":"bc030994aafc5a3b","fromSide":"bottom","toNode":"a63a5baed201beda","toSide":"top"}, {"id":"f1a7af20d2d64873","fromNode":"bc030994aafc5a3b","fromSide":"bottom","toNode":"a63a5baed201beda","toSide":"top"},
{"id":"64bd8b56a86d56af","fromNode":"a63a5baed201beda","fromSide":"bottom","toNode":"f210470376a4829d","toSide":"top"}, {"id":"64bd8b56a86d56af","fromNode":"a63a5baed201beda","fromSide":"bottom","toNode":"f210470376a4829d","toSide":"top"},
{"id":"28432d91108beecd","fromNode":"e94c9e71b9aeaa89","fromSide":"right","toNode":"6c6ff5d0e7850ea8","toSide":"left"}, {"id":"28432d91108beecd","fromNode":"e94c9e71b9aeaa89","fromSide":"right","toNode":"6c6ff5d0e7850ea8","toSide":"left"},
{"id":"999cc182541e11a4","fromNode":"6c6ff5d0e7850ea8","fromSide":"right","toNode":"acb6cf6a8010bb24","toSide":"left"} {"id":"d41526184a2da316","fromNode":"6e59f6b9f36b24e2","fromSide":"left","toNode":"acb6cf6a8010bb24","toSide":"right"},
{"id":"c9b1b55f4cf045bb","fromNode":"6e59f6b9f36b24e2","fromSide":"left","toNode":"368b491f60ea8823","toSide":"right"}
] ]
} }

View File

@@ -1,5 +0,0 @@
## `~/.bashrc`
```bash
alias ll='ls -al'
alias pwoff='sudo shutdown -h now'
```

View File

@@ -1,3 +1,4 @@
# PC
```bash ```bash
export PATH="/c/Users/ahuang11/AppData/Local/Android/Sdk/platform-tools:$PATH" export PATH="/c/Users/ahuang11/AppData/Local/Android/Sdk/platform-tools:$PATH"
@@ -71,3 +72,18 @@ function py310() {
set_py "3.10" "$@" set_py "3.10" "$@"
} }
``` ```
# Raspberry Pi
```bash
alias ll='ls -al'
alias poff='sudo shutdown -h now'
alias dcdown='sudo docker compose down'
alias dcup='sudo docker compose up -d'
alias dcrestart='sudo docker compose down ; sudo docker compose up -d'
alias dclog='sudo docker compose logs'
alias gs='git status'
alias gd='git diff'
alias gpush='git push'
alias gpull='git pull'
```

View File

@@ -1,5 +1,5 @@
### `~/.vimrc` ### `~/.vimrc`
```vim ```
set t_Co=256 set t_Co=256
colorscheme koehler colorscheme koehler