Posts
-
Sep 14, 2023
遗忘曲线
https://baike.baidu.com/item/遗忘曲线
番茄工作法
https://baike.baidu.com/item/番茄工作法/6353502
Articles
【TED】 Josh Kaufman:20小时学习法则(The First 20 Hours):https://mp.weixin.qq.com/s/Pmd5P_DCKEPm084ZZ4b8TA
-
Sep 5, 2023
robots协议也称爬虫协议、爬虫规则等
robots协议并不是一个规范,而只是约定俗成的,所以并不能保证网站的隐私。
robots协议:https://baike..com/item/robots协议
示例
https://baike.baidu.com/robots.txt
https://www.baidu.com/robots.txt
Refrences
https://baike.baidu.com/item/robots协议
-
Jul 28, 2023
可以通过查看idea自带的监控来观测是什么进程占用了CPU资源
Help » Diagnostic Tools » Activity Monitor
JIT 导致CPU占用过高
修改 idea.vmoptions 文件
#-Xms128m
#-Xmx750m
-XX:ReservedCodeCacheSize=512m
-XX:+UseG1GC
-XX:SoftRefLRUPolicyMSPerMB=50
#-XX:CICompilerCount=2
-XX:+HeapDumpOn...
-
Apr 7, 2023
https://blog.csdn.net/weixin_39679367/article/details/129929657
Midojourney Prompt Helper: https://promptfolder.com/midjourney-prompt-helper/
-
Feb 24, 2023
将父级目录权限设置为 771
子目录 拥有者用户组给用户
-
Feb 24, 2023
$ ls /proc
1 12850 174 24 3574 569 604 8833 cpuinfo interrupts kpagecount pagetypeinfo sysrq-trigger
10 12972 175 25 4 570 606 9 crypto iomem kpageflags partitions sysvipc
107 12978 18 255 445...
-
Feb 24, 2023
服务端:
$ groupadd git
$ useradd git -M -g git -s /sbin/nologin
$ mkdir -p /data/git
$ cd /data/git
$ git init --bare testrepo.git
useradd -s 指定用户登录后使用的shell
useradd -M not create home 不创建home目录
客户端:
$ git clone root@aliyun:/data/git/testrepo....
-
Feb 24, 2023
find -type d|xargs chmod 755
find -type f|xargs chmod 644
上面这个命令如果碰到带有空格的文件名会出错
find . -type d -exec chmod -fv 755 {} \;
find . -type f -exec chmod -fv 644 {} \;
https://askubuntu.com/questions/604489/what-are-the-default-permissions-of-direc...
-
Feb 24, 2023
查看磁盘分区
$ sudo fdisk -l
[sudo] password for debian:
Disk /dev/nvme0n1: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: WDC WDS100G0000-000000
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 51...
-
Feb 24, 2023
方法1:为用户单独添加 sudo 权限
echo "debian ALL=(ALL:ALL) ALL" > /etc/sudoers.d/debian
方法2:将用加入 sudo 用户组
root@debian:~# id debian
uid=1000(debian) gid=1000(debian) groups=1000(debian),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev)...