Skip to content

Commit 56eb207

Browse files
committed
chore(git): add git signature and update README
1. config theme darkmode 2. update README
1 parent f39c345 commit 56eb207

10 files changed

+358
-63
lines changed

README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22
<a href="https://www.incoder.org">BladeCode</a>
33
</h2>
44

5-
![BladeCode](https://travis-ci.com/BladeCode/BladeCode.github.io.svg?branch=dev)
6-
75
![BladeCode](https://github.com/BladeCode/BladeCode.github.io/actions/workflows/action.yml/badge.svg?branch=dev)
86

97
## Thanks
108

119
1. [Node](https://nodejs.org)
1210
2. [Hexo](https://hexo.io)
13-
3. [Next](https://github.com/theme-next/hexo-theme-next)
11+
3. [Next](https://github.com/next-theme/hexo-theme-next)
1412

1513
## Upgrade
1614

_config.next.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ scheme: Mist
4343
#scheme: Gemini
4444

4545
# Dark Mode
46-
darkmode: false
46+
darkmode: true
4747

4848

4949
# ---------------------------------------------------------------
@@ -168,7 +168,7 @@ social:
168168
GitHub: https://github.com/BladeCode || fab fa-github
169169
E-Mail: mailto:incoder.xu@gmail.com || fa fa-envelope
170170
Weibo: https://weibo.com/onblade || fab fa-weibo
171-
Twitter: https://twitter.com/_incoder || fab fa-twitter
171+
Twitter: https://twitter.com/_incoder || fa-brands fa-x-twitter
172172
Medium: https://medium.com/@incoder || fab fa-medium
173173
#FB Page: https://www.facebook.com/yourname || fab fa-facebook
174174
#StackOverflow: https://stackoverflow.com/yourname || fab fa-stack-overflow
@@ -375,8 +375,8 @@ codeblock:
375375
# Code Highlight theme
376376
# All available themes: https://theme-next.js.org/highlight/
377377
theme:
378-
light: stackoverflow-light
379-
dark: stackoverflow-dark
378+
light: base16/humanoid-light
379+
dark: base16/humanoid-dark
380380
prism:
381381
light: prism
382382
dark: prism-dark

_config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Source: https://github.com/hexojs/hexo/
44

55
# Site
6+
# <i class='fa-solid fa-sailboat fa-2xl'></i>
67
title: 星海
78
subtitle: Life's A Struggle!
89
description: ''

source/README.md

+5-35
Original file line numberDiff line numberDiff line change
@@ -4,48 +4,18 @@
44

55
![BladeCode](https://travis-ci.com/BladeCode/BladeCode.github.io.svg?branch=dev)
66

7-
| emoji | emoji代码 | 语义 |
8-
| --------------------------------------- | :--------------------------: | --------------------- |
9-
| :tada:(庆祝) | `:tada:` | 初次提交 |
10-
| :sparkles: (火花) | `:sparkles:` | 引入新功能 |
11-
| :bookmark: (书签) | `:bookmark:` | 发行/版本标签 |
12-
| :bug: (bug) | `:bug:` | 修复 bug |
13-
| :ambulance: (急救车) | `:ambulance:` | 重要补丁 |
14-
| :globe_with_meridians: (地球) | `:globe_with_meridians:` | 国际化与本地化 |
15-
| :rotating_light: (警车灯) | `:rotating_light:` | 移除 linter 警告 |
16-
| :wrench: (扳手) | `:wrench:` | 修改配置文件 |
17-
| :heavy_plus_sign: (加号) | `:heavy_plus_sign:` | 增加一个依赖 |
18-
| :heavy_minus_sign: (减号) | `:heavy_minus_sign:` | 减少一个依赖 |
19-
| :arrow_up: (上升箭头) | `:arrow_up:` | 升级依赖 |
20-
| :arrow_down: (下降箭头) | `:arrow_down:` | 降级依赖 |
21-
| :zap: (闪电) | `:zap:` | 提升性能 |
22-
| :racehorse: (赛马) | `:racehorse:` | 提升性能 |
23-
| :chart_with_upwards_trend: (上升趋势图) | `:chart_with_upwards_trend:` | 添加分析或跟踪代码 |
24-
| :rocket: (火箭) | `:rocket:` | 部署功能 |
25-
| :white_check_mark: (白色复选框) | `:white_check_mark:` | 增加测试 |
26-
| :memo: (备忘录) | `:memo:` | 撰写文档 |
27-
| :hammer: (锤子) | `:hammer:` | 重大重构 |
28-
| :art: (调色板) | `:art:` | 改进代码结构/代码格式 |
29-
| :fire: (火焰) | `:fire:` | 移除代码或文件 |
30-
| :pencil2: (铅笔) | `:pencil2:` | 修复 typo |
31-
| :construction: (施工) | `:construction:` | 工作进行中 |
32-
| :construction_worker: (工人) | `:construction_worker:` | 添加 CI 构建系统 |
33-
| :green_heart: (绿心) | `:green_heart:` | 修复 CI 构建问题 |
34-
| :lock: (锁) | `:lock:` | 修复安全问题 |
35-
| :whale: (鲸鱼) | `:whale:` | Docker 相关工作 |
36-
| :apple: (苹果) | `:apple:` | 修复 macOS 下的问题 |
37-
| :penguin: (企鹅) | `:penguin:` | 修复 Linux 下的问题 |
38-
| :checkered_flag: (旗帜) | `:checked_flag:` | 修复 Windows 下的问题 |
39-
407
## 附录
8+
419
* [Conventional Commits](https://www.conventionalcommits.org)
4210
* [优雅的提交你的 Git Commit Message](https://juejin.im/post/5afc5242f265da0b7f44bee4)
4311
* [Commit message 和 Change log 编写指南](http://www.ruanyifeng.com/blog/2016/01/commit_message_change_log.html)
4412
* [gitemoji](https://gitmoji.carloscuesta.me)
4513

4614
## Thanks
15+
4716
1. [Node](https://nodejs.org)
4817
2. [Hexo](https://hexo.io)
49-
3. [Next](https://github.com/theme-next/hexo-theme-next)
18+
3. [Next](https://theme-next.js.org)
5019
4. [LeanCloud](https://leancloud.cn)
51-
5. [Valine](https://valine.js.org)
20+
5. [Utterances](https://utteranc.es)
21+
6. [Chinese-copywriting-guidelines](https://github.com/sparanoid/chinese-copywriting-guidelines)

source/_posts/freedom-pact.md

+13-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: 评论不自由,赞美无意义
3-
date: 2021-03-05 12:30:10
3+
date: 2021-05-05 12:30:10
44
categories: Agent
55
tag: [VPN]
66
---
77

8-
就像文章标题所述。每到三,五月这个时间,网络变得异常脆弱。各种“奇怪”的网站访问起来很费劲。对于一个技术人员,这些问题可以解决,但是每次都需要花费一定的时间和精力来应对这些,而且随着 [GFW](https://baike.baidu.com/item/GWF) 的不断升级和加强,应对的策略和技术也是在不断的迭代,前前后后已经出现了多种技术,本篇就以这个契机,梳理截止到 2021-03-05 所了解到关于 “代理” 相关的知识。现在主流的科学上网技术有 VPN、SS、SSR、V2Ray、Trojan、Trojan-Go,小众的 WireGuard、Brook、Snell 和 NaiveProxy 等
8+
就像文章标题所述。每到三,五月这个时间,网络变得异常脆弱。各种“奇怪”的网站访问起来很费劲。对于一个技术人员,这些问题可以解决,但是每次都需要花费一定的时间和精力来应对这些,而且随着 [GFW](https://baike.baidu.com/item/GWF) 的不断升级和加强,应对的策略和技术也是在不断迭代,前前后后已经出现了多种技术,本篇就以这个契机,梳理截止到 2021-05-05 所了解到关于 “代理” 相关的知识。现在主流的科学上网技术有 VPN、SS、SSR、V2Ray、Trojan、Trojan-Go,小众的 WireGuard、Brook、Snell 和 NaiveProxy 等
99

1010
<!-- more -->
1111

@@ -22,15 +22,20 @@ VPN 只是一个统称,它有多种具体实现。比如:
2222
* PPTP(点对点隧道协议:Point to Point Tunneling Protocol);
2323
* L2TP(第二层隧道协议:Layer Two Tunneling Protocol);
2424
* IPsec(互联网安全协议:Internet Protocol Security);
25-
* SSL VPN;
26-
* WireGuard;
27-
* OpenVPN;
25+
* WireGuard(一种协议);
26+
* OpenVPN(一种虚拟专用网络 **V**irtual **P**rivate **N**etwork(VPN)系统);
2827
* IKEv2(因特网密钥交换:Internet Key Exchange) 等
2928

30-
其中 WireGuard 是最新的协议实现(在 2020 年,WireGuard 协议已被添加到 Linux 和 Android 内核中,从而为 VPN 提供商所采用。默认情况下,WireGuard 使用 Curve25519 进行秘钥交换,并使用 ChaCha20 进行加密,但还具有客户端和服务器之间预共享对称秘钥的功能)
31-
3229
### WireGuard
3330

31+
WireGuard 是由 Jason A. Donenfeld 开发,是最新的协议实现(在 2020 年,WireGuard 协议已被添加到 Linux 和 Android 内核中,从而为 VPN 提供商所采用。默认情况下,WireGuard 使用 Curve25519 进行秘钥交换,并使用 ChaCha20 进行加密,但还具有客户端和服务器之间预共享对称秘钥的功能)
32+
33+
### OpenVPN
34+
35+
OpenVPN 是由 James Yonan 编写,实现了在路由或桥接配置和远程访问设施中创建安全点对点或站点对站点连接的技术。它实现了客户端和服务器应用程序。它不与IPsec兼容
36+
37+
OpenVPN 允许对等方使用预先共享的密钥、证书或用户名/密码相互验证。当在多客户端服务器配置中使用时,它允许服务器使用签名和证书颁发机构为每个客户端发布身份验证证书。
38+
3439
## SS
3540

3641
SS 是 [Shadowsocks](https://github.com/shadowsocks) 的缩写,中文名为影梭,为了避免关键词过滤,网友喜欢将 Shadowsocks 称为 “酸酸”,是一种基于 Socks5 代理方式的加密传输协议,也可以指定实现这个协议的各种开发包。Shadowsocks 是由 [Clowwindy](https://github.com/clowwindy) 为了自己使用谷歌查资料而编写;Shadowsocks 分为服务端和客户端,在使用之前,需要先将服务器端程序部署到服务器上面,然后通过客户端连接并创建本地代理。后来,他觉得这个东西非常好用,速度也很快,于是将源码提交到了 GitHub。由于其优秀的使用体验,Shadowsocks 被广泛传播,导致作者被某部门请去 “喝茶”。迫于压力 Clowwindy 于 2015-08-22 宣布停止维护此项目,并移除其个人页面所存储的源代码,而且保证永不再参与维护更新
@@ -54,7 +59,7 @@ ShadowsocksR 的作者一开始曾有过违反 GPL 协议,在发布二进制
5459

5560
这里顺带科普一下 Socks5,Socks5 代理的原理是把你的网络数据请求先发送到你的代理服务器,然后由代理服务器转发给目标;如果目标有反馈发送到代理服务器,那么代理服务器会将数据包直接传回到你的本地网络,整个过程只需要数据的二次传输,并没有额外的处理。
5661

57-
>示例:现在呢在深圳,你的代理服务器在香港,如果你想要访问 Google,那么你首先需要把数据请求通过本地 Socks5 代理客户端发给在你在香港的服务器上的 Socks5 代理服务端,然后你在香港的服务器将数据请求发送给 Google,再把 Google 反馈的结果传到你香港的代理服务器,然后通过 Socks5 服务端回传到本地的 Socks5 客户端,这样就可以绕开 GFW 的检测而实现科学上网
62+
> 示例:现在呢在深圳,你的代理服务器在香港,如果你想要访问 Google,那么你首先需要把数据请求通过本地 Socks5 代理客户端发给在你在香港的服务器上的 Socks5 代理服务端,然后你在香港的服务器将数据请求发送给 Google,再把 Google 反馈的结果传到你香港的代理服务器,然后通过 Socks5 服务端回传到本地的 Socks5 客户端,这样就可以绕开 GFW 的检测而实现科学上网
5863
5964
显而易见,Socks5 代理的所有数据走的任然是公网,而且在公网传输过程中,没有对数据进行任何加密和混淆,这跟 VPN 在公网建立虚拟专用通道传输过程中,对数据高强度加密的方式完全不同。Shadowsocks 和 ShadowsocksR 只在客户端和服务器端对数据做了简单加密和认证,主要功能是流量转发,过强才是主要目的。虽然 ShadowsocksR 已经停止更新很久了,而 Shadowsocks 仍处于社区人员的更新和维护之中,不断修复漏洞并增加新功能,所以现在 Shadowsocks 比 ShadowsocksR 更强大
6065

source/_posts/git-account.md

+17-9
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ tag: [git account]
1212
<!-- more -->
1313

1414
## 环境
15+
1516
* Windows 10 x64
1617
* Git version 2.16.0
1718

18-
>这里Git的安装不在赘述
19+
> 这里Git的安装不在赘述
1920
2021
## 生成对应账号的密钥
22+
2123
```sh
2224
# 进入到`your_pc_name/.ssh`,
2325
cd .ssh
@@ -26,18 +28,22 @@ ssh-keygen -t rsa -C "Jerry.x@outlook.com"
2628
# 命名文件名称或指定文件存放路径等
2729
# 其它可以回车键进行确认,进行下一步
2830
```
31+
2932
![git-account](https://res.cloudinary.com/incoder/image/upload/v1538887180/blog/git-account.png)
3033

31-
>完成后,将会生成`id_rsa_company.pub`(存放公钥)与`id_rsa_company`(存放私钥)两个文件
34+
>完成后,将会生成 `id_rsa_company.pub`(存放公钥)与 `id_rsa_company`(存放私钥)两个文件
3235
3336
## 添加公钥到托管平台
34-
*`.ssh`路径下,用文本编辑器打开`id_rsa_company.pub`文件,复制内容
35-
* 在托管平台上添加ssh public key
36-
以下以GitHub添加为例,其它平台类似
37+
38+
*`.ssh` 路径下,用文本编辑器打开 `id_rsa_company.pub` 文件,复制内容
39+
* 在托管平台上添加 ssh public key
40+
41+
以下以 GitHub 添加为例,其它平台类似
3742
![git-add-key](https://res.cloudinary.com/incoder/image/upload/v1538887180/blog/git-add-key.png)
3843

3944
## 添加配置文件
40-
`.ssh`路径下,创建`config`文件,无文件后缀名,如下示例
45+
46+
`.ssh` 路径下,创建 `config` 文件,无文件后缀名,如下示例
4147

4248
```sh
4349
# 配置github.com
@@ -57,16 +63,18 @@ Host company.domain.com
5763

5864
* `Host`:的名字可以取为自己喜欢的名字
5965
* `HostName`:这个是真实的域名地址
60-
例如:https://<font color=red>github.com</font>/BladeCode/BladeCode.github.io.git,红色标注字段
66+
例如:https://<mark>github.com</mark>/BladeCode/BladeCode.github.io.git,红色标注字段
6167
* `IdentityFile`:这里是id_rsa的地址
6268
* `PreferredAuthentications`:配置登录时用什么权限认证
63-
可设为publickey,password publickey,keyboard-interactive等
69+
可设为publickey,password publickey,keyboard-interactive 等
6470
* `User`:配置使用用户名
6571

6672
## 测试
73+
6774
```sh
6875
ssh -T git@github.com
6976
```
77+
7078
![git-test](https://res.cloudinary.com/incoder/image/upload/v1538887180/blog/git-test.png)
7179

72-
>git@<font color=red>github.com</font>,github.com就是上一步中`config`文件中配置的`HostName`字段内容
80+
> git@<font color=red>github.com</font>,github.com 就是上一步中 `config` 文件中配置的 `HostName` 字段内容

0 commit comments

Comments
 (0)