From 128f1322aabfb3c6061130d25b70bade13215dfe Mon Sep 17 00:00:00 2001 From: Vincent Zhong Date: Tue, 19 Nov 2024 11:54:06 +0800 Subject: [PATCH] save --- blog/2024-11-14-hello-world.md | 10 ++++ blog/authors.yml | 12 ++++ docs/cryptocurrency/storj/setup.md | 38 +++++++++++++ docs/cryptocurrency/storj/storj.md | 0 .../storj/user-pay-with-storj-tonken.md | 35 ++++++++++++ docs/feat.md | 30 +++++++++- docs/storj/setup.md | 6 -- docs/tutorial-basics/create-a-document.md | 57 ------------------- docs/tutorial-basics/create-a-page.md | 43 -------------- sidebars.js | 3 + src/pages/markdown-page.md | 7 --- src/pages/my-react-page.md | 11 ---- 12 files changed, 125 insertions(+), 127 deletions(-) create mode 100644 blog/2024-11-14-hello-world.md create mode 100644 docs/cryptocurrency/storj/setup.md create mode 100644 docs/cryptocurrency/storj/storj.md create mode 100644 docs/cryptocurrency/storj/user-pay-with-storj-tonken.md delete mode 100644 docs/storj/setup.md delete mode 100644 docs/tutorial-basics/create-a-document.md delete mode 100644 docs/tutorial-basics/create-a-page.md delete mode 100644 src/pages/markdown-page.md delete mode 100644 src/pages/my-react-page.md diff --git a/blog/2024-11-14-hello-world.md b/blog/2024-11-14-hello-world.md new file mode 100644 index 0000000..28b6d21 --- /dev/null +++ b/blog/2024-11-14-hello-world.md @@ -0,0 +1,10 @@ +--- +slug: hello-world +title: Hello, World! +authors: vincent +tags: [greetings] +--- + +刚到珠海看完航展,顺手把Docusurus站点搓出来了。 + +Docusurus内置很多开箱即用的功能,包括我很喜欢的KaTeX数学公式,配合github action和pages,完全可以当做笔记本来用。我只管写文章,剩下的由自动化流水线完成。而且总体效果不错。也不用像之前管理wordpress那样,局限在古登堡编辑器里,可以使用vscode强大的markdown工具,可以离线写作,偶尔推送并合并到主分支。并且markdown兼容性非常好,可以导入语雀、notion、joplin等软件的文章,基本做到无痛迁移。反正部署在github,存储分发什么的也不用我担心。码字就完事了。 \ No newline at end of file diff --git a/blog/authors.yml b/blog/authors.yml index 8bfa5c7..6def280 100644 --- a/blog/authors.yml +++ b/blog/authors.yml @@ -21,3 +21,15 @@ slorber: linkedin: sebastienlorber github: slorber newsletter: https://thisweekinreact.com + +vincent: + name: Vincent Zhong + title: webmaster of friesport.ac.cn + url: https://github.com/mind-dance + image_url: https://github.com/mind-dance.png + socials: + # x: sebastienlorber + # linkedin: sebastienlorber + github: mind-dance + telegram: https://t.me/paimon_is_guide + # newsletter: https://thisweekinreact.com diff --git a/docs/cryptocurrency/storj/setup.md b/docs/cryptocurrency/storj/setup.md new file mode 100644 index 0000000..6696942 --- /dev/null +++ b/docs/cryptocurrency/storj/setup.md @@ -0,0 +1,38 @@ +--- +sidebar_label: "部署storj节点" +--- + +# 设置节点 + +硬盘的文件系统最好与操作系统一致,即Windows下使用NTFS,Linux下使用ext4。 + +## 预设 + + +分区 +```bash +gdisk /dev/sda +n # 添加新分区 +1 # 分区代码 +w # 保存工作 + +``` +使用的单个硬盘单个分区,剩下的一路回车就完事。 +```bash +mkfs.ext4 /dev/sda1 # 格式化刚刚添加的分区 +``` +格式化刚刚创建的分区。 + + +## 获取授权key + +## 设置端口转发 + +## 设置QUIC + +## 创建认证 + +## 安装节点 + +## 参考文献 +[storj部署文档](https://storj.dev/node/get-started/prerequisites) \ No newline at end of file diff --git a/docs/cryptocurrency/storj/storj.md b/docs/cryptocurrency/storj/storj.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/cryptocurrency/storj/user-pay-with-storj-tonken.md b/docs/cryptocurrency/storj/user-pay-with-storj-tonken.md new file mode 100644 index 0000000..c474a7b --- /dev/null +++ b/docs/cryptocurrency/storj/user-pay-with-storj-tonken.md @@ -0,0 +1,35 @@ +# 使用storj token充值storj pro账户 +本文中,storj是指storj labs公司。storj代币、storj token、代币,是指在以太坊网络上发行的storj代币。 + +想要升级为无限制的storj pro账户,有两种办法,可以直接绑定银行卡支付,支持visa、万事达、银联的银行卡,银行卡需要会冻结1美元测试,请提前购买外汇(我只有visa存美元现汇的卡绑定成功了,没尝试现钞,另外我银联绑定失败了,我确信已开启境外扣款等功能,如果有人成功了欢迎与我交流)。 + +除了直接绑定信用卡支付以外,还可以购买storj代币为你的storj账户充值。storj公司会按照市场价将storj代币转换为美元,为你的账户充值,供之后消费。升级到storj pro账户至少需要充值等价于10美元的storj代币。 + +storj官方支持的转账网络为以太坊主网(ERC-20)和ZKsync era网络(下文缩写为zk)。 + +## 流程 + +主要流程如下 + +1. 购买稳定币,通常为usdt + +2. 使用usdt购买storj代币,并将获得的storj代币转入storj指定给你的账户。 + +转账通常有手续费(也成为gas费、燃料费),是提供给矿工作为计算区块的奖励,以太坊手续费最高,二层网络会在自己的链上计算区块,并在一段时间后打包、发回以太坊计算区块,因此交易速度更快、手续费通常更低。 + +如果你的交易所不支持storj代币的zk网络的转出,并且你希望避免高额的以太坊手续费,你需要直接将usdt转出到一个二层网络,再进行一次跨链转入storj指定的zk网络账户。 + +## 购买USDT + +我选择在欧易交易所进行购币,如果你也希望在欧易购币并且是新用户,注册时可以填写我的邀请码`81522149`,新人首次购币可能风控3天,这期间可以在交易所内交易,但不能提币,请合理安排时间。注意,欧易的storj提币只支持ERC-20。 + +可以选择在欧易创建一个web3钱包,切记写下助记词,这个12位(或更多位)助记词也可以在其他钱包使用,例如my ether wallet或者小狐狸钱包。任何人拥有助记词即拥有了你的钱包。 + +## 提币 +在欧易web3钱包中选择充币,可以快速在交易所账户提币。我选择Arbitrum One。 + +## 跨链并转账 +似乎比较少的跨链桥能直接转storj代币,因此我们选择先将usdt转入zk网络后,再购买storj代币。如果你找到了一个支持storj的桥,也可以在Arbitrum One先购买storj币后直接跨链桥转到storj的zk账户。 + +## 购买Storj +各类钱包一般提供去中心化交易所(DEX),因此可以在钱包中用usdt购买storj代币。购买后将storj代币转入指定的zk账户后,等待storj确认即可。 diff --git a/docs/feat.md b/docs/feat.md index 081b3f4..61dbb5f 100644 --- a/docs/feat.md +++ b/docs/feat.md @@ -4,6 +4,30 @@ sidebar_position: 1 # 待办 - [ ] 部署storj节点 -- [ ] https://storj.dev/node/get-started/port-forwarding -- [ ] 调整网站颜色红色#ea5a47,黄色#fcea2b -- [ ] \ No newline at end of file +- [ ] 找一个不限流量支持udp的内网穿透 +- [ ] 学习frp的使用 +- [x] ~~调整网站颜色红色#ea5a47,黄色#fcea2b~~ 最后选了ant design预设金色#faad14 + +--- + +## 笔记 +记录一些内网穿透供应商,防止后面找不到 + +### ChmlFrp +https://www.chmlfrp.cn/ + +frp穿透,限制带宽不限流量。有永久套餐。 +### fnat +https://www.fnat.cc + +frp穿透,永久套餐限带宽流量,月付套餐只限制带宽。 + +### cloudflare tunnel +https://www.cloudflare.com/zh-cn/products/tunnel/ + +服务器与客户端均为自研软件,客户端需要安装cloudflared,公网域名仅支持tcp穿透,不支持udp。cloudflare作为赛博大善人,没有特别针对tunnel收费。除了延迟有点高之外其他都很棒,无可挑剔。 + +### 天霆网络 +https://www.idc35.com/cloud/hktehui + +服务器,位于香港,最低99元/年。不限流量,带宽10M。价格还行。 \ No newline at end of file diff --git a/docs/storj/setup.md b/docs/storj/setup.md deleted file mode 100644 index 8437563..0000000 --- a/docs/storj/setup.md +++ /dev/null @@ -1,6 +0,0 @@ -# 设置节点 - -硬盘的文件系统最好与操作系统一致,即Windows下使用NTFS,Linux下使用ext4。 - -## 参考文献 -[storj部署文档](https://storj.dev/node/get-started/prerequisites) \ No newline at end of file diff --git a/docs/tutorial-basics/create-a-document.md b/docs/tutorial-basics/create-a-document.md deleted file mode 100644 index c22fe29..0000000 --- a/docs/tutorial-basics/create-a-document.md +++ /dev/null @@ -1,57 +0,0 @@ ---- -sidebar_position: 2 ---- - -# Create a Document - -Documents are **groups of pages** connected through: - -- a **sidebar** -- **previous/next navigation** -- **versioning** - -## Create your first Doc - -Create a Markdown file at `docs/hello.md`: - -```md title="docs/hello.md" -# Hello - -This is my **first Docusaurus document**! -``` - -A new document is now available at [http://localhost:3000/docs/hello](http://localhost:3000/docs/hello). - -## Configure the Sidebar - -Docusaurus automatically **creates a sidebar** from the `docs` folder. - -Add metadata to customize the sidebar label and position: - -```md title="docs/hello.md" {1-4} ---- -sidebar_label: 'Hi!' -sidebar_position: 3 ---- - -# Hello - -This is my **first Docusaurus document**! -``` - -It is also possible to create your sidebar explicitly in `sidebars.js`: - -```js title="sidebars.js" -export default { - tutorialSidebar: [ - 'intro', - // highlight-next-line - 'hello', - { - type: 'category', - label: 'Tutorial', - items: ['tutorial-basics/create-a-document'], - }, - ], -}; -``` diff --git a/docs/tutorial-basics/create-a-page.md b/docs/tutorial-basics/create-a-page.md deleted file mode 100644 index 20e2ac3..0000000 --- a/docs/tutorial-basics/create-a-page.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -sidebar_position: 1 ---- - -# Create a Page - -Add **Markdown or React** files to `src/pages` to create a **standalone page**: - -- `src/pages/index.js` → `localhost:3000/` -- `src/pages/foo.md` → `localhost:3000/foo` -- `src/pages/foo/bar.js` → `localhost:3000/foo/bar` - -## Create your first React Page - -Create a file at `src/pages/my-react-page.js`: - -```jsx title="src/pages/my-react-page.js" -import React from 'react'; -import Layout from '@theme/Layout'; - -export default function MyReactPage() { - return ( - -

