-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
295 lines (265 loc) · 44.7 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
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
<!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>子墨の小屋</title><meta name="author" content="何子墨"><meta name="copyright" content="何子墨"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta property="og:type" content="website">
<meta property="og:title" content="子墨の小屋">
<meta property="og:url" content="http://zmswa.cn/index.html">
<meta property="og:site_name" content="子墨の小屋">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://s2.loli.net/2023/12/30/GO1i5dQDWSUwbP3.jpg">
<meta property="article:author" content="何子墨">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://s2.loli.net/2023/12/30/GO1i5dQDWSUwbP3.jpg"><link rel="shortcut icon" href="https://s2.loli.net/2023/12/31/gSwF5eh6bGkxLri.png"><link rel="canonical" href="http://zmswa.cn/index.html"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css"><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: {"path":"/search.xml","preload":false,"top_n_per_article":1,"unescape":false,"languages":{"hits_empty":"找不到您查询的内容:${query}","hits_stats":"共找到 ${hits} 篇文章"}},
translate: undefined,
noticeOutdate: undefined,
highlight: {"plugin":"highlight.js","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: '子墨の小屋',
isPost: false,
isHome: true,
isHighlightShrink: false,
isToc: false,
postUpdate: '2024-05-23 20:51:57'
}</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><link rel="stylesheet" href="/css/transpancy.css"><link rel="stylesheet" href="/css/universe.css"><link rel="stylesheet" href="/css/ziti.css"><link rel="stylesheet" href="/css/custom.css" media="defer" onload="this.media='all'"><meta name="generator" content="Hexo 7.0.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="https://s2.loli.net/2023/12/30/GO1i5dQDWSUwbP3.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">13</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">6</div></a></div><hr class="custom-hr"/><div class="menus_items"><div class="menus_item"><a class="site-page" href="http://zmswa.cn/"><i class="fa-fw fas fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 导航</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间线</span></a></li><li><a class="site-page child" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></li></ul></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-tags"></i><span> 资源合集</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="http://zmswa.cn/html/yanhua/"><i class="fa-fw fas fa-anchor"></i><span> 烟花</span></a></li><li><a class="site-page child" href="http://zmswa.cn/html/cs/"><i class="fa-fw fas fa-gamepad"></i><span> 选餐</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://love.zmswa.cn/"><i class="fa-fw fas fa-heart"></i><span> 恋爱倒计时</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="http://gpt.zmswa.cn/"><i class="fa-fw fas fa-robot"></i><span> GPT</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友人帐</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于我</span></a></div></div></div></div><div class="page" id="body-wrap"><header class="full_page" id="page-header" style="background: transparent"><nav id="nav"><span id="blog-info"><a href="/" title="子墨の小屋"><span class="site-name">子墨の小屋</span></a></span><div id="he-plugin-simple"></div><div id="none_space"> </div><div id="menus"><div id="search-button"><a class="site-page social-icon search" href="javascript:void(0);"><i class="fas fa-search fa-fw"></i><span> 搜索</span></a></div><div class="menus_items"><div class="menus_item"><a class="site-page" href="http://zmswa.cn/"><i class="fa-fw fas fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-list"></i><span> 导航</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 时间线</span></a></li><li><a class="site-page child" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></li></ul></div><div class="menus_item"><a class="site-page group" href="javascript:void(0);"><i class="fa-fw fas fa-tags"></i><span> 资源合集</span><i class="fas fa-chevron-down"></i></a><ul class="menus_item_child"><li><a class="site-page child" href="http://zmswa.cn/html/yanhua/"><i class="fa-fw fas fa-anchor"></i><span> 烟花</span></a></li><li><a class="site-page child" href="http://zmswa.cn/html/cs/"><i class="fa-fw fas fa-gamepad"></i><span> 选餐</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="https://love.zmswa.cn/"><i class="fa-fw fas fa-heart"></i><span> 恋爱倒计时</span></a></li><li><a class="site-page child" target="_blank" rel="noopener" href="http://gpt.zmswa.cn/"><i class="fa-fw fas fa-robot"></i><span> GPT</span></a></li></ul></div><div class="menus_item"><a class="site-page" href="/link/"><i class="fa-fw fas fa-link"></i><span> 友人帐</span></a></div><div class="menus_item"><a class="site-page" href="/about/"><i class="fa-fw fas fa-heart"></i><span> 关于我</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">子墨の小屋</h1><div id="site-subtitle"><span id="subtitle"></span></div><div id="site_social_icons"><a class="social-icon" href="http://zmswa.cn/img/wx.jpg" target="_blank" title="WX"><i class="fab fa-weixin" style="color: #1AAD19;"></i></a><a class="social-icon" href="https://github.com/qwernot" target="_blank" title="Github"><i class="fab fa-github" style="color: #24292e;"></i></a><a class="social-icon" href="http://wpa.qq.com/msgrd?v=3&uin=491298200&site=qq&menu=yes" target="_blank" title="QQ"><i class="fab fa-qq" style="color: #4a7dbe;"></i></a><a class="social-icon" href="mailto:[email protected]" target="_blank" title="Email"><i class="fas fa-envelope" style="color: #24292e;"></i></a><a class="social-icon" href="http://zmswa.cn/img/dy.jpg" target="_blank" title="TikTok"><i class="fab fa-tiktok" style="color: #010101;"></i></a></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="/post/debian/" title="新搭建Debian配置"><img class="post-bg" src="https://t.mwm.moe/fj" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="新搭建Debian配置"></a></div><div class="recent-post-info"><a class="article-title" href="/post/debian/" title="新搭建Debian配置">新搭建Debian配置</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 datetime="2024-04-19T14:00:00.000Z" title="发表于 2024-04-19 22:00:00">2024-04-19</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/%E5%AE%9E%E7%94%A8%E6%8A%80%E5%B7%A7/">实用技巧</a></span></div><div class="content">切换镜像源etc/apt/
debian | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
安装apt curl[Debian(Linux)系统安装并使用sudo命令 - SpringCore - 博客园 (cnblogs.com)](https://www.cnblogs.com/fanqisoft/p/17559561.html#:~:text=Debian(Linux)系统安装并使用sudo命令 1.查看是否安装 dpkg -l|grep sudo 2.安装 1.切换到root用户,su - root 2.安装sudo apt-get install sudo)
Debian如何安装curl? - Cobcmw - 博客园 (cnblogs.com)
设置允许root用户登录SSH_root ssh 登录 执行命令-CSDN博客
docker权限设置:让非root用户可以操作docker–》附带:linux新增用户添加root权限_linux docker 添加用户权限-CSDN博客
</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/post/wa/" title="无畏契约代充教程"><img class="post-bg" src="https://t.mwm.moe/fj" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="无畏契约代充教程"></a></div><div class="recent-post-info"><a class="article-title" href="/post/wa/" title="无畏契约代充教程">无畏契约代充教程</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 datetime="2024-03-23T14:00:00.000Z" title="发表于 2024-03-23 22:00:00">2024-03-23</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%97%A0%E7%95%8F%E5%A5%91%E7%BA%A6/">无畏契约</a></span></div><div class="content">
1a17762416c8440d80bd7914d00ad07a23b7bf1885975bdb4f8c6bae4401a6b3e4b856f0d5f404945a37e68ecb2597017892fccc0080ba10fe0af38ab5b9ca0744ebe5a83363a4d0cf93092350fbee26a08272bb736470ec082b1d79333aa96e678bfec444cf95657c67c61d79696cbcabf97b571a103d88d1fe1134749acb7639131cbfa1e6bb5ef16e08a139aac11cf28ef53480571f119730ab4ab824a5d220e55daca026c84f27455b4cc0160d8868c49f4368565d29687304ac1f014366c6699ab6eec74362003a4dfbdf2e6565fee40cd2689b81d86e27e62992f100903d99ddadf2281f3b1ebfafdbe84b31080102c3f5e48dee4ef ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/post/chat/" title="利用 API 自己搭建一个 ChatGPT 网站"><img class="post-bg" src="https://t.mwm.moe/fj" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="利用 API 自己搭建一个 ChatGPT 网站"></a></div><div class="recent-post-info"><a class="article-title" href="/post/chat/" title="利用 API 自己搭建一个 ChatGPT 网站">利用 API 自己搭建一个 ChatGPT 网站</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 datetime="2024-02-08T09:00:00.000Z" title="发表于 2024-02-08 17:00:00">2024-02-08</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/%E5%AE%9E%E7%94%A8%E6%8A%80%E5%B7%A7/">实用技巧</a></span></div><div class="content">搭建背景:用过 ChatGPT 的朋友都知道,官方网站非常喜欢宕机。既然如此,那我们就自己搭建一个私信 ChatGPT 服务器吧,直接调用 API 的话,就不担心它会崩溃了。
搭建的方法有很多,以下是参考开源工程项目的搭建方式
一、创建 API key可以搜索 Open AI 官网,登录到个人 Open AI 账户主页获取你的 API 密钥。
点击 “Create new Secret key” 按钮创建新的密钥,此时会生成新的密钥,然后点击复制按钮先保存一下密钥,后面需要用到(密钥只会显示一次,因此要在第一时间保存好,忘了保存可以再生成一个)。
二、注册并登录 GitHub没有 GitHub 的需要先注册登录,在这就不细说了。
登录 GitHub 之后搜索 “chatgpt-demo”,就可以找到一个镜像 ChatGPT 项目。
三、打开项目后往下翻,找到 “Deploy” 按钮,进入 Vercel 页面。四、GitHub 登录 Vercel进入 Vercel 页面之后选择 GitHub 登录,我这因为之前登陆过,默认登录上了。
接下来填入一个名称,然后点击 “Creat” 按钮
五 ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/post/cloud/" title="CNAME解析至cf:分流解析cloudflare处理国外请求"><img class="post-bg" src="https://t.mwm.moe/fj" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="CNAME解析至cf:分流解析cloudflare处理国外请求"></a></div><div class="recent-post-info"><a class="article-title" href="/post/cloud/" title="CNAME解析至cf:分流解析cloudflare处理国外请求">CNAME解析至cf:分流解析cloudflare处理国外请求</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 datetime="2024-02-02T14:00:00.000Z" title="发表于 2024-02-02 22:00:00">2024-02-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/%E5%AE%9E%E7%94%A8%E6%8A%80%E5%B7%A7/">实用技巧</a></span></div><div class="content">域名接入cloudflare此处不再赘述如何创建cloudflare账号,在cloudflare官网创建好账号后
登录 => 主页 => 添加网站
输入你的域名
选择Free计划
cloudflare会扫描已有DNS记录,将已有的DNS记录添加进去,这一步很重要,防止出现服务中断,如果这一步没做好,可能会有部分站点后面没有解析导致出现网站不可访问的现象,将所有已经有的解析记录都在这一步加好。
获取到cloudflare到NS服务器地址
登录你的域名厂商解析修改域名的DNS服务器,此处以腾讯云举例打开 域名控制台 点击修改DNS服务器地址
添加上刚刚在cloudflare获取到的DNS服务器地址,两个都加上,此时只是暂时改,为了通过✅cloudflare的监测,通过以后就可以改回来了。
等待⌛️10分钟左右,cloudflare会发送一封邮件📧 说明DNS服务器修改成功,改成功以后就可以正式开始接入了,在左侧的DNS->记录可以找到你的所有记录,在这里可以把你的解析记录都加好,解析到你的服务器上,并且打开代理状态的小云朵☁️,亮起则代表,clo ...</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/post/website/" title="分享 20 + 个在线工具网站"><img class="post-bg" src="https://t.mwm.moe/fj" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="分享 20 + 个在线工具网站"></a></div><div class="recent-post-info"><a class="article-title" href="/post/website/" title="分享 20 + 个在线工具网站">分享 20 + 个在线工具网站</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 datetime="2024-01-24T01:39:45.761Z" title="发表于 2024-01-24 09:39:45">2024-01-24</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/%E5%B7%A5%E5%85%B7/">工具</a></span></div><div class="content">在线工具网站
RegExr: https://regexr.com/
正则表达式在线测试工具。
在线编译工具:https://ide.judge0.com/
可以在线执行编程语言与 SQL 语句
rextester:https://rextester.com/
在线执行 PHP、Python、C、Java 等各种语言代码。
Ideone:https://ideone.com/
在线执行 PHP、Python、C、Java 等各种语言代码。
GDB online Debugger:https://www.onlinegdb.com/
在线执行 PHP、Python、C、Java 等各种语言代码。
JSFiddle:https://jsfiddle.net/
前端代码在线执行工具。
CodePen:https://codepen.io/
前端代码在线执行工具。
Redis 在线测试:https://try.redis.io/
Redis 命令在线测试工具
Paiza:https://paiza.io
在线编译工具,包含 Python、Java、MySQL 等。
Learn ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/post/typora/" title="MarkDown编辑器Typora"><img class="post-bg" src="https://t.mwm.moe/fj" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="MarkDown编辑器Typora"></a></div><div class="recent-post-info"><a class="article-title" href="/post/typora/" title="MarkDown编辑器Typora">MarkDown编辑器Typora</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 datetime="2024-01-22T12:20:00.000Z" title="发表于 2024-01-22 20:20:00">2024-01-22</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/%E8%BD%AF%E4%BB%B6/">软件</a></span></div><div class="content">软件介绍Typora中文版是一款Markdown编辑器及阅读器的文本编辑器.Typora破解版风格极简/多种主题/支持macOS,Windows及 Linux,实时预览/图片与文字/代码块/数学公式/图表 目录大纲/文件管理/导入与导出等..
软件截图
版本特点- 免激活中文绿色版,劫持破解激活版,免安装绿化版
- 删除多国语言,提供快速关联文件类型及清理批处理
下载地址蓝奏网盘
</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/post/github/" title="GitHub国内访问"><img class="post-bg" src="https://t.mwm.moe/fj" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="GitHub国内访问"></a></div><div class="recent-post-info"><a class="article-title" href="/post/github/" title="GitHub国内访问">GitHub国内访问</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 datetime="2024-01-21T06:20:00.000Z" title="发表于 2024-01-21 14:20:00">2024-01-21</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/%E5%AE%9E%E7%94%A8%E6%8A%80%E5%B7%A7/">实用技巧</a></span></div><div class="content">前言一、介绍对 GitHub 说”爱”太难了:访问慢、图片加载不出来。
本项目无需安装任何程序,仅需 5 分钟。
通过修改本地 hosts 文件,试图解决:
GitHub 访问速度慢的问题
GitHub 项目中的图片显示不出的问题
让你”爱”上 GitHub。
注: 本项目还处于测试阶段,仅在本机测试通过,如有问题欢迎提 issues
二、使用方法下面的地址无需访问 GitHub 即可获取到最新的 hosts 内容:
文件:https://raw.hellogithub.com/hosts
JSON:https://raw.hellogithub.com/hosts.json
2.1 手动方式2.1.1 复制下面的内容12345678910111213141516171819202122232425262728293031323334353637383940414243444546# GitHub520 Host Start140.82.114.25 alive.github.com140.82.114.5 ap ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/post/media/" title="常用多媒体软件的开源或免费替代"><img class="post-bg" src="https://t.mwm.moe/fj" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="常用多媒体软件的开源或免费替代"></a></div><div class="recent-post-info"><a class="article-title" href="/post/media/" title="常用多媒体软件的开源或免费替代">常用多媒体软件的开源或免费替代</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 datetime="2024-01-19T14:00:00.000Z" title="发表于 2024-01-19 22:00:00">2024-01-19</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/%E5%BC%80%E6%BA%90/">开源</a></span></div><div class="content">以下软件,除 FFmpeg 外,均支持中文。
屏幕录像开源:OBS(直播推流软件,录屏功能也非常强大)收费:Bandicam(收费录屏软件中自认为最好用的)
屏幕录像(GIF)开源:ScreenToGif
图片处理免费:XnViewMP(图片批处理功能非常好用,商用收费)
图片编辑开源:GIMP(GNU 出品)收费:Adobe Photoshop(Ps)
视频剪辑免费:Avidemux(用于简单的剪辑、合并,处理速度极快)开源:Shotcut(同事推荐)免费:DaVinci Resolve(有收费版,免费版足矣)收费:Adobe Premiere(Pr)
音频剪辑免费:Cool Edit(CE,老剪辑软件了)收费:Adobe Audition(Au)
格式转换开源:FFmpeg(命令行转码工具,有学习成本,无中文)免费:XMedia Recode(功能强大,可调节的参数非常多)收费:Xilisoft Video Converter Ultimate(功能强大,上手简单,转码快,可惜收费)
</div></div></div><div class="recent-post-item"><div class="post_cover left"><a href="/post/git/" title="Git超时解决"><img class="post-bg" src="https://t.mwm.moe/fj" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Git超时解决"></a></div><div class="recent-post-info"><a class="article-title" href="/post/git/" title="Git超时解决">Git超时解决</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 datetime="2024-01-17T10:00:00.000Z" title="发表于 2024-01-17 18:00:00">2024-01-17</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/%E5%AE%9E%E7%94%A8%E6%8A%80%E5%B7%A7/">实用技巧</a></span></div><div class="content">在写完一天的代码后,我像往常一样进行了hexo d
原本应该在几秒钟上传成功,但是却异常的慢,,这时突然出现一个错误:
Error: Spawn failed
j然后我进行ssh连接测试提示: “ssh:connect to host github.com port 22: Connection timed out”
再多尝试几次,依然是这样。
后来又尝试直接再文件夹里用git命令行提交:可惜结果依然是失败。。。
又尝试重启电脑,结果毫无乱用。
最后通过查阅各种资料,得知原因可能是由于电脑的防火墙或者其他网络原因导致ssh连接方式 端口22被封锁。
解决最终发现两个解决方案:
方法一:抛弃ssh连接方式,使用http连接。(我没有用)(似乎没啥用)
操作方法:
1.输入命令:
1git config --local -e
2.将配置文件的url = git@github.com:username/repo.git一行改为:url &# ...</div></div></div><div class="recent-post-item"><div class="post_cover right"><a href="/post/linux/" title="Linux学习路线"><img class="post-bg" src="https://t.mwm.moe/fj" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="Linux学习路线"></a></div><div class="recent-post-info"><a class="article-title" href="/post/linux/" title="Linux学习路线">Linux学习路线</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 datetime="2024-01-10T08:00:00.000Z" title="发表于 2024-01-10 16:00:00">2024-01-10</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/%E5%AD%A6%E4%B9%A0%E8%B7%AF%E7%BA%BF/">学习路线</a></span></div><div class="content">Linux 学习路线💂 + 💻 = 👴🏽
建议先观看视频入门:https://www.bilibili.com/video/BV1ev411G7VE/
为什么学 Linux?相比于 Windows,Linux 免费、开源、安全、灵活、稳定、便于开发,所以更受企业青睐,甚至 90% 以上 的企业应用都是用 Linux 服务器部署的。
无论是前端、后端、算法、测试、运维等计算机相关岗位的同学,都建议学习下 Linux,大有裨益。
学习境界首先,Linux 入门很简单,但想学的透彻难上加难!
因此,在学习之前要明确目标。
可以 Linux 的学习分为几种境界:
明劲,就是了解 Linux 的基本概念,会敲常用命令来应对工作。对于大多数想从事开发和运维岗位的同学,学到这就足够找到工作了。
暗劲,又分为两种境界,能理解 Linux 尤其是其内核的设计思想,为小圆满;能将其思想应用到系统的架构设计中,为大圆满。暗劲境界的高手,冲击大厂、做架构师、从事底层开发,都不成问题。
化劲,可谓出神入化,不仅熟知 Linux 的使用、思想和细节,更能推陈出新,自主创造新的系统。
当然,一 ...</div></div></div><nav id="pagination"><div class="pagination"><span class="page-number current">1</span><a class="page-number" href="/page/2/#content-inner">2</a><a class="extend next" rel="next" href="/page/2/#content-inner"><i class="fas fa-chevron-right fa-fw"></i></a></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="https://s2.loli.net/2023/12/30/GO1i5dQDWSUwbP3.jpg" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">何子墨</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">13</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">6</div></a></div><a id="card-info-btn" href="http://zmswa.cn"><i class="fas fa-gamepad"></i><span>划水</span></a><div class="card-info-social-icons is-center"><a class="social-icon" href="http://zmswa.cn/img/wx.jpg" target="_blank" title="WX"><i class="fab fa-weixin" style="color: #1AAD19;"></i></a><a class="social-icon" href="https://github.com/qwernot" target="_blank" title="Github"><i class="fab fa-github" style="color: #24292e;"></i></a><a class="social-icon" href="http://wpa.qq.com/msgrd?v=3&uin=491298200&site=qq&menu=yes" target="_blank" title="QQ"><i class="fab fa-qq" style="color: #4a7dbe;"></i></a><a class="social-icon" href="mailto:[email protected]" target="_blank" title="Email"><i class="fas fa-envelope" style="color: #24292e;"></i></a><a class="social-icon" href="http://zmswa.cn/img/dy.jpg" target="_blank" title="TikTok"><i class="fab fa-tiktok" style="color: #010101;"></i></a></div></div><div class="twopeople" style="margin: 0;align-items: center;justify-content: center;text-align: center;"><div class="container" style="height: 180px; margin: 0; align-items: center; justify-content: center; text-align: center;"><canvas class="illo" width="600" height="600" style="display: block;margin: 0 auto;cursor: move;max-width: 200px; max-height: 200px; touch-action: none; width: 480px; height: 480px;"></canvas></div></div><script src="https://npm.elemecdn.com/justlovesmile-static/js/twopeople1.js"></script>
<script src="https://npm.elemecdn.com/justlovesmile-static/js/zdog.dist.js"></script>
<script id="rendered-js" src="https://npm.elemecdn.com/justlovesmile-static/js/twopeople.js"></script><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>公告</span></div><div class="announcement_content"><b><font color="#e66b6d">双</font> <font color="#e66d98">手</font> <font color="#e66cc6">合</font> <font color="#cc6de6">十</font> <font color="#9770e6">成</font> <font color="#6d93e6">为</font> <font color="#6fcde6">自</font> <font color="#72e6b6">己</font> <font color="#72e689">的</font> <font color="#99e670">神</font>, <font color="#cde670">自</font> <font color="#e6df72">己</font> <font color="#e6c073">所</font> <font color="#e6a271">信</font> <font color="#e6796f">念</font> <font color="#e65454">的</font> <font color="#e63333">即</font> <font color="#e62c2c">是</font> <font color="#e60101">信</font> <font color="#e60101">仰</font></b> <p align="center"><img src="http://zmswa.cn/img/8.gif" width="50" alt="mao"></p> <p align="center">微信号:HT-T-TH</p> <p align="center">QQ号:491298200</p><div class="twopeople"></div></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="/post/debian/" title="新搭建Debian配置"><img src="https://t.mwm.moe/fj" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="新搭建Debian配置"/></a><div class="content"><a class="title" href="/post/debian/" title="新搭建Debian配置">新搭建Debian配置</a><time datetime="2024-04-19T14:00:00.000Z" title="发表于 2024-04-19 22:00:00">2024-04-19</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/post/wa/" title="无畏契约代充教程"><img src="https://t.mwm.moe/fj" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="无畏契约代充教程"/></a><div class="content"><a class="title" href="/post/wa/" title="无畏契约代充教程">无畏契约代充教程</a><time datetime="2024-03-23T14:00:00.000Z" title="发表于 2024-03-23 22:00:00">2024-03-23</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/post/chat/" title="利用 API 自己搭建一个 ChatGPT 网站"><img src="https://t.mwm.moe/fj" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="利用 API 自己搭建一个 ChatGPT 网站"/></a><div class="content"><a class="title" href="/post/chat/" title="利用 API 自己搭建一个 ChatGPT 网站">利用 API 自己搭建一个 ChatGPT 网站</a><time datetime="2024-02-08T09:00:00.000Z" title="发表于 2024-02-08 17:00:00">2024-02-08</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/post/cloud/" title="CNAME解析至cf:分流解析cloudflare处理国外请求"><img src="https://t.mwm.moe/fj" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="CNAME解析至cf:分流解析cloudflare处理国外请求"/></a><div class="content"><a class="title" href="/post/cloud/" title="CNAME解析至cf:分流解析cloudflare处理国外请求">CNAME解析至cf:分流解析cloudflare处理国外请求</a><time datetime="2024-02-02T14:00:00.000Z" title="发表于 2024-02-02 22:00:00">2024-02-02</time></div></div><div class="aside-list-item"><a class="thumbnail" href="/post/website/" title="分享 20 + 个在线工具网站"><img src="https://t.mwm.moe/fj" onerror="this.onerror=null;this.src='/img/404.jpg'" alt="分享 20 + 个在线工具网站"/></a><div class="content"><a class="title" href="/post/website/" title="分享 20 + 个在线工具网站">分享 20 + 个在线工具网站</a><time datetime="2024-01-24T01:39:45.761Z" title="发表于 2024-01-24 09:39:45">2024-01-24</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/%E5%AD%A6%E4%B9%A0%E8%B7%AF%E7%BA%BF/"><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/%E5%AE%9E%E7%94%A8%E6%8A%80%E5%B7%A7/"><span class="card-category-list-name">实用技巧</span><span class="card-category-list-count">8</span></a></li><li class="card-category-list-item "><a class="card-category-list-link" href="/categories/%E5%B7%A5%E5%85%B7/"><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/%E5%BC%80%E6%BA%90/"><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/%E6%97%A0%E7%95%8F%E5%A5%91%E7%BA%A6/"><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/%E8%BD%AF%E4%BB%B6/"><span class="card-category-list-name">软件</span><span class="card-category-list-count">1</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/git-hexo/" style="font-size: 1.1em; color: #999">git,hexo</a> <a href="/tags/Linux/" style="font-size: 1.1em; color: #999">Linux</a> <a href="/tags/Cloudflare/" style="font-size: 1.1em; color: #999">Cloudflare</a> <a href="/tags/ChatGPT/" style="font-size: 1.1em; color: #999">ChatGPT</a> <a href="/tags/openai/" style="font-size: 1.1em; color: #999">openai</a> <a href="/tags/%E6%97%A0%E7%95%8F%E5%A5%91%E7%BA%A6/" style="font-size: 1.1em; color: #999">无畏契约</a> <a href="/tags/Github%E3%80%81host/" style="font-size: 1.1em; color: #999">Github、host</a> <a href="/tags/Debian/" style="font-size: 1.1em; color: #999">Debian</a> <a href="/tags/hexo%E3%80%81html/" style="font-size: 1.1em; color: #999">hexo、html</a> <a href="/tags/Markdowm%E3%80%81Typora/" style="font-size: 1.1em; color: #999">Markdowm、Typora</a> <a href="/tags/hexo%E3%80%81GitHub/" style="font-size: 1.1em; color: #999">hexo、GitHub</a> <a href="/tags/hexo%E3%80%81GitHub%E3%80%81Butterfly/" style="font-size: 1.1em; color: #999">hexo、GitHub、Butterfly</a> <a href="/tags/website/" style="font-size: 1.1em; color: #999">website</a> <a href="/tags/video/" style="font-size: 1.1em; color: #999">video</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/04/"><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/03/"><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/02/"><span class="card-archive-list-date">二月 2024</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/2024/01/"><span class="card-archive-list-date">一月 2024</span><span class="card-archive-list-count">7</span></a></li><li class="card-archive-list-item"><a class="card-archive-list-link" href="/archives/2023/12/"><span class="card-archive-list-date">十二月 2023</span><span class="card-archive-list-count">2</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">13</div></div><div class="webinfo-item"><div class="item-name">已运行时间 :</div><div class="item-count" id="runtimeshow" data-publishDate="2023-12-28T16:00:00.000Z"><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="busuanzi_value_site_uv"><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="busuanzi_value_site_pv"><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-05-23T12:51:57.326Z"><i class="fa-solid fa-spinner fa-spin"></i></div></div></div></div></div></div></main><footer id="footer" style="background: transparent"><div id="footer-wrap"><div class="copyright">©2020 - 2024 By 何子墨</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(["你在抱怨什么呢","为明天到来的事,说人生像是没有意义","没有选择会是唯一的路","这不是你自己的问题,人终归要好好去生活"])
} else {
document.getElementById("subtitle").textContent = "你在抱怨什么呢"
}
}
typedJSFn.run(subtitleType)</script></div><canvas id="universe"></canvas> - <script defer src="/js/universe.js"></script> - <script src="/js/jquery.js"></script> - <script src="/js/foot.js"></script> - <div class="aplayer no-destroy" data-id="5183531430" data-server="netease" data-type="playlist" data-fixed="true" data-mini="true" data-listFolded="false" data-order="random" data-preload="none" data-autoplay="false" muted></div> - <script async src="//at.alicdn.com/t/c/font_4416309_bmg8yh3av6.js"></script><script src="https://widget.qweather.net/simple/static/js/he-simple-common.js?v=2.0"></script><script src="/js/weather.js"></script><canvas id="universe"></canvas><script src="/js/jquery.js"></script><script src="/js/foot.js"></script><script defer src="/js/universe.js"></script><canvas class="fireworks" mobile="false"></canvas><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc/dist/fireworks.min.js"></script><script id="click-heart" src="https://cdn.jsdelivr.net/npm/butterfly-extsrc/dist/click-heart.min.js" async="async" mobile="false"></script><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script><div id="local-search"><div class="search-dialog"><nav class="search-nav"><span class="search-dialog-title">搜索</span><span id="loading-status"></span><button class="search-close-button"><i class="fas fa-times"></i></button></nav><div class="is-center" id="loading-database"><i class="fas fa-spinner fa-pulse"></i><span> 数据库加载中</span></div><div class="search-wrap"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章" type="text"/></div></div><hr/><div id="local-search-results"></div><div id="local-search-stats-wrap"></div></div></div><div id="search-mask"></div><script src="/js/search/local-search.js"></script></div></div><script src="/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"model":{"jsonPath":"/live2dw/assets/tororo.model.json"},"display":{"position":"right","width":150,"height":300},"mobile":{"show":"ture"},"log":false,"pluginJsPath":"lib/","pluginModelPath":"assets/","pluginRootPath":"live2dw/","tagMode":false});</script></body></html>