电影《一部关于糖的电影》和加州大学 Robert Lustig 教授的 【Sugar: The Bitter Truth】 观后感

2021-07-04 21:54:42 update 昨天晚上我把加州大学 Robert Lustig 教授的 【Sugar: The Bitter Truth】 又看了一边,依然很震惊。但这次我觉得有必要做一些记录。lecture当中有很多值得思考的内容。 What do the Atkins Diet and the Japanese Diet have in common? (阿特金斯饮食法和日本饮食法有什么相同点?) So the Atkins diet, of course, is all fat no carb. Japanese diet's all carb, not ... 阅读全文 »

2020 年终总结

毕业后第一个完整社会人身份的一年,收获了不少,却又感觉没有得到足够的成长。 工作和技术 今年博客分享的一些文章 https://hellodk.cn/archives#2020 今天在 v2ex 阅读了两个比较有触动的帖子 大家的博客都会写一些什么内容呢 https://www.v2ex.com/t/743583 我的 2020 年终总结 https://www.v2ex.com/t/743606 网友 zooo 说的 「感觉记录生活需要“暴露自己” 内心不“敢”去“暴露”...」 感觉看到了自己…… 在B站看视频,满屏的弹幕「真实」、「求求你把放我屋里的监控拆了」差不多的感受。 学... 阅读全文 »

openwrt 定时检查进程是否还在运行并自动重启(以 qbittorrent-nox 为例)

众所周知 openwrt 的软件包不够完善,除了自己编译,目前官方或第三方源里都没有 systemd 这些程序 本文以 qbittorrent-nox 为栗子? 首先找到 qbittorrent-nox 的执行命令,是 /usr/bin/qbittorrent-nox --profile=/mnt/ThreeTB2/qbit_backup 编写 /mnt/ThreeTB2/check_qbittorrent.sh #!/bin/bash # author: hellodk # time: 2021-01-10 # script feature description: check if ... 阅读全文 »

windows powershell 实现类似 grep 的效果

windows powershell 下使用 ps 命令可以查看当前所有的 process name 但是如何才能像 linux 那样使用 ps |grep nginx 那样 只输出和字符串 nginx 相匹配的进程呢? ps | Out-String -stream | sls nginx 可以实现类似 grep 的效果 关于 powershell 的 Out-String 可以翻阅微软官方文档 https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/out-string?... 阅读全文 »

托管docker-getting-started(docker快速入门)页面 并使用 https 访问

centOS7 安装 docker yum install docker 查看 docker 版本 docker -v docker version 设置 docker autostart 并且 启动之 systemctl enable docker systemctl start docker 可以先使用 systemctl is-enabled docker 查看 是 disabled 还是 enabled 拉取 docker-getting-started docker pull docker/getting-started 查看 image id docker images 比... 阅读全文 »