ocfox’s den

Scio me nihil scire.

Email Structure -- Building an Email Sender with SMTP

Using an SMTP library, you can build an app to send emails. However, it typically doesn’t support a function to simply pass the subject, content, and attachment as parameters. Format of Internet Message Bodies According to RFC2045, the MIME (Multipurpose Internet Mail Extensions) format is used. From: ocfox <[email protected]> To: Test <[email protected]> Subject: Test Email MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=_kuroneko_ This is a simple email header where I use a custom boundary _kuroneko_. The boundary is used to separate different parts of the email. ...

2024-07-26 · 1 min · ocfox
https://nixos.ocfox.me

CSS Learning Notes Chapter I

Try to make a nixos boot animation. (log scroll on screen.) The repo link: https://github.com/ocfox/booti . This site has none imported js or css library. First need make a animation let text display line by line. So I tried to set a delay for every line, when open page hide (don’t display) every paragraph in css. p { display: none; /* Initially hide all paragraphs */ margin: 1px 0 0 1px; } Then set a delay increase by degrees for every single line with js. Use EventListener get every paragraph element, and set 500ms * (current lines) delay make it display none -> block. So them will display right. ...

2024-06-01 · 3 min · ocfox

Tailscale with Headscale?

Last month, I got a Dell R730xd. And pay many time on Fight with ChinaTelecom. Finally, I lost in this war. But fortunately, Tailscale can effectively(maybe) address my issue. I used Tailscale past, but stopped by Chinese ‘Premium’ Network, high latency and loss make me crazy. And ’they’ provides services, just like Google. Haha, actually, I’m not sensitive to this at all. I’m not a privacy-paranoid person. “Why not selfhost it?”, a real man(character I made up) said. So I host it on a server with CN21 network. ...

2024-02-06 · 3 min · ocfox

Bluetooth Pairing on Dual Boot

Edit pairing keys on Windows and Linux, make they are consistent

2022-11-23 · 1 min · ocfox