/images/avatar.jpg
杂七杂八的,随手记录。

UNIX vs Linux: What's the Difference?

本文为摘录(或转载),侵删,原文为: https://www.linuxjournal.com/content/unix-vs-linux-what-is-the-difference

在复杂多变的操作系统领域里,UNIX 和 Linux 这两个显赫的巨头已经塑造了数字领域数十年。尽管这两个系统乍一看起来很相似,但深入分析后会发现它们存在根本性的区别,这些区别对开发人员、管理员和用户都有着重要的影响。在本文中,我们将踏上一段旅程,揭示 UNIX 和 Linux 之间的微妙差异,阐明它们的历史起源、许可模式、系统架构、社区、用户界面、市场应用、安全范式等方面的情况。

GaussDB技术解读系列之HTAP方向的探索与发展

Lock out user after three failed login attempts

本文为摘录(或转载),侵删,原文为: https://wiki.archlinux.org/title/Security#Lock_out_user_after_three_failed_login_attempts

1 Lock out user after three failed login attempts

截至 pambase 20200721.1-2 版本,pam_faillock.so 已默认启用,当用户在 15 分钟内尝试 3 次登录失败后会将其锁定 10 分钟(参见 FS#67644)。锁定仅适用于密码验证(例如登录和 sudo),通过 SSH 的公钥验证仍然被接受。为了防止完全的拒绝服务,对于默认情况下 root 用户将不会被锁定。

google shell style guide | Style guides for Google-originated open-source projects

云数据库 PostgreSQL 日志管理及分析-操作指南-文档中心-腾讯云

本文为摘录(或转载),侵删,原文为: -https://cloud.tencent.com/document/product/409/95763 -https://cloud.tencent.com/document/product/409/10791 -https://cloud.tencent.com/document/product/409/10790

摘自:https://cloud.tencent.com/document/product/409/49546

1 慢查询

1.1 功能说明

默认数据库对超过 1s 的 SQL 语句查询判断为 “ 慢查询 ”,对应语句称为“ 慢查询语句 (俗称 慢 SQL )”,而数据库管理员(DBA)对慢查询语句进行分析并找到慢查询出现原因的过程叫做 慢查询分析 。云数据库 PostgreSQL 控制台 在实例管理页的性能优化模块下,提供慢查询分析能力。如下图:

google chrome in hyprland

1 google chrome in hyprland

Hyprland is cool, but it may not work smoothly on default Google Chrome. The borders appear distorted and blurry.

To resolve this issue, simply open the Chrome settings, navigate to appearance (chrome://settings/appearance), and enable “Use system title bar and borders.” Afterwards, restart the browser.

2 Weird crash when running chrome with: –gtk-version=4

This happens when use GTK theme as shown in above screenshot. Use classic them as a worksaround…

Tips of Bash/Zsh

本文为摘录(或转载),侵删,原文为: -https://www.google.com/search?q=will+.bash_profile+be+sourced+when+executing+scripts%3F&oq=will+.bash_profile++be+sourced+when+executing+scripts%3F&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIHCAEQIRigATIHCAIQIRigATIHCAMQIRigATIHCAQQIRigATIHCAUQIRigAdIBCTE3NDk3ajBqOagCALACAA&sourceid=chrome&ie=UTF-8 -https://unix.stackexchange.com/questions/505949/expanding-only-certain-variables-inside-a-heredoc

1 展开 Bash 数组 (array) 时候, ${ARRARY[@]}${ARRARY[*]} 有什么区别?

INFO 中有相关说明:

The Part of PostgreSQL We Hate the Most

本文为摘录(或转载),侵删,原文为: https://ottertune.com/blog/the-part-of-postgresql-we-hate-the-most/

1 什么是多版本并发控制?

  • 在 DBMS 中,MVCC 的目标是在可能的情况下允许多个查询同时读取和写入数据库而不相互干扰。
  • MVCC 的基本思想是,DBMS 永远不会覆盖现有行。
    • 对于每个(逻辑)行,DBMS 维护多个(物理)版本。
    • 当应用程序执行查询时,DBMS 根据某个版本排序(例如创建时间戳),确定要检索哪个版本以满足请求。

这种方法的好处是,多个查询可以读取旧版本的行,而不会被更新它的其他查询阻塞。查询在数据库快照上观察到它开始查询事务时的状态(快照隔离)。