Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
50e807f
commit fe66b2d
Showing
43 changed files
with
622 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: "Convergence" | ||
date: 2021-05-22T12:10:09+08:00 | ||
draft: true | ||
toc: true | ||
comments: true | ||
tags: | ||
- untagged | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
title: "Cookies 技术详解" | ||
date: 2021-02-06T18:26:45+08:00 | ||
draft: true | ||
toc: true | ||
comments: true | ||
tags: | ||
- web | ||
--- | ||
|
||
## 基本情况 | ||
|
||
* TODO | ||
* 交互流程 | ||
* 属性和含义 | ||
* 前端设置 cookie | ||
|
||
// https://developer.mozilla.org/en-US/docs/Web/API/Document/cookie | ||
cookieString = jwtTokenKey + "=" + jwtToken + ";path=/;max-age=" + 59 * 60 | ||
if (location.protocol === "https:") { | ||
cookieString += ";SameSite=None;Secure" | ||
} | ||
|
||
## Cookie 的 应用 | ||
|
||
* 鉴权,用户登录身份Token | ||
* 广告追踪 | ||
|
||
## Cookie 与 跨域 | ||
|
||
> [阮一峰:同源策略](http://www.ruanyifeng.com/blog/2016/04/same-origin-policy.html) | ||
## Cookie 与 安全 | ||
|
||
## Cookie 技术未来变化 | ||
|
||
> https://zhuanlan.zhihu.com/p/131256002 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
title: "数据端到端安全存储" | ||
date: 2021-05-22T18:35:20+08:00 | ||
draft: true | ||
toc: true | ||
comments: true | ||
tags: | ||
- untagged | ||
--- | ||
|
||
https://github.com/minio/sio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
title: "方案与设计" | ||
date: 2021-03-17T11:10:07+08:00 | ||
draft: true | ||
toc: true | ||
comments: true | ||
tags: | ||
- untagged | ||
--- | ||
|
||
* 向前兼容/向后兼容 | ||
* 可测试性、组合与依赖注入 | ||
* 可重入:重启可重入,幂等 | ||
* 不要自己预测未来可能的需求而写无用的代码 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: "Linux Ssh X11 Forwarding" | ||
date: 2021-03-13T18:49:11+08:00 | ||
draft: true | ||
toc: true | ||
comments: true | ||
tags: | ||
- untagged | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: "netcat 使用:一次失败的 HTTP chunked 上传文件 Debug" | ||
date: 2021-06-03T17:37:16+08:00 | ||
draft: true | ||
toc: true | ||
comments: true | ||
tags: | ||
- untagged | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: "Socket io" | ||
date: 2021-05-22T12:09:48+08:00 | ||
draft: true | ||
toc: true | ||
comments: true | ||
tags: | ||
- untagged | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
title: "Unix程序让普通用户以Root权限执行的实现方法" | ||
date: 2021-04-04T19:41:35+08:00 | ||
draft: true | ||
toc: true | ||
comments: true | ||
tags: | ||
- untagged | ||
--- | ||
|
||
https://www.jianshu.com/p/be7d77068b44 | ||
|
||
https://www.anquanke.com/post/id/86979 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
title: "Web 安全" | ||
date: 2021-02-06T18:57:39+08:00 | ||
draft: true | ||
toc: true | ||
comments: true | ||
tags: | ||
- 安全 | ||
--- | ||
|
||
## 如何思考 Web 安全问题 | ||
|
||
首先,要明确的一点,**世界上没有绝对的安全**。所有的安全都是有前提条件的。 | ||
|
||
因此一般而言,在思考 Web 安全问题时,一定要预设限制条件。 | ||
|
||
* 比如我们的网络连接不会被监听(因为我们开启了 HTTPS) | ||
* 不考虑用户设备被黑客操纵的情况 | ||
|
||
另外,安全问题就是一场分防守者和攻击者的博弈游戏。 | ||
|
||
作为防守者最重要的不是防止攻击的手段,而是要理解攻击的原理,只要理解了攻击原理,防范手段自然就可以得到。 | ||
|
||
## 常见的难以避免的 Web 攻击方式 | ||
|
||
* 钓鱼网站 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
title: "Websocket" | ||
date: 2021-05-22T12:09:22+08:00 | ||
draft: true | ||
toc: true | ||
comments: true | ||
tags: | ||
- untagged | ||
--- | ||
|
||
https://datatracker.ietf.org/doc/html/rfc6455 | ||
https://www.infoq.cn/article/deep-in-websocket-protocol | ||
|
||
## 介绍 | ||
|
||
### 是什么 | ||
|
||
### 适用场景及优点 | ||
|
||
### 其他技术对比 | ||
|
||
### 缺点 | ||
|
||
## 样例 | ||
|
||
## 模型与编程接口 | ||
|
||
## 原理与协议 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
title: "云服务提供商产品探索" | ||
date: 2021-04-10T10:47:00+08:00 | ||
draft: false | ||
type: series | ||
--- | ||
|
||
探索各大云服务厂商的各种产品能提供的能力、使用场景、价格、底层原理 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: "应用服务器(轻量级应用服务器)" | ||
date: 2021-04-10T11:01:55+08:00 | ||
draft: true | ||
toc: true | ||
comments: true | ||
weight: 200 | ||
summary: 摘要 | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: "云厂商——容器实例" | ||
date: 2021-04-10T10:56:10+08:00 | ||
draft: true | ||
toc: true | ||
comments: true | ||
weight: 400 | ||
summary: 摘要 | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: "物理机(裸金属)" | ||
date: 2021-04-10T10:56:10+08:00 | ||
draft: true | ||
toc: true | ||
comments: true | ||
weight: 300 | ||
summary: 摘要 | ||
--- |
Oops, something went wrong.