multiple update...

This commit is contained in:
dongdigua 2024-01-28 15:11:11 +08:00
parent 1add12d440
commit 4325c157da
8 changed files with 4996 additions and 114 deletions

4898
images/adventure.svg Normal file

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 347 KiB

View File

@ -18,7 +18,7 @@ BIOS: ami
平常不开 CPU 风扇就 40 度, 开风扇 25 度 :)
但是这种 IO 密集型任务南桥会很烫烫烫, 所以还是开着
* Alpine? no
* Alpine? probably
:PROPERTIES:
:CUSTOM_ID: alpine
:END:
@ -38,9 +38,6 @@ ps 看进程不到一页
Cockpit 有一处翻译有点搞笑
[[../images/usage_cockpit.png]]
* I use Arch btw
2023.8 厌倦了 Fedora, 切换到 Arch Linux, 没错我很疯狂
* FTP? no
刚开始我想用 ftp, 因为 linux 下用的熟悉
*但 是*
@ -120,25 +117,8 @@ tmp
.local/share/docker
#+END_EXAMPLE
* Change drive
我之前的那个 WD 金盘噪音和振动有点大, 我整个桌子都能感受到,
而且我那个盘没有使用分区表, 是直接在裸盘上创建的文件系统...
所以我准备换成一个更安静的东芝的盘用于日常备份运行, WD 的就用于同步备份那个盘.
所以现在第一次需要先把数据完全拷过去过去, 之后就可以 rsync 增量备份了.
=xfs_fsr= 减少一下碎片, 然后开始备份.
正常来说用 =dd= 就行了, 但是 dd 的缺点放大到 1T 的数据量上就是大问题:
*dd 也会拷贝空的部分*
emm... 有什么解决方案
** [[https://serverfault.com/questions/439128/dd-on-entire-disk-but-do-not-want-empty-portion][serverfault: dd on entire disk, but do not want empty portion]]
这里主要讨论的是把磁盘剩余空间都填满 0, 然后再忽略/压缩
不好!
** [[https://wiki.archlinux.org/title/Disk_cloning][ArchWiki: Disk cloning]]
提到了 Partclone "free-space aware"
*好!*
然后: =bad superblock=, 因为目标盘多了 2048 字节的分区表, 所以使用了危险的 =-C= 选项导致的
** xfs_copy
也不行, 也是因为空间差那么一点
** 那就 cp 直接来吧
(2024.1) [[https://whynothugo.nl/journal/2014/08/06/performing-backups-the-right-way/][whynothugo 的备份策略]]很不错
* 扩展阅读

View File

@ -1,73 +0,0 @@
#+TITLE: Binary Exploit Resources I Recently Trying to Learn
#+DATE: <2022-06-29 三>
#+TAGS: relearn(r)
#+OPTIONS: toc:nil
* resources
** video
[[https://youtube.com/playlist?list=PLhixgUqwRTjxglIswKp9mpkfPNfHkzyeN][Binary Exploitation / Memory Corruption by LiveOverflow]]
** website
*** [[https://play.picoctf.org/practice][picoCTF]]
*** [[https://exploit.education/][exploit education]]
* tools
** code auditing
[[./../images/fedora_security_lab.png]]
*** pscan
*** rats
*** splint
*** flawfinder
** debug
*** gdb
** reverse
*** [[https://book.rada.re/][radare2]]
**** iaito
*** hopper(non-free)
* notes on video
** [[https://youtu.be/6jSKldt7Eqs][0x04: asm basics]]
*** to show assembly in the source code window in gud, ~M-x gdb-display-disassembly-buffer~
*** links
**** https://microcorruption.com/
** [[https://youtu.be/3NTXFUxcKPc][0x06: tools]]
*** simple tools
**** hexdump
**** strings
all printable letters
**** objdump
disassembler
**** strace/ltrace
trace sys/lib call
*** [[https://youtu.be/mT1V7IL2FHY][0x0A: deal with numbers]]
**** endian?
from [[https://zh.wikipedia.org/zh-cn/字节序][Wikipedia]]
[[https://upload.wikimedia.org/wikipedia/commons/5/54/Big-Endian.svg]]
[[https://upload.wikimedia.org/wikipedia/commons/e/ed/Little-Endian.svg]]
x86 is little endian
**** tools
***** python
#+BEGIN_SRC python
>>> int('111', 2)
7
>>> hex(123)
'0x7b'
>>> import struct
# https://docs.python.org/3.10/library/struct.html#format-characters
>>> struct.pack("<I", 0x61626364) # little endian
b'dcba'
>>> struct.pack(">I", 0x61626364) # big endian
b'abcd'
#+END_SRC
***** iex
#+BEGIN_SRC elixir
iex(1)> <<0x61626364::32>>
"abcd"
iex(2)> Base.decode16("61626364")
{:ok, "abcd"}
#+END_SRC

View File

@ -1,10 +1,11 @@
#+TITLE: 消失的 emacs dunnet 教程
#+DATE <2023-12-29 五>
#+DATE: <2023-12-29 五>
大概一年多之前, 我玩 dunnet 时搜到了这个 [[https://www.luogu.com.cn/blog/ivystorm/emacs-adventuredunnet-tong-guan-jiao-cheng][emacs - adventure/dunnet 通关教程 - Ivystorm 的博客 - 洛谷博客]].
这是中文互联网少有的认真写的 dunnet 攻略, 我最欣赏的是那张手绘的地图, 在我能搜到的互联网上, 他是唯一一个.
但是今天一看, 文章没了, [[https://archive.org][archive.org]] 和 [[https://archive.today][archive.today]] 也没有存档. 还好我当时把地图下下来了, 但放谷歌上也搜不到来源.
我想, 为了更多人能了解, 我把这张图分享出来吧:
#+ATTR_HTML: :width 512px
[[../images/dunnet.png]]
#+BEGIN_EXAMPLE
eda0ca4b2ccc1247f66e55a703cb2168606d76926772e4c009991fcc235e9ef3 dunnet.png
@ -21,9 +22,48 @@ eda0ca4b2ccc1247f66e55a703cb2168606d76926772e4c009991fcc235e9ef3 dunnet.png
- [[https://github.com/tx/dunnet-map][tx/dunnet-map]]
只有最开始的岔路口
终于在这个游戏 40 岁的尾巴通关了.
终于在这个游戏 40 岁的尾巴 (根据地图) 通关了.
...
然后我又想起另一个经典文字冒险游戏 [[https://man.openbsd.org/adventure][adventure(6)]][fn:1], 这个我最早在 Learn Python The Hard Way ex43 看到的.
这东西在 debian[fn:2] update-alternatives(1) 有 bsdgames 和 open-adventure 两个版本
esr 写的 [[https://gitlab.com/esr/open-adventure][open-adventure]] 有一个 make_graph.py, 能把生成洞穴的整体或部分地图, 我还整了个 [[https://gitlab.com/esr/open-adventure/-/merge_requests/294][merge request]], 没错只有一个字符 :)
#+BEGIN_SRC sh
python make_graph.py -a | dot -Tsvg -o dungeon.svg
#+END_SRC
#+ATTR_HTML: :width 512px
[[../images/adventure.svg]]
图太大了, 以后慢慢玩吧...
最后, 说一下我的一个想法:
收藏夹里的东西经常 404, 很多人 (比如我) 没有存档网站的意识, 普通浏览器也不像 [[./usenet_and_cli_browsers.org][offpunk]] 那样有离线功能, 比较小众的网页没了就没了, 没地方找存档去.
有些人会存档这些网站, 但是怎么联系上是个问题. 如果做一个互联网资源存档交易(悬赏)网站, 让找不到资源的人有地方问, 有资源的人也有动力拿出手中的资源.
当然会存在伪造的现象, 不过一般来说会对浏览过的网页有个印象吧.
* Footnotes
[fn:1] 这几天 man.openbsd.org 在维护 [[https://marc.info/?l=openbsd-tech&m=170301840617581&w=2][man.openbsd.org, cvsweb.openbsd.org maintenance]]
[fn:2] 我在 docker 里跑 debian 的时候没用 https, 然后小米路由器又抽风了 [[https://www.chiphell.com/thread-2556691-1-1.html][chiphell]] [[https://www.bilibili.com/read/cv21298361/][bilibili]]
@@html:<details>@@
@@html:<summary>抽风实况</summary>@@
#+BEGIN_EXAMPLE
Get:8 http://deb.debian.org/debian trixie/main amd64 libgpm2 amd64 1.20.7-10+b1 [14.2 kB]
Get:1 http://deb.debian.org/debian trixie/main amd64 libtinfo6 amd64 6.4+20231209-1 [341 kB]
Ign:1 http://deb.debian.org/debian trixie/main amd64 libtinfo6 amd64 6.4+20231209-1
Get:7 http://deb.debian.org/debian trixie/main amd64 bsdgames amd64 2.17-30 [966 kB]
Err:7 http://deb.debian.org/debian trixie/main amd64 bsdgames amd64 2.17-30
File has unexpected size (1624 != 966160). Mirror sync in progress? [IP: 192.168.31.1 80]
Hashes of expected file:
- SHA256:91cc293d80f158093b60ba1dfafcb559a23252497f60c1c05247400bea01524b
- MD5Sum:a6ab7ee321eeb45c69bddd9456dec8cb [weak]
- Filesize:966160 [weak]
Get:1 http://deb.debian.org/debian trixie/main amd64 libtinfo6 amd64 6.4+20231209-1 [341 kB]
Fetched 1187 kB in 15min 52s (1246 B/s)
E: Failed to fetch http://miwifi.com/diagnosis/index.html File has unexpected size (1624 != 966160). Mirror sync in progress? [IP: 192.168.31.1 80]
Hashes of expected file:
- SHA256:91cc293d80f158093b60ba1dfafcb559a23252497f60c1c05247400bea01524b
- MD5Sum:a6ab7ee321eeb45c69bddd9456dec8cb [weak]
- Filesize:966160 [weak]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
#+END_EXAMPLE
@@html:</details>@@

View File

@ -27,7 +27,6 @@ You can always find something magical on the Internet.
:END:
#+TAGS: rssable(s) rssub(U) gopher(g)
** Single Entries
*** [[https://www.luogu.com.cn/blog/ivystorm/emacs-adventuredunnet-tong-guan-jiao-cheng][luogu blog: emacs dunnet 教程]] :emacs:
*** [[https://bheisler.github.io/post/state-of-gpgpu-in-rust/][The State of GPGPU in Rust]] :rust:lowlevel:
*** [[https://secretgeek.github.io/html_wysiwyg/][巧用 CSS 显示 HTML 源码]] :frontend:
*** [[https://blog.pg999w.top/too-many-channels/][Too many channels in Rust but only one in Go]] :rust:
@ -44,6 +43,8 @@ You can always find something magical on the Internet.
*** [[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]]
*** [[https://blog.trailofbits.com/2019/07/02/state/][State of the Art Proof-of-Work: RandomX]]
*** [[https://kio.dev/blog/mixing-websockets-and-http-endpoints-in-elixir-with-cowboy-plug][Mixing WebSockets & HTTP endpoints in Elixir with Cowboy + Plug]]
*** [[https://www.cnblogs.com/caoweixiong/p/12213993.html][Nginx——proxy_pass url 反向代理]]
** [[http://www.paulgraham.com/todo.html][Paul Graham]]
** [[http://www.qiusir.com/][qiusir]] :rssub:
@ -73,7 +74,7 @@ elixir/erlang大佬, 公众号: HelloElixir
** [[https://justine.lol][Justine Tunney]] :c:lowlevel:
CRAZY!!!!!
*** [[https://justine.lol/ape.html][actually portable executable]]
**** [[https://jeskin.net/blog/getting-started-with-cosmopolitan-libc][Getting Started with Cosmopolitan Libc]]
*** [[https://justine.lol/lambda][Lambda Calculus in 383 Bytes]]
** [[http://mindhacks.cn][刘未鹏 | Mind Hacks]] :wow:
*** [[http://mindhacks.cn/2006/10/15/cantor-godel-turing-an-eternal-golden-diagonal/][康托尔、哥德尔、图灵——永恒的金色对角线]]
** [[https://ploum.net][Ploum]]
@ -81,6 +82,7 @@ CRAZY!!!!!
#+BEGIN_QUOTE
I like to explore how technology impacts society
#+END_QUOTE
** [[https://joearms.github.io][Joe Armstrong (tiddlywiki)]]
** [[https://floooh.github.io/][floooh(The Brain Dump)]] :c:
@ -282,12 +284,26 @@ finger m@f.xosc.org
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)]]
** TODO [[http://akkartik.name/][Kartik Agaram]]
*** [[http://akkartik.name/post/literate-programming][Literate programming: Knuth is doing it wrong]]
** TODO [[https://seh.dev][seh.dev]]
** [[https://seh.dev][seh.dev]] :plan9:
** [[https://cs.lmu.edu/~ray/][ray@lmu]]
** [[https://blog.itswincer.com/][Wincer]]
和我一样比较喜欢小众的东西
** [[https://blog.benjojo.co.uk][Benjojo]]
*** [[https://blog.benjojo.co.uk/post/auditing-github-users-keys][Auditing GitHub users SSH key quality]]
** [[https://zu1k.com][zu1k]]
** [[https://whynothugo.nl][ben Hugo]]
author of darkman
** [[https://cascade.moe][七碳烷烃 Isoheptane (工程师猫娘)]]
*** [[https://cascade.moe/posts/arch-with-zfs/][在 ZFS 上安装 Arch Linux]]
** [[https://dataswamp.org/~lich/][lich (dataswamp)]]
** [[https://nyk.ma][Nayuki's]]
*** [[https://nyk.ma/posts/password-store/][pass : 密码管理本不复杂]]
*** [[https://nyk.ma/posts/nix-and-nixos/][Nix 和 NixOS你们安利方法错了]]
# LABLE
** B/HWS/fri3nds
** Bili/HWS/fri3nds
*** [[https://shakaianee.top/][社会易姐]]
*** [[https://blog.yangmame.org/][yanemame]]
猴哥推荐的
@ -300,7 +316,7 @@ EvanMeek / B站: 美味的樱桃菌
*** [[https://sh.alynx.one/][Alynx Zhou]]
口琴, author of =showmethekey=
**** [[https://sh.alynx.one/posts/Linux-Mooncake-Jokes/][Linux 用户的月饼食用手册]] :fun:
**** [[https://sh.alynx.one/posts/Do-Not-Fill-My-Email-with-Silly-Ads/][不要拿愚蠢的广告来污染我的邮箱]]
**** [[https://sh.alynx.one/posts/YubiKey-GNOME-Smartcard-Login/][YubiKey 和 GNOME 和智能卡登录]]
*** [[http://www.z.org.cn/][老网虫]]
*** [[https://yang-qwq.ml][Yang]]
*** [[http://blog.zhanganzhi.com/][zhanganzhi]]
@ -309,6 +325,7 @@ EvanMeek / B站: 美味的樱桃菌
*** [[https://acyanbird.github.io][山奈]]
*** [[https://fallenbreath.me][狐狸姐姐!]]
*** [[https://dsy4567.cf/][dsy4567 的小站]]
*** [[https://litterhougelangley.club/blog][Houge's Madness Blog]]
** ZhiHu
*** [[https://zhuanlan.zhihu.com/p/138719668][用Go语言汇编计算fibonacci数列]] :lowlevel:
@ -376,20 +393,17 @@ but fasm don't support debug information (dwarf2)
**** [[https://youtu.be/WEk_grxrCcg][First Ancient Neural Network in C]]
intro: he talked about Russian gov and where to flee
inspiration: Veritasium
**** [[https://youtu.be/tR6p7ZC7RaU][Terminal To-Do App in Rust]]
0:10 [[https://www.youtube.com/@baldandbankrupt][bald and bankrupt]], SOVIET, half life II
0:13 wait what are you doing emacs, this emacs is so weird
0:14 goto in rust?
0:52 BLOCKCHAIN? byebye
**** [[https://youtu.be/h_D4P-KRNKs][HaskellRank #01: just one line!]]
**** [[https://youtu.be/sFYFuBzu9Ow][mmap syscall]]
- allocate memory
- rw files
- IPC
**** [[https://youtu.be/9s8vjf_vLaA][SmoothLife on GPU]]
**** TODO [[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/b-q4QBy52AA][Web in Native Assembly (Linux x86_64)]]
**** TODO [[https://youtu.be/n-S9DBwPGTo][Hash Table in C]]
1:09 competitive programming
*** [[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!]]
@ -445,6 +459,8 @@ bringing down BitBucket entirely as it could not
handle writing through this interplanetary loop.
#+END_EXAMPLE
*** [[https://youtu.be/Kn0MxHlima0][My4TH - A discrete CPU Forth computer]]
*** [[https://youtu.be/tZ5FBBnHfm4][Intro to Competitive Programming]]
*** [[https://youtu.be/msdymgkhePo][This Website has No Code, or Does it?]]
** [[https://www.youtube.com/@Computerphile][<C>]]
*** [[https://youtu.be/BAo5C2qbLq8][Network Time Protocol (NTP)]]
@ -461,6 +477,7 @@ handle writing through this interplanetary loop.
** Cyber Security
*** LiveOverflow
**** [[https://www.youtube.com/playlist?list=PLhixgUqwRTjxglIswKp9mpkfPNfHkzyeN][Binary Exploitation / Memory Corruption by LiveOverflow]]
**** [[https://www.youtube.com/playlist?list=PLhixgUqwRTjwvBI-hmbZ2rpkAl4lutnJG][Minecraft HACKED]]
**** [[https://youtu.be/x_R1DeZxGc0][Discover Vulnerabilities in Intel CPUs!]]
**** [[https://youtu.be/UeAKTjx_eKA][Student Finds Hidden Devices in the College Library]]
@ -468,6 +485,7 @@ handle writing through this interplanetary loop.
**** [[https://youtu.be/oJ6t7AImTdE][CSS Keylogger - old is new again]]
**** [[https://youtu.be/Sv5OLj2nVAQ][Attacking LLM - Prompt Injection]]
**** [[https://youtu.be/neWc0H1k2Lc][The Discovery of Zenbleed (CVE-2023-20593)]]
**** [[https://youtu.be/lAyhKaclsPM][A Vulnerability to Hack The World - CVE-2023-4863 (webp)]]
*** [[https://youtu.be/2--1ph-4IaY][shit express hacked]]
*** [[https://www.youtube.com/playlist?list=PL5--8gKSku15NSeLgrZX9hSEnqPTWoSJ0][DT: Privacy & Security]]
*** [[https://youtu.be/QxNsyrftJ8I][Chris Titus Tech: The Biggest Linux Security Mistakes]]
@ -530,6 +548,11 @@ When I was trying to download this video, I found that youtube-dl was broken!
*** [[https://youtu.be/48AOOynnmqU][What Happened To Google Search?]]
[[https://news.ycombinator.com/item?id=30347719][Hacker News: Google Search Is Dying]]
*** [[https://youtu.be/k2C4lbbIH0c][How Raspberry Pis are made (Factory Tour)]]
*** [[https://youtu.be/DXwZ_n80xhk][Korobeiniki]]
*** [[https://youtu.be/uyrlEE9AV58][90's MTB masters (1992)]]
*** [[https://youtu.be/x_QmvZRS85U][How To Reply To Negative Comments (90s Tutorial)]]
*** [[https://youtu.be/-b-BQZi7MvI][Silicon carbide / SiC used to emit photons (homemade LED)]]
*** [[https://youtu.be/vuvckBQ1bME][How To Make A CPU]]
* r
:PROPERTIES:
@ -567,6 +590,9 @@ Huwawei NB!
** [[https://lists.gnu.org/archive/html/emacs-devel/2023-01/msg00425.html][Re: Consideration for Rust contributions in Emacs]]
from emacs-china, about multi-thread
** [[https://lists.opensuse.org/archives/list/factory@lists.opensuse.org/thread/KJMMAZFTP2MPKWKFZCYUROZFJ44BNVB5/][Leap Replacement - Results from recent contributor survey]]
** [[https://lists.debian.org/debian-riscv/2023/07/msg00053.html][debian: riscv64 is now an official architecture]]
** [[https://lore.kernel.org/lkml/CA+55aFxtD2VYW2R0JwjFkZkvzQzcN7qK3m6ReR+BBXtfyDHx7g@mail.gmail.com/][Re: [GIT] Networking (Linus used Fedora)]]
** [[https://lore.kernel.org/all/20221130082313.3241517-1-tj@kernel.org/][[PATCHSET RFC] sched: Implement BPF extensible scheduler class]]
* Other
:PROPERTIES:
@ -628,3 +654,5 @@ BSD asm
** [[https://www.zzzuckerberg.com][Legal Lullabies]]
** [[https://11-90-an.github.io/rseditor][rseditor]]
** [[https://floooh.github.io/visualz80remix/][Visual Z80 Remix]]
** [[https://lab.magiconch.com][神奇海螺试验场]]
** [[https://tilde.team/wiki/other-tildes][tilde.team wiki: other tildes]]

View File

@ -74,7 +74,7 @@ emm, 看起来还算靠谱, 只是俄文读不明白.
或许我要弄个 offlineimap, 暂时懒得弄了.
还有就是切换文件夹不能从 imap 根目录, 得用比如 ==INBOX=
然后我发现 mail.ru 也丢邮件[id:mailru]
然后我发现 mail.ru 也丢邮件[[#mailru]]
* mailing list
:PROPERTIES:
@ -104,7 +104,8 @@ to 并 cc 是对的, 这样如果这是一个有很多回复的 thread, 不会
:CUSTOM_ID: mailru
:END:
换 OpenMbox.net 了, 希望是最后一次换邮件服务商
(2023.5) 好吧... 也被墙了
(2023.5) OpenMbox 不提供 IMAP/SMTP 了
(2024.1) cock.li 开放注册了竟然! 为了能发邮件需要在浏览器完成 PoW 算法, 这招很聪明地避免了滥用.
** [[https://www.mail-archive.com/misc@openbsd.org/msg184084.html][Live stick / cd from official sources]]
:PROPERTIES:
:CUSTOM_ID: livecd

View File

@ -1,8 +1,12 @@
#+TITLE: 个人历史
#+TITLE: 我的赛博大事记
#+OPTIONS: toc:nil
#+TAGS: git(g) blog(b) video(v)
* 2023-2024 寒假
** I use Arch btw
* 2023 暑假
** [[./nanopi_freebsd.org][在 NanoPi R2S 上运行 FreeBSD]]
* 2023 春
** Fedora 打包 :blog:
@ -30,6 +34,7 @@
** 2022.7 [[https://github.com/dongdigua/AxolotlVM][玩具解释器 AxolotlVM]] :git:
是我写过最大的一个项目
** 2022.8 [[https://github.com/dongdigua/configs/commit/c548f441344313f8b74f2e2bc00003a16677765a][切换到 Sway 窗口管理器]] :git:
** 注册 Libera.Chat IRC 网络
* 2021-2022 寒假
** 2022.2 加入 exercism.org 学习 elixir

View File

@ -60,6 +60,9 @@ this feature is not compatible with i3, so sway didn't accept the pr
[[https://github.com/jtheoof/swappy][swappy]] is probably an idea
I odn't want to make it too complicated,
just shot the whole screen and edit with GIMP later
** dark mode
[[https://gitlab.com/WhyNotHugo/darkman][darkman]]
but, if you are using swayfx, [[https://github.com/WillPower3309/swayfx/issues/226#issuecomment-1879642217][#226]]
* Ref