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

[笔记]长安十二时辰 马伯庸

  • 383-386, 标注, 2025 年 7 月 23 日星期三 上午 8:01:29

    开元十三年,有个叫李泌的七岁神童入宫朝觐。天子正在和中书令张说弈棋。天子令张说、李泌二人以“方圆动静”为题吟棋。张说写的是:“方如棋局,圆如棋子。动如棋生,静如棋死。”而李泌则开口说道:“方如行义,圆如用智。动如逞才,静如遂意。”大得天子赞赏,送其入东宫陪太子读书。

六月读书笔记

Table of Contents

1 亵渎

时过境迁,十九年后重读此书,完全没有了当时追书的快乐,只有面对命运洪流时的困苦与无奈,以及,深藏其中的,一点点希望。

2 源代码

看着也比较又感触,还专门给孩子买了一本纸质书,当作暑假的阅读材料。

亵渎-烟雨江南

  • 207-209, 标注, 2025 年 5 月 26 日星期一 下午 12:45:07

    我已经太多的烙上了这个世界的印记,所能做到的只是毁灭。也许对这个世界来说,创造才是最重要的。当一个苹果跳入棋盘,并开始横冲直撞时,对整局棋的影响,比一个跳出棋盘的棋子,要大的多吧。”

源代码

  • 248-250, 标注, 2025 年 6 月 24 日星期二 下午 9:23:32

    玩纸牌教会我:无论某些事情看起来多复杂、多神秘,我们通常都能最终琢磨出个究竟。这个世界是可以被理解的。我出生于 1955 年 10 月 28 日,在家里

how to create alias for user in Linux

here:

https://unix.stackexchange.com/questions/758076/how-to-effectively-alias-a-user-on-linux

Users can share their UID, giving them the same user permissions.

Some quick testing reveals that no matter which alias you are logged in as, the system will recognize you as the first user which matches the UID from the passwd database (normally /etc/passwd but can be elsewhere in advanced setups).

I have not seen that groups behave the same way, each alias needs to be added to each group explicitly. It would seem that while users are mapped from UID, the groups look to be mapped from the name (check the contents of /etc/group to get a sense of what I mean).