-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
606 lines (383 loc) · 18.8 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
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<link rel="apple-touch-icon" sizes="76x76" href="/img/apple-touch-icon.png">
<link rel="icon" type="image/png" href="/img/favicon.ico">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="author" content="Cee">
<meta name="description" content="目前是一名互联网创业者、独立音乐人、LOLer,对各种Web技术都充满好奇心,本博客记录Web相关笔记和实践仅供参考。">
<meta name="keywords" content="Cee, Cee Yip">
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<title>Cee</title>
<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css" >
<link rel="stylesheet" href="/lib/bootstrap/css/bootstrap.min.css" >
<link rel="stylesheet" href="/lib/mdbootstrap/css/mdb.min.css" >
<link rel="stylesheet" href="/lib/github-markdown/github-markdown.min.css" >
<link rel="stylesheet" href="//at.alicdn.com/t/font_1067060_qzomjdt8bmp.css">
<link rel="stylesheet" href="/lib/prettify/tomorrow-night-eighties.min.css" >
<link rel="stylesheet" href="/lib/fancybox/jquery.fancybox.min.css" >
<link rel="stylesheet" href="/css/main.css" >
<script src="/lib/jquery/jquery.min.js" ></script>
<style type="text/css">
.banner-bg {
background-image: url('/img/bg.png');
background-position: center;
background-repeat: repeat-y;
background-size: cover;
background-attachment: fixed;
}
</style>
<meta name="generator" content="Hexo 4.2.1"></head>
<body class="banner-bg">
<header style="height: 100vh;">
<nav id="navbar" class="navbar fixed-top navbar-expand-lg navbar-dark scrolling-navbar">
<div class="container">
<a class="navbar-brand"
href="/"> <strong>Cee</strong> </a>
<button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<div class="animated-icon"><span></span><span></span><span></span></div>
</button>
<!-- Collapsible content -->
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto text-center">
<li class="nav-item">
<a class="nav-link" href="/">首页</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/categories/">分类</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/tags/">标签</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/about/">关于</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/archives/">归档</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://shop.cee.cx" target="_blank" rel="noopener">杂货店</a>
</li>
<li class="nav-item" id="search-btn">
<a class="nav-link" data-toggle="modal" data-target="#modalSearch"> <i
class="iconfont icon-search"></i> </a>
</li>
</ul>
</div>
</div>
</nav>
<div class="view intro-2 rgba-black-slight" id="background">
<div class="full-bg-img">
<div class="mask flex-center">
<div class="container text-center white-text fadeInUp">
<span class="h2" id="subtitle">
</span>
</div>
<div class="scroll-down-bar">
<i class="fa fa-angle-down scroll-down-arrow"></i>
</div>
</div>
</div>
</div>
</header>
<main id="mainContent" class="rgba-black-slight">
<div class="container nopadding-md" style="padding-top:0.5rem;padding-bottom:0.5rem;">
<div class="py-5 z-depth-3" id="board">
<div class="container">
<div class="row">
<div class="col-12 col-md-10 m-auto">
<div class="row mb-4 mx-auto">
<div class="col-12 col-md-12 m-auto">
<a href="/projects/" target="_self">
<p class="h4 index-header">使用中项目推荐</p>
<div class="index-excerpt" >
<div class="index-text mb-1">Gravatar 中国镜像首先个人对使用的各种服务速度有极高的要求,而现有的国内 Gravatar 镜像速度都不理想,尝试过 V2EX、Loli 的镜像,最后还是自己动手了。后端使用多台 HK 实例负载均衡反代 Gravatar 官方源,前端采用阿里云全球 CDN 进行加速。此项目免费提供给大家使用,目前每月实例和 CDN 带宽费用也是一笔不小的开支,如果你觉得好用的话不妨可以赞助一下这个项目。 :)
</div>
</div>
</a>
<div>
<i class="iconfont icon-riqi2"></i> 2020-01-17
</div>
</div>
</div>
<div class="row mb-4 mx-auto">
<div class="col-12 col-md-12 m-auto">
<a href="/google-cloud-local-root-login/" target="_self">
<p class="h4 index-header">谷歌云开启本地 SSH 工具 Root 用户登录权限</p>
<div class="index-excerpt" >
<div class="index-text mb-1">本文讲两种本地客户端登录 Google Cloud 的方法: 1. 开启谷歌云 Root 账户密码使用本地 SSH 客户端登录。 2. 通过 Google Cloud SSH 密钥使用 XShell 客户端登录。 默认谷歌是通过 GCloud 命令在浏览器窗口访问 SSH 控制台的,它是这样实现的:
gcloud beta compute --project "Project Name" ssh --zone "VM Zone" "VM ID"
但是我们一般都习惯了用本地客户端登录 SSH,而有时候一些操作本地直接登录的确更方便,开启本地登录还是很有必要的,不过我建议第二种方法,因为开了 Root 账户密码后会让 Hacker 对你的实例更有机可乘。
开启谷歌云 Root 账户密码使用本地 SSH 客户端登录
网页打开 Google SSH 控制台连接到实例,并切换到 Root 账户:
sudo -i
打开SSH配置文件:
vi /etc/ssh/sshd_config
按 i 进入 INSERT 模式后修改以下两行:</div>
</div>
</a>
<div>
<i class="iconfont icon-riqi2"></i> 2019-10-11
<i class="iconfont icon-inbox"></i>
<a href="/categories/Cloud">Cloud</a>
<i class="iconfont icon-tag"></i>
<a href="/tags/Google%20Cloud">Google Cloud</a>
<a href="/tags/XShell">XShell</a>
</div>
</div>
</div>
<div class="row mb-4 mx-auto">
<div class="col-12 col-md-12 m-auto">
<a href="/cyberpanel-failed-to-obtain-ssl-for-domain/" target="_self">
<p class="h4 index-header">CyberPanel:Failed to obtain SSL for domain 解决方案</p>
<div class="index-excerpt" >
<div class="index-text mb-1">颁发 SSL 证书无响应或超时,出现报错: 283 Failed to obtain SSL for domain. [issueSSLForDomain] [createVirtualHost] 80% 是 DNS 问题,可能你用了反代或主站用了 CDN,导致获取不到正确的 Server IP 而颁发失败,我的解决办法是:解析到正确的 Server IP 生效后,SSH 执行以下代码然后面板内再次申请签发证书:
wget -O - https://get.acme.sh | sh
而 20% 是被 Lets Encrypt 限制,说明近期同一域名颁发次数过多,Lets Encrypt 限制每周同一域名签发次数是 5 次(不知道是否记错,反正次数不多)。
</div>
</div>
</a>
<div>
<i class="iconfont icon-riqi2"></i> 2019-10-08
<i class="iconfont icon-inbox"></i>
<a href="/categories/Web">Web</a>
<i class="iconfont icon-tag"></i>
<a href="/tags/CyberPanel">CyberPanel</a>
</div>
</div>
</div>
<div class="row mb-4 mx-auto">
<div class="col-12 col-md-12 m-auto">
<a href="/sublime-install-darkula-theme/" target="_self">
<p class="h4 index-header">Sublime Text 3 安装主题 Darkula</p>
<div class="index-excerpt" >
<div class="index-text mb-1">Sublime Text 3 主题支持手动安装、Git 安装和 Package Control 安装方式,这里采用比较方便的 Package Control 来安装 Darkula Theme。 如果你没有安装 Package Control 需要先安装 Package Control,按 Ctrl + ~ 键调出控制台,然后在控制台输入并回车:
import urllib.request,os;pf='Package Control.sublime-package';ipp=sublime.installed\_packages\_path();urllib.request.install\_opener(urllib.request.build\_opener(urllib.request.ProxyHandler()));open(os.path.join(ipp,pf),'wb').write(urllib.request.urlopen('http://sublime.wbond.net/'+pf.replace(' </div>
</div>
</a>
<div>
<i class="iconfont icon-riqi2"></i> 2019-10-07
<i class="iconfont icon-inbox"></i>
<a href="/categories/Program">Program</a>
<i class="iconfont icon-tag"></i>
<a href="/tags/Sublime">Sublime</a>
</div>
</div>
</div>
<div class="row mb-4 mx-auto">
<div class="col-12 col-md-12 m-auto">
<a href="/amh-lamp-enable-gzip/" target="_self">
<p class="h4 index-header">AMH5.8 LAMP 环境开启 GZIP 压缩加速网站访问</p>
<div class="index-excerpt" >
<div class="index-text mb-1">AMH 面板默认已经集成了 GZIP,只是没有对所有网站开启,需要手动启用。网上找的教程很多都太老旧了,本规则 AMH5.8 面板 LAMP 环境可用。 使用方法:下载 AMH 的 AMHRewrite 扩展,新建规则,把伪静态规则添加在里面应用到你的网站即可,适用所有 Apache 环境,非 AMH 用户可以添加到 .htaccess 规则。 AMH 官方给的规则:
<ifmodule mod_deflate.c>
DeflateCompressionLevel 6
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/php
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
</ifmodule</div>
</div>
</a>
<div>
<i class="iconfont icon-riqi2"></i> 2019-09-27
<i class="iconfont icon-inbox"></i>
<a href="/categories/Web">Web</a>
<i class="iconfont icon-tag"></i>
<a href="/tags/AMH">AMH</a>
<a href="/tags/GZIP">GZIP</a>
<a href="/tags/LAMP">LAMP</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<a class="z-depth-1" id="scroll-top-button" href="#" role="button">
<i class="fa fa-chevron-up scroll-top-arrow" aria-hidden="true"></i>
</a>
<div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
aria-hidden="true">
<div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
<div class="modal-content">
<div class="modal-header text-center">
<h4 class="modal-title w-100 font-weight-bold">搜索</h4>
<button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body mx-3">
<div class="md-form mb-5">
<input type="text" id="local-search-input" class="form-control validate">
<label data-error="x" data-success="v"
for="local-search-input">关键词</label>
</div>
<div class="list-group" id="local-search-result"></div>
</div>
</div>
</div>
</div>
<div id="footerContent" class="rgba-black-slight">
<footer class="pt-5">
<div class="text-center py-3">
<div class="footer-theme">
<i class="iconfont icon-love"></i>Acknowledgements:<br><a href="https://img.tg" target="_blank">IMG.TG</a> / <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener noreferrer">Fluid</a> / <a href="https://www.julydate.com" target="_blank" rel="nofollow noopener noreferrer">Julydate</a>
</div>
<div class="footer-copyright">
© 2012-2021 Cee
</div>
</div>
</footer>
</div>
<!-- SCRIPTS -->
<script src="/lib/popper/popper.min.js" ></script>
<script src="/lib/bootstrap/js/bootstrap.min.js" ></script>
<script src="/lib/mdbootstrap/js/mdb.min.js" ></script>
<script src="/js/main.js" ></script>
<script src="/js/lazyload.js" ></script>
<!-- Plugins -->
<script src="/lib/prettify/prettify.min.js" ></script>
<script type="text/javascript">
$(document).ready(function () {
$('pre').addClass('prettyprint linenums');
prettyPrint();
})
</script>
<script src="/lib/typed/typed.min.js" ></script>
<script type="text/javascript">
var typed = new Typed('#subtitle', {
strings: [
' ',
"Cee 的创新基地和学习笔记 ",
],
cursorChar: "_",
typeSpeed: 80,
loop: false,
});
typed.stop();
$(document).ready(function () {
$(".typed-cursor").addClass("h2");
typed.start();
});
</script>
<script src="/lib/anchor/anchor.min.js" ></script>
<script type="text/javascript">
anchors.options = {
placement: "right",
visible: "hover",
};
var el = "h1,h2,h3,h4,h5,h6".split(",");
var res = [];
for (item of el) {
res.push(".markdown-body > " + item)
}
anchors.add(res.join(", "))
</script>
<script src="/js/local-search.js" ></script>
<script type="text/javascript">
var path = "/local-search.xml";
var inputArea = document.querySelector("#local-search-input");
inputArea.onclick = function () {
getSearchFile(path);
this.onclick = null
}
</script>
<script>
!function (e, t, a) {
function r() {
for (var e = 0; e < s.length; e++) s[e].alpha <= 0 ? (t.body.removeChild(s[e].el), s.splice(e, 1)) : (s[e].y--, s[e].scale += .004, s[e].alpha -= .013, s[e].el.style.cssText = "left:" + s[e].x + "px;top:" + s[e].y + "px;opacity:" + s[e].alpha + ";transform:scale(" + s[e].scale + "," + s[e].scale + ") rotate(45deg);background:" + s[e].color + ";z-index:99999");
requestAnimationFrame(r)
}
function n() {
var t = "function" == typeof e.onclick && e.onclick;
e.onclick = function (e) {
t && t(), o(e)
}
}
function o(e) {
var a = t.createElement("div");
a.className = "heart", s.push({
el: a,
x: e.clientX - 5,
y: e.clientY - 5,
scale: 1,
alpha: 1,
color: c()
}), t.body.appendChild(a)
}
function i(e) {
var a = t.createElement("style");
a.type = "text/css";
try {
a.appendChild(t.createTextNode(e))
} catch (t) {
a.styleSheet.cssText = e
}
t.getElementsByTagName("head")[0].appendChild(a)
}
function c() {
return "rgb(" + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + ")"
}
var s = [];
e.requestAnimationFrame = e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.oRequestAnimationFrame || e.msRequestAnimationFrame || function (e) {
setTimeout(e, 1e3 / 60)
}, i(".heart{width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);}.heart:after,.heart:before{content: '';width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%;position: fixed;}.heart:after{top: -5px;}.heart:before{left: -5px;}"), n(), r()
}(window, document);
</script>
<!-- Functions -->
<script type="text/javascript">
/* 切换背景 */
$("#background").removeClass("banner-bg");
$("body").addClass("banner-bg");
var postToTopHight = $("#board").offset().top;
$(window).scroll(function () {
var bgDisplay = false;
var scrollHeight = document.body.scrollTop + document.documentElement.scrollTop;
bgDisplay = scrollHeight >= postToTopHight;
if(bgDisplay) {
$('#background').removeClass("rgba-black-slight");
$('#mainContent').removeClass("rgba-black-slight");
$('#footerContent').removeClass("rgba-black-slight");
} else {
$('#background').addClass("rgba-black-slight");
$('#mainContent').addClass("rgba-black-slight");
$('#footerContent').addClass("rgba-black-slight");
}
});
</script>
<script type="text/javascript">
/*窗口监视*/
var originalTitle = document.title;
window.onblur = function(){document.title = "给我切回来!!!"};
window.onfocus = function(){document.title = originalTitle};
</script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-147971757-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag("js", new Date());
gtag("config", "UA-147971757-1");
</script>
<script type="text/javascript">
/* 页面 banner 覆盖全屏 */
$(".scroll-down-bar .scroll-down-arrow").css({"margin-top":"3rem"});
$("#board").css({"margin-top":"0"});
</script>
</body>
</html>