写shell脚本监测vps上的frps进程是否存在,不存在自动重启

写下面文本到文件 /home/sftp/check_frps.sh #!/bin/bash # author: hellodk # time: 2021-05-28 16:14:26 # script feature description: check if frps is running, if not, start it function check_frps(){ time3=$(date "+%Y-%m-%d %H:%M:%S") frpsCount=`ps aux | grep "/usr/local/frp/frps -c /usr/local/frp/... 阅读全文 »

openwrt 安装 tree

opkg 源中 tree 的软件包名字就叫 tree 安装: 首先更新 opkg update 再安装 opkg install tree 出现错误,如下 # opkg install tree Installing tree (1.8.0-1) to root... Downloading https://openwrt.proxy.ustclug.org/snapshots/packages/x86_64/packages/tree_1.8.0-1_x86_64.ipk Installing libgcc1 (8.4.0-3) to root... Downloading htt... 阅读全文 »

Rime/鼠须管/小狼毫 在完全中文输入下使用全套西文标点/英文标点

以前的设置方法步骤是 使用一个 alternative.yaml 的配置文件 将上述文件中的 config_version 设置成你本地的rime配置同版本号 在你正在使用的输入方案的配置文件中(比如小鹤双拼的配置文件,double_pinyin_flypy.custom.yaml)打 patch (补丁) 比如你的文件是 default.custom.yaml 打补丁 patch: punctuator: import_preset: alternative 重新部署 deploy 现在如果你的配置方案的方案选单中有 「,。-> , . 」 功能的话... 阅读全文 »

IDE的暗黑模式(dark mode)真的护眼吗?我为什么一直使用浅色背景(light mode)

关于 Dark Mode 和阅读,最近看到了这样的一篇文章 文章链接 https://rxoptical.com/eye-health/is-dark-mode-better-for-your-eyes/ 其中有这样的一段话: White text on a black background, or “dark mode,” makes the eye work harder and open wider, since it needs to absorb more light. When this happens, the white letters can bleed into th... 阅读全文 »

互联网上发布个人敏感信息时,如何最大程度保护隐私?

问题背景 比如在 A 论坛,留微信,你留一个 base64 encoded 的字符串,这样一定程度上能够保护隐私,但是对方若是提前保存了你的微信号(明文或者密文),他都可以通过搜索引擎搜索到很多信息,可能你进行了什么交易都能被搜索到。 我们每天都在生产大量信息,与人交流之中难免会分享个人隐私信息,如何最大限度保护个人隐私信息? 解决方案 使用可以过期的网页托管服务 使用阅后即焚的服务 使用 bitwarden send 或其他同类服务 使用 seafile 或者其他可控的文件管理系统,可以分享一个文件,你可以控制这个文件的内容、过期时间、密码保护、主动删除 share link 分享... 阅读全文 »