Linux 删除 N 天前的文件
Linux 删除 N 天前的文件 原文地址:https://www.lucien.ink/archives/452/ 1. 起因 我在使用宝塔面板的定时备份的过程中,发现在备份文件目录的时候无法成功清理旧的备份,导致 OSS 的体积暴增 120G ,然而连续额外扣费 4 个月之后我才发现这一问题。钱包表示它瘦了。 在宝塔的官方交流群里反馈这个问题,并没有人鸟我,遂自行想办法解决这个问...
Linux 删除 N 天前的文件 原文地址:https://www.lucien.ink/archives/452/ 1. 起因 我在使用宝塔面板的定时备份的过程中,发现在备份文件目录的时候无法成功清理旧的备份,导致 OSS 的体积暴增 120G ,然而连续额外扣费 4 个月之后我才发现这一问题。钱包表示它瘦了。 在宝塔的官方交流群里反馈这个问题,并没有人鸟我,遂自行想办法解决这个问...
使用 Prometheus + Grafana + Exporter 监控服务器的运行状态 原文地址:https://www.lucien.ink/archives/449/ 1. 摘要 本文主要介绍如何使用 node_exporter 采集 Linux 系统的信息,借助 Prometheus 最终以仪表盘的形式显示在 Grafana 中。 2. 效果展示 3. 介绍 Gra...
Docker 打开 TCP 端口 原文链接:https://www.lucien.ink/archives/440/ 1. 开启 TCP 端口 1.1 创建目录/文件 mkdir -p /etc/systemd/system/docker.service.d cat > /etc/systemd/system/docker.service.d/tcp.conf <<...
身在天朝,很多人都会使用一些 KMS 激活软件来激活 Windows 或者是 Office ,其实 KMS 的本质就是让系统连接上一个认证服务器,通过认证服务器来验证当前用户是否有使用系统全部功能的权限。但事实上,网上搜到软件并不是很能让人放心,因为软件本身通常会需要一些系统权限,而且会被杀毒软件认为是病毒,而直接通过 CMD 来进行 KMS 认证显然是一种绿色无毒无害的方式。
Codeforces - 1166E - The LCMs Must be Large 地址 https://codeforces.com/contest/1166/problem/E 原文地址 https://www.lucien.ink/archives/434 题目 Dora the explorer has decided to use her money after s...
Codeforces - 1166D - Cute Sequences 地址 https://codeforces.com/contest/1166/problem/D 原文地址 https://www.lucien.ink/archives/433 题目 Given a positive integer $m$, we say that a sequence $x_1, x_2...
Codeforces - 1166C - A Tale of Two Lands 地址 https://codeforces.com/contest/1166/problem/C 原文地址 https://www.lucien.ink/archives/432 题目 The legend of the foundation of Vectorland...
Codeforces - 1166B - All the Vowels Please 地址 https://codeforces.com/contest/1166/problem/B 原文地址 https://www.lucien.ink/archives/431 题目 Tom loves vowels, and he likes long words with many vow...
Codeforces - 1166A - Silent Classroom 地址 https://codeforces.com/contest/1166/problem/A 原文地址 https://www.lucien.ink/archives/430 题目 There are $n$ students in the first grade of Nlogonia high s...
原文链接 https://www.lucien.ink/archives/429/ 起因 pip 是很强大的模块安装工具,但是由于某些原因国外官方 pypi 经常连接不上,所以我们最好是更换 pip 源,这样就能解决各种装不上库的问题。 镜像 阿里巴巴 设为默认 pip install -i https://mirrors.aliyun.com/pypi/simple/ pip...