Hugo 安装评论插件 gitment 提示 Bad credentials

Hugo 主题启用评论插件 gitment 后,一直报错 Bad credentials,查看了插件的安装和设置步骤都是无误的,网上也很多文章说到这个报错,但没看到有效的解决方案。前面的两个 OAuth 请求是正常的,应用向 github 发送授权请求,及生成授权码跳转回页面,而获取 access_token 这一步开始报 403 错误。

关于血脂健康的知识

饮食的"高脂蛋白水平"无疑与我们饮食的"高密度"有很大的关系。因此,建议低密度脂蛋白高的人群要学会避免进食,不要吃垃圾食品,不要吃高温、高糖、高盐的食物,要注意多喝水。

记一次煎牛排

记录在家一次煎牛排的 vlog,先用铸铁锅煎至差不多 7 成熟,然后再放空气炸锅“加热”一下,口感很不错。

Macbook Pro 更换电池

这两台 MacBook Pro 都过保了。 一台是公司的 MacBook Pro 归个人,电池废了,续航只有半个小时; 一台是自用好多年的 MacBook Pro,突然发现底部怎么放不平了,原来是电池老化鼓包了。

本周阅读清单20191130

1.Uber 的 Go 指导规范 https://github.com/uber-go/guide/blob/master/style.md 2.使用JWT保证服务间通信的安全 https://abekthink.github.io/backend/json-web-token/ 3.MySQL查询对大小写不敏感 https://www.jianshu.com/p/408daf82ac71 4.服务流量限制(漏桶、令牌桶) https://chai2010.cn/advanced-go-programming-book/ch5-web/ch5-06-ratelimit.html 5.为什么推荐Inn

本周阅读清单20190830

1.HTTP 代理原理及实现 https://imququ.com/post/web-proxy.html 2.为什么使用通信来共享内存? https://draveness.me/whys-the-design-communication-shared-memory 3.深入理解Go-defer的原理剖析 https://juejin.im/post/5d71d1edf265da03e52356fb 4.Nginx实现JWT验证-基于OpenRest

本周阅读清单20190808

1.PHP 正则 preg_match 匹配长度限制 https://learnku.com/articles/7193/php-regular-preg-match-matching-length-limit 2.深悉正则(pcre)最大回溯/递归限制 http://www.laruence.com/2010/06/08/1579.html 3.Redis的内存优化 https://cachecloud.github.io/2017/02/16/Redis%E5%86%85%E5%AD%98%E4%BC%98%E5%8C%96 4.Content-Disposition 的 filename 与 filename* 区别 https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Headers/Content-Disposition 5.Redis Scan 命令原理 https://segmentfault.com/a/1190000018218584 6.Redis 字典的遍历 dictScan 算法

本周阅读清单20190731

1.Golang调度器 https://www.jianshu.com/p/1288b8fec84d 2.也谈 goroutine 调度器 https://tonybai.com/2017/06/23/an-intro-about-goroutine-scheduler/ 3.[翻译]The Go scheduler https://hxzhao527.github.io/2018/10/18/%E7%BF%BB%E8%AF%91-The-Go-scheduler/ 4.深入 golang runtime 的调度 https://zboya.github.io/post/go_scheduler/ 5.Goroutine浅析 https://studygolang.com/articles/12003

本周阅读清单20190712

1.Charles 从入门到精通 https://blog.devtang.com/2015/11/14/charles-introduction/ 2.Git如何永久删除文件(包括历史记录) https://www.cnblogs.com/shines77/p/3460274.html 3.Go 编程:图解反射 https://studygolang.com/articles/21936 4.Go并发编程模型:pipeline和cancellatio

本周阅读清单20190620

1.MySQL商品库存扣减问题总结 https://zhaoyixing.coding.me/2018/01/10/mysql-update-safe-md/ 2.MySQL死锁问题分析 https://www.cnblogs.com/LBSer/p/5183300.html 3.[译] Go: 理解 Sync.Pool 的设计 https://studygolang.com/articles/21122 4.epoll 或者 kqueue 的原理是什么? https://www.zhihu.com/question/20122137/answer/14049112 5.深入理解 MySQL ―― 锁、事务

本周阅读清单20190508

1.深入理解GO时间处理(time.Time) https://studygolang.com/articles/11975 2.上云,你需要了解的AK使用姿势 https://yq.aliyun.com/articles/55947 3.高并发集中访问造成连接MYSQL报Cannot assign requested a

本周阅读清单20190408

1.Redis Stream——作为消息队列的典型应用场景 https://yq.aliyun.com/articles/603193 2.深夜学算法之 Skiplist:让链表飞 https://www.jianshu.com/p/fcd18946994e 3.Redis Zset 内部实现 https://zsr.github.io/2017/07/03/redis-zset%E5%86%85%E9%83%A8%E5%AE%9E%E7%8E%B0/ 4.函数调用中的栈帧 https://labrick.cc/2018/06/24/stack-in-call-func/ 5.Go高性能

本周阅读清单20190322

1.深入解析 Go 总 Slice 底层实现 https://halfrost.com/go_slice/ 2.深度解密Go语言之关于 interface 的10个问题 https://www.cnblogs.com/qcrao-2018/p/10766091.html 3.Type assertions in Go https://medium.com/golangspec/type-assertions-in-go-e609759c42e1 4.Hive SQL 的编译过程 https://tech.meituan.com/2014/02/12/hive-sql-to-mapreduce.html 5.经济学十大定律-边际收益递减定律 https://xueqiu.com/1084912228/108513216

本周阅读清单20190305

1.探索 Golang 一致性原语 https://wweir.cc/post/%E6%8E%A2%E7%B4%A2-golang-%E4%B8%80%E8%87%B4%E6%80%A7%E5%8E%9F%E8%AF%AD/ 2.My Standout Features in PHP7 https://medium.com/@jodylecompte/my-standout-features-in-php7-80ccd2763c55 3.为什么遍历 Go map 是无序的? https://segmentfault.com/a/1190000018782278 4.我的游戏人生 http://miloyip.com/2010/my-life-as-a-game/ 5.String Data Type in Go https://medium.com/rungo/string-data-type-in-go-8af2b639478 6.PHP中处理Protocol Buffers

本周阅读清单20190225

1.前缀索引,一种优化索引大小的解决方案 http://www.cnblogs.com/studyzy/p/4310653.html 2.[译]Go 调度器: M, P 和 G https://colobu.com/2017/05/04/go-scheduler/ 3.gRPC 安全认证 https://yuanxuxu.com/2018/11/21/grpc-token/ 4.Go 语言 Channel 实现原理精要 https://draveness.me/golang-channel 5.Go modules 详解 http://objcoding.com/2018/09/13/go-modules/