View giteio.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gate.io.query.url=https://data.gateio.ws |
View channel_v3.json
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"schema_version": "3.0.0", "repositories": ["https://bitbucket.org/jjones028/p4sublime/raw/tip/packages.json", "https://bitbucket.org/klorenz/sublime_packages/raw/tip/packages.json", "https://packagecontrol.io/packages_2.json", "https://packagecontrol.io/repository.json", "https://packages.monokai.pro/packages.json", "https://raw.githubusercontent.com/20Tauri/DoxyDoxygen/master/DoxyDoxygen.json", "https://raw.githubusercontent.com/Andr3as/Sublime-SurroundWith/master/packages.json", "https://raw.githubusercontent.com/FichteFoll/sublime_packages/master/package_control.json", "https://raw.githubusercontent.com/Floobits/floobits-sublime/master/packages.json", "https://raw.githubusercontent.com/Harrison-M/indent.txt-sublime/master/packages.json", "https://raw.githubusercontent.com/Hexenon/FoxCode/master/packages.json", "https://raw.githubusercontent.com/Kaizhi/SublimeUpdater/master/packages.json", "https://raw.githubusercontent.com/Kasoki/FancyProjects/master/packages.json", "https://raw.githubusercontent.com/Mat |
View ThreadPoolManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import java.util.Queue; | |
import java.util.concurrent.*; | |
/** | |
* 线程池管理 | |
*/ |
View FingerPrintFeignconfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
public class FingerPrintFeignconfig implements RequestInterceptor { | |
private final Logger logger = LoggerFactory.getLogger(getClass()); | |
@Override | |
public void apply(RequestTemplate template) { | |
ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder | |
.getRequestAttributes(); | |
HttpServletRequest request = attributes.getRequest(); | |
Enumeration<String> headerNames = request.getHeaderNames(); |
View show-busy-java-threads.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# @Function | |
# Find out the highest cpu consumed threads of java, and print the stack of these threads. | |
# | |
# @Usage | |
# $ ./show-busy-java-threads | |
# | |
# @online-doc https://github.com/oldratlee/useful-scripts/blob/master/docs/java.md#-show-busy-java-threads | |
# @author Jerry Lee (oldratlee at gmail dot com) | |
# @author superhj1987 (superhj1987 at 126 dot com) |
View AsyncAlertService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.doraemoney.wk.quotecheckplatform.service.support; | |
import com.alibaba.fastjson.JSONObject; | |
import org.asynchttpclient.AsyncHttpClient; | |
import org.asynchttpclient.DefaultAsyncHttpClient; | |
import org.asynchttpclient.DefaultAsyncHttpClientConfig; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.boot.context.properties.ConfigurationProperties; |
View ForkJoin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.doraemoney.wk.quotecheckplatform.util; | |
import java.util.concurrent.ForkJoinPool; | |
import java.util.concurrent.RecursiveAction; | |
import java.util.concurrent.TimeUnit; | |
/** | |
* created by wanglichao@163.com on 2018/10/26. | |
*/ | |
public class PrintTask extends RecursiveAction{ |
View jvm-tomcat.con
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
安装软件 | |
jdk | |
jdk版本: jdk-8u171-linux-x64.tar.gz | |
#安装路径: | |
tar -zxf jdk-8u171-linux-x64.tar.gz | |
ln -s /app/java/jdk1.8.0_171 /app/java/default | |
#设置环境变量 | |
vim ~/.bash_profile |
View git.alias
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
s = status | |
st = status | |
sb = status -s -b | |
############# | |
d = diff | |
di = diff | |
dc = diff --cached | |
dk = diff --check | |
dck = diff --cached --check |
View RecursiveTaskTest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.doraemoney.test.own; | |
import java.util.concurrent.ForkJoinPool; | |
import java.util.concurrent.ForkJoinTask; | |
import java.util.concurrent.RecursiveTask; | |
import com.doraemoney.core.utils.ThreadPoolUtils; | |
/** | |
* Created By WangLichao On 2017年5月26日. |
NewerOlder