• 感同身受

    感同身受是个永恒的伪命题, 所以呢, 怎么办呢

  • 今天做了啥

    写了gohangout的kv插件, 别的好像啥都没做! 天哪…

  • sudoers

    Defaults env_reset,pwfeedback,timestamp_timeout=60

  • snippet cat to a file

    cat > a.conf << END abcd xyz END

  • 睡到自然醒

    天气不错, 不冷, 凉凉的, 走在外面也不用缩成一团. 睡到自然醒, 起来吃个饭, 然后来星巴克看书~

  • elastic reindex

    POST _reindex? { "source": { "index": "kibana-int" }, "dest": { "index": "kibana-int-6.4", "type": "dashboard" }, "script": { "source": "if (ctx.type == 'temp') {ctx._source['type']='temp'} else {ctx._source['type']='dashboard'}", "lang": "painless" } }

  • TODO elasticsearch 搜索plugin开发

    fuzzy 设置权重 span 实现, match in_order

  • regexp newline

    (?ms)(?P<message>.*)$

  • xfs

    yum install xfsprogs

  • sieve.go

    ZZ From https://golang.org/doc/play/sieve.go 一定要纸上划拉了半张纸, 才看懂. // A concurrent prime sieve package main import "fmt" // Send the sequence 2, 3, 4, ... to channel 'ch'. func Generate(ch chan<- int) {...