Skip to content

Commit a8393cb

Browse files
committed
update
1 parent 4f914fe commit a8393cb

File tree

102 files changed

+5758
-57
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+5758
-57
lines changed

.gitmodules

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[submodule "themes/ananke"]
2+
path = themes/ananke
3+
url = https://github.com/budparr/gohugo-theme-ananke.git
4+
[submodule "themes\\beautifulhugo"]
5+
path = themes\\beautifulhugo
6+
url = https://github.com/halogenica/beautifulhugo.git
7+
[submodule "themes/LeaveIt"]
8+
path = themes/LeaveIt
9+
url = https://github.com/liuzc/LeaveIt.git

README.md

+107-33
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,108 @@
1-
# 编程之路 - Build Your Programming Culture
2-
3-
## [博客地址](https://github.com/vonzhou/hugo-blog)
4-
5-
6-
## 源文件
7-
8-
[content/posts](content/posts)
9-
10-
11-
## 约定
12-
13-
14-
15-
* 博客短链(title.md)要意义明确,文中图片资源命名也以tile-xx命名,序号递增
16-
17-
18-
19-
## [历史文章列表](https://github.com/vonzhou/Blog/blob/master/Contents/Other/history-blogs.md) 2018.12.14
20-
21-
22-
## 其他
23-
24-
* [Spark 快速入门](https://github.com/vonzhou/learning-spark/tree/master/blogs/hello) 2019.3.7
25-
* [《HBase权威指南》读书笔记](https://github.com/vonzhou/Blog/blob/master/Contents/BigData/hbase-definitive.md) 2018.12.20
26-
* [运行《HBase权威指南》书中代码](https://github.com/vonzhou/hbase-book#%E8%BF%90%E8%A1%8Chbase%E6%9D%83%E5%A8%81%E6%8C%87%E5%8D%97%E4%B9%A6%E4%B8%AD%E4%BB%A3%E7%A0%81) 2018.12.18
27-
* [curl URL是否加单引号引发的问题](https://github.com/vonzhou/Blog/blob/master/Contents/Linux/curl/singlequote/curl-single-quote.md) 2018.12.7
28-
* [netstat 命令](https://github.com/vonzhou/Blog/tree/master/Contents/Linux/netstat) 2017.5.16
29-
* [tcpdump 命令](https://github.com/vonzhou/Blog/tree/master/Contents/Linux/tcpdump) 2017.5.16
30-
* [《深入理解计算机系统结构》实战](https://github.com/vonzhou/CSAPP) 2015.3.24
31-
* [《快学Scala》读书笔记](https://github.com/vonzhou/ScalaImpatient#%E5%BF%AB%E5%AD%A6scala%E8%AF%BB%E4%B9%A6%E7%AC%94%E8%AE%B0) 2018.12.31
32-
* [SQL优化方法总结](https://github.com/vonzhou/Blog/blob/master/Contents/Database/sql-optimization) 2019.2.23
33-
* [何为整洁架构?](https://github.com/vonzhou/Blog/blob/master/Contents/Reading/cleanarch/clean-arch.md) 2019.1.8
1+
# 编程之路 - Build Your Programming Culture
2+
3+
## [博客地址](https://github.com/vonzhou/hugo-blog)
4+
5+
6+
## 源文件
7+
8+
9+
[2015阅读的书单](content/posts/2015-read-book.md) 2016-04-06
10+
11+
[2016阅读书单](content/posts/2016-read-book.md) 2016-12-10
12+
13+
[2017阅读书单](content/posts/2017-read-book.md) 2018-01-03
14+
15+
[2018阅读书单](content/posts/2018-read-book.md) 2018-12-16
16+
17+
[记一次 ArrayList 线程安全问题](content/posts/arraylist-thread-safe-problem.md) 2018-07-12
18+
19+
[Java字节码工具AsmTools介绍](content/posts/asmtools-intro.md) 2018-11-27
20+
21+
[波兰来客](content/posts/bo-lan-lai-ke.md) 2019-03-15T11:03:31+08:00
22+
23+
[CAS 的底层实现](content/posts/cas.md) 2018-09-19
24+
25+
[DispatcherServlet 源码阅读](content/posts/dispatcherservlet.md) 2016-08-24
26+
27+
[Disruptor中的事件消费模式](content/posts/disruptor-consume-pattern.md) 2018-09-28
28+
29+
[Disruptor 快速入门](content/posts/disruptor-get-started.md) 2018-09-21
30+
31+
[ArrayBlockingQueue与Disruptor的性能对比](content/posts/disruptor-vs-arrayblockingqueue.md) 2018-12-01
32+
33+
[为什么枚举是实现单例最好的方式?](content/posts/enum-singleton.md) 2019-02-14
34+
35+
[HBase 实现分页查询](content/posts/hbase-page.md) 2019-03-14
36+
37+
[InnoDB 行锁的实现](content/posts/innodb-row-lock.md) 2019-02-16
38+
39+
[IntegerCache源码阅读](content/posts/integercache.md) 2018-12-19
40+
41+
[深入理解条件变量 Condition](content/posts/java-condition.md) 2018-11-11
42+
43+
[使用WatchService监控文件变化](content/posts/java-watchservice.md) 2017-09-05
44+
45+
[JDK 12新特性:Switch表达式](content/posts/java12-switch-expression.md) 2019-03-20
46+
47+
[从连接池(JedisPool)获取Redis连接源码分析](content/posts/jedis-pool-get.md) 2018-12-14
48+
49+
[JVM垃圾回收总结](content/posts/jvm-gc-summary.md) 2019-02-21
50+
51+
[Kafka中的2种日志清理策略](content/posts/kafka-cleanup-policy.md) 2018-09-14
52+
53+
[大面积offset commit失败,导致不停Rebalance,大量消息重复消费的问题](content/posts/kafka-consumer-rebalance-jitter.md) 2019-01-30
54+
55+
[记一次使用KafkaProducer引发的Full GC问题](content/posts/kafka-producer-fullgc-story.md) 2019-03-01
56+
57+
[Kafka源码阅读环境搭建](content/posts/kafka-source-begin.md) 2018-11-07
58+
59+
[Linux常用命令总结](content/posts/linux-commands.md) 2018-08-31
60+
61+
[如何保证ArrayList在多线程环境下的线程安全性](content/posts/make-arraylist-thread-safe.md) 2018-09-07
62+
63+
[Nginx后端响应不完整问题分析](content/posts/nginx-temp-file.md) 2019-01-04
64+
65+
[Redis中键的过期删除策略](content/posts/redis-expire.md) 2018-09-09
66+
67+
[RocketMQ源码阅读 - 从消息发送到存储](content/posts/rocketmq-from-msg-send-to-store.md) 2016-08-30
68+
69+
[Spring源码阅读 - bean实例化浅析](content/posts/spring-bean-instantiation.md) 2016-09-02
70+
71+
[Spring源码阅读 - bean解析初体验](content/posts/spring-bean-parse.md) 2016-09-01
72+
73+
[BeanUtils.copyProperties 源码分析](content/posts/spring-beanutils-copyproperties.md) 2019-02-27
74+
75+
[Spring Boot 执行初始化逻辑的方法](content/posts/spring-boot-init-methods.md) 2018-09-18
76+
77+
[如何加快 Spring Boot 项目的启动速度?](content/posts/spring-boot-speedup.md) 2018-09-04
78+
79+
[ExceptionHandler 异常处理过程分析](content/posts/spring-exception-handler.md) 2017-08-10
80+
81+
[Spring 中如何控制2个bean中的初始化顺序?](content/posts/spring-two-bean-init-order-control.md) 2017-10-17
82+
83+
[解决Zuul无法同时转发Multipart和JSON请求的问题](content/posts/zuul-forward-multipart-and-json.md) 2018-10-10
84+
85+
## 约定
86+
87+
88+
89+
* 博客短链(title.md)要意义明确,文中图片资源命名也以tile-xx命名,序号递增
90+
91+
92+
93+
## [历史文章列表](https://github.com/vonzhou/Blog/blob/master/Contents/Other/history-blogs.md) 2018.12.14
94+
95+
96+
## 其他
97+
98+
* [Spark 快速入门](https://github.com/vonzhou/learning-spark/tree/master/blogs/hello) 2019.3.7
99+
* [《HBase权威指南》读书笔记](https://github.com/vonzhou/Blog/blob/master/Contents/BigData/hbase-definitive.md) 2018.12.20
100+
* [运行《HBase权威指南》书中代码](https://github.com/vonzhou/hbase-book#%E8%BF%90%E8%A1%8Chbase%E6%9D%83%E5%A8%81%E6%8C%87%E5%8D%97%E4%B9%A6%E4%B8%AD%E4%BB%A3%E7%A0%81) 2018.12.18
101+
* [curl URL是否加单引号引发的问题](https://github.com/vonzhou/Blog/blob/master/Contents/Linux/curl/singlequote/curl-single-quote.md) 2018.12.7
102+
* [netstat 命令](https://github.com/vonzhou/Blog/tree/master/Contents/Linux/netstat) 2017.5.16
103+
* [tcpdump 命令](https://github.com/vonzhou/Blog/tree/master/Contents/Linux/tcpdump) 2017.5.16
104+
* [《深入理解计算机系统结构》实战](https://github.com/vonzhou/CSAPP) 2015.3.24
105+
* [《快学Scala》读书笔记](https://github.com/vonzhou/ScalaImpatient#%E5%BF%AB%E5%AD%A6scala%E8%AF%BB%E4%B9%A6%E7%AC%94%E8%AE%B0) 2018.12.31
106+
* [SQL优化方法总结](https://github.com/vonzhou/Blog/blob/master/Contents/Database/sql-optimization) 2019.2.23
107+
* [何为整洁架构?](https://github.com/vonzhou/Blog/blob/master/Contents/Reading/cleanarch/clean-arch.md) 2019.1.8
34108
* [《非暴力沟通》读书笔记](https://github.com/vonzhou/Blog/blob/master/Contents/Reading/nonviolent-communication.md)

posts.py

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#!/usr/bin/python
2+
# -*- coding: UTF-8 -*-
3+
4+
import os
5+
from os import listdir
6+
from os.path import isfile, join
7+
8+
9+
print("update posts list in readme")
10+
11+
postsDir = "content/posts"
12+
13+
14+
onlyfiles = [f for f in listdir(postsDir) if isfile(join(postsDir, f))]
15+
16+
postTitleAndDate = {}
17+
18+
# 博客标题占位符
19+
TITLE = "title: "
20+
# 博客日期占位符
21+
DATE = "date: "
22+
# 最终生成的posts列表
23+
res = os.linesep
24+
25+
for f in onlyfiles:
26+
tmp = postsDir + "/" + f
27+
with open(tmp, "r", encoding="UTF-8") as f:
28+
content = f.readlines()
29+
title = ""
30+
date = ""
31+
entry = ""
32+
for line in content:
33+
if(line.startswith(TITLE)):
34+
title = line[line.index(TITLE) + len(TITLE):]
35+
title = title[1:len(title)-2]
36+
entry = entry + "[" + title + "](" + tmp + ")"
37+
if(line.startswith(DATE)):
38+
date = line[line.index(DATE) + len(DATE):]
39+
entry = entry + " " + date
40+
break
41+
res = res + entry + os.linesep
42+
43+
44+
# print(res)
45+
46+
readmeFile = "README.md"
47+
originContent=""
48+
with open(readmeFile, "r", encoding="UTF-8") as f:
49+
originContent = f.read()
50+
51+
# print(originContent)
52+
53+
left = originContent[:originContent.index("## 源文件")] + os.linesep
54+
left = left + "## 源文件" + os.linesep
55+
56+
right = originContent[originContent.index("## 约定"):len(originContent)]
57+
58+
all = left + os.linesep + res + right
59+
60+
with open(readmeFile, "w", encoding="UTF-8") as f:
61+
f.write(all)
62+

0 commit comments

Comments
 (0)