摘要: 数据源 动态数据源 可参考 https://www.liaoxuefeng.com/article/00151054582348974482c20f7d8431ead5bc32b30354705000 自定义注解 指定target,方式@Target(java.lang.annotaion.Elem 阅读全文
posted @ 2018-05-29 15:27 WangDazui 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 三目运算: 为真时的结果 if 判断条件 else 为假时的结果(注意,没有冒号) json序列化:josn.dumps() json反序列化:json.loads() 多线程实现: thread: thread.start_new_thread(runTarget,(..)) threading: 阅读全文
posted @ 2018-05-29 15:27 WangDazui 阅读(88) 评论(0) 推荐(0) 编辑
摘要: download -> make -> redis-server ->redis-cli operations: 数值操作incr incrby; decr decrby; lists操作lpush rpush lrange 无序集合sadd smembers sismember sunion .. 阅读全文
posted @ 2018-05-11 14:29 WangDazui 阅读(99) 评论(0) 推荐(0) 编辑
摘要: # MongoDB AWS EC2 Setup Guide **Credits:** - [https://eladnava.com/deploy-a-highly-available-mongodb-replica-set-on-aws/](https://eladnava.com/deploy-a-highly-available-mongodb-replica-set-on-aws... 阅读全文
posted @ 2018-05-10 16:12 WangDazui 阅读(205) 评论(0) 推荐(0) 编辑
摘要: user: create user 'name'@'host' identified by 'passwd' grant usage/all privileges on *.* to 'name'@'host' identified by 'passwd' with max_queries_per_ 阅读全文
posted @ 2018-05-09 18:31 WangDazui 阅读(82) 评论(0) 推荐(0) 编辑
摘要: \s:多个空格; ^:以什么开始; $:以什么结束; 注意:RegExp的Mutiline属性 ?:{0,1}或者非贪心(尽可能短的匹配) \\:转义; *:{0,} +:{1,} .:\r\n外所有单个字符; |:or; [^]:not; \cx:Control+x; \b:字边界匹配; \B:非 阅读全文
posted @ 2017-11-26 21:33 WangDazui 阅读(110) 评论(0) 推荐(0) 编辑
摘要: make make -B(both changed and unchanged files)/-d(describe)/-C(changeDir)/-f(file which renamed) git config --system(/etc/gitconfig);git config --glob 阅读全文
posted @ 2017-11-16 11:35 WangDazui 阅读(1498) 评论(0) 推荐(0) 编辑
摘要: sudo spctl --master-disable开启application安装时的来自任何来源; sudo lsof -i:9000;sodu kill -9 pid;查看端口占用并杀死进程; rmic编译器生成stub类和skeleton类; /home 安装软件 内核的引导 /boot 运 阅读全文
posted @ 2017-11-16 09:27 WangDazui 阅读(202) 评论(0) 推荐(0) 编辑
摘要: sudo wget -O /etc/yum.repos.d/jenkins.repohttp://pkg.jenkins-ci.org/redhat/jenkins.repo sudo rpm --importhttps://jenkins-ci.org/redhat/jenkins-ci.org. 阅读全文
posted @ 2017-11-13 16:15 WangDazui 阅读(656) 评论(0) 推荐(0) 编辑
摘要: getconf LONG_BIT; 查看64位还是32位; mkdir; 阅读全文
posted @ 2017-11-13 15:37 WangDazui 阅读(1117) 评论(0) 推荐(0) 编辑