Compare commits
6 Commits
6ef7d372ad
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8edbe63d8e | ||
|
|
5efb845143 | ||
|
|
b7b6e76fc1 | ||
|
|
597f7af985 | ||
|
|
31ae053ab3 | ||
|
|
dd19dd503a |
@@ -104,6 +104,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: dist
|
name: dist
|
||||||
path: dist/
|
path: dist/
|
||||||
|
|
||||||
|
- name: Setup tmate session
|
||||||
|
uses: http://MonBianG.lan:3000/action/action-tmate@v3
|
||||||
|
|
||||||
- name: Setup SSH key
|
- name: Setup SSH key
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
|
|||||||
13
src/content/posts/infnoise.md
Normal file
13
src/content/posts/infnoise.md
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
title: '复刻infnoise'
|
||||||
|
published: 2026-06-22
|
||||||
|
description: '硬件真随机数发生器!'
|
||||||
|
tags: ['工具', '熵']
|
||||||
|
category: '小工具'
|
||||||
|
draft: true
|
||||||
|
lang: ''
|
||||||
|
---
|
||||||
|
|
||||||
|
## 缘起
|
||||||
|
|
||||||
|
是这样,我最近
|
||||||
@@ -11,3 +11,12 @@ lang: ''
|
|||||||
我真的很喜欢她
|
我真的很喜欢她
|
||||||
|
|
||||||
真的真的
|
真的真的
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
graph LR
|
||||||
|
x --> v2["x × y"]
|
||||||
|
y --> v2
|
||||||
|
x --> v3["sin(x)"]
|
||||||
|
v3 --> v4["x × y + sin(x)"]
|
||||||
|
v2 --> v4
|
||||||
|
```
|
||||||
|
|||||||
13
src/content/posts/luna.md
Normal file
13
src/content/posts/luna.md
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
title: '用lua写随机数服务'
|
||||||
|
published: 2026-06-22
|
||||||
|
description: '本质暴露本地设备到网络'
|
||||||
|
tags: ['工具', 'luna', '熵']
|
||||||
|
category: '小工具'
|
||||||
|
draft: true
|
||||||
|
lang: ''
|
||||||
|
---
|
||||||
|
|
||||||
|
## 缘起
|
||||||
|
|
||||||
|
是这样,我最近
|
||||||
76
src/content/posts/lunash-end.md
Normal file
76
src/content/posts/lunash-end.md
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
---
|
||||||
|
title: 'luna shell之死'
|
||||||
|
published: 2026-06-22
|
||||||
|
description: '堂堂完结!'
|
||||||
|
tags: ['工具', 'lunash', 'shell']
|
||||||
|
category: '小工具'
|
||||||
|
draft: false
|
||||||
|
lang: ''
|
||||||
|
---
|
||||||
|
|
||||||
|
## why not lua-shell
|
||||||
|
|
||||||
|
显而易见的,`lua`作为shell还是太繁琐了,但是这其实不是重点,重点在于
|
||||||
|
|
||||||
|
*wow fiiiiiish*
|
||||||
|
|
||||||
|
gosh, why not [fish](https://fishshell.com/)!
|
||||||
|
|
||||||
|
他妈的关键字几乎是一样的!哪来的孪生姐妹!
|
||||||
|
|
||||||
|
``` fish
|
||||||
|
if test $n -eq 1
|
||||||
|
echo "one"
|
||||||
|
else if test $n -eq 2
|
||||||
|
echo "two"
|
||||||
|
else
|
||||||
|
echo "many"
|
||||||
|
end
|
||||||
|
|
||||||
|
while test $i -lt 3
|
||||||
|
echo $i
|
||||||
|
set i (math $i + 1)
|
||||||
|
end
|
||||||
|
|
||||||
|
for f in *.txt
|
||||||
|
echo "Processing $f"
|
||||||
|
if string match -q "skip*" $f
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
```
|
||||||
|
|
||||||
|
``` lua
|
||||||
|
if n == 1 then
|
||||||
|
print("one")
|
||||||
|
elseif n == 2 then
|
||||||
|
print("two")
|
||||||
|
else
|
||||||
|
print("many")
|
||||||
|
end
|
||||||
|
|
||||||
|
while i < 3 do
|
||||||
|
print(i)
|
||||||
|
i = i + 1
|
||||||
|
end
|
||||||
|
|
||||||
|
for _, f in ipairs(files) do
|
||||||
|
print("Processing " .. f)
|
||||||
|
if f:match("^skip") then
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
```
|
||||||
|
|
||||||
|
*差别在哪我怎么看不到这不两段一样的代码吗*
|
||||||
|
|
||||||
|
你是说,有一个功能强大、语法优雅、社区成熟、生态丰富的shell,她满足了我的既要又要还要???
|
||||||
|
我草我真的睡醒了吗,都给我去用`fish`
|
||||||
|
|
||||||
|
## 为什么像啊
|
||||||
|
|
||||||
|
据说是二者都出生在一个时代(~~我就说是孪生姐妹吧~~),然后彼时彼刻,一股推翻老一代留下的技术债的风潮正在掀起
|
||||||
|
lua推翻了c,fish推翻了bash
|
||||||
|
当然其实并没有真的推翻了,但是确实是反其道而行之,抛弃其固有范式
|
||||||
|
|
||||||
|
好吧其实我查了一下我记错了,她俩差了十二年出生,不过精神内核都是一致的
|
||||||
Reference in New Issue
Block a user