# 指定yum源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
# 下载并安装
curl https://intoli.com/install-google-chrome.sh | bash
ldd /opt/google/chrome/chrome | grep "not found"
# 测试浏览器
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
ExecutorService es = Executors.newFixedThreadPool(10); | |
es.execute(new Thread());//执行子线程任务 | |
try { | |
es.shutdown(); | |
if(!es.awaitTermination(20,TimeUnit.SECONDS)){//20S | |
System.out.println(" 到达指定时间,还有线程没执行完,不再等待,关闭线程池!"); | |
es.shutdownNow(); | |
} | |
} catch (Throwable e) { | |
// TODO Auto-generated catch block |
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
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-checkstyle-plugin</artifactId> | |
<version>3.0.0</version> | |
<executions> | |
<execution> | |
<id>validate</id> | |
<phase>validate</phase> | |
<goals> | |
<goal>check</goal> |
-
ffmpeg 的一个功能是转换不同的音频格式,其它简介请至http://ffmpeg.org/
-
linux 版本:http://www.ffmpeg.org/download.html#build-linux linux 静态编译版本:https://www.johnvansickle.com/ffmpeg/ windows 版本 :http://ffmpeg.zeranoe.com/builds/
-
ffmpeg官方文档地址:http://ffmpeg.org/ffmpeg.html
ffmpeg -i original.wav -ac 1 -ar 16000 new.wav
- 下载反向代理并启动,破解成功之前不可退出
- 填写如下激活地址
http://127.0.0.1:8888/88414687-3b91-4286-89ba-2dc813b107ce
http://127.0.0.1:8888/ff47a3ac-c11e-4cb2-836b-9b2b26101696
http://127.0.0.1:8888/11d221d1-5cf0-4557-b023-4b4adfeeb36a
- 切换到离线使用
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
@Component | |
public class WebMvcConfig implements WebMvcConfigurer { | |
/** | |
* 添加静态资源文件,外部可以直接访问地址 | |
* | |
* @param registry | |
*/ | |
@Override | |
public void addResourceHandlers(ResourceHandlerRegistry registry) { | |
registry.addResourceHandler("/static/**").addResourceLocations("classpath:/static/"); |
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.apache.flink.streaming.api.scala._ | |
解决could not find implicit value for evidence parameter of type org.apache.flink.api.common.typeinfo.TypeInformation[SomeType] |
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
<plugin> | |
<groupId>org.scala-tools</groupId> | |
<artifactId>maven-scala-plugin</artifactId> | |
<version>2.15.2</version> | |
<executions> | |
<execution> | |
<id>scala-compile-first</id> | |
<phase>process-resources</phase> | |
<goals> | |
<goal>compile</goal> |