2021年3月

1. 写文章时实时字数统计。

https://github.com/jrotty/WordCount 处获取插件。下载解压后将文件夹重命名为WordCount然后传到插件目录启用插件即可。 附件WordCount-master.zip

2. 弹出欢迎信息。

https://github.com/jrotty/typecho-for-notice 处获取插件。下载解压后将 notice 传到插件目录启用插件即可。 附件notice-master.zip

3. 小挂件 kiana。

https://github.com/jrotty/typecho-kiana 处获取插件。下载解压后将文件夹重命名为 kiana 然后传到插件目录启用插件即可。 附件kiana-master.zip

4. alexa 排名插件。

https://github.com/jrotty/typecho-alexa 处获取插件。下载解压后将文件夹重命名为 alexarank 然后传到插件目录启用插件即可。 附件alexa-master.zip

5. 写文章添加 tags 时,

所有可用的 tag 自动列出,可以点击选择。 http://forum.typecho.org/viewtopic.php?f=6&t=11588&p=43123&hilit=tag#p43123 处可以获取插件,下载解压后传到插件目录启用插件即可。 附件alexa-master.zip

6. 支持 latex 的插件,有好几种,但是都有相应的缺点,比如 markdownkatex, autolatex,最后综合比较选择了 markdown katex。

参考: https://blog.zyuzhi.me/2018/01/27/MarkdownKatex-For-Typecho.html https://github.com/zyuzhi/MarkdownKatex-typecho https://blog.csdn.net/u011134961/article/details/51290616 https://github.com/dreamerblue/AutoLaTeX https://github.com/mathjax/MathJax http://www.simyng.com/index.php/archives/78/ https://webcache.googleusercontent.com/search?q=cache:0SCGbXx686cJ:https://www.cnblogs.com/liuke-note/p/10079723.html+&cd=6&hl=en&ct=clnk&gl=us&client=firefox-b-d 附件MarkdownKatex-typecho-1.0.1.tar.gz

xz 格式是一种新的压缩率高的格式,但是需要消耗很多时间进行压缩,幸好支持多线程。 和 tar 命令联合使用的时候,如下格式即可。T0 表示尽可能多的线程。

tar cvf archive.tar.xz --use-compress-program='xz -1T0' *.csv

参考: https://www.baeldung.com/linux/xz-compression https://stackoverflow.com/questions/22244962/multiprocessor-support-for-xz https://www.itranslater.com/qa/details/2122665251421291520 https://github.com/batocera-linux/batocera.linux/pull/1415

debian

1. useradd -m xyz m 表示在 home 下创建相应的用户目录。

2. passwd xyz

3. usermod -a -G wheel xyz

如果出现错误提示,那么需要 usermod: group 'wheel' does not exist, 需要 addgroup wheel 参考: https://superuser.com/questions/716636/i-cant-add-a-user-to-the-wheel-group/716637

4. vi /etc/pam.d/su

auth       required   pam_wheel.so

5. vi /etc/login/refs

SU_WHEEL_ONLY yes

参考: https://blog.csdn.net/cbbbc/article/details/51712913

6. apt-get update, apt install sudo 安装 sudo

chmod u+w /etc/sudoers vi /etc/sudoers chmod u-w /etc/sudoers

%wheel  ALL=(ALL:ALL) ALL

参考: https://blog.csdn.net/xiaotengyi2012/article/details/7340822

7. 创建用户后,可能出现 tab 按键不能使用的问题。

vi /etc/passwd,找到用户名对应的哪一行, 把 sh 改为 bash 参考: https://blog.csdn.net/rzhzhz/article/details/7573201 https://www.cnblogs.com/klobohyz/archive/2011/12/22/2297392.html

centos

useradd xyz
passwd xyz
usermod -aG wheel xyz

参考: https://phoenixnap.com/kb/how-to-create-add-sudo-user-centos

ubuntu

adduser -m xyz
ls /home
passwd xyz
usermod -aG sudo xyz

参考: https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-16-04

Ctrl + F 屏幕向下滚动一屏 Ctrl + B 屏幕向上滚动一屏 Ctrl + E 屏幕向下滚动一行 Ctrl + Y 屏幕向上滚动一行 Ctrl + D 屏幕向下滚动半屏 Ctrl + U 屏幕向上滚动半屏

zz 让光标所在的行居屏幕中央 zt 让光标所在的行居屏幕最上一行 t=top zb 让光标所在的行居屏幕最下一行 b=bottom

参考: https://www.jianshu.com/p/626e651b5be9 https://blog.csdn.net/nyist327/article/details/48625385 https://blog.csdn.net/shuningzhang/article/details/37700603