共有 261 篇文章
Disable IPV6
2024-08-03 - 2024-09-18
永久关闭IPV6 编辑grub配置文件/etc/default/grub 修改增加ipv6.disable=1属性 GRUB_CMDLINE_LINUX_DEFAULT="quiet splash ipv6.disable=1" GRUB_CMDLINE_LINUX="ipv6.disable=1" 使设置生效 update-grub
New React Project
2024-07-27 - 2024-09-18
创建新 React 项目 使用create-react-app创建项目 npx create-react-app 设置yarn版本 前置条件 corepack enable # 安装完nodejs后只需要执行一次 设置版本 yarn policies set-version 4.3.0 修改.yarnrc.
重复代码提醒/Duplicated code fragment
2024-07-06 - 2024-09-18
打开设置按照以下路径进入并关闭 Editor -> Inspections -> General -> Duplicated code fragment
搭建邮件系统
2024-06-26 - 2024-09-18
官方docker-compose文件生成 https://setup.mailu.io/2024.06/ 参考博客 https://www.ywbj.cc/?p=929 测试服务器是否开启25端口 telnet smtp.google.com 25 #谷歌邮箱地址 # 或者 telnet smtp.qq.com 25 #腾讯qq邮箱 如果已经开启则会显示Connecte
页面加载完毕后执行 useEffect
2024-06-22 - 2024-09-18
一个参数 useEffect()本身是一个函数,由 React 框架提供,在函数组件内部调用即可。 举例来说,我们希望组件加载以后,网页标题(document.title)会随
型参提醒 Inlay hints
2024-06-22 - 2024-09-18
打开设置搜索Inlay Hints, 或进入Setting/Editor/Inlay Hints, 按照需要关闭
获取 Debian Version
2024-05-19 - 2024-09-18
lsb_release apt-get install lsb-release lsb_release -a issue cat /etc/issue os-release cat /etc/os-release hostnamectl hostnamectl uname uname debian_version cat /etc/debian_version
Raspberry Pi 5 RTC Battery
2024-05-15 - 2024-09-18
检查电池电压 vcgencmd pmic_read_adc BATT_V
搭建NTP服务器
2024-05-12 - 2024-09-18
为其他设备提供NTP授时服务 # 安装NTP服务 apt-get install ntp # 编辑配置文件, pool 后替换为想要的ntp地址 vim /etc/ntpsec/ntp.conf # 重启NTP服务 systemctl status ntp systemctl restart ntp # 检查NTP同步功能 ntpq -p # 开放UDP
指纹识别 Fingerprint
2024-04-26 - 2024-09-18
Debian指纹识别 # 安装 sudo apt install fprintd # 录入 (录入5次后会显示completed) sudo fprintd-enroll # 识别 sudo fprintd-verify
关闭一加氧系统更新
2024-04-20 - 2024-09-15
通过ADB停用系统更新和去除更新统治 # 屏蔽更新 adb shell pm disable-user com.oneplus.opbackup # 清除更新通知 adb shell pm clear com.oneplus.opbackup # 恢复更新 adb shell pm enable com.oneplus.opbackup