Skip to content

Instantly share code, notes, and snippets.

@dolt131943
dolt131943 / nexus3-docker-boot-error.md
Last active April 20, 2021 07:27
nexus3 docker 无法完成启动(8h以上),单核cpu一直100%,无法访问
"FelixStartLevel" #23 daemon prio=5 os_prio=0 tid=0x00007fee78418800 nid=0xde runnable [0x00007fee53782000]
   java.lang.Thread.State: RUNNABLE
	at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.OWALPageChangesPortion.getIntValue(OWALPageChangesPortion.java:85)
	at com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurablePage.getIntValue(ODurablePage.java:117)
	at com.orientechnologies.orient.core.storage.impl.local.paginated.OClusterPage.doDefragmentation(OClusterPage.java:501)
	at com.orientechnologies.orient.core.storage.impl.local.paginated.OClusterPage.appendRecord(OClusterPage.java:99)
	at com.orientechnologies.orient.core.storage.impl.local.paginated.OPaginatedCluster.updateRecord(OPaginatedCluster.java:1121)
	at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.doUpdateRecord(OAbstractPaginatedStorage.java:4039)
	at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.commitEntry(OAbstractPaginatedStorage
@dolt131943
dolt131943 / cron-run-docker-error.md
Created May 11, 2019 15:56
crontab can not run normally when invoke shell that contains docker command with -it option
@dolt131943
dolt131943 / gist:75941cff0f10ff1a2fcc9524cf46fca5
Created April 9, 2019 02:07
spring boot2 deplay to tomcat not recognize and boot normal, but standalone ok.
Spring Boot 2.1.2.RELEASE
Spring boot App must extends SpringBootServletInitializer
so web container can recognize the web config.
@dolt131943
dolt131943 / fastjson-confusing-JSONField.md
Created December 9, 2018 12:52
FastJson设置了默认日期格式后就无法使用JSONField进行设置日期格式了!!!
com.alibaba.fastjson.support.config.FastJsonConfig config = new com.alibaba.fastjson.support.config.FastJsonConfig();
		config.setSerializerFeatures(SerializerFeature.PrettyFormat, SerializerFeature.WriteMapNullValue);
		config.setDateFormat("yyyy-MM-dd HH:mm:ss");
 @JSONField(format="yyyy-MM-dd@HH:mm:ss.SSSZ")
    public Date getCreateTime() {
 return createTime;
@dolt131943
dolt131943 / git-flow-always fatal
Created November 27, 2018 11:44
git flow always show error : git flow fatal: Not a gitflow-enabled repo yet. Please run "git flow init" first.
1. use git flow init in a exists repo (already has many branches).
2. this command done with a message: "Production and integration branches should differ."
3. try use "git flow init -d" , "git flow init -f ", or poen .git/config to delete all prefix with "git flow",and retry "git flow init", .problem not resolve.
finally,I manual create develop branch(master already exists), and then "git flow init -f -d", then problem resolved.
@dolt131943
dolt131943 / gist:cc88e47d27db9216fe450f1e5e32e2d5
Created October 12, 2018 07:32
java.sql.SQLException: Illegal mix of collations (utf8mb4_0900_ai_ci,IMPLICIT) and (utf8mb4_general_ci,IMPLICIT) for operation '='
1. mysql create database use utf8mb4 collation utf8mb4_general_ci, and then import tables with charset=utf8mb4 with out setting collation;
2. the imported tables has use the default utf8mb4 collation utf8mb4_0900_ai_ci but not the database used;
solution: change database collation to utf8mb4_0900_ai_ci, solved the above problem.
@dolt131943
dolt131943 / jenkins-windows-slaver-filename-charset.md
Created May 3, 2018 05:57
Jenkins Windows Slaver filename charset error ,中文文件名乱码

打开windows salver下的jenkins-slaver.xml,寻找下列段落:

...
<arguments>-Xrs  -jar "%BASE%\slave.jar" ...
...

添加jvm properties,指定字符集:

-Dfile.encoding=utf-8 -Dsun.jnu.encoding=utf-8

@dolt131943
dolt131943 / samba-limit-size.md
Last active April 15, 2018 08:02
samba限制存储文件大小

方法

新建一个文件,生成一个文件系统,然后加载此文件系统,作为samba文件的存放位置.达到限制文件大小的目的.

优点

简单明了,限制文件大小

缺点

@dolt131943
dolt131943 / docker_tomcat_reomte_debug.md
Last active March 29, 2018 02:32
docker tomcat remote debug

docker run --rm -e JAVA_OPTS='-agentlib:jdwp=transport=dt_socket,address=46029,suspend=n,server=y' -p 46029:46029 containername

注意: 需要把调试端口开放出来.

ref: docker-library/tomcat#8

@dolt131943
dolt131943 / git-flow.md
Created February 23, 2018 03:32 — forked from yesmeck/git-flow.md
Git 开发流程

Git 协作流程

master 分支

master 永远处于稳定状态,这个分支代码可以随时用来部署。不允许在该分支直接提交代码。

develop 分支

开发分支,包含了项目最新的功能和代码,所有开发都在 develop 上进行。一般情况下小的修改直接在这个分支上提交代码。