给p12证书更换密码

1先导出成无密码的
openssl pkcs12 -in protected.p12 -nodes -out temp.pem
# -> Enter password

2再加密码
openssl pkcs12 -export -in temp.pem -out unprotected.p12
# -> Just press [return] twice for no password
3删除临时文件
rm temp.pem

 

 [......]

继续阅读

Linux下ape切分并转换为mp3

#转化为flac
ffmpeg -i test.ape test.flac
# 分割
iconv -f gbk -t utf8 test.cue > test_utf8.cue
shntool split -t "%n.%p.%t" -f test.cue -o flac test.flac -d output
# flac转为mp3
flac -cd test.flac | lame --preset insane test.mp3
也可以flac直接分割成mp3[......]

继续阅读

gradle常用方法收集

1、初始化一个gradle目录结构化的java工程
gradle init --type java-application
2、初始化一个gradle目录结构化的java库工程
gradle init --type java-library
3、速度太慢想切换国内镜像
repositories {
maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
...
}
4、查看依赖树[......]

继续阅读