Skip to content

Commit 7885fcf

Browse files
committed
update
1 parent 3e7d74e commit 7885fcf

13 files changed

+81
-35
lines changed

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ See the [LICENSE][] file for the specific language governing permissions and lim
7171
<li><a href="#%E8%BF%90%E7%BB%B4">运维</a></li>
7272
<li><a href="#%E5%85%B6%E4%BB%96">其他</a></li>
7373
<li><a href="#%E5%93%B2%E5%AD%A6">哲学</a></li>
74+
<li><a href="#%E7%AE%B4%E8%A8%80%E5%BD%95">箴言录</a></li>
7475
<li><a href="#python">Python</a></li>
7576
<li><a href="#racket">Racket</a></li>
7677
<li><a href="#redis">Redis</a></li>
@@ -305,6 +306,7 @@ See the [LICENSE][] file for the specific language governing permissions and lim
305306
- [学习 Bash](linux/bash-learning.md)
306307
- [Bash 的坑](linux/bash-pitfalls.md)
307308
- [Bash 小技巧](linux/bash-tricks.md)
309+
- [在容器中构建 Package](linux/build-package-in-container.md)
308310
- [CFS (Completely Fair Scheduler)](linux/cfs.md)
309311
- [更改默认 shell](linux/change-default-shell.md)
310312
- [命令格式标准](linux/command-arguments-syntax-standard.md)
@@ -316,7 +318,9 @@ See the [LICENSE][] file for the specific language governing permissions and lim
316318
- [CPU](linux/cpu.md)
317319
- [判断文件编码](linux/detect-encoding-of-file.md)
318320
- [diff 与 patch](linux/diff-and-patch.md)
321+
- [shutdown, poweroff, halt 的不同](linux/differences-between-shutdown-poweroff-halt.md)
319322
- [硬盘分区](linux/disk-partition.md)
323+
- [dnsmasq](linux/dnsmasq.md)
320324
- [du](linux/du.md)
321325
- [编辑二进制文件](linux/edit-binary-file.md)
322326
- [终端开启真彩色 (true color)](linux/enable-true-color-in-terminal.md)
@@ -367,6 +371,7 @@ See the [LICENSE][] file for the specific language governing permissions and lim
367371
- [strace](linux/strace.md)
368372
- [sudo and su](linux/sudo-and-su.md)
369373
- [Linux 系统调用](linux/system-call.md)
374+
- [systemd-resolved](linux/systemd-resolved.md)
370375
- [systemd](linux/systemd.md)
371376
- [tailf](linux/tailf.md)
372377
- [基于内存的虚拟文件系统 tmpfs/ramfs/RamDisk](linux/temporary-fs-in-memory.md)
@@ -521,6 +526,13 @@ See the [LICENSE][] file for the specific language governing permissions and lim
521526

522527
- [Toulmin Model](philosophy/toulmin-model.md)
523528

529+
## 箴言录
530+
531+
- [箴言录 - 人生](proverbs/life.md)
532+
- [箴言录 - 哲学](proverbs/philosophy.md)
533+
- [箴言录 - 编程](proverbs/programming.md)
534+
- [箴言录 - 学习](proverbs/study.md)
535+
524536
## Python
525537

526538
- [python 环境配置](python/environment.md)

build.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ exports.categoryNameMap = {
1616
math: '数学',
1717
security: '安全攻防',
1818
vm: '虚拟机',
19+
proverbs: '箴言录',
1920
};

linux/build-package-in-container.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 在容器中构建 Package
2+
3+
- Debian 系统使用 https://github.com/tsaarni/docker-deb-builder
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## shutdown, poweroff, halt 的不同
2+
3+
https://unix.stackexchange.com/a/196471

linux/dnsmasq.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## dnsmasq
2+
3+
dnsmasq 是一个轻量级 DNS 与 DHCP 服务器。

linux/systemd-resolved.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## systemd-resolved
2+
3+
systemd-resolved 是 systemd 的一部分,作为一个 service 启动。
4+
5+
它用软连接替换了 /etc/resolv.conf,来动态维护 DNS 配置。
6+
7+
```sh
8+
$ ls -l /etc/resolv.conf
9+
/etc/resolv.conf -> /run/systemd/resolve/resolv.conf
10+
```
11+
12+
`resolvectl status`

