-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
12 changed files
with
333 additions
and
16 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,5 @@ | ||
--- | ||
slug: /mind/weibo/u/2166767661/03 | ||
--- | ||
|
||
👉 原文: |
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,46 @@ | ||
--- | ||
slug: /mind/weibo/u/2166767661/02 | ||
--- | ||
|
||
👉 原文:[https://weibo.com/2166767661/MveerqJO2](https://weibo.com/2166767661/MveerqJO2) | ||
|
||
|
||
|
||
“[The universe] cannot be read until we have learned the language and become familiar with the characters in which it is written. It is written in mathematical language, and the letters are triangles, circles, and other geometrical figures, without which means it is humanly impossible to comprehend a single word.” ——伽利略在其著作《关于两种新科学的对话》 | ||
|
||
|
||
|
||
我们很多人是应试教育的牺牲品,学校教育让我们讨厌学习,尤其厌恶数学。 | ||
|
||
|
||
|
||
工业革命的核心与数学紧密相连。从现代火箭、汽车、高速铁路到电脑、手机和互联网的诞生,数学都是其不可或缺的基石。 | ||
|
||
|
||
|
||
掌握数学,可以带来很多好处,购物算账,股票盈亏等等 | ||
|
||
|
||
|
||
很多事物也都可以用数学来解释,比如: | ||
|
||
- [长期主义的本质是复利公式](/weibo/u/2166767661/01) | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
2 changes: 1 addition & 1 deletion
2
docs-book/本恰恰/01-长期主义的本质是复利公式.md → docs-book/本恰恰/01-关于思维方式&认知/长期主义的本质是复利公式.md
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,5 @@ | ||
--- | ||
slug: output-json | ||
--- | ||
|
||
如何让 GPT 输出稳定的 JSON 结构是一个常见的需求,目前看比较稳定的方案是 function calling |
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,30 @@ | ||
--- | ||
slug: /net-security/06/01 | ||
--- | ||
|
||
SQL 注入漏洞:没有对输入做一个校验和过滤,使得输入变为 SQL 语句并执行。 | ||
|
||
SQL 注入条件: | ||
|
||
1. 参数对用户来说可控 | ||
2. 参数最终会作为数据库查询语句之一 | ||
|
||
|
||
|
||
## 类型 | ||
|
||
### 数字型 | ||
|
||
输入的参数为整型时,若存在注入漏洞,称为**数字型注入**漏洞。测试步骤: | ||
|
||
1. 加单引号,对应 URL:`www.test.com/test.php?id=1’` | ||
|
||
对应的 SQL 语句:`select * from table where id=1’;` 查询出错,则可能存在漏洞。 | ||
|
||
2. 加 `and 1 = 1`,对应 URL:`www.test.com/test.php?id=1 and 1 = 1;` | ||
|
||
对应的 SQL 语句:`select * from table where id = 1 and 1 = 1;`。 查询正常,则增加存在漏洞可能性。 | ||
|
||
3. 加 `and 1 = 2`,对应 URL:`www.test.com/test.php?id = 1 and 1 = 2;` | ||
|
||
对应的 SQL 语句:`select * from table where id = 1 and 1 = 2;` 查询失败,则确定漏洞存在。 |
Oops, something went wrong.