My React page

-

This is a React page

-
- ); -} -``` - -A new page is now available at [http://localhost:3000/my-react-page](http://localhost:3000/my-react-page). - -## Create your first Markdown Page - -Create a file at `src/pages/my-markdown-page.md`: - -```mdx title="src/pages/my-markdown-page.md" -# My Markdown page - -This is a Markdown page -``` - -A new page is now available at [http://localhost:3000/my-markdown-page](http://localhost:3000/my-markdown-page). diff --git a/sidebars.js b/sidebars.js index f77355c..fb9b054 100644 --- a/sidebars.js +++ b/sidebars.js @@ -19,6 +19,9 @@ const sidebars = { tutorialSidebar: [{type: 'autogenerated', dirName: '.'}], // But you can create a sidebar manually + storjSiderbar: [{type: 'autogenerated', dirName: '.'}] + + /* tutorialSidebar: [ 'intro', diff --git a/src/pages/markdown-page.md b/src/pages/markdown-page.md deleted file mode 100644 index 9756c5b..0000000 --- a/src/pages/markdown-page.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: Markdown page example ---- - -# Markdown page example - -You don't need React to write simple standalone pages. diff --git a/src/pages/my-react-page.md b/src/pages/my-react-page.md deleted file mode 100644 index 2f6c2a3..0000000 --- a/src/pages/my-react-page.md +++ /dev/null @@ -1,11 +0,0 @@ -import React from 'react'; -import Layout from '@theme/Layout'; - -export default function MyReactPage() { - return ( - -

My React page

-

This is a React page

-
- ); -} \ No newline at end of file