随笔分类 - 常用
记录一下常用,可以复制使用的东西
摘要:packet出版社:(国外) 地址:https://www.packtpub.com/ 代码github托管 异步社区: 地址:https://www.epubit.com/ 云盘下载 开源epub阅读器 https://github.com/troyeguo/koodo-reader 开源mysq
阅读全文
摘要:mysql数据库连接数 相关的操作 show full processlist; SHOW PROCESSLIST; SHOW FULL PROCESSLIST; SHOW VARIABLES LIKE '%max_connections%'; SHOW STATUS LIKE '%Connecti
阅读全文
摘要:查询所有 db.getCollection('fs.chunks').find({}) 统计数量 db.getCollection('fs.chunks').find({}).count() 根据时间排序 db.getCollection('fs.files').find({}).sort({'up
阅读全文
摘要:// 没有返回值的异步回调 CompletableFuture.runAsync// get方法会阻塞CompletableFuture<Void> completableFuture=CompletableFuture.runAsync(()->{ try { TimeUnit.SECONDS.s
阅读全文
摘要:linux命令 压缩tar -cvf jpg.tar *.jpg //将目录里所有jpg文件打包成tar.jpg tar -czf jpg.tar.gz *.jpg //将目录里所有jpg文件打包成jpg.tar后,并且将其用gzip压缩,生成一个gzip压缩过的包,命名为jpg.tar.gz 解压
阅读全文
摘要:git 提交代码流程: git add * git commit -m "update code" git pull origin 远程目标branch (如果有冲突,解决冲突,git commit -m "resolve conflict") git push origin 自己分支远程 在git
阅读全文

浙公网安备 33010602011771号