others/archive-webpage.md

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
互联网没有永久存在的资源,终有一天你会发现原来的资源内容改变,甚至消失。
44
最可以信赖的只有 archived 服务。这类服务在自身存活的时间内,永久保存网页当时的内容快照。
55

6+
### 使用场景
7+
8+
1. 当你打开某网络资源,发现它已经失效了。可以到 archived 服务查看是否有备份。
9+
2. 当你引用某网络资源,担心有一天它会失效。可以备份到 archived 服务,从而引用备份链接。
10+
611
### 推荐服务
712

813
#### https://archive.org/

others/maxim.md

+1-35
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,3 @@
11
## 箴言
22

3-
<!-- MarkdownTOC GFM -->
4-
5-
- [哲学](#哲学)
6-
- [学习](#学习)
7-
- [编程](#编程)
8-
- [人生](#人生)
9-
10-
<!-- /MarkdownTOC -->
11-
12-
### 哲学
13-
14-
> 君子教养有三(trivium):语法、修辞和逻辑:语法使人说话正确,修辞使人说话优雅、逻辑使人说话有条理。 —— 赛义甫
15-
16-
17-
### 学习
18-
19-
> 不登高山,不知天之高也;不临深谷,不知地之厚也;不闻先王之遗言,不知学问之大也。—— 荀况
20-
21-
> 兼听则明,偏信则暗
22-
23-
24-
### 编程
25-
26-
> 人生苦短,来不及找寻所有答案。—— Joe Armstrong
27-
28-
### 人生
29-
30-
> 人生如逆旅,你我皆行人
31-
32-
出自
33-
34-
> 一别都门三改火,天涯踏尽红尘。依然一笑作春温。无波真古井,有节是秋筠。
35-
> 惆怅孤帆连夜发,送行淡月微云。尊前不用翠眉颦。人生如逆旅,我亦是行人。
36-
>
37-
> 《临江仙·送钱穆父》苏轼
3+
重定向至[箴言录](../#%E7%AE%B4%E8%A8%80%E5%BD%95)

proverbs/life.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## 箴言录 - 人生
2+
3+
### 批判与批判
4+
5+
- [为什么人们不喜欢被批评? - John Hexa 的回答](https://archive.ph/qM6dL)
6+
7+
### 人生如逆旅,你我皆行人
8+
9+
> 一别都门三改火,天涯踏尽红尘。依然一笑作春温。无波真古井,有节是秋筠。
10+
> 惆怅孤帆连夜发,送行淡月微云。尊前不用翠眉颦。人生如逆旅,我亦是行人。
11+
12+
《临江仙·送钱穆父》苏轼

proverbs/philosophy.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## 箴言录 - 哲学
2+
3+
> 君子教养有三(trivium):语法、修辞和逻辑:语法使人说话正确,修辞使人说话优雅、逻辑使人说话有条理。
4+
5+
[赛义甫](https://site.douban.com/145723/room/3728966/)

proverbs/programming.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## 箴言录 - 编程
2+
3+
### 人生苦短,来不及找寻所有答案。
4+
5+
Joe Armstrong

proverbs/study.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## 箴言录 - 学习
2+
3+
### 不登高山,不知天之高也;不临深谷,不知地之厚也;不闻先王之遗言,不知学问之大也。
4+
5+
《劝学》荀子
6+
7+
### 兼听则明,偏信则暗
8+
9+
> 君之所以明者,兼听也;其所以暗者,偏信也。
10+
11+
《潜夫论·明暗》王符

vm/virt-install-cannot-find-kernel.md

+8
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,12 @@ Debian /install.386/vmlinuz/ /isolinux/initrd.img
2929
- 针对 Fedora 系统,`--location $iso,initrd=live/initrd.img,kernel=pxeboot/vmlinuz`
3030
- 针对 Debian 系统,`--location $iso,initrd=install/initrd.gz,kernel=install/vmlinuz`
3131

32+
```sh
33+
iso=/debian.iso
34+
35+
virt-install \
36+
--disk path=$iso,device=cdrom \
37+
--location $iso,initrd=install/initrd.gz,kernel=install/vmlinuz \
38+
```
39+
3240
这些[回答](https://askubuntu.com/questions/789358/virt-install-using-location-with-iso-image-no-longer-working)很有参考价值。

0 commit comments

Comments
 (0)