Skip to content

Commit

Permalink
docs: add toc
Browse files Browse the repository at this point in the history
  • Loading branch information
RiverOnVenus committed Apr 16, 2024
1 parent 89a305d commit a0e9261
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 5 deletions.
6 changes: 5 additions & 1 deletion _posts/2021-06-15-endianness-little-endian-and-big-endian.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ comments: true

>Photo by <a href="https://unsplash.com/@samsungmemory?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Samsung Memory</a> on <a href="https://unsplash.com/?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText" >Unsplash</a>
* TOC
{:toc}


*最后更新时间:Sat Nov 25 02:04:47 PM CST 2023*

## 0x00 什么是字节顺序
Expand Down Expand Up @@ -77,7 +81,7 @@ Big-endian: 0xefcdab79
在网络编程中,通常使用 `uint32_t htonl(uint32_t hostlong)` , `uint16_t htons(uint16_t hostshort)` , `uint32_t ntohl(uint32_t netlong)` , `uint16_t ntohs(uint16_t netshort)`在网络和主机之间进行大小端的转换。

## 参考资料
## 0x02 参考资料

1. [https://stackoverflow.com/questions/19275955/convert-little-endian-to-big-endian](https://stackoverflow.com/questions/19275955/convert-little-endian-to-big-endian)
2. [https://gcc.gnu.org/onlinedocs/gcc/extensions-to-the-c-language-family/other-built-in-functions-provided-by-gcc.html](https://gcc.gnu.org/onlinedocs/gcc/extensions-to-the-c-language-family/other-built-in-functions-provided-by-gcc.html)
Expand Down
4 changes: 4 additions & 0 deletions _posts/2021-06-24-link-queue-and-sequence-stack.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ comments: true

>Photo by <a href="https://unsplash.com/@polarmermaid?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText" >Anne Nygård</a> on <a href="https://unsplash.com/s/photos/queue?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>
* TOC
{:toc}


## 链式队列

队列,一种抽象数据类型,是先进先出(FIFO, First-In-First-Out)的线性表。通常用链表或者数组来实现。队列只允许在后端(称为rear)进行插入操作,在前端(称为front)进行删除操作。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ comments: true

> Photo by <a href="https://unsplash.com/@aronvisuals?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Aron Visuals</a> on <a href="https://unsplash.com/?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>
* TOC
{:toc}
*最后更新时间:Thu Nov 10 12:59:25 PM CST 2022*

自从开始尝试自定义内核,便陷入其中。在内核方面,我是业余的,仅仅是在内核中打上一些我想使用的补丁以及简单修改一些配置。每当主线内核发布或有新的补丁时,我就会重新编译内核。就我的笔记本电脑来说,每次编译内核都会花费一个多小时的时间,而当我使用了 Modprobed-db 后,编译时间显著减少了。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ comments: true

> Photo by <a href="https://unsplash.com/@tot87?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Piotr Łaskawski</a> on <a href="https://unsplash.com/?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>
* TOC
{:toc}


## 什么是暴力匹配?

从源串的第一个字符起,与模式串的第一个字符比较,若相等,则继续逐个比较后续字符;否则从源串的下一个字符起,重新和模式串比较;以此类推,直至模式串的每一个字符依次和源串中一个连续的字符序列相等,则匹配成功。
Expand Down
2 changes: 0 additions & 2 deletions _posts/2022-11-09-linux-cpu-schedulers.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ comments: true

* TOC
{:toc}


## 前言

对于各种 CPU 调度器,很多人的看法和得到的反馈不一样。有的人想要“压榨” CPU 的性能,将其发挥到极致,他们通常会因为某个调度器带来的一点点性能提升而高兴;有的人真实的感受到了在高负载环境下系统的响应能力提升;有的人对此嗤之以鼻;有的人无所谓这点性能或响应能力;有的人在不同调度器上得到了负优化。
Expand Down
2 changes: 2 additions & 0 deletions _posts/2023-08-07-using-cloudflare-warp-plus-on-arch-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ categories: [linux,tool]
comments: true
---

* TOC
{:toc}
WARP+ 是 Cloudflare 提供的一项网络加速服务,用于改善互联网连接的速度和安全性。WARP+ 旨在通过优化网络路径,减少延迟,并提供更快的网络连接体验。

这里说的 WARP+ 属于 WARP+ Limited,流量是有限的,通过推广获得免费的服务,但是通过 Warp+ Bot 可以获得 24.59PB 流量,也可以说是 Unlimited 了。而真正的 WARP+ Unlimited 属于付费服务。
Expand Down
2 changes: 0 additions & 2 deletions _posts/2024-03-16-capture-tcp-3-way-handshake.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ comments: true

* TOC
{:toc}


## 前言

TCP 三次握手看过很多次了,当时也是理解了,但是总是忘记。比如这次,又忘了,所有来抓包加深记忆和理解,要是还忘了,就来这儿看看:joy:
Expand Down

0 comments on commit a0e9261

Please sign in to comment.