Skip to content

Commit 3e72330

Browse files
committed
Correct the categories of historical posts.
1 parent 988953b commit 3e72330

File tree

121 files changed

+1279
-1493
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+1279
-1493
lines changed

config.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,37 @@ languages:
178178
- name: "关于"
179179
url: zh/about_me_zh/
180180
weight: 40
181+
- identifier: series
182+
name: "系列 "
183+
url: /zh/categories/
184+
post: ''
185+
weight: 2
186+
- identifier: gain_and_loss
187+
parent: series
188+
name: "得失感悟"
189+
url: /zh/categories/得失感悟/
190+
weight: 1
191+
- identifier: advanced_testing
192+
parent: series
193+
name: "测试技能进阶"
194+
url: /zh/categories/测试技能进阶/
195+
weight: 2
196+
- identifier: soft_skill
197+
parent: series
198+
name: "软件工程师的软技能指北"
199+
url: /zh/categories/软件工程师的软技能指北/
200+
weight: 3
201+
- identifier: workflow
202+
parent: series
203+
name: "我的工作流"
204+
url: /zh/categories/工作流/
205+
weight: 4
206+
- identifier: emacs_tips
207+
parent: series
208+
name: "Emacs技巧"
209+
url: /zh/categories/Emacs技巧
210+
weight: 5
211+
181212
markup:
182213
# https://github.com/adityatelange/hugo-PaperMod/issues/1386
183214
highlight:

content/zh/post/2016/emacs_ipython.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ title = "在Emacs中使用Ipython"
33
description = "Use Ipython in Emasc"
44
date = 2016-08-03T00:00:00-07:00
55
keywords = ["emacs", "ipython"]
6-
lastmod = 2024-12-31T11:48:36-08:00
6+
lastmod = 2025-01-09T18:04:14-08:00
77
tags = ["emacs", "python"]
8-
categories = ["emacs"]
8+
categories = ["Emacs技巧"]
99
draft = false
1010
toc = true
1111
+++
1212

1313
## <span class="section-num">1</span> Emacs Ipython 输出错误 {#emacs-ipython-输出错误}
1414

15-
在Emacs 运行 **run-python** 的时候,报错了,如下
15+
在Emacs 运行 `run-python` 的时候,报错了,如下
1616

1717
```emacs-lisp
1818
[?12l[?25h2+2
@@ -34,7 +34,7 @@ toc = true
3434

3535
### <span class="section-num">1.1</span> Update 2017-3-15 {#update-2017-3-15}
3636

37-
在添加了 **--simple-promp -i** 参数以后,虽说乱码的问题解决了,但是新的问题又出现了
37+
在添加了 `--simple-promp -i` 参数以后,虽说乱码的问题解决了,但是新的问题又出现了
3838
在Ipython 里面是没法无法输入多行内容的,即使是一个简单的循环,详情查看这条issue
3939
<https://github.com/ipython/ipython/issues/9816>. 现在Ipython 开发社区还没有解决这个
4040
问题,所以现在的权宜之计就是使用 Ipython4,等到社区解决了这个问题在升级为 Ipython5
@@ -49,11 +49,12 @@ pip install --force-reinstall ipython==4.2.1
4949

5050
### <span class="section-num">2.1</span> python-pop {#python-pop}
5151

52-
因为我之前使用Emacs的时候,是使用Spacemacs的配置的,但是后来觉得还是自己的
53-
配置用的更舒服,所以又切换回自己的配置,但是我还是很想念Spacemacs的一些绑定
54-
例如shell在底下弹出,或者是关闭,然后找到了[Shell-pop](https://github.com/kyagi/shell-pop-el) 这package,就可以用回
55-
Spacemacs的shell使用习惯。然后我觉得,Ipython shell也可以这样配置,只不过
56-
我没有发现类似的package,又因为Emacs Lisp的强大,所以我自己写了一段小函数实现
52+
因为我之前使用Emacs的时候,是使用Spacemacs的配置的,但是后来觉得还是自己的 配置用的更舒服,所以又切换回自己的配置。
53+
54+
但是我还是很想念Spacemacs的一些绑定, 例如shell在底下弹出,或者是关闭,然后找到了[Shell-pop](https://github.com/kyagi/shell-pop-el) 这package,就可以用回
55+
Spacemacs的shell使用习惯。
56+
57+
然后我觉得,Ipython shell也可以这样配置,只不过我没有发现类似的package,又因为Emacs Lisp的强大,所以我自己写了一段小函数实现
5758
shell-pop 的功能
5859

5960
```emacs-lisp
@@ -78,16 +79,16 @@ similar to shell-pop"
7879
(evil-insert-state))))
7980
```
8081

81-
如果没有使用Evil,可以把 \*(evil-insert-state)\*去掉
82+
如果没有使用Evil,可以把 `(evil-insert-state)` 去掉
8283

8384

8485
### <span class="section-num">2.2</span> Ipython History {#ipython-history}
8586

8687
我在普通的Shell使用Ipython的时候,很自然地使用上下方向键翻到上一条/下一条
87-
执行的命令,因为shell的使用习惯就是这样滴,但是在Emacs里面使用Ipython,上下
88-
方向键是去到上一行/下一行,就好像 vim 的 **j** **k**,如果要翻到上一条命令,快捷键
89-
**M-p**,实在很不习惯,所以在查了一下Emacs manual 后,我改了一下按键绑定就实现了
90-
我想要的效果
88+
执行的命令,因为shell的使用习惯就是这样滴
89+
90+
但是在Emacs里面使用Ipython,上下 方向键是去到上一行/下一行,就好像 vim 的 `j` `k`,如果要翻到上一条命令,快捷键
91+
`M-p`,实在很不习惯,所以在查了一下Emacs manual 后,我改了一下按键绑定就实现了我想要的效果
9192

9293
```emacs-lisp
9394
(define-key comint-mode-map (kbd "<up>") 'comint-previous-input)

content/zh/post/2016/emacs_startup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ title = "提高Emacs启动速度"
33
description = "Tips to reduce emacs startup time"
44
date = 2016-10-22T00:00:00-07:00
55
keywords = ["emacs"]
6-
lastmod = 2024-12-31T11:57:41-08:00
6+
lastmod = 2025-01-09T18:05:22-08:00
77
tags = ["emacs"]
8-
categories = ["emacs"]
8+
categories = ["Emacs技巧"]
99
draft = false
1010
toc = true
1111
+++

content/zh/post/2017/about_tool_about_tweak.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
+++
2-
title = "关于工具,关于折腾"
2+
title = "关于工具, 关于折腾"
33
description = "An discussion about tool and tweak"
44
date = 2017-03-24T00:00:00-07:00
5-
lastmod = 2025-01-05T15:47:40-08:00
5+
lastmod = 2025-01-09T20:52:24-08:00
66
tags = ["linux", "tool", "tweak"]
7-
categories = ["linux", "tool"]
7+
categories = ["得失感悟"]
88
draft = false
99
+++
1010

content/zh/post/2017/blog.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
+++
22
title = "写博客的动机"
33
date = 2017-09-17T10:36:00-07:00
4-
lastmod = 2024-12-30T21:47:59-08:00
4+
lastmod = 2025-01-09T20:53:02-08:00
55
tags = ["summary"]
6-
categories = ["summary"]
6+
categories = ["得失感悟"]
77
draft = false
88
toc = true
99
highlighted = true

content/zh/post/2017/cat.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
+++
22
title = "Linux/Unix Shell 二三事之过滤器cat"
33
description = "An introduction about cat"
4-
date = 2017-02-22T00:00:00+08:00
5-
lastmod = 2022-02-23T18:51:24+08:00
4+
date = 2017-02-22T00:00:00-08:00
5+
lastmod = 2025-01-09T17:37:17-08:00
66
tags = ["linux", "shell", "command_line"]
7-
categories = ["linux"]
7+
categories = ["Linux/Unix Shell 二三事"]
88
draft = false
99
toc = true
1010
+++
@@ -107,4 +107,4 @@ cat file |grep "something" |sort -n |tee newfile
107107
| cat &gt;&gt;file | 读取输入,追加新的文件 |
108108
| cat file/cat &lt;file | 显示一个已有文件 |
109109
| cat &lt;oldfile&gt; newfile | 复制一个文件 |
110-
| cat file1 file2 file3&gt;file4 | 组合多个文件 |
110+
| cat file1 file2 file3&gt;file4 | 组合多个文件 |

content/zh/post/2017/diff.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
+++
22
title = "Linux/Unix Shell 二三事之过滤器diff"
33
description = "An introduction about diff"
4-
date = 2017-02-28T00:00:00+08:00
5-
lastmod = 2022-02-23T18:56:31+08:00
4+
date = 2017-02-28T00:00:00-08:00
5+
lastmod = 2025-01-09T17:38:42-08:00
66
tags = ["linux", "shell", "command_line"]
7-
categories = ["linux"]
7+
categories = ["Linux/Unix Shell 二三事"]
88
draft = false
99
toc = true
1010
+++
@@ -164,4 +164,4 @@ a a
164164

165165
```shell
166166
man diff
167-
```
167+
```

content/zh/post/2017/fasd-meet-eshell.md

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
+++
22
title = "Shell神器fasd与Eshell的不期而遇"
33
description = "An introduction about tweaking eshell with fasd"
4-
date = 2017-03-02T00:00:00+08:00
4+
date = 2017-03-02T00:00:00-08:00
55
keywords = ["eshell", "fasd"]
6-
lastmod = 2022-02-23T19:26:06+08:00
6+
lastmod = 2025-01-09T18:05:49-08:00
77
tags = ["emacs", "shell", "eshell"]
8-
categories = ["emacs"]
8+
categories = ["Emacs技巧"]
99
draft = false
1010
toc = true
1111
+++
@@ -50,7 +50,6 @@ Fasd以访问的频繁程度和最近是否有访问对文件和目录分配优
5050
- **-d**:只匹配目录
5151
- **-f**:只匹配文件
5252
Fasd 文档还建议你为 fasd的命令选项设置别名
53-
5453
```shell
5554
alias a='fasd -a' # any
5655
alias s='fasd -si' # show / search / select
@@ -61,17 +60,13 @@ Fasd以访问的频繁程度和最近是否有访问对文件和目录分配优
6160
alias z='fasd_cd -d' # cd, same functionality as j in autojump
6261
alias zz='fasd_cd -d -i' # cd with interactive selection
6362
```
64-
6563
这样你就可以通过 **z some-dir** 直接进入到某个目录或者 **zz some-dir** 选择进入有多个匹配的特定目录。
6664

6765
Fasd 还会判断应该显示所有的匹配选项或者是直接选择最佳匹配. 例如你也可以将fasd配合 _subshell_ 使用,例如打开 **foo**
68-
6966
```shell
7067
vim `f foo`
7168
```
72-
7369
又或者打开 **/etc/rc.conf**
74-
7570
```shell
7671
vim `f rc conf`
7772
```
@@ -98,17 +93,17 @@ fasd 真的可以大幅度提高效率,但是我有点不太满意的是,我
9893

9994
---
10095

101-
**z****zz** 命令是无法在Eshell 里面运行,因为 **z****fasd_cd** 的别名,而**fasd_cd** 是一个shell script 函数,Eshell无法运行该函数,代码如下:
96+
**z****zz** 命令是无法在Eshell 里面运行,因为 **z****fasd_cd** 的别名,而\*fasd_cd\* 是一个shell script 函数,Eshell无法运行该函数,代码如下:
10297

10398
```shell
10499
fasd_cd () {
105100
if [ $# -le 1 ]
106101
then
107-
fasd "$@"
102+
fasd "$@"
108103
else
109-
local _fasd_ret="$(fasd -e 'printf %s' "$@")"
110-
[ -z "$_fasd_ret" ] && return
111-
[ -d "$_fasd_ret" ] && cd "$_fasd_ret" || printf %s\n "$_fasd_ret"
104+
local _fasd_ret="$(fasd -e 'printf %s' "$@")"
105+
[ -z "$_fasd_ret" ] && return
106+
[ -d "$_fasd_ret" ] && cd "$_fasd_ret" || printf %s\n "$_fasd_ret"
112107
fi
113108
}
114109
```
@@ -120,9 +115,9 @@ Eshell无法运行该函数,因为Eshell文档的匮乏,我也不知道如
120115
"Use fasd to change directory more effectively by passing ARGS."
121116
(setq args (eshell-flatten-list args))
122117
(let* ((fasd (concat "fasd " (car args)))
123-
(fasd-result (shell-command-to-string fasd))
124-
(path (replace-regexp-in-string "\n$" "" fasd-result))
125-
)
118+
(fasd-result (shell-command-to-string fasd))
119+
(path (replace-regexp-in-string "\n$" "" fasd-result))
120+
)
126121
(eshell/cd path)
127122
(eshell/echo path)
128123
))
@@ -148,4 +143,4 @@ man fasd
148143
Enjoy Emacs and Shell :)
149144

150145
参考:
151-
<https://github.com/clvv/fasd>
146+
<https://github.com/clvv/fasd>

content/zh/post/2017/from-helm-to-ivy.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
+++
22
title = "(翻译)从Helm到Ivy"
33
description = "An Translated Post about switch from helm to ivy"
4-
date = 2017-03-05T00:00:00+08:00
4+
date = 2017-03-05T00:00:00-08:00
55
keywords = ["emacs", "helm", "ivy"]
6-
lastmod = 2022-02-23T19:41:32+08:00
6+
lastmod = 2025-01-09T19:18:56-08:00
77
tags = ["emacs", "translation"]
8-
categories = ["emacs"]
8+
categories = ["翻译"]
99
draft = false
1010
toc = true
1111
+++
@@ -27,7 +27,7 @@ Ivy 和Helm 都有相同的目标,但是它们实现的方法却是迥然不
2727

2828
现在我想站在用户的角度来比较一下这两个工具。我这里指的用户观点是我在不需要了解Helm 和Ivy 的内部工作原理的前提下对这两个工具进行比较。
2929

30-
其实,因为我对 **elisp**还谈不上精通,所以也没办法就两者实现细节来进行比较。但是这两个工具我都使用过,所以我可以从用户的角度,跟你分享我使用它们的不同感受。最后,我从Helm 切换到了Ivy
30+
其实,因为我对 \*elisp\*还谈不上精通,所以也没办法就两者实现细节来进行比较。但是这两个工具我都使用过,所以我可以从用户的角度,跟你分享我使用它们的不同感受。最后,我从Helm 切换到了Ivy
3131

3232
我想先谈Helm.当我使用Spacemacs 的时候,我学会了怎么使用Helm,以Helm 的方式思考, 如何自定义Helm,怎么把Helm 配置得称心如意。
3333

@@ -105,7 +105,7 @@ Ivy 真的是很容易上手,下面就是我的全部配置:
105105
:diminish (ivy-mode . "")
106106
:bind
107107
(:map ivy-mode-map
108-
("C-'" . ivy-avy))
108+
("C-'" . ivy-avy))
109109
:config
110110
(ivy-mode 1)
111111
;; add ‘recentf-mode’ and bookmarks to ‘ivy-switch-buffer’.
@@ -118,8 +118,8 @@ Ivy 真的是很容易上手,下面就是我的全部配置:
118118
(setq ivy-initial-inputs-alist nil)
119119
;; configure regexp engine.
120120
(setq ivy-re-builders-alist
121-
;; allow input not in order
122-
'((t . ivy--regex-ignore-order))))
121+
;; allow input not in order
122+
'((t . ivy--regex-ignore-order))))
123123
```
124124

125125
Ivy 是很低调的;它不想让你把一切都整合到Ivy去。它仅仅是提供你必需的补全。你不能像Helm 那样用Ivy 来做任何事;那为什么我还要切换到Ivy 去呢?
@@ -173,9 +173,9 @@ Ivy 是很低调的;它不想让你把一切都整合到Ivy去。它仅仅是
173173
(helm
174174
:sources
175175
(helm-build-sync-source "one-to-ten"
176-
:candidates
177-
(mapcar #'number-to-string (number-sequence 1 10))
178-
:fuzzy-match t)
176+
:candidates
177+
(mapcar #'number-to-string (number-sequence 1 10))
178+
:fuzzy-match t)
179179
:buffer
180180
"*helm one-to-ten*")
181181
@@ -194,4 +194,4 @@ Helm 为用户作了非常多的决定,Ivy 让用户按需求进行定制;He
194194

195195
原文地址 <https://sam217pa.github.io/2016/09/13/from-helm-to-ivy/>
196196

197-
在下翻译水平有限,如有错误,还请指出
197+
在下翻译水平有限,如有错误,还请指出

content/zh/post/2017/grep.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
+++
22
title = "Linux/Unix Shell 二三事之过滤器grep"
33
description = "an introduction about grep"
4-
date = 2017-03-13T00:00:00+08:00
4+
date = 2017-03-13T00:00:00-07:00
55
keywords = ["shell", "linux", "grep"]
6-
lastmod = 2022-02-23T19:48:37+08:00
6+
lastmod = 2025-01-09T17:37:12-08:00
77
tags = ["shell", "linux", "command_line"]
8-
categories = ["linux"]
8+
categories = ["Linux/Unix Shell 二三事"]
99
draft = false
1010
toc = true
1111
+++
@@ -16,7 +16,7 @@ toc = true
1616
1717
今天我想聊聊 **grep** 这个命令;据说,有Unix/Linux 的地方就会有 **grep**, 这个可能是安装得最广泛的命令之一;那么 **grep** 是用来干什么的呢?
1818

19-
grep 其实是用来在文件中搜索特定内容或者模式的工具(配合正则表达式“食用”,味道更佳 :))现在就来一起看看**grep** 的用法
19+
grep 其实是用来在文件中搜索特定内容或者模式的工具(配合正则表达式“食用”,味道更佳 :))现在就来一起看看\*grep\* 的用法
2020

2121

2222
## <span class="section-num">1</span> 基本用法 {#基本用法}
@@ -60,7 +60,7 @@ grep "e...h" /tmp/tinytale.txt
6060
> it was the epoch of belief it was the epoch of incredulity
6161
> ```
6262
63-
可以看到,正则表达式匹配了 **epoch** 这个单词。正则表达式的威力无与伦比的,把 **grep**和正则表达式结合起来可以更好地发挥 **grep** 这个工具的潜力;而本文主要是介绍 **grep**, 更多有关正则表达式的用法不细讲了
63+
可以看到,正则表达式匹配了 **epoch** 这个单词。正则表达式的威力无与伦比的,把 **grep\*和正则表达式结合起来可以更好地发挥 \*grep** 这个工具的潜力;而本文主要是介绍 **grep**, 更多有关正则表达式的用法不细讲了
6464
6565
6666
### <span class="section-num">1.3</span> 统计出现的次数 {#统计出现的次数}
@@ -141,7 +141,7 @@ tale.txt:herself into the show of a belief that they would soon be reunited
141141
grep belief /tmp/*.txt
142142
````
143143
144-
输出结果也会跟上面一致 (假设你 **_tmp_** 目录下只有两个文本文件); 我告诉**grep** 搜索**/tmp** 下所有的 **.txt** 文件。
144+
输出结果也会跟上面一致 (假设你 **_tmp_** 目录下只有两个文本文件); 我告诉\*grep\* 搜索\*/tmp\* 下所有的 **.txt** 文件。
145145
146146
147147
### <span class="section-num">2.1</span> 递归搜索 {#递归搜索}
@@ -438,4 +438,4 @@ proxy_pass http://gunicorn_server;
438438
man grep
439439
````
440440
441-
Enjoy Shell :)
441+
Enjoy Shell :)

0 commit comments

Comments
 (0)