Key | Tested |
---|---|
4F282-0MLD2-M8869-T89G0-CF240 | ✅ |
0F41K-0MJ4H-M88U1-0C3N0-0A214 | ✅ |
Key | Tested |
---|---|
4V492-44210-48830-931GK-2PRJ4 | ✅ |
package com.base.framework.utils; | |
import com.google.common.base.Joiner; | |
import org.apache.commons.io.IOUtils; | |
import org.apache.commons.lang.StringEscapeUtils; | |
import org.apache.commons.lang.StringUtils; | |
import java.io.*; | |
import java.nio.charset.StandardCharsets; | |
import java.util.ArrayList; |
# 获取所有进程的所有信息 | |
wmic /output:d:\\tmp\\proc.csv process | |
# 获取指定进程的命令行参数和内存大小 | |
wmic /output:d:\\tmp\\proc.csv process where name=\"java.exe\" get commandline,workingsetsize | |
# Note | |
# 如果output指定的文件被其他程序打开,会报错:Invalid file name. |
package com.base.framework.utils; | |
import com.base.framework.exception.AppException; | |
import org.springframework.data.redis.core.RedisTemplate; | |
import java.util.concurrent.TimeUnit; | |
/** | |
* 频率限制器 | |
* 令牌桶算法 |
package com.example.test; | |
import org.asynchttpclient.*; | |
import java.net.ConnectException; | |
import java.util.concurrent.TimeoutException; | |
import static org.asynchttpclient.Dsl.asyncHttpClient; | |
import static org.asynchttpclient.Dsl.proxyServer; |
哪个dependency引入了某个jar包? | |
mvn dependency:tree -Dverbose -Dincludes=org.apache.httpcomponents:httpclient:: | |
https://stackoverflow.com/a/4600861/2199283 | |
maven assembly pulls wrong dependency? | |
https://stackoverflow.com/questions/13849854/maven-assembly-pulls-wrong-dependency |
// =========== observable ================ | |
var observable = Rx.Observable.create(function subscribe(observer) { | |
// Keep track of the interval resource | |
var intervalID = setInterval(() => { | |
observer.next('hi'); | |
}, 1000); | |
// Provide a way of canceling and disposing the interval resource | |
return function unsubscribe() { | |
clearInterval(intervalID); |
wget https://dl.eff.org/certbot-auto | |
chmod a+x ./certbot-auto | |
./certbot-auto | |
# cron job | |
0 0 1 * * /opt/certbot-auto renew >> /var/log/certbot-renew.log | |
# Reference | |
# https://certbot.eff.org/docs/install.html#certbot-auto |
To get your configuration working, make these configuration changes on the client:
/etc/ssh/ssh_config
Host *
ServerAliveInterval 100
ServerAliveInterval The client will send a null packet to the server every 100 seconds to keep the connection alive
Type the following key sequence: Enter, ~, .. On US keyboards, the tilde (~) is Shift+`. | |
SSH Escape Characters | |
https://linux.die.net/man/1/ssh | |