使用 Dropbox 备份 TTRSS 2020.12.13 Software 826 2 分钟 前阵子误操作 docker-compose,玩坏了 TTRSS,订阅全无。经历了血的教训…… 阅读更多 »
解决 vercel hugo 版本过老导致的编译出错 2020.12.10 118 1 分钟 今天升级了主题和本地 hugo 版本,推到 git 仓库后,不出所料 vercel 编译出问题: Error: add site dependencies: load resources: loading templates: "/vercel/workpath0/themes/meme/layouts/partials/third-party/lunr-search.html:8:1": parse…… 阅读更多 »
Java 程序启动慢的一些原因 2020.11.17 开发 404 1 分钟 一、熵/随机数相关 dd count=50 ibs=1024 if=/dev/random > /dev/null 记录了0+50 的读入 记录了7+1 的写出 3712字节(3…… 阅读更多 »
JWT 学习和 jjwt 的使用 2020.11.13 开发 258 1 分钟 原理 TODO 简单测试 maven 添加以下依赖: <dependency> <groupId>io.jsonwebtoken</groupId> <artifactId>jjwt-api</artifactId> <version>0.11.2</version> </dependency> <dependency> <groupId>io.jsonwebtoken</groupId> <artifactId>jjwt-impl</artifactId> <version>0.11.2</version> <scope>runtime</scope> </dependency> <dependency> <groupId>io.jsonwebtoken</groupId> <artifactId>jjwt-jackson</artifactId> <!-- or jjwt-gson if Gson is preferred --> <version>0.11.2</version> <scope>runtime</scope> </dependency> encode java…… 阅读更多 »
使用 bucket4j 进行限流 2020.11.10 开发 375 1 分钟 使用 bucket4j 进行限流。 bucket4j 介绍 TODO: 令牌桶、算法 用途 TODO 实现 基于注解 参考:Pixiv-Illust…… 阅读更多 »
VMware Workstation 下的 CentOS 使用固定 IP 2020.10.13 Software 92 1 分钟 简略写下,有空补充详细。 VMware Workstation windows find the VMware Workstation NAT Network Adapter, then change the IPV4 config: CentOS network config sudo vi /etc/sysconfig/network-scripts/ifcfg-ens33 content: TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=no BOOTPROTO=static DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes…… 阅读更多 »
Mybatis Plus 执行 SQL 打印 2020.10.5 开发 240 1 分钟 简单的 mybatis-plus: mapper-locations: classpath*:/mapper/**Mapper.xml configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl 复杂的 依赖 <!-- p6spy --> <dependency> <groupId>p6spy</groupId> <artifactId>p6spy</artifactId> <version>3.9.1</version> </dependency> 配置 spring: datasource: username: bolitao password: bolitao driver-class-name: com.p6spy.engine.spy.P6SpyDriver url: jdbc:p6spy:mysql://127.0.0.1:3306/boliblog?useUnicode=true&useSSL=false&characterEncoding=utf8&serverTimezone=Asia/Shanghai 其他 src/main/resources/spy.properties: #3.2.…… 阅读更多 »
使用 Typora + PicGo 进行图片上传 2020.10.2 Software 33 1 分钟 简略写下,有空补充详细。 new public github repository new token PicGo settings set github and jsdelivr https://cdn.jsdelivr.net/gh/bolitao/PicRepository set picgo local server Typora settings All done!