1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
Spent about a week grinding through Algebra 1 on Khan Academy. Even
though it's still only the very beginning of understanding how LLM
works, I am determined to stick with it, pratice mathematical skills
whenever I have time. The next course will be Geometry which contains 9
units. I think I should be able to finish them within another week.
I find it convenient to write commit messages in Neovim since it wraps
text at 72 characters by default, and I want to have the same feature on
my blog becuase it greatly improves readability.
set textwidth=72
Hosting a plain-text blog like this one is dirt cheap in 2026. We have
many options, and some of them are even free, such as GitHub Pages,
Cloudflare Pages, or simply uploading files to object storage services
like AWS S3 or Alibaba Cloud OSS. All of them save us from maintaining
servers. Still, I think it's cool to tinker with Linux servers nowadays
because it gives me the opportunity to dig deeper and eliminate
abstractions.
As an English learner, writing can be difficult. Luckily, living in the
LLM era means I can leverage these tools to improve my writing skills. I
have no interest in delegating my writing entirely to LLMs. I prefer to
draft posts by myself first, then use AI to fix grammar mistakes and
rewrite unnatural sentences without losing authorship.
There is a shortcut ctrl+; to insert the current date while working in
Excel. You may also notice the same YYYY-MM-DD pattern in this post's
filename. Instead of typing the date manually, I wanted the same
shortcut outside of Excel as well. The following command works on macOS:
printf "$(date +%F)" | pbcopy && osascript -e 'tell application "System Events" to keystroke "v" using command down'
%F is a format specifier for the date command, producing a date in the
YYYY-MM-DD format. printf removes the trailing newline and sends the
result to pbcopy, which stores it in the system clipboard. Finally,
osascript runs an AppleScript command that simulates ⌘V, pasting the
current date into the focused application.
Last but not least, bind ctrl+; to the command in Karabiner, and the
shortcut works system-wide.
{
"description": "insert current date (control+;)",
"manipulators": [
{
"from": {
"key_code": "semicolon",
"modifiers": { "mandatory": ["control"] }
},
"to": [{ "shell_command": "printf \"$(date +%F)\" | pbcopy && osascript -e 'tell application \"System Events\" to keystroke \"v\" using command down'" }],
"type": "basic"
}
]
}
|