MoonLab - TIL

This is where i store my today-i-learned

You may also wannna visit my blog

Browse by tags

Welcome

#linux 服务器配置ssh仅允许使用pubkey验证 - Aug 11, 2024

本地要有keypair,可以是rsa也可以是ed25519。 $ ssh-keygen 将本地的pubkey复制到服务器的~

#linux SSH 客户端配置代理 - Aug 11, 2024

其实是机场屏蔽了22端口,才导致我用不了ssh。但既然查都查了,还是把ssh客户端单独配置代理方法记

#css CSS 黑暗/日间主题切换 - Aug 11, 2024

使用媒体查询prefers-color-scheme @media (prefers-color-scheme: {mode}) { } :root { --color: #333; --bg-color: #eee; } @media (prefers-color-scheme: dark) { :root { --color: #ccc; --bg-color: #1f1f1f; } }

#linux ArchLinux Magnifier Shortcut - Aug 11, 2024

在缩放浏览器时,不小心使用了放大镜 CTRL + Super + 鼠标滚轮即可使用放大镜 我还另外发现了,使用 Super + L 即可重新锁

#hugo Hugo Deploy Shell - Aug 10, 2024

For a long time, I always used Hexo as my blogging generator. But when i switched to Hugo, the things’re completely different. The deployment methods changed . For now, if i wanna host my stuff on somethng like Github Pages, i should utillize so called “continuous deployment” which leverages on Github Action.

#hugo Hugo Partial - Aug 10, 2024

Partial {{ partial "footer.html" }} 我看到有的hugo模板调用partial方法会传入上下文参数,但是不传也不会报错。 然而 partialCached 就

#linux ArchLinux 打开终端快捷键 - Aug 10, 2024

CTRL + ALT + T Open terminal ALT + SHIFT + F4 Open terminal here in file explorer 然而在我输入第二个快捷键时,不小心按成了 CTRL + ALT + F4 整个世界清净了

#linux Today I Learned - Aug 10, 2024

今天我发现了一种很有意思的记录方法:https://simonwillison.net/2022/N

< Previous