averainy's Blog

averainy

15 Oct 2024

在Fedora40上配置bind为缓存服务器

前提条件 服务器的 IP 地址是静态的,假设服务器的ip为192.0.2.1 安装软件 dnf install bind bind-utils 编辑 /etc/named.conf 文件 在options字段中进行以下修改: 更新 listen-on 和 listen-on-v6 …
11 Oct 2024

使用wg-easy管理Wireguard

最近为了开源节流,准备更换宽带运营商,大概率将不会有公网ip,所以在阿里云买了一台云服务器。为了连到家里得nas,决定选Wireguard。 docker-compose.yml配置如下: services: wg-easy: image: weejewel/wg-easy …
05 Oct 2024

社保税到底划不划算

@滑雪的江鱼儿 刚才谈社保的短文,可能与安定团结的大氛围不合,我这就改,马上改。 看到一段李永乐老师算社保是不是划算的视频,他以工资1万元为例,每月个人缴纳8%,也就是800元,累计缴纳35年,个人总计缴纳336000元。然后60岁退休,每个月领取5042元,领取到人均预期寿命 …
28 Aug 2024

瞎扯淡

2024/08/28 去年炸鱼花了1100个小目标。服不服? 中国大陆去年太平洋军演据报花费逾千亿人民币 路透社计算显示,这1100亿元人民币的费用约占台湾去年国防预算的85%,约占中国大陆去年报告的1.55万亿元人民币国防支出的7%。 2024/08/26 高高举起,轻轻放下。 …
18 Aug 2024

唐多令·芦叶满汀洲

唐多令·芦叶满汀洲 宋·刘过 安远楼小集,侑觞歌板之姬黄其姓者,乞词于龙洲道人,为赋此《唐多令》。同柳阜之、刘去非、石民瞻、周嘉仲、陈孟参、孟容。时八月五日也。 芦叶满汀洲,寒沙带浅流。 二十年重过南楼。 柳下系船犹未稳,能几日,又中秋。 黄鹤断矶头,故人今在否? 旧江山浑是新 …
29 May 2024

How to Use Decorators to Print Log in Python

creat a decorator: def logDecorator(func): def wrapper(*args, **kwargs): print(f"Call function {func.__name__} with args {args} and kwargs …
29 May 2024

How to Use Decorators to Print Log in Typescript

creat a decorator: function logDecorator(target: any, propertyName: string, descriptor: PropertyDescriptor) { const originalMethod = …
12 May 2024

Exclude Package When Use Dnf Update or Upgrade Command

Sometimes it is useful to ignore specific packages from transactions, such as updates,upgrade. One such case, for example, could be when an …
25 Apr 2024

How to Upgrade from Fedora 39 to Fedora 40

升级Fedora40前准备 在升级Fedora40之前务必做好以下准备: 备份数据。 确保电源稳定。 确保网络正常。 升级Fedora40步骤 更新Fedora39 将Fedora39的所有软件包升级到最新版本 sudo dnf upgrade --refresh 安 …
22 Mar 2024

Svn Cleanup Failed to Run the WC Db Work Queue Associated With

go to https://www.sqlite.org/download.html and download sqlite-tools, copy sqlite3.exe to /.svn/. run cmd or powershell in /.svn/. access …