Posts

  • Github OAuth 时序图

    Github OAuth 时序图:

  • The Go Memory Model 中文翻译

    原文:The Go Memory Model

    Go内存模型

  • Redis EVALSHA's best practice

    If an EVAL is performed against a Redis instance all the subsequent EVALSHA calls will succeed. So the best practice of EVALSHA command of Redis is:

  • TCP服务器如何处理死掉的连接

    互联网公司的TCP服务器(以下简称server)通常需要处理大量的来自TCP客户端(以下简称client)的连接,连接必然会占用系统资源(不过对于多路复用的模型来说,实际上只占用了一个文件描述符和少量内存)。在client断开连接、client进程退出、client主机正常关机、client主机崩溃的情况下,server如何处理这些连接?

  • 在多台服务器上并行执行脚本

    工作中经常碰到要在多台服务器上查日志,下面这个脚本可以同时在多台服务器上并发地执行命令。

  • 批量杀进程的脚本

    ps -ef | grep something_to_find | grep -v grep | cut -c 9-15 | xargs kill -9
    

  • My Vim Config For Go

    In my first blog, I want to share my vim config. This config is for coding Golang. It’s simple and full-powered.