Loading...

10 2020 档案

摘要:-- 查询超级表有多少个子表 select tbname from electricmeter [ where tbname in ( 'd001947' )]; -- 查所有电表某小时最新电量 select ts,last(imp_ep) from electricmeter where ts < 阅读全文
posted @ 2020-10-15 14:31 choizzzi 阅读(4000) 评论(0) 推荐(0)
摘要:日期格式化 date "+%Y-%m-%d %H:%M:%S" 删除目录下指定后缀的文件 # 删除wulian-cloud目录下 .iml 后缀的文件 $ find wulian-cloud -name "*.iml" | xargs rm 阅读全文
posted @ 2020-10-14 17:05 choizzzi 阅读(61) 评论(0) 推荐(0)
摘要:Java Spring Boot 打包部署方案 背景 最近在做一个内网的项目,项目前后端分离,后端用Spring Boot,前端用Ant Design React。部署的环境是学校内网,部署是通过4 G网卡+VPN连接到内网的机器部署的,考虑到Docker需要连接网络且镜像很大,我们采用最原始的部署 阅读全文
posted @ 2020-10-14 00:07 choizzzi 阅读(641) 评论(0) 推荐(0)
摘要:官网文档: https://docs.oracle.com/javase/8/docs/technotes/guides/troubleshoot/tooldescr006.html 官网介绍: The jcmd utility is used to send diagnostic(诊断 [ˌdaɪ 阅读全文
posted @ 2020-10-13 17:52 choizzzi 阅读(2031) 评论(0) 推荐(1)
摘要:实用语句 查询指定ip的连接,并拼接出批量kill语句 SELECT GROUP_CONCAT('kill ', SEPARATOR id, ';') FROM information_schema.processlist WHERE HOST LIKE '%191.8.1.77%'; 数据导出 # 阅读全文
posted @ 2020-10-10 16:09 choizzzi 阅读(104) 评论(0) 推荐(0)
摘要:htop:查进程的内存占用 $ htop 相关名词: VIRT:virtual memory usage 虚拟内存 进程“需要的”虚拟内存大小,包括进程使用的库、代码、数据等 假如进程申请100m的内存,但实际只使用了10m,那么它会增长100m,而不是实际的使用量 RES:resident mem 阅读全文
posted @ 2020-10-09 13:30 choizzzi 阅读(3674) 评论(0) 推荐(0)
摘要:以SpringBoot项目为例子。 build.gradle: plugins { id 'org.springframework.boot' version '2.3.3.RELEASE' id 'io.spring.dependency-management' version '1.0.10.R 阅读全文
posted @ 2020-10-05 00:18 choizzzi 阅读(1525) 评论(0) 推荐(0)
摘要:我的开发机器是Deepin 先安装rdesktop: sudo apt-get install rdesktop 如果是源码安装,执行configure时提示需要xcursor,请安装: sudo apt-get install libxcursor-dev libpcsclite-dev libs 阅读全文
posted @ 2020-10-02 22:22 choizzzi 阅读(370) 评论(0) 推荐(0)
摘要:解决中文乱码 git config --global core.quotepath false 查看提交日志 git log --pretty=oneline 克隆仓库 git clone <git仓库的url> 本地建分支并推送到远程 git clone <git仓库的url> ## 本地创建de 阅读全文
posted @ 2020-10-02 22:20 choizzzi 阅读(124) 评论(0) 推荐(0)
摘要:1 简单安装 先安装Node.js环境(这里不详述),再安装TiddlyWiki的Node.js服务端: npm install -g tiddlywiki 新建数据目录: cd ~ ## 这样会新建一个目录:~/wiki tiddlywiki wiki --init server 启动: cd ~ 阅读全文
posted @ 2020-10-02 22:15 choizzzi 阅读(1653) 评论(0) 推荐(0)
摘要:imgitee.sh #!/bin/bash token="xxxxx" owner="ccccccc" repo="ccccc" today="`date +%Y-%m-%d`" message="imgitee upload" # 逐个上传图片到gitee for i in "$@"; do # 阅读全文
posted @ 2020-10-02 00:35 choizzzi 阅读(240) 评论(0) 推荐(0)