diff --git a/_data/other_repo_list.csv b/_data/other_repo_list.csv index 97f4b81..9d1139e 100644 --- a/_data/other_repo_list.csv +++ b/_data/other_repo_list.csv @@ -2,9 +2,6 @@ repo_url http://gdatura24gtdy23lxd7ht3xzx6mi7mdlkabpvuefhrjn4t5jduviw5ad.onion/Mayx/mayx http://git.dkforestseeaaq2dqz2uflmlsybvnq2irzn4ygyvu53oazyorednviid.onion/mayx/blog http://giteabolfdejtdzblkooalqei6jr67imiugmhtsh6ocw4hlj5a4q.b32.i2p/mayx/blog -https://lavaforge.org/mayx/blog -https://sij.ai/mayx/blog -https://repobase.net/mayx/blog https://gitlab.lain.la/mayx/mayx.pages.lain.la https://gitplac.si/mayx/mayx.gitpage.si https://gitnet.fr/mayx/blog @@ -14,7 +11,11 @@ https://git.envs.net/Mayx/mayx https://tildegit.org/Mayx/mayx https://git.tilde.town/mayx/blog https://gitlab.haskell.org/mayx/mayx +https://lavaforge.org/mayx/blog https://repo2.serv00.com/git/pub/Mayx/mayx/ +https://sij.ai/mayx/blog +https://repobase.net/mayx/blog +https://git.projectnightcrawler.dev/mayx/blog https://codefloe.com/mayx/blog https://git.pixie.town/mayx/blog https://git.minetest.land/Mayx/blog @@ -58,7 +59,6 @@ http://120.211.66.170:8418/mayx/blog https://gitea.vilcap.com/mayx/blog http://8.138.142.17:3000/mayx/blog http://209.127.59.74:3000/mayx/blog -https://git.dotb.cloud/mayx/blog http://121.41.2.71:3000/mayx/blog https://git.imvictor.tech:2/mayx/blog http://e19510c831.iok.la/mayx/blog @@ -69,18 +69,15 @@ https://code.wxk8.com/mayx/blog http://fanlibo.i234.me:8418/mayx/blog https://git.temporaryname.org/mayx/blog https://Repo.gusdya.net/mayx/blog -https://git.flymiracle.com/mayx/blog https://git.stormrain.cn/mayx/blog https://git.deuxfleurs.fr/mayx/blog https://www.simpra.org:3000/mayx/blog https://www.arcbyte.dev/mayx/blog https://scm.bcorex.e3labs.net/mayx/blog -https://gitea.tecamino.com/mayx/blog https://git.tobiasweise.dev/mayx/blog https://code.cif.su/mayx/blog https://git.cynic.moe/mayx/blog https://git.muellers-software.org/mayx/blog -https://repos.fbpx.io/mayx/blog https://git.cavemanon.xyz/mayx/blog http://svn.rivastudio.cn/mayx/blog http://118.178.172.49:3000/mayx/blog @@ -89,12 +86,10 @@ http://8.130.135.159:3000/mayx/blog https://git.suo0.com/mayx/blog https://git.dshkabatur.ru/mayx/blog http://47.103.78.70:3000/mayx/blog -http://47.100.208.160:51300/mayx/blog http://120.210.80.160:3000/mayx/blog http://194.5.152.156:3000/mayx/blog http://58.65.162.118:3000/mayx/blog https://git.arkon.solutions/mayx/blog -http://8.131.93.145:54082/mayx/blog https://git.7af.ru/mayx/blog https://gitea.yimoyuyan.cn/mayx/blog http://221.203.14.217:3000/mayx/blog @@ -130,15 +125,12 @@ http://git.mynas71.myds.me/mayx/blog https://git.veraskolivna.net/mayx/blog https://git.lifetop.net/mayx/blog https://gitea.jnyuxia.com/mayx/blog -https://gitea.hello.faith/mayx/blog -https://git.violka-it.net/mayx/blog https://git.danpeak.co.uk/mayx/blog https://gitea.mynas-lechner.de/mayx/blog https://git.esen.gay/mayx/blog https://git.webtims.ru/mayx/blog https://gitlab.iplusus.com/mayx/blog https://git.miasma-os.com/mayx/blog -https://gitea.nacsity.cn/mayx/blog https://git.zakum.cn/mayx/blog http://47.109.103.110:9000/mayx/blog_cn http://51.159.198.233:3000/mayx/blog @@ -153,7 +145,6 @@ http://www.xshideserver.com:3000/mayx/blog_cn http://159.75.131.235:3001/mayx/blog_cn http://1.117.67.95:3000/mayx/blog_cn http://81.70.102.154/mayx/blog_cn -http://111.228.34.40:3000/mayx/blog_cn http://36.133.248.69:3088/mayx/blog_cn http://220.205.16.27:18081/mayx/blog_cn http://183.204.60.122:10081/mayx/blog_cn @@ -161,25 +152,19 @@ https://gitea.wuyuank.com/mayx/blog_cn http://47.106.222.181:20511/mayx/blog_cn https://gitea.myat4.com/mayx/blog_cn http://118.24.161.24:3000/mayx/blog_cn -http://githanea.s.odn.cc/mayx/blog_cn https://git.dev.chuweizi.com/mayx/blog http://36.138.125.206:3000/mayx/blog_cn -https://silica.codes/mayx/blog https://git.crystalyx.net/mayx/blog https://gittea.dev/mayx/blog -https://code.infininov.com/mayx/blog https://src.enterpriselinux.social/mayx/blog https://gitea.grxe.io/mayx/blog https://gitea.accept.dev.dbf.nl/mayx/blog https://git.jhossain.online/mayx/blog https://barhoum-lab.fr/mayx/blog -https://git.fedaya.net/mayx/blog https://redev.lol/mayx/blog https://papi.tkpups.com/mayx/blog https://git.beyond-a-i.org/mayx/blog -http://huanghomenas2.myqnapcloud.com:4000/mayx/blog_cn http://git.zhmight.com/mayx/blog_cn -https://intl-dev.gaia888.com/mayx/blog_cn http://gitea.snailtrack.cn/mayx/blog_cn https://code.draussenfunker.de/mayx/blog_cn https://git.dinsor.co.th/mayx/blog @@ -188,7 +173,6 @@ http://www.bkandssp.cn:30/mayx/blog http://gitea.ydxtool.com/mayx/blog https://gitea.malxte.de/mayx/blog https://git.0xee.eu/mayx/blog -https://git.crwlr.ir/mayx/blog https://git.nozora.top/mayx/blog https://git.edenit.co.kr/mayx/blog https://git.catgirlsneed.homes/mayx/blog @@ -211,17 +195,14 @@ https://git.kaki87.net/mayx/blog https://forgejo.vanten-s.com/mayx/blog http://ysx.myds.me:3005/mayx/blog http://124.71.169.183:3000/mayx/blog -https://git.csi-kjsce.org/mayx/blog https://hiwifi.denq.us:8418/mayx/blog https://git.msoucy.me/mayx/blog http://140.120.108.238:49308/mayx/blog http://git.chilidoginteractive.com:3000/mayx/blog_cn https://git.thunder-data.cn/mayx/blog_cn -https://git.cukak.com/mayx/blog_cn https://git.ixu.me/mayx/blog_cn http://git.uhfdemo.com/mayx/blog_cn http://43.143.142.38:7001/mayx/blog_cn -https://gitea.smartechouse.com/mayx/blog_cn http://git.feashow.cn/mayx/blog_cn http://git.yangben365.com/mayx/blog_cn https://git.wieerwill.dev/mayx/blog @@ -229,19 +210,14 @@ https://git.etwo.dev/mayx/blog https://git.panda-number.one/mayx/blog https://datacortex.pl/mayx/blog https://git.trevorbotha.net/mayx/blog -https://viacivis.de/mayx/blog -http://www.wybpohro.com:3000/mayx/blog_cn https://gitea.jobiglo.com/mayx/blog_cn http://118.31.7.2:3000/mayx/blog_cn -http://www.dothing.com:6999/mayx/blog_cn http://101.37.147.115:3000/mayx/blog_cn https://gitea.originaltech.cn/mayx/blog_cn https://git.akarmain.ru/mayx/blog_cn https://git.georgew.dev/mayx/blog https://gitea.keymantek.com:777/mayx/blog http://git.realrobots.net/mayx/blog -https://www.tksea.top/mayx/blog -https://wtrb.uk:8443/mayx/blog http://www.souper.ee/mayx/blog https://git.tirtapakuan.co.id/mayx/blog https://tacticallysolved.com/mayx/blog @@ -251,7 +227,6 @@ https://gitea.viperlance.net/mayx/blog https://git.woopwoopserver.com/mayx/blog http://tian-you.top:7020/mayx/blog http://34.17.182.140/mayx-gogs/blog -https://gitea.octifor.synology.me:60443/mayx/blog http://gitea.mikarsoft.com/mayx/blog https://git.zhewen-tong.cc/mayx/blog https://mcgit.place/mayx/blog @@ -266,42 +241,33 @@ https://git.sleepeesoftware.fr/mayx/blog https://git.everestlinux.org/mayx/blog https://git.devinmajor.com/mayx/blog https://git.netzbyte.com/mayx/blog -https://repo.saticogroup.com/mayx/blog https://ataymakhzan.com/mayx/blog https://repo.qruize.com/mayx/blog https://git.xneon.org/mayx/blog https://git.lamby.gay/mayx/blog -https://imperionblast.org/mayx/blog https://donkey.abanbytes.eu/mayx/blog https://lab.dutt.ch/mayx/blog https://git.liestral.io/mayx/blog https://gitea.dabit.synology.me/mayx/blog -http://www.javabrew.org/mayx/blog https://git.joinplu.me/mayx/blog http://otter.top/mayx/blog https://git.xiongyi.xin/mayx/blog -https://git.pdy.ph/mayx/blog http://188.66.0.25:3000/mayx/blog https://gitea.deliverables.io/mayx/blog https://git.sevenvm.de/mayx/blog https://code.letsbe.solutions/mayx/blog https://git.mlhub.it/mayx/blog -https://git.coastit.co.za/mayx/blog https://git.0bin.in/mayx/blog https://jsuse.com/mayx/blog -https://git.truncgil.com/mayx/blog http://23.182.16.150:3000/mayx/blog -https://git.jingflowai.com/mayx/blog https://git.ritonquilol.fr/mayx/blog https://bis127.vse.cz/mayx/blog -https://gitea.diereimers.org/mayx/blog https://app.gitpasha.com/mayx/blog http://www.flowzl.top/mayx/blog https://git.psg.net.au/mayx/blog https://shaman2025.site/mayx/blog https://gitea.ccllc.pro/mayx/blog https://gitea.hpdocker.hpress.de/mayx/blog -https://vertpartneerss.club/mayx/blog https://git.jhammah.com/mayx/blog https://git.kemomimi.site/mayx/blog https://gitea.kolesarhome.com/mayx/blog @@ -309,9 +275,7 @@ http://sexy6688.vip/mayx/blog https://gitbucket.aint-no.info/mayx/blog https://gitea.emulab.it/mayx/blog https://git.wikeo.ovh/mayx/blog -https://gitea.finesoft.club:4431/mayx/blog https://gitea.precia.site/mayx/blog -https://git.bitscat.vn/mayx/blog http://arch52.co.uk/mayx/blog https://devcraft-dot.tech/mayx/blog https://a-t-g.ru/mayx/blog @@ -321,17 +285,14 @@ http://8.141.82.163:20000/mayx/blog_cn http://152.136.126.252:3000/mayx/blog_cn https://home.zhupei.me:3000/mayx/blog_cn http://gitea.coderpath.com/mayx/blog_cn -https://gitea.quiztimes.nl/mayx/blog_cn https://www.chenisgod.com:3096/mayx/blog_cn http://81.70.30.91:3000/mayx/blog_cn http://yidaima.cn:6008/mayx/blog_cn -https://gitea.kdlsvps.top/mayx/blog_cn http://8.148.31.14:3000/mayx/blog_cn http://58.17.14.95:8001/mayx/blog_cn http://39.99.175.172:8000/mayx/blog_cn http://39.171.252.63:3000/mayx/blog_cn https://git.lucas-michel.fr/mayx/blog_cn -https://git.archieri.fr/mayx/blog_cn https://git.cdev.su/mayx/blog https://root-kit.ru/mayx/blog https://git.gnyra.com/mayx/blog_cn @@ -350,10 +311,72 @@ https://hdtime.space/mayx/blog_cn http://219.151.177.172:3000/mayx/blog_cn http://62.234.20.54:3000/mayx/blog_cn https://git.urnas.cn/mayx/blog_cn -http://20.6.159.133:3000/mayx/blog_cn https://gitea.4gunn.cn:52443/mayx/blog_cn -https://git.4tempo.com/mayx/blog_cn https://gitea.nightdev.cn:9527/mayx/blog_cn https://git.hivetasks.com/mayx/blog_cn https://git.ddns.net/mayx/blog_cn http://jdunlap.com/mayx/blog +https://git.silica.codes/mayx/blog +http://xiaolee.space/mayx/blog +https://www.vitelgrid.app/mayx/blog +https://gitruhub.ru/mayx/blog +https://git.linuxposting.xyz/mayx/blog +http://www.jingdujiaoyu.net/mayx/blog +https://git.techworkshop42.ru/mayx/blog +http://speedyfox.app/mayx/blog +https://mjjtop.com/mayx/blog +https://git.noosfera.digital/mayx/blog +https://git.birdideas.net/mayx/blog +https://salamihub.ru/mayx/blog +https://forgejo.wanderingmonster.dev/mayx/blog +http://v.udvip.com/mayx/blog +https://gitea-fs0kwo8kccc4g88g0kk8k88c.gnextd.io/mayx/blog +https://git.edavmig.ru/mayx/blog +https://git.hashdesk.ru/mayx/blog +https://gitea.ns5001k.sigma2.no/mayx/blog +https://git.dongshan.tech/mayx/blog +https://fzsimo.com/mayx/blog +https://www.webetter.co.jp/mayx/blog +https://git.biddydev.com/mayx/blog +https://git.hemangvyas.com/mayx/blog +https://git.zotadevices.ru/mayx/blog +https://gitav.ru/mayx/blog +https://git.cribdev.com/mayx/blog +https://sapkyy.ru/mayx/blog +https://git.sakuzyo.net/mayx/blog +https://git.zefie.net/mayx/blog +https://gitea.redpowerfuture.com/mayx/blog +https://git.jinzhao.me/mayx/blog +http://www.365rise.top/mayx/blog +https://git.ifuntanhub.dev/mayx/blog +https://mahta-tech.com/mayx/blog +https://git.else-if.org/mayx/blog +http://kuiwisen.asia/mayx/blog +https://git.aptcloud.ru/mayx/blog +https://gitea.simssoftware.in/mayx/blog +https://gitlab.dev.genai-team.ru/mayx/blog +https://gitea.garandplg.com/mayx/blog +https://d.roxyipt.com/mayx/blog +https://git.umervtilte.lol/mayx/blog +https://infrared.xxx/mayx/blog +https://git.bitpak.ru/mayx/blog +https://git.amamedis.de/mayx/blog +https://gitea.neanderhub.com/mayx/blog +https://git.kunstglass.de/mayx/blog +https://git.kry008.xyz/mayx/blog +https://gitea.onfing.ir/mayx/blog +http://59.57.4.66:3000/mayx/blog_cn +https://git.tas2580.net/mayx/blog_cn +https://gitea.xala.dev/mayx/blog +https://gitea.augeo.dev/mayx/blog_cn +http://36.213.200.127:23000/mayx/blog_cn +http://47.115.221.71:3000/mayx/blog_cn +http://20.219.0.85:3000/mayx/blog_cn +https://git.niisse.net/mayx/blog_cn +https://gitea.yfandxt.asia/mayx/blog_cn +http://81.69.57.215:3000/mayx/blog_cn +https://git.dglyoo.com/mayx/blog_cn +http://c8202.top:3000/mayx/blog_cn +http://nojava.fun/mayx/blog_cn +http://www.zhima.life/mayx/blog_cn +https://git.healparts.ru/mayx/blog_cn diff --git a/_posts/2026-08-01-terminal.md b/_posts/2026-08-01-terminal.md new file mode 100644 index 0000000..002ab30 --- /dev/null +++ b/_posts/2026-08-01-terminal.md @@ -0,0 +1,31 @@ +--- +layout: post +title: 一次制作终端版博客的经历 +tags: [WASM, 终端, Linux, 博客] +--- + + 在浏览器上用真的Linux访问博客会是什么样的感觉? + +# 起因 + 在去年的时候我为了想在博客上加个终端,写过一篇关于[在浏览器中运行Linux](/2025/12/01/linux.html)的文章。不过那时候只是调查了有哪些可能的方法,并没有真的做出来,主要是自己做感觉太麻烦了😂。 + 但从上次进行了[Vibe Coding](/2026/07/01/vibe-coding.html)之后,我意识到这可能不再是什么麻烦事,也许只要和AI聊聊天就能轻松做出来了,于是接着之前的方案,我开始着手完成我的想法。 + +# 终端版博客的不同形式 +## 基于WASM Linux的版本 + 在之前的文章里,我其实更倾向于WASM Linux的方案,尤其是[Thomas Stokes](https://github.com/tombl)制作的[WASM Linux](https://github.com/tombl/linux),因为它相比于虚拟机更轻量,效率更高,而且还能完美地在Safari中运行(毕竟我用的是macOS😂),因此接下来我计划用它为基础制作我的终端版博客。 + 不过之前我也说过,目前这个WASM Linux还不能和外界通信,不能和外界通信就不能读取我的文章。于是我打算先让AI解决这个问题。但如果我直接给它说想要和外界通信也许它会给我整一堆奇怪的实现,所以我得自己先想一个实现起来最简单的方案。之前我记得Fabrice Bellard大神写的JSLinux中有一个剪贴板设备文件可以和外部通信,那么干脆让AI写一个能在浏览器中执行JS的设备文件吧,这样做出来只需要写简单的Shell脚本就可以和浏览器交互了,也不需要考虑如何编译WASM程序,于是就这样我开始让它实现这个功能。 + 最终经过几次调试和修改之后AI真的把这个设备文件给做出来了,不过刚做出来的时候有些问题。因为在这个Linux中的进程都是在Web Worker中运行,执行的JS也会在Web Worker中运行。但是Web Worker的局限性很大,并不能和当前网页进行交互,不过这种问题也都是小事,发现了之后只要给AI一反馈也是轻轻松松就改好了……最终实现的效果我感觉相当不错,既然如此,那我就把AI做的这个驱动给上游[PR](https://github.com/tombl/linux/pull/24)一下吧,也算做个贡献。不过最终原作者不太喜欢这种实现方式,他好像更喜欢标准化的方式,说是已经做了一个[VsockDevice](https://github.com/tombl/linux/blob/b36416c7f266a465361ab7dde7622eb37239cd7e/tools/wasm/src/virtio.ts#L354),可以直接使用Linux自带的驱动和外界通信,所以把我的PR拒了(看来AI Slop还是入不了大佬的法眼😂)。 ~~不过我问了一下AI,它说用这个设备的话可能需要`ioctl()`系统调用,就没办法直接用Shell操作了,只能用别的语言写的程序才能用它通信,所以我只好自己用这种不标准的方式了。~~ 虽然VsockDevice确实是不太好操作,但是大佬随后又新增了一个ethernetDevice可以用来上网,考虑到维护自己的分支实在是太麻烦了,所以我让AI写了一个虚拟的HTTP服务,使其能够执行JS,顺便还增加了连接互联网的功能。这样我就可以直接使用上游的代码,不需要再维护之前写的驱动了(其实以太网比Vsock复杂多了,只是因为可以用wget之类的客户端请求所以才简单😋)。 + 在做好与外界通信的通道后我就开始让AI写能和我博客交互的脚本,不过在这个过程中也遇到了不少问题,最开始的时候发现这个Shell的管道有些问题,执行的时候会忽略管道前的命令,后面的命令就没法执行了……感觉有点奇怪,所以我要求它在实现交互脚本时不要使用管道符。除此之外我还发现反引号和`$()`这些能把执行结果插入字符串的语法也不能用……总之就是局限相当多,但它还是克服了这些困难最终把脚本给写出来了,最终实现了列出文章、查看文章、打开文章和查看评论等功能,效果还是相当不错。 ~~唯一的缺陷就是它不能进行异步操作,只能同步请求,所以在进行请求的时候会把浏览器卡住,体验稍有打折。~~ 后来用了网络版的JS执行服务后就可以异步了,避免出现把浏览器卡住的情况。 + 不过这个系统如果管道符不能用的话效果会差一大截,这可是Shell的灵魂啊,所以我提交了一个[Issue](https://github.com/tombl/linux/issues/25),希望作者能修一下。结果作者真的强得离谱,提出问题之后第二天就修复了,实在是太强了😨。但修好这个问题之后作者又整了一堆别的花活,把内存限制给取消了,结果我在Safari上一运行就报OOM的错误……于是我把这个问题又[反馈](https://github.com/tombl/linux/pull/26#issuecomment-5018155963)了一下,顺便让AI看看这个问题怎么解决,结果AI也不辜负我的期待,轻轻松松就解决了🤣。最终我除了会提出问题之外什么也不会做,只能看着大佬和AI完成我的想法了😝。 + 后来增加的以太网网关也挺折腾,原理其实并不复杂,但直接给AI说想用这个接口上网的时候它会自己想办法搓一套漏洞百出的TCP/IP协议栈,所以后来我在GitHub找了个[tcpip.js](https://github.com/chipmk/tcpip.js)库让它集成,BUG就比它自己手搓的少了不少。后来我又想加一个TLS终止功能,因为在浏览器上没办法直接让系统里的程序发送原始的TLS数据包去请求网站,但我又希望它能够请求带有https协议的网址,所以要提前对TLS进行解密再转换成`fetch()`,这时候我就没让AI自己手搓了,在网上找了个[node-forge](https://github.com/digitalbazaar/forge)库让AI对接,就可以避免出现一堆奇怪的BUG了。 + 做好网关之后我又突发奇想,想做一个展示终端内状态的页面,但是目前JS并不能主动和里面的系统直接通信,所以又让AI搓了一个通过Service Worker访问系统内网络服务的功能,然后用busybox的httpd执行sh写的cgi程序,就可以被前端读取到了。随后我还给原作者发了个[Issue](https://github.com/tombl/linux/issues/34)展示这个Service Worker的效果,结果人家已经做了这个功能,我还是太Naive了😂。 + 最终做好的网站可以在[这里](https://mabbs.github.io/linux/)查看,效果真的不是一般的好,相比于其他模仿终端形式的博客简直是降维打击,毕竟这是真的Linux啊~虽然目前依然有些BUG,但是原作者修BUG的速度还是挺快的,相信等他发布正式版之后,体验会更进一步。 + +## 基于JSNix的版本 + 虽然我觉得追求真实感很重要,但是我又回去看了一下为我提供想法的[JSNix](https://github.com/Erzbir/jsnix)。虽然这个项目并不是真的Linux,但是我让AI看了一遍之后它对这个项目的评价也很高,说是作者对Linux的了解非常深入,很多细节模拟的也非常到位。而且为WASM Linux制作的那些脚本,在这个JSNix上其实完全可以实现,还更简单,于是我直接让AI参考给WASM Linux写的脚本把那些功能全部移植到这个JSNix上。也许是因为AI更擅长编写网页,很快它就完成了这些功能,而且效果非常不错,基本上和WASM Linux上面的效果一样,表现也相当不错,最终生成的结果可以在[这里](https://mabbs.github.io/jsnix/)查看。 + 不过假的毕竟还是假的,和真的Linux差异还是有不少的,像正经的Shell可以在终端中直接用if、for和while之类的语法写一些东西,它这个就必须要编写成脚本才可以,而且解析也有相当多的问题。各种命令的运行结果很多都是硬编码的,只是编了一段对应命令的输出,参数做得也不全。另外著名的Linux文本三剑客grep、sed和awk在这个系统里实现得也非常差,只做了一些非常基础的功能,基本上就是完全不可用。所以说这个系统还是不够真实,只能做最基础的体验,不能够深究。 + 但并不是说它没有优点,它作为纯粹的JS不像WASM Linux那样容易出现兼容性问题,比如很多手机浏览器不支持跨源隔离,导致SharedArrayBuffer之类的API没法用,所以手机上只能体验这个JSNix的版本;另外WASM Linux的体积虽然说并不算很大,但也有好几MiB,不像这个JSNix连1MiB都不到;还有这个系统没有启动过程,相比于WASM Linux来说加载更快;而且在编写和修改功能的时候比WASM Linux简单不少,像给WASM Linux做的终端状态展示在JSNix上根本不需要折腾什么Service Worker,以及请求网络之类的也非常简单,直接`fetch()`就可以(也正是如此,JSNix的版本AI没一会儿就做完了)……总之就是只要不涉及具体功能方面JSNix都比WASM Linux要强不少,不过这样说有点“抛开事实不谈”的感觉了😂。 + +# 感想 + 最终做出来的这两个版本的终端版博客基本上所有的代码都不是我写的,真的做到了仅仅是和AI聊聊天就把东西做出来了……只能说AI现在真的不是一般的强啊~当然方案还是得自己考虑,因为AI一旦走错了方向就很容易往一个方向不停地钻,结果就是花了很长时间可能效果会很差,尤其是现在的AI还特别喜欢自己造轮子,所以这时候还是自己找找看已经有的方案然后告诉它会比较好。 + 从效果来说这次写的东西也让我非常满意,我想我这次做的这个博客界面估计是前所未有的,毕竟这可是在浏览器上用**真的**Linux访问博客啊,其他人做的都是假的。至于虚拟机那些方案可能也是因为太重,所以基本上没人用,而WASM Linux只有Thomas Stokes做的效果最好,但是又没有受到应有的关注……总之从我个人的角度来看这次做的东西还挺Cool,就是不知道会不会吸引其他人来看呢……可能还是太小众了吧😂。 \ No newline at end of file diff --git a/_tools/envs_post-receive b/_tools/envs_post-receive index 07c8183..9de99b9 100644 --- a/_tools/envs_post-receive +++ b/_tools/envs_post-receive @@ -6,7 +6,8 @@ cd blog mkdir Mabbs curl -L -o Mabbs/README.md https://github.com/Mabbs/Mabbs/raw/main/README.md bundle exec jekyll build -d ../public_html -rsync --delete -rv ../public_html/ mayx@pgs.sh:/blog +ssh pgs.sh rm blog --write +rsync --delete --exclude='.git' -rv ../public_html/ mayx@pgs.sh:/blog tar czvf MayxBlog.tgz --exclude-vcs ../public_html/ mv MayxBlog.tgz ../public_html/ cd ../public_html/ diff --git a/games.md b/games.md new file mode 100644 index 0000000..de1403d --- /dev/null +++ b/games.md @@ -0,0 +1,10 @@ +--- +layout: default +title: Mayx的游戏列表 +--- + +# Mayx的游戏列表 +- 凯露&危险生存( [CHS]({% unless site.github %}https://mabbs.github.io{% endunless %}/karyl-yabaival/?cn) | [JA]({% unless site.github %}https://mabbs.github.io{% endunless %}/karyl-yabaival/) | [KO]({% unless site.github %}https://mabbs.github.io{% endunless %}/karyl-yabaival/?kr) ) +- [立直麻将 Wordle]({% unless site.github %}https://mabbs.github.io{% endunless %}/riichi-mahjong-wordle/) +- [Brainfuck可视化演示]({% unless site.github %}https://mabbs.github.io{% endunless %}/brainfuck-visualizer/) +- [《激情麻将》关服前快照]({% unless site.github %}https://mabbs.github.io{% endunless %}/mahjong-dreamone-snapshot/) diff --git a/index.html b/index.html index 553929d..49f1ac3 100644 --- a/index.html +++ b/index.html @@ -66,10 +66,8 @@ image: https://screenshot.mayx.eu.org/

其他页面

Mayx的公开服务
- Mayx's Blog Terminal
- 凯露&危险生存( CHS | JA | KO
- 立直麻将 Wordle
- Brainfuck可视化演示
+ Mayx's Blog Terminal (Fake Version)
+ Mayx的游戏列表
留言板
Links
代理列表