-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb93d3d
commit 2a90d8f
Showing
12 changed files
with
217 additions
and
1 deletion.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
src/source/_posts/how-to-migrate-windows-service-fluently.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
title: How to migrate windows service fluently | ||
date: 2022.12.23 09:54:27 | ||
updated: 2022.12.23 09:54:27 | ||
tags: ASP.NET Core | ||
--- | ||
|
||
![幻灯片1.PNG](/images/how-to-migrate-windows-service-fluently/幻灯片1.PNG) | ||
|
||
![幻灯片2.PNG](/images/how-to-migrate-windows-service-fluently/幻灯片2.PNG) | ||
|
||
![幻灯片3.PNG](/images/how-to-migrate-windows-service-fluently/幻灯片3.PNG) | ||
|
||
![幻灯片4.PNG](/images/how-to-migrate-windows-service-fluently/幻灯片4.PNG) | ||
|
||
![幻灯片5.PNG](/images/how-to-migrate-windows-service-fluently/幻灯片5.PNG) | ||
|
||
![幻灯片6.PNG](/images/how-to-migrate-windows-service-fluently/幻灯片6.PNG) | ||
|
||
![幻灯片7.PNG](/images/how-to-migrate-windows-service-fluently/幻灯片7.PNG) | ||
|
||
![幻灯片8.PNG](/images/how-to-migrate-windows-service-fluently/幻灯片8.PNG) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,194 @@ | ||
--- | ||
title: Vim usage notes | ||
date: 2017-01-07 21:31:00 | ||
updated: 2017-01-07 21:31:00 | ||
tags: Vim | ||
--- | ||
|
||
# vim介绍 | ||
|
||
Vim是从 vi 发展出来的一个文本编辑器,处理文本文件功能强大。 | ||
|
||
三种主要模式: | ||
|
||
Vim打开文件,默认命令(Normal)模式,可以移动光标,剪切和粘贴。 | ||
|
||
按键i 进入插入(Insert)模式,用户可以编辑文本。 | ||
|
||
扩展(Extended)命令模式(或末行模式)用户:wq可保存退出,或者:q!强制退出。 | ||
|
||
Exc按键可退出当前模式。 | ||
|
||
# 文本操作 | ||
|
||
vim 打开文本文件 | ||
|
||
vim +# :打开文件,并定位于第#行 | ||
|
||
vim +:打开文件,定位至最后一行 | ||
|
||
vim +/PATTERN : 打开文件,定位至第一次被PATTERN匹配到的行的行首 | ||
|
||
移动光标(编辑模式) | ||
|
||
单个移动: h: 左, l: 右, j: 下, k: 上。 | ||
|
||
#h: 移动#个字符 | ||
|
||
w: 移至下一个单词的词首 | ||
|
||
行内跳转:0: 绝对行首 $: 绝对行尾 ^: 跳转至行首的第一个非空白字符 | ||
|
||
句间移动:):下一句(:上一句 | ||
|
||
段落间移动:}:下一段{:上一段 | ||
|
||
在整个文件里面移动光标 | ||
|
||
<Ctrl-f>:向下移动一屏。<Ctrl-d>:向下移动半屏。 | ||
|
||
<Ctrl-b>:向上移动一屏。<Ctrl-u>:向上移动半屏。 | ||
|
||
G:到文件尾 | ||
|
||
#G:移动光标到指定的行 | ||
|
||
gg:到文件首 | ||
|
||
H:移动光标到屏幕上面 | ||
|
||
M:移动光标到屏幕中间 | ||
|
||
L:移动光标到屏幕下面 | ||
|
||
# 搜索 | ||
|
||
/word:从当前光标处开始搜索字符串 word,按 n移动到下个单词处,N 移动到上一个。 | ||
|
||
?word:和上面类似,但是是反方向。 | ||
|
||
# 编辑文本 | ||
|
||
插入模式 | ||
|
||
i:在当前字符的左边插入 | ||
|
||
I:在当前行首插入 | ||
|
||
a:在当前字符的右边插入 | ||
|
||
A:在当前行尾插入 | ||
|
||
o:在当前行下面插入一个新行 | ||
|
||
O:在当前行上面插入一个新行 | ||
|
||
删除单个字符 | ||
|
||
x: 删除光标所在处的单个字符 | ||
|
||
#x: 删除光标所在处及向后的共#个字符 | ||
|
||
删除命令: | ||
|
||
d$: 删除到行尾 | ||
|
||
d^:删除到非空行首 | ||
|
||
d0:删除到行首 | ||
|
||
dd: 删除当前光标所在行 | ||
|
||
#dd: 删除包括当前光标所在行在内的#行; | ||
|
||
剪切和拷贝 | ||
|
||
y:拷贝选择的内容到剪贴板。 | ||
|
||
c:剪贴选择的内容到剪贴板并且进入插入模式。 | ||
|
||
yy:拷贝当前行。 | ||
|
||
cc:剪切当前行并且进入插入模式。 | ||
|
||
D:剪切从光标位置到行尾到剪贴板。 | ||
|
||
Y:拷贝当前行。 | ||
|
||
C:和 D 类似,最后进入插入模式。 | ||
|
||
x:剪切当前字符到剪贴板。 | ||
|
||
粘贴:p | ||
|
||
# Vim多缓冲区编辑 | ||
|
||
剪贴板在 VIM 里面被称为寄存器(Registers)。你可以列出当前定义的所有寄存器名和它们的内容 | ||
|
||
比如:我们要拷贝当前行到寄存器 a 或者其他字母。你应该按 “ayy。现在当前行已存在寄存器 a 里面直到你又拷贝了一些东西进入寄存器 a。你可以使用命令 “ap 来粘贴寄存器 a 里面的内容到你想要的位置。 | ||
|
||
# 撤销改变 | ||
|
||
u:撤消前一次的编辑操作 | ||
|
||
连续u命令可撤消此前的n次编辑操作 | ||
|
||
#u: 直接撤消最近#次编辑操作 | ||
|
||
撤消最近一次撤消操作:Ctrl+r | ||
|
||
# 多文件编辑 | ||
|
||
vim FILE1 FILE2 FILE3 … | ||
|
||
:next 下一个 | ||
|
||
:prev前一个 | ||
|
||
:first 第一个 | ||
|
||
:last 最后一个 | ||
|
||
:wall 保存所有 | ||
|
||
:qall退出所有 | ||
|
||
:wqall | ||
|
||
多文件分割 | ||
|
||
vim -o|-O FILE1 FILE2 … | ||
|
||
-o: 水平分割 | ||
|
||
-O: 垂直分割 | ||
|
||
在窗口间切换:Ctrl+w, Arrow | ||
|
||
单文件窗口分割: | ||
|
||
Ctrl+w,s: split, 水平分割 | ||
|
||
Ctrl+w,v: vertical, 垂直分割 | ||
|
||
ctrl+w,q:取消相邻窗口 | ||
|
||
ctrl+w,o:取消全部窗口 | ||
|
||
:wqall退出 | ||
|
||
# 编辑命令 | ||
|
||
将当前文件中部分内容另存为另外一个文件 | ||
|
||
末行模式下使用w命令 | ||
|
||
:w | ||
|
||
:ADDR1,ADDR2w /path/to/somewhere | ||
|
||
将另外一个文件的内容填充在当前文件中 | ||
|
||
:r /path/to/somefile | ||
|
||
跟shell交互 :! COMMAND |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+1.85 MB
src/source/images/how-to-migrate-windows-service-fluently/如何优雅迁移传统 Windows Service - 周强.pptx
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.