/images/avatar.png

十年磨一剑

博客网站搭建记录

选定博客搭建框架 因为所有的笔记都是 markdown + Typora 写的,所以希望找一个要求如下的网站搭建框架 [必要]可以根据 markdown 生成或者渲染网站 [必要]不能和 Typora 冲突, 搭

docker Q&A

挂载宿主机已存在目录后,在容器内对其进行操作,报“Permission denied" 可通过两种方式解决: 关闭 selinux 临时关闭:setenforce 0 永久关闭:

plan9

查看汇编代码的几种方法 go tool compile -N -l -S ./go_file.go (优先) go build -gcflags=-S go_file.go go tool objdump go_file.o 参考文档 https://github.com/teh-cmc/go-internals/blob/master/chapter1_assembly_primer https://golang.org/doc/asm plan9 伪汇编 Go 编译器生成会输出一种抽象可移植的汇编代码,这种汇编并不对应

Git 笔记

install server 1 2 3 4 # download and install yum install -y git # create a git user sudo adduser git client 1 2 3 4 5 # download and install yum install -y git # 国内替换 github 镜像 # 使用国内镜像,目前已知Github国内镜像网站有g

TCP

TCP TCP 协议 Transmission Control Protocol 传输控制协议 Source port number: This is the port number of the sending TCP. Destination port number: This is the port number of the destination TCP. Sequence number: This is the sequence number for this segment. This is the offset of the first byte of data in this segment within the stream of data being transmitted in this direction

channel

chansend, chanrec, closechan 的结果 黄色标记为返回值 1 2 3 4 5 6 7 8 9 // chanrecv 有两个 bool 返回值 selected received // 例如: // select { // case v, ok =<- c: // ... // } // selected : 表示 case 可以被 selected // received : ok == true func chanrecv(c *hchan,