摘要: 参考 "mysql cluster镜像" https://medium.com/@ahmedamedy/mysql clustering with docker 611dc28b8db7 使用Docker创建Cluster步骤 目标:一个管理节点,二个数据节点,二个mysqlserver节点 1. 阅读全文
posted @ 2019-08-30 10:29 不要相信我 阅读(3028) 评论(0) 推荐(0) 编辑
摘要: https://medium.com/javascript scene/master the javascript interview what is a pure function d1c076bec976 The Trouble with Shared State Several years a 阅读全文
posted @ 2019-08-21 15:11 不要相信我 阅读(203) 评论(0) 推荐(0) 编辑
摘要: https://segmentfault.com/a/1190000016351095 http://www.dengshenyu.com/java/%E5%88%86%E5%B8%83%E5%BC%8F%E7%B3%BB%E7%BB%9F/2017/10/23/zookeeper distribu 阅读全文
posted @ 2019-08-14 16:01 不要相信我 阅读(815) 评论(0) 推荐(0) 编辑
摘要: ``` using StackExchange.Redis; using System; using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; namespace RedisDemo { class Program { ... 阅读全文
posted @ 2019-08-13 10:46 不要相信我 阅读(3322) 评论(0) 推荐(0) 编辑
摘要: ``` function eq (y) { return function forX(x) { return x === y } } function mod (y) { return function forX (x) { return x % y } } function compose (fn 阅读全文
posted @ 2019-08-08 20:26 不要相信我 阅读(223) 评论(0) 推荐(0) 编辑
摘要: ```c [Fact] public async Task VerfiyJwtTokenUseJwks() { var jwt = @"your jwt token"; var wellKnownAddress = "http://your openid host/.well known/openi 阅读全文
posted @ 2019-07-25 13:47 不要相信我 阅读(1645) 评论(0) 推荐(2) 编辑
摘要: ``` public struct HashCode { private readonly int value; private HashCode(int value) { this.value = value; } public static implicit operator i... 阅读全文
posted @ 2019-01-03 08:46 不要相信我 阅读(243) 评论(0) 推荐(0) 编辑
摘要: ``` public class RedisRateLimiter { private static Logger LOG = LogManager.GetLogger("redis-limiter"); private static readonly string TIME_KEY = "TIME_KEY"; private static readonly string... 阅读全文
posted @ 2018-12-25 08:56 不要相信我 阅读(565) 评论(0) 推荐(0) 编辑
摘要: 1. 准备Centos7环境及Docker环境 2. 从Docker hub拉取 基础镜像(可以使用国内加速) 3. 向Centos7指定目录上传Dotnet Core程序,目录: /home/firstApp 4. 制作Dockerfile Dockerfile 参考 1. https://doc 阅读全文
posted @ 2018-11-09 17:13 不要相信我 阅读(1094) 评论(0) 推荐(0) 编辑
摘要: ``` const HttpRequest = function() { this.query = '' } function HttpResponse() { this.body = [] this.status = 0; } HttpResponse.prototype.write = function(block) { this.body.push(block) } H... 阅读全文
posted @ 2018-09-12 13:40 不要相信我 阅读(204) 评论(0) 推荐(0) 编辑