-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
280 lines (245 loc) · 38.5 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0,viewport-fit=cover"><title>栖枫樚Kinoira - 堕落的每一天~愿~一如往日的连续</title><meta name="author" content="栖枫樚Kinoira,[email protected]"><meta name="copyright" content="栖枫樚Kinoira"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="一只跑都不会但想飞的青猪,大概青菜叶子吃多了,脑子坏掉了">
<meta property="og:type" content="website">
<meta property="og:title" content="栖枫樚Kinoira">
<meta property="og:url" content="https://kinoiralink.github.io/index.html">
<meta property="og:site_name" content="栖枫樚Kinoira">
<meta property="og:description" content="一只跑都不会但想飞的青猪,大概青菜叶子吃多了,脑子坏掉了">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://kinoiralink.github.io/img/avatar.jpg">
<meta property="article:author" content="栖枫樚Kinoira">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://kinoiralink.github.io/img/avatar.jpg"><link rel="shortcut icon" href="/img/favicon.png"><link rel="canonical" href="https://kinoiralink.github.io/index.html"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox/fancybox.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = {
root: '/',
algolia: undefined,
localSearch: undefined,
translate: undefined,
noticeOutdate: undefined,
highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
copy: {
success: '复制成功',
error: '复制错误',
noSupport: '浏览器不支持'
},
relativeDate: {
homepage: false,
post: false
},
runtime: '天',
dateSuffix: {
just: '刚刚',
min: '分钟前',
hour: '小时前',
day: '天前',
month: '个月前'
},
copyright: undefined,
lightbox: 'fancybox',
Snackbar: undefined,
infinitegrid: {
js: 'https://cdn.jsdelivr.net/npm/@egjs/infinitegrid/dist/infinitegrid.min.js',
buttonText: '加载更多'
},
isPhotoFigcaption: false,
islazyload: false,
isAnchor: false,
percent: {
toc: true,
rightside: false,
},
autoDarkmode: false
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
title: '栖枫樚Kinoira',
isPost: false,
isHome: true,
isHighlightShrink: true,
isToc: false,
postUpdate: '2024-07-02 14:33:29'
}</script><script>(win=>{
win.saveToLocal = {
set: (key, value, ttl) => {
if (ttl === 0) return
const now = Date.now()
const expiry = now + ttl * 86400000
const item = {
value,
expiry
}
localStorage.setItem(key, JSON.stringify(item))
},
get: key => {
const itemStr = localStorage.getItem(key)
if (!itemStr) {
return undefined
}
const item = JSON.parse(itemStr)
const now = Date.now()
if (now > item.expiry) {
localStorage.removeItem(key)
return undefined
}
return item.value
}
}
win.getScript = (url, attr = {}) => new Promise((resolve, reject) => {
const script = document.createElement('script')
script.src = url
script.async = true
script.onerror = reject
script.onload = script.onreadystatechange = function() {
const loadState = this.readyState
if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
script.onload = script.onreadystatechange = null
resolve()
}
Object.keys(attr).forEach(key => {
script.setAttribute(key, attr[key])
})
document.head.appendChild(script)
})
win.getCSS = (url, id = false) => new Promise((resolve, reject) => {
const link = document.createElement('link')
link.rel = 'stylesheet'
link.href = url
if (id) link.id = id
link.onerror = reject
link.onload = link.onreadystatechange = function() {
const loadState = this.readyState
if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
link.onload = link.onreadystatechange = null
resolve()
}
document.head.appendChild(link)
})
win.activateDarkMode = () => {
document.documentElement.setAttribute('data-theme', 'dark')
if (document.querySelector('meta[name="theme-color"]') !== null) {
document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
}
}
win.activateLightMode = () => {
document.documentElement.setAttribute('data-theme', 'light')
if (document.querySelector('meta[name="theme-color"]') !== null) {
document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
}
}
const t = saveToLocal.get('theme')
if (t === 'dark') activateDarkMode()
else if (t === 'light') activateLightMode()
const asideStatus = saveToLocal.get('aside-status')
if (asideStatus !== undefined) {
if (asideStatus === 'hide') {
document.documentElement.classList.add('hide-aside')
} else {
document.documentElement.classList.remove('hide-aside')
}
}
const detectApple = () => {
if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
document.documentElement.classList.add('apple')
}
}
detectApple()
})(window)</script><meta name="generator" content="Hexo 6.3.0"></head><body><div id="web_bg"></div><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="/img/avatar.jpg" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">10</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">14</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">4</div></a></div><hr class="custom-hr"/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 主页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> Tags</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> Categories</span></a></div><div class="menus_item"><a class="site-page" href="/bangumis/"><i class="fa-fw fas fa-tv"></i><span> Bangumi</span></a></div></div></div></div><div class="page" id="body-wrap"><header class="full_page" id="page-header" style="background-image: url('/img/top_img.jpg')"><nav id="nav"><span id="blog-info"><a href="/" title="栖枫樚Kinoira"><span class="site-name">栖枫樚Kinoira</span></a></span><div id="menus"><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 主页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> Tags</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> Categories</span></a></div><div class="menus_item"><a class="site-page" href="/bangumis/"><i class="fa-fw fas fa-tv"></i><span> Bangumi</span></a></div></div><div id="toggle-menu"><a class="site-page" href="javascript:void(0);"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="site-info"><h1 id="site-title">栖枫樚Kinoira</h1><div id="site-subtitle"><span id="subtitle"></span></div></div><div id="scroll-down"><i class="fas fa-angle-down scroll-down-effects"></i></div></header><main class="layout" id="content-inner"><div class="recent-posts" id="recent-posts"><div class="recent-post-item"><div class="post_cover left"><a href="/2024/07/02/TCPSocket%E9%80%9A%E4%BF%A1%E6%A1%86%E6%9E%B6%E7%B1%BB%E7%BB%93%E6%9E%84/" title="TCPSocket 通信框架类结构"><img class="post-bg" src="https://liulipic.net/pic/2024/03/02.webp" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="TCPSocket 通信框架类结构"></a></div><div class="recent-post-info"><a class="article-title" href="/2024/07/02/TCPSocket%E9%80%9A%E4%BF%A1%E6%A1%86%E6%9E%B6%E7%B1%BB%E7%BB%93%E6%9E%84/" title="TCPSocket 通信框架类结构">TCPSocket 通信框架类结构</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time class="post-meta-date-created" datetime="2024-07-02T06:29:06.000Z" title="发表于 2024-07-02 14:29:06">2024-07-02</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2024-07-02T06:33:18.405Z" title="更新于 2024-07-02 14:33:18">2024-07-02</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E7%BC%96%E7%A8%8B/">编程</a></span><span class="article-meta tags"><span class="article-meta-separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E7%BD%91%E7%BB%9C/">网络</a></span></div><div class="content">
</div></div></div><div class="recent-post-item"><div class="recent-post-info no-cover"><a class="article-title" href="/2024/06/25/hello-world/" title="Hello World">Hello World</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time class="post-meta-date-created" datetime="2024-06-25T09:30:29.706Z" title="发表于 2024-06-25 17:30:29">2024-06-25</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2024-06-25T09:30:29.706Z" title="更新于 2024-06-25 17:30:29">2024-06-25</time></span></div><div class="content">Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment
</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2023/11/22/%E4%BD%BF%E7%94%A8-Docker-%E5%AE%B9%E5%99%A8%E5%8C%96-Web%E5%BA%94%E7%94%A8/" title="使用 Docker 容器化 Web应用"><img class="post-bg" src="https://liulipic.net/pic/2023/10/48.webp" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="使用 Docker 容器化 Web应用"></a></div><div class="recent-post-info"><a class="article-title" href="/2023/11/22/%E4%BD%BF%E7%94%A8-Docker-%E5%AE%B9%E5%99%A8%E5%8C%96-Web%E5%BA%94%E7%94%A8/" title="使用 Docker 容器化 Web应用">使用 Docker 容器化 Web应用</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time class="post-meta-date-created" datetime="2023-11-22T15:45:41.000Z" title="发表于 2023-11-22 23:45:41">2023-11-22</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2024-06-25T09:30:29.707Z" title="更新于 2024-06-25 17:30:29">2024-06-25</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E7%BC%96%E7%A8%8B/">编程</a></span><span class="article-meta tags"><span class="article-meta-separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/Csharp/">Csharp</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/Net/">.Net</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/Docker/">Docker</a></span></div><div class="content">
https://www.docker.com/products/docker-desktop/
为什么要用 Docker
Docker 可以提供一个稳定的“Linux”的开发环境
Web应用,大都部署在Linux服务器上,使用Docker可以模拟这样的环境
使用Docker可以进行容器编排,有助于开发微服务
使用Docker可以快速高效的配置 python、anaconda、Redis、sqlserver、mysql等诸多复杂的开发环境
可以打拉取镜像,打包镜像,方便快捷
常用命令12345678910# 以 python 镜像为例docker pull python:3.8 #拉去基础镜像docker run -it --name mypy python:3.8 #基于上一步拉取的基础镜像运行并且命名 # -it 进入该镜像的命令行 # 这里进入的是 Python 的命令行docker rm mypy #删除该镜像docker run -it --name mypy python:3.8 /bin/bash # 进入 linux 命令行 bashdocker ps -a #查看 ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/2023/11/22/Hexo-%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4/" title="Hexo 常用命令"><img class="post-bg" src="https://liulipic.net/pic/2023/10/28.webp" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Hexo 常用命令"></a></div><div class="recent-post-info"><a class="article-title" href="/2023/11/22/Hexo-%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4/" title="Hexo 常用命令">Hexo 常用命令</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time class="post-meta-date-created" datetime="2023-11-22T15:33:57.000Z" title="发表于 2023-11-22 23:33:57">2023-11-22</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2024-06-25T09:30:29.706Z" title="更新于 2024-06-25 17:30:29">2024-06-25</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E4%B8%BB%E9%A2%98/">主题</a></span><span class="article-meta tags"><span class="article-meta-separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E5%B0%8F%E6%8A%80%E5%B7%A7/">小技巧</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/hexo/">hexo</a></span></div><div class="content">12345hexo new <标题> #生成一篇文章hexo Server #启动本地 Hexo 支持实时渲染hexo clean #删除生成渲染文件hexo g #生成渲染文件hexo d #推送 hexo 到 服务器</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2023/10/09/Git%E7%AE%A1%E7%90%86Unity%E9%A1%B9%E7%9B%AE/" title="Git管理Unity项目"><img class="post-bg" src="https://liulipic.net/pic/2023/09/31.webp" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Git管理Unity项目"></a></div><div class="recent-post-info"><a class="article-title" href="/2023/10/09/Git%E7%AE%A1%E7%90%86Unity%E9%A1%B9%E7%9B%AE/" title="Git管理Unity项目">Git管理Unity项目</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time class="post-meta-date-created" datetime="2023-10-09T15:40:20.000Z" title="发表于 2023-10-09 23:40:20">2023-10-09</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2024-06-25T09:30:29.705Z" title="更新于 2024-06-25 17:30:29">2024-06-25</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/Unity/">Unity</a></span><span class="article-meta tags"><span class="article-meta-separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/Unity/">Unity</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/Git/">Git</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/Github/">Github</a></span></div><div class="content">Unity设置Unit——Project Settings——Version Control———Mode:Visible Meta Files
Unit——Project Settings——Editor——Mode:Force Text
配置.gitignore文件Unity 项目除”Assets”、”ProjectSettings”文件夹外其余文件均为Unity生成,将其排除最好在初始化之前或者在第一次提交之前编写好”.gitignore”文件
https://github.com/github/gitignore/blob/main/Unity.gitignore
1234567891011Library/Temp/.vscode/Logs/UserSettings/Packages/*.sln*.csproj*.userprefs*.unityproj*.DS_Store
git基础命令:本地:
git init
git staus
git add ./
git commit -m "message"
git log
git reset --hard ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/2023/09/26/CSharp%E6%8F%90%E7%A4%BA%E6%9C%AC/" title="CSharp提示本"><img class="post-bg" src="https://liulipic.net/pic/2023/08/81.webp" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="CSharp提示本"></a></div><div class="recent-post-info"><a class="article-title" href="/2023/09/26/CSharp%E6%8F%90%E7%A4%BA%E6%9C%AC/" title="CSharp提示本">CSharp提示本</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time class="post-meta-date-created" datetime="2023-09-26T10:07:50.000Z" title="发表于 2023-09-26 18:07:50">2023-09-26</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2024-06-25T09:30:29.705Z" title="更新于 2024-06-25 17:30:29">2024-06-25</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E7%BC%96%E7%A8%8B/">编程</a></span><span class="article-meta tags"><span class="article-meta-separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E5%9F%BA%E7%A1%80/">基础</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/Csharp/">Csharp</a></span></div><div class="content">Csharp编写提醒命名必须看得懂哪怕很长
不要用单字符命名,但如for循环一样的条件句除外
不要在方法中写不明所以的数字,一开始就应该进行明确的声明
不要手写字符串,而是生成字符串,避免字符串误写
12345678910111213141516public class PoetryStorage{ void GetDBVersion(string dbKey){} void Init() { GetDBVersion(PoetryStorageConstant.DbVersionKey) }}public static class PoetryStorageConstant{ public const String DbVersionKey = nameof(PoetryStorageConstant) + "." + nameof(DbVersionKey); //nameof(PoetryStorageConstant) -> ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2023/09/11/lua%E5%9F%BA%E7%A1%80/" title="Lua基础"><img class="post-bg" src="https://liulipic.net/pic/2023/08/59.webp" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Lua基础"></a></div><div class="recent-post-info"><a class="article-title" href="/2023/09/11/lua%E5%9F%BA%E7%A1%80/" title="Lua基础">Lua基础</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time class="post-meta-date-created" datetime="2023-09-11T13:09:38.000Z" title="发表于 2023-09-11 21:09:38">2023-09-11</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2024-06-25T09:30:29.706Z" title="更新于 2024-06-25 17:30:29">2024-06-25</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E7%BC%96%E7%A8%8B/">编程</a></span><span class="article-meta tags"><span class="article-meta-separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E5%9F%BA%E7%A1%80/">基础</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/Lua/">Lua</a></span></div><div class="content">Lua 是一种轻量小巧的脚本语言,用标准C语言编写并以源代码形式开放, 其设计目的是为了嵌入应用程序中,从而为应用程序提供灵活的扩展和定制功能。Lua is a powerful, efficient, lightweight, embeddable scripting language. It supports procedural programming, object-oriented programming, functional programming, data-driven programming, and data description.
1.Lua环境安装
lua.org
官网下载lua下载二进制编译好的。打开cmdlua-5.3.5
12cd \lua_pathlua53
1print("Hello world")
新建一个lua脚本 “t1.txt”
1lua53 t1.txt
配置lua的环境变量:此电脑——属性——高级系统设置——环境变量——用户变量(系统变量)——Path
重启cmd
2.变量vscode配置lua可以用vscod ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/2023/08/18/WSL%E7%9A%84%E5%AE%89%E8%A3%85%E5%92%8C%E4%BD%BF%E7%94%A8/" title="WSL的安装和使用"><img class="post-bg" src="https://liulipic.net/pic/2023/07/20.webp" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="WSL的安装和使用"></a></div><div class="recent-post-info"><a class="article-title" href="/2023/08/18/WSL%E7%9A%84%E5%AE%89%E8%A3%85%E5%92%8C%E4%BD%BF%E7%94%A8/" title="WSL的安装和使用">WSL的安装和使用</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time class="post-meta-date-created" datetime="2023-08-18T14:12:45.000Z" title="发表于 2023-08-18 22:12:45">2023-08-18</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2024-06-25T09:30:29.706Z" title="更新于 2024-06-25 17:30:29">2024-06-25</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E6%9D%82%E8%AE%B0/">杂记</a></span><span class="article-meta tags"><span class="article-meta-separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/WSL/">WSL</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/Linux/">Linux</a></span></div><div class="content">WSL的安装和使用什么是WSL?WSL(Windows Subsystem for Linux)让开发人员直接运行Linux环境
安装WSL环境要求
Windows 10 版本 2004
Windows 11
在BIOS中开启虚拟化支持
可以在任务管理器性能CPU下查看虚拟化是否开启
步骤
Win+X 终端管理员(Windows PowerShell)
wsl --install
dism.exe /online/enable-feature/featurename:VirtualMachinePlatform/all/norestart
123453. 重启4. 下载并且安装Linux内核更新包 > https://wslstorestorage.blob.cor.windows.net/wslblob/wsl_update_64.msi5. ```shell wsl --set-default-version 2
打开Microsoft Store,搜索并且安装Ubuntu
运行Ubuntu
设置用户名和密码
WSL的使用技巧列出已经安装 ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/2023/08/03/vscode%E5%86%99Markdown%E5%BC%80%E6%99%BA%E8%83%BD%E6%8F%90%E7%A4%BA/" title="vscode写Markdown开智能提示"><img class="post-bg" src="https://liulipic.net/pic/2023/07/21.webp" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="vscode写Markdown开智能提示"></a></div><div class="recent-post-info"><a class="article-title" href="/2023/08/03/vscode%E5%86%99Markdown%E5%BC%80%E6%99%BA%E8%83%BD%E6%8F%90%E7%A4%BA/" title="vscode写Markdown开智能提示">vscode写Markdown开智能提示</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time class="post-meta-date-created" datetime="2023-08-03T13:44:15.000Z" title="发表于 2023-08-03 21:44:15">2023-08-03</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2024-06-25T09:30:29.707Z" title="更新于 2024-06-25 17:30:29">2024-06-25</time></span><span class="article-meta tags"><span class="article-meta-separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E5%B0%8F%E6%8A%80%E5%B7%A7/">小技巧</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/vscode/">vscode</a></span></div><div class="content">前言写Unity相关笔记需要记一些C#代码,使用代码的格式化对齐和智能提示可以使代码编写的更加高效。vscode自带代码的格式化对齐,但Markdown文件的智能提示没有开启
vscode打开vscode的设置,找到settings.Json中编辑
在settings.Json中进行配置
12345678910111213{ "[markdown]": { "editor.unicodeHighlight.ambiguousCharacters": false, "editor.unicodeHighlight.invisibleCharacters": false, "diffEditor.ignoreTrimWhitespace": false, "editor.wordWrap": "on", "editor.quickSuggestions": ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/2023/07/21/Hexo-vscode%E7%9A%84%E5%9B%BE%E7%89%87%E6%8F%92%E5%85%A5/" title="Hexo+vscode的图片插入"><img class="post-bg" src="https://liulipic.net/pic/2016/01/11.webp" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Hexo+vscode的图片插入"></a></div><div class="recent-post-info"><a class="article-title" href="/2023/07/21/Hexo-vscode%E7%9A%84%E5%9B%BE%E7%89%87%E6%8F%92%E5%85%A5/" title="Hexo+vscode的图片插入">Hexo+vscode的图片插入</a><div class="article-meta-wrap"><span class="post-meta-date"><i class="far fa-calendar-alt"></i><span class="article-meta-label">发表于</span><time class="post-meta-date-created" datetime="2023-07-21T13:36:01.000Z" title="发表于 2023-07-21 21:36:01">2023-07-21</time><span class="article-meta-separator">|</span><i class="fas fa-history"></i><span class="article-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2024-06-25T09:30:29.706Z" title="更新于 2024-06-25 17:30:29">2024-06-25</time></span><span class="article-meta"><span class="article-meta-separator">|</span><i class="fas fa-inbox"></i><a class="article-meta__categories" href="/categories/%E4%B8%BB%E9%A2%98/">主题</a></span><span class="article-meta tags"><span class="article-meta-separator">|</span><i class="fas fa-tag"></i><a class="article-meta__tags" href="/tags/%E5%B0%8F%E6%8A%80%E5%B7%A7/">小技巧</a><span class="article-meta-link">•</span><a class="article-meta__tags" href="/tags/hexo/">hexo</a></span></div><div class="content">Hexo需要hexo-renderer-marked插件在_config.yaml中进行配置
1234post_asset_folder: truemarked: prependRoot: true postAsset: true
在source下创建images文件夹
vscode需要Markdown Image插件对Markdown Image插件进行配置
1"markdown-image.local.path": "../images"
插入图片时右键——粘贴图片或者Shift+Alt+V
Markdown Image插件存在问题改用Paste Image 插件Paste Image设置改为:
https://zhuanlan.zhihu.com/p/265077468https://gjwhhhh.github.io/2021/11/12/hexo-zhong-wan-mei-cha-ru-ben-di-tu-pian/
</div></div></div><nav id="pagination"><div class="pagination"><span class="page-number current">1</span></div></nav></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src="/img/avatar.jpg" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">栖枫樚Kinoira</div><div class="author-info__description">一只跑都不会但想飞的青猪,大概青菜叶子吃多了,脑子坏掉了</div></div><div class="card-info-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">10</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">14</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">4</div></a></div></div><div class="sticky_layout"><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item"><a class="thumbnail" href="/2024/07/02/TCPSocket%E9%80%9A%E4%BF%A1%E6%A1%86%E6%9E%B6%E7%B1%BB%E7%BB%93%E6%9E%84/" title="TCPSocket 通信框架类结构"><img src="https://liulipic.net/pic/2024/03/02.webp" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="TCPSocket 通信框架类结构"/></a><div class="content"><a class="title" href="/2024/07/02/TCPSocket%E9%80%9A%E4%BF%A1%E6%A1%86%E6%9E%B6%E7%B1%BB%E7%BB%93%E6%9E%84/" title="TCPSocket 通信框架类结构">TCPSocket 通信框架类结构</a><time datetime="2024-07-02T06:29:06.000Z" title="发表于 2024-07-02 14:29:06">2024-07-02</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2024/06/25/hello-world/" title="Hello World">Hello World</a><time datetime="2024-06-25T09:30:29.706Z" title="发表于 2024-06-25 17:30:29">2024-06-25</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2023/11/22/%E4%BD%BF%E7%94%A8-Docker-%E5%AE%B9%E5%99%A8%E5%8C%96-Web%E5%BA%94%E7%94%A8/" title="使用 Docker 容器化 Web应用"><img src="https://liulipic.net/pic/2023/10/48.webp" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="使用 Docker 容器化 Web应用"/></a><div class="content"><a class="title" href="/2023/11/22/%E4%BD%BF%E7%94%A8-Docker-%E5%AE%B9%E5%99%A8%E5%8C%96-Web%E5%BA%94%E7%94%A8/" title="使用 Docker 容器化 Web应用">使用 Docker 容器化 Web应用</a><time datetime="2023-11-22T15:45:41.000Z" title="发表于 2023-11-22 23:45:41">2023-11-22</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2023/11/22/Hexo-%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4/" title="Hexo 常用命令"><img src="https://liulipic.net/pic/2023/10/28.webp" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Hexo 常用命令"/></a><div class="content"><a class="title" href="/2023/11/22/Hexo-%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4/" title="Hexo 常用命令">Hexo 常用命令</a><time datetime="2023-11-22T15:33:57.000Z" title="发表于 2023-11-22 23:33:57">2023-11-22</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/2023/10/09/Git%E7%AE%A1%E7%90%86Unity%E9%A1%B9%E7%9B%AE/" title="Git管理Unity项目"><img src="https://liulipic.net/pic/2023/09/31.webp" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Git管理Unity项目"/></a><div class="content"><a class="title" href="/2023/10/09/Git%E7%AE%A1%E7%90%86Unity%E9%A1%B9%E7%9B%AE/" title="Git管理Unity项目">Git管理Unity项目</a><time datetime="2023-10-09T15:40:20.000Z" title="发表于 2023-10-09 23:40:20">2023-10-09</time></div></div></div></div><div class="card-widget card-categories"><div class="item-headline">
<i class="fas fa-folder-open"></i>
<span>分类</span>
</div>
<ul class="card-category-list" id="aside-cat-list">
<li class="card-category-list-item "><a class="card-category-list-link" href="/categories/Unity/"><span class="card-category-list-name">Unity</span><span class="card-category-list-count">1</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/%E4%B8%BB%E9%A2%98/"><span class="card-category-list-name">主题</span><span class="card-category-list-count">2</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/%E6%9D%82%E8%AE%B0/"><span class="card-category-list-name">杂记</span><span class="card-category-list-count">1</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/%E7%BC%96%E7%A8%8B/"><span class="card-category-list-name">编程</span><span class="card-category-list-count">4</span></a></li>
</ul></div><div class="card-widget card-tags"><div class="item-headline"><i class="fas fa-tags"></i><span>标签</span></div><div class="card-tag-cloud"><a href="/tags/Unity/" style="font-size: 1.1em; color: #999">Unity</a> <a href="/tags/vscode/" style="font-size: 1.1em; color: #999">vscode</a> <a href="/tags/hexo/" style="font-size: 1.3em; color: #99a1ac">hexo</a> <a href="/tags/%E7%BD%91%E7%BB%9C/" style="font-size: 1.1em; color: #999">网络</a> <a href="/tags/Lua/" style="font-size: 1.1em; color: #999">Lua</a> <a href="/tags/Net/" style="font-size: 1.1em; color: #999">.Net</a> <a href="/tags/Github/" style="font-size: 1.1em; color: #999">Github</a> <a href="/tags/Csharp/" style="font-size: 1.3em; color: #99a1ac">Csharp</a> <a href="/tags/Docker/" style="font-size: 1.1em; color: #999">Docker</a> <a href="/tags/WSL/" style="font-size: 1.1em; color: #999">WSL</a> <a href="/tags/Git/" style="font-size: 1.1em; color: #999">Git</a> <a href="/tags/Linux/" style="font-size: 1.1em; color: #999">Linux</a> <a href="/tags/%E5%9F%BA%E7%A1%80/" style="font-size: 1.3em; color: #99a1ac">基础</a> <a href="/tags/%E5%B0%8F%E6%8A%80%E5%B7%A7/" style="font-size: 1.5em; color: #99a9bf">小技巧</a></div></div><div class="card-widget card-archives"><div class="item-headline"><i class="fas fa-archive"></i><span>归档</span></div><ul class="card-archive-list"><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2024/07/"><span class="card-archive-list-date">七月 2024</span><span class="card-archive-list-count">1</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2024/06/"><span class="card-archive-list-date">六月 2024</span><span class="card-archive-list-count">1</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2023/11/"><span class="card-archive-list-date">十一月 2023</span><span class="card-archive-list-count">2</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2023/10/"><span class="card-archive-list-date">十月 2023</span><span class="card-archive-list-count">1</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2023/09/"><span class="card-archive-list-date">九月 2023</span><span class="card-archive-list-count">2</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2023/08/"><span class="card-archive-list-date">八月 2023</span><span class="card-archive-list-count">2</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2023/07/"><span class="card-archive-list-date">七月 2023</span><span class="card-archive-list-count">1</span></a></li></ul></div><div class="card-widget card-webinfo"><div class="item-headline"><i class="fas fa-chart-line"></i><span>网站资讯</span></div><div class="webinfo"><div class="webinfo-item"><div class="item-name">文章数目 :</div><div class="item-count">10</div></div><div class="webinfo-item"><div class="item-name">已运行时间 :</div><div class="item-count" id="runtimeshow" data-publishDate="2024-07-02T06:33:29.377Z"><i class="fa-solid fa-spinner fa-spin"></i></div></div><div class="webinfo-item"><div class="item-name">最后更新时间 :</div><div class="item-count" id="last-push-date" data-lastPushDate="2024-07-02T06:33:29.377Z"><i class="fa-solid fa-spinner fa-spin"></i></div></div></div></div></div></div></main><footer id="footer" style="background: #ececea0f"><div id="footer-wrap"><div class="copyright">©2020 - 2024 By 栖枫樚Kinoira</div><div class="framework-info"><span>框架 </span><a target="_blank" rel="noopener" href="https://hexo.io">Hexo</a><span class="footer-separator">|</span><span>主题 </span><a target="_blank" rel="noopener" href="https://github.com/jerryc127/hexo-theme-butterfly">Butterfly</a></div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside-config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button id="go-up" type="button" title="回到顶部"><span class="scroll-percent"></span><i class="fas fa-arrow-up"></i></button></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox/fancybox.umd.min.js"></script><div class="js-pjax"><script>window.typedJSFn = {
init: (str) => {
window.typed = new Typed('#subtitle', Object.assign({
strings: str,
startDelay: 300,
typeSpeed: 150,
loop: true,
backSpeed: 50,
}, null))
},
run: (subtitleType) => {
if (true) {
if (typeof Typed === 'function') {
subtitleType()
} else {
getScript('https://cdn.jsdelivr.net/npm/typed.js/dist/typed.umd.min.js').then(subtitleType)
}
} else {
subtitleType()
}
}
}
</script><script>function subtitleType () {
if (true) {
typedJSFn.init(["Having dreams is what makes life tolerable"])
} else {
document.getElementById("subtitle").textContent = "Having dreams is what makes life tolerable"
}
}
typedJSFn.run(subtitleType)</script></div></div></body></html>