mirror of
https://github.com/dongdigua/dongdigua.github.io
synced 2025-02-19 04:59:15 +08:00
update
This commit is contained in:
parent
62c77227b3
commit
d7954a41c1
@ -29,7 +29,7 @@ ps 看进程不到一页
|
||||
- vsftpd =500 OOPS child died= 解决不了
|
||||
|
||||
* Fedora ♥️
|
||||
所以我转回熟悉的 Fedora Server 了, 开箱即用, 安全 (SELinux), 稳定
|
||||
所以我转回熟悉的 Fedora Server 了, 开箱即用, 安全 (SELinux), 稳定
|
||||
这些对于服务器来说是很重要的
|
||||
|
||||
至于 GUI 环境, 根本不用, tty 多美妙!
|
||||
@ -38,6 +38,9 @@ ps 看进程不到一页
|
||||
Cockpit 有一处翻译有点搞笑
|
||||
[[../images/usage_cockpit.png]]
|
||||
|
||||
* I use Arch btw
|
||||
2023.8 厌倦了 Fedora, 切换到 Arch Linux, 没错我很疯狂
|
||||
|
||||
* FTP? no
|
||||
刚开始我想用 ftp, 因为 linux 下用的熟悉
|
||||
*但 是*
|
||||
@ -96,27 +99,26 @@ unzip: cannot find zipfile directory in one of foo.zip or
|
||||
|
||||
* Backup /home
|
||||
家目录也得备份啦, 当前系统最重要的数据都在那.
|
||||
当然先要排除一些垃圾或备份到其他地方的东西:
|
||||
#+BEGIN_SRC shell
|
||||
( .-.)
|
||||
[~]── ─ cat rsync-exclude
|
||||
选项参考[[https://blog.lilydjwg.me/2013/12/29/rsync-btrfs-dm-crypt-full-backup.42219.html][依云的博客]]
|
||||
#+BEGIN_SRC
|
||||
rsync -aAXxvh --numeric-ids --info=progress2 --exclude-from=rsync-exclude /home/digua DEST
|
||||
#+END_SRC
|
||||
忽略掉一些不用的目录
|
||||
#+BEGIN_EXAMPLE
|
||||
minecraft
|
||||
git
|
||||
VirtualBox VMs
|
||||
qemu
|
||||
chroot
|
||||
rpmbuild
|
||||
kernel
|
||||
tmp
|
||||
.cache
|
||||
.var
|
||||
.cargo
|
||||
.rustup
|
||||
[~]── ─ rsync -avh --info=progress2 --exclude-from=rsync-exclude /home/digua DEST
|
||||
#+END_SRC
|
||||
|
||||
对于 git 目录比较特殊, 使用 CVS 忽略模式, 但保留每个 =.git= 目录:
|
||||
#+BEGIN_SRC shell
|
||||
rsync -avhC --include .git --exclude target /home/digua/git DEST
|
||||
#+END_SRC
|
||||
.emacs.d/eln-cache
|
||||
.emacs.d/emacs
|
||||
.local/share/docker
|
||||
#+END_EXAMPLE
|
||||
|
||||
* Change drive
|
||||
我之前的那个 WD 金盘噪音和振动有点大, 我整个桌子都能感受到,
|
||||
|
@ -42,9 +42,11 @@ You can always find something magical on the Internet.
|
||||
*** [[https://mako.cc/writing/hill-free_tools.html][Free Software Needs Free Tools]]
|
||||
*** [[https://magcius.github.io/xplain/article/][explain X window system]]
|
||||
*** [[https://ifaceless.github.io/2019/10/30/linux-kernel-dev-notes/][Linux Kernel Development 学习与总结]]
|
||||
*** [[https://blog.qartis.com/decoding-small-qr-codes-by-hand/][Decoding small QR codes by hand]]
|
||||
|
||||
** [[http://www.paulgraham.com/todo.html][Paul Graham]]
|
||||
** [[http://www.qiusir.com/][qiusir]] :rssub:
|
||||
*** [[http://www.qiusir.com/wp-content/plugins/download-monitor/download.php?id=The+Better+Butterfly+Theorems+.pdf][TheBetterButterflyTheorems]]
|
||||
** [[http://xahlee.info][XahLee]]
|
||||
** [[http://www.catb.org/esr/][Eric S. Raymond]]
|
||||
** [[http://www.yinwang.org][当然我在扯淡]]
|
||||
@ -278,6 +280,7 @@ finger m@f.xosc.org
|
||||
*** [[https://tylercipriani.com/blog/2022/11/19/git-notes-gits-coolest-most-unloved-feature/][Git Notes: git's coolest, most unloved feature]]
|
||||
It's so cool, especially for testing and reviewing.(from [[https://www.ruanyifeng.com/blog/2023/02/weekly-issue-241.html][ruanyifeng 241]])
|
||||
** [[https://akarin.dev][✨小透明・宸✨ 存在感消失的地方|ω•`)]]
|
||||
** [[https://nichi.co][Nick Cao (#archlinux-cn matrix)]]
|
||||
|
||||
|
||||
** B/HWS/fri3nds
|
||||
@ -382,6 +385,7 @@ inspiration: Veritasium
|
||||
**** [[https://youtu.be/Yi6NxMxCFY8][Ok, I made C compiler in PHP]]
|
||||
**** [[https://youtu.be/9s8vjf_vLaA][SmoothLife on GPU]]
|
||||
**** [[https://youtu.be/iPrltr1b6Q4][I implemented Goto in OCaml]]
|
||||
**** [[https://youtu.be/PgDqBZFir1A][Weird Parts of C you probably never heard of: Hot loading, X macro]]
|
||||
*** [[https://youtu.be/0rJ94rbdteE][Rust 让你感觉像个天才]]
|
||||
*** [[https://youtu.be/nfF91Z6fqGk][CMD 登录B站]]
|
||||
*** [[https://youtu.be/crnEygp4C6g][Jeff Geerling: FINALLY! A GPU works on the Raspberry Pi!]]
|
||||
@ -507,6 +511,7 @@ When I was trying to download this video, I found that youtube-dl was broken!
|
||||
*** [[https://www.reddit.com/r/unixporn/comments/wkba0x/jwm_if_i_had_a_pda/][pocket pc]]
|
||||
*** [[https://www.reddit.com/r/unixporn/comments/b83fex/win7_my_first_rice/][win7 :)]]
|
||||
*** [[https://www.reddit.com/r/unixporn/comments/wtvj46/kde_cherry_blossoms/][[KDE] Cherry Blossoms]]
|
||||
*** [[https://www.reddit.com/r/unixporn/comments/ujjok6/chalkboard_btw_i_use_fedora_3/][[chalkboard] Btw i use fedora <3]]
|
||||
** [[https://www.reddit.com/r/ProgrammerHumor][ProgrammerHumor]]
|
||||
*** [[https://www.reddit.com/r/ProgrammerHumor/comments/wpnvtg/microsoft_visual_rust_2018/][Microsoft Visual Rust]]
|
||||
*** [[https://www.reddit.com/r/ProgrammerHumor/comments/wsw78u/regex_be_like/][MC enchant: regex be like...]]
|
||||
|
@ -4,7 +4,8 @@
|
||||
|
||||
Lua is everywhere.
|
||||
Neovim uses lua, Vis uses lua; when I visited [[./internet_collections.org::#lantian][Lantian]]'s website[fn:1], it's running [[https://openresty.org/][OpenResty]];
|
||||
when I'm [[https://bookfere.com/post/970.html][jailbreaking]] Kindle, it uses a lua script and [[https://github.com/koreader/koreader][Koreader]] uses lua.
|
||||
when I'm [[https://bookfere.com/post/970.html][jailbreaking]] Kindle, it uses a lua script and [[https://github.com/koreader/koreader][Koreader]] uses lua;
|
||||
[[https://www.huijiwiki.com/wiki/帮助:模块][MediaWiki Modules]] are powered by lua.
|
||||
|
||||
So I want to learn a little lua, just enough to handle daily tasks.
|
||||
|
||||
@ -61,6 +62,15 @@ debug.sethook(step, "", 100)
|
||||
|
||||
source code: https://github.com/dongdigua/demo.lua
|
||||
|
||||
|
||||
Tsoding made a stream yesterday [[https://www.twitch.tv/videos/1879677165][twitch: New Apartment]] trying to compile lua to wasm using clang.
|
||||
He failed, and said "Lua is not a real language, it's a toy language." The stream is really fun, though.
|
||||
I found some solution:
|
||||
- [[https://github.com/vvanders/wasm_lua][wasm_lua]]
|
||||
- [[https://github.com/daurnimator/lua.vm.js][lua.vm.js]]
|
||||
- [[https://fengari.io][Fengari]]
|
||||
|
||||
|
||||
* Footnotes
|
||||
[fn:1] I found his page all empty so I sent him an email, he quickly fixed it.
|
||||
[fn:2] DuckDuckGo, not DongDiGua
|
||||
|
@ -109,5 +109,8 @@ ZVS+电视机变压器, 特斯拉线圈
|
||||
** 少许电路
|
||||
第一个功放
|
||||
|
||||
* 2019 暑假
|
||||
** 学习半导体原理
|
||||
|
||||
* 2019 春
|
||||
** 科技节
|
||||
|
@ -218,8 +218,7 @@ blink_start() {
|
||||
while true
|
||||
do
|
||||
echo 0 > /dev/led/nanopi-r2s\:red\:sys
|
||||
tm="$(sysctl -n hw.temperature.CPU | cut -c 1-2) $(($(sysctl -n vm.stats.vm.v_free_count) * $(sysctl -n hw.pagesize) / 1048576))"
|
||||
morse -l $tm > /dev/led/nanopi-r2s\:red\:sys
|
||||
morse -l "$(sysctl -n hw.temperature.CPU | cut -c 1-2)" > /dev/led/nanopi-r2s\:red\:sys
|
||||
sleep 60
|
||||
done
|
||||
}
|
||||
@ -238,6 +237,13 @@ sudo pkill -HUP obhttpd
|
||||
|
||||
(slowcgi 很重要的一点: 如果用 chroot 也需要把运行时等一切文件都放在里面)
|
||||
|
||||
* [[https://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_FreeBSD][MediaWiki]]?
|
||||
don't
|
||||
如果你不想被嵌入式设备糟糕的性能浪费一上午的时间最后得到加载时间大于10秒的网页, 放弃吧...
|
||||
有足够性能的服务器还可以编译带 SQLite 支持的 port
|
||||
|
||||
我想使用 MediaWiki 主要想尝试 MinecraftWiki [[https://minecraft.fandom.com/wiki/Module:Schematic][Schematic Module]]
|
||||
|
||||
|
||||
* Ref
|
||||
- [[https://feng.si/posts/2019/06/freebsd-and-risc-v-the-future-of-open-source-iot-ecosystem/][FreeBSD 与 RISC-V: 开源物联网生态系统的未来]]
|
||||
|
Loading…
Reference in New Issue
Block a user