From 5b9ca5ce33232f6eb61064e63795a7919c2ca1fc Mon Sep 17 00:00:00 2001 From: Alomerry Wu Date: Tue, 26 Dec 2023 22:34:50 +0800 Subject: [PATCH] feat(blog): refine posts Signed-off-by: Alomerry Wu --- blog/LICENSE | 21 --------- blog/pages/chat-zh.md | 1 - blog/pages/index.md | 5 +-- blog/pages/index_zh.md | 27 +++++++++++ blog/pages/pinned/about/site.md | 13 ++++-- ...-jenkins-zh.md => 2022~[ci]-jenkins-zh.md} | 0 ...gorithm-kmp.md => 2023~[algorithm]-kmp.md} | 0 .../2023~[cloud-native]-tekton&argocd.md | 45 +++++++++++++++++++ blog/pages/posts/2023~[share]-summary.md | 0 blog/pages/posts/todo~mac.md | 5 +++ blog/scripts/og-template.svg | 1 - blog/scripts/rss.ts | 20 ++++----- blog/scripts/stars-rank.ts | 38 ---------------- 13 files changed, 99 insertions(+), 77 deletions(-) delete mode 100644 blog/LICENSE create mode 100644 blog/pages/index_zh.md rename blog/pages/posts/{2022~ci-jenkins-zh.md => 2022~[ci]-jenkins-zh.md} (100%) rename blog/pages/posts/{2023~algorithm-kmp.md => 2023~[algorithm]-kmp.md} (100%) create mode 100644 blog/pages/posts/2023~[cloud-native]-tekton&argocd.md create mode 100644 blog/pages/posts/2023~[share]-summary.md delete mode 100644 blog/scripts/og-template.svg delete mode 100644 blog/scripts/stars-rank.ts diff --git a/blog/LICENSE b/blog/LICENSE deleted file mode 100644 index 3712a9b7..00000000 --- a/blog/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2021 Alomerry Wu - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/blog/pages/chat-zh.md b/blog/pages/chat-zh.md index a63bbf47..827f2144 100644 --- a/blog/pages/chat-zh.md +++ b/blog/pages/chat-zh.md @@ -1,7 +1,6 @@ --- title: 和 Alomerry Wu 聊聊天! display: 聊聊天! -image: https://antfu.me/og-chat.png --- [English](/chat) diff --git a/blog/pages/index.md b/blog/pages/index.md index 229aa486..bda14d4b 100644 --- a/blog/pages/index.md +++ b/blog/pages/index.md @@ -1,18 +1,17 @@ --- title: Alomerry Wu description: TODO -image: https://antfu.me/og.png plum: true --- +[中文](./index_zh.md) + Hey, I am Alomerry Wu, a backend developer. Working at [Temu](https://www.temu.com/).
Creator of [Vitest](https://github.com/vitest-dev/vitest), [Slidev](https://github.com/slidevjs/slidev), [VueUse](https://github.com/vueuse/vueuse), [UnoCSS](https://github.com/antfu/unocss), [Elk](https://github.com/elk-zone/elk), [Type Challenges](https://github.com/type-challenges/type-challenges) and [others](/projects).
Core team member of [Vue](https://vuejs.org/), [Nuxt](http://nuxtjs.org/) and [Vite](http://vitejs.dev/).
-Dreaming up ideas and making them come true is where my passion lies. You can find my [full projects list here](/projects). I also do some generative-art, compform, interactivity experiments on [100.antfu.me](https://100.antfu.me/). - Outside of programming, I enjoy doing photography and traveling. Some of my photos can be found on [Instagram](https://www.instagram.com/antfu7). If you happen to be in the same city I live (currently in Paris), maybe we can hang out and take some photos or code together.
diff --git a/blog/pages/index_zh.md b/blog/pages/index_zh.md new file mode 100644 index 00000000..1d940a6f --- /dev/null +++ b/blog/pages/index_zh.md @@ -0,0 +1,27 @@ +--- +title: 清欢 +description: TODO +plum: true +--- + +Hey, I am Alomerry Wu, a backend developer. + +Working at [Temu](https://www.temu.com/).
+Creator of [Vitest](https://github.com/vitest-dev/vitest), [Slidev](https://github.com/slidevjs/slidev), [VueUse](https://github.com/vueuse/vueuse), [UnoCSS](https://github.com/antfu/unocss), [Elk](https://github.com/elk-zone/elk), [Type Challenges](https://github.com/type-challenges/type-challenges) and [others](/projects).
+Core team member of [Vue](https://vuejs.org/), [Nuxt](http://nuxtjs.org/) and [Vite](http://vitejs.dev/).
+ +Outside of programming, I enjoy doing photography and traveling. Some of my photos can be found on [Instagram](https://www.instagram.com/antfu7). If you happen to be in the same city I live (currently in Paris), maybe we can hang out and take some photos or code together. + +
+ +--- + +Find me on + +

+ GitHub + 哔哩哔哩 + 知乎 +

+ +If you enjoy my works, consider sponsoring me on [ GitHub Sponsor](https://github.com/sponsors/alomerry) or [ 爱发电](https://afdian.net/a/21xxx3) to keep them sustainable. diff --git a/blog/pages/pinned/about/site.md b/blog/pages/pinned/about/site.md index 21f25ec4..e61837b5 100644 --- a/blog/pages/pinned/about/site.md +++ b/blog/pages/pinned/about/site.md @@ -46,6 +46,16 @@ cards: [Alomerry Wu](https://github.com/alomerry) +## 2023.11 切换 antfu.me + +## vuepress-themo-hope + +import code + +[`download-import`](download-import.js) 会在构建时将 `@[code](@_codes/${repo}/${file})` 转换成 `https://gitee.com/alomerry/${repo}/raw/${branch}/${file}` 后下载到 `src/_codes` 下对应的位置,并将 `@_codes` 修改成相对位置 + +## 2020-至今 使用 vuepress@next + https://waline.js.org/reference/server/env.html#%E6%98%BE%E7%A4%BA ::: tip 2023.04 更新 @@ -54,9 +64,6 @@ guniar 维护不够及时,vuepress next 更新比较频繁,无法使用新 ::: - -## 2020-至今 使用 vuepress@next - ### gunir #### 静态文件 Push 前上传到 OSS 中 diff --git a/blog/pages/posts/2022~ci-jenkins-zh.md b/blog/pages/posts/2022~[ci]-jenkins-zh.md similarity index 100% rename from blog/pages/posts/2022~ci-jenkins-zh.md rename to blog/pages/posts/2022~[ci]-jenkins-zh.md diff --git a/blog/pages/posts/2023~algorithm-kmp.md b/blog/pages/posts/2023~[algorithm]-kmp.md similarity index 100% rename from blog/pages/posts/2023~algorithm-kmp.md rename to blog/pages/posts/2023~[algorithm]-kmp.md diff --git a/blog/pages/posts/2023~[cloud-native]-tekton&argocd.md b/blog/pages/posts/2023~[cloud-native]-tekton&argocd.md new file mode 100644 index 00000000..9bb73753 --- /dev/null +++ b/blog/pages/posts/2023~[cloud-native]-tekton&argocd.md @@ -0,0 +1,45 @@ +--- +date: 2023-12-22T16:00:00.000+00:00 +title: Tekton Pipeline +lang: zh +duration: 10min +tocAlwaysOn: true +--- + +- 安装 k8s +- 安装 tekton-pipeline、tekton-dashboard +- 配置 ingress 暴露 tekton + +### Tasks + +- [git-clone](https://hub.tekton.dev/tekton/task/rsync) +- [rsync](https://hub.tekton.dev/tekton/task/rsync) +- build-mix + + +- https://juejin.cn/post/7142758521988186143 + + +### argocd + +- https://devops-blog.virtualtech.jp/entry/20220509/1652081784 +- https://www.cnblogs.com/xunweidezui/p/17180195.html +- https://kubeoperator.io/docs/user_manual/argocd/#argo-cd_2 + +- https://www.zhang21.cn/argo-cd/ +- https://www.lixueduan.com/posts/page/10/ +- https://icloudnative.io/posts/getting-started-with-argocd/#argo-cd-%E6%A0%B8%E5%BF%83%E6%A6%82%E5%BF%B5 +- https://www.infvie.com/ops-notes/tekton-argocd-gitops.html +- https://ccops.cc/DevOps/ArgoCD/ +- https://docs.youdianzhishi.com/k8s/devops/gitops/argocd/#%E5%88%9B%E5%BB%BA%E5%BA%94%E7%94%A8 +- https://cit965.netlify.app/docs/argocd/argo%E4%BB%8B%E7%BB%8D/ +- https://cvvz.fun/post/k8s-network-service/ + +- https://www.jokerbai.com/archives/shi-yong-argocd-jin-xing-chi-xu-bu-shu +- https://dev.to/nulldutra/disabling-tls-in-argocd-server-4jij +- https://juejin.cn/post/7175549621396045881 + +### frps + +- https://blog.lautumn.cn/linux/2022/02/16/proxy-frp +- https://zhuanlan.zhihu.com/p/371234742 \ No newline at end of file diff --git a/blog/pages/posts/2023~[share]-summary.md b/blog/pages/posts/2023~[share]-summary.md new file mode 100644 index 00000000..e69de29b diff --git a/blog/pages/posts/todo~mac.md b/blog/pages/posts/todo~mac.md index a715148e..0661faa9 100644 --- a/blog/pages/posts/todo~mac.md +++ b/blog/pages/posts/todo~mac.md @@ -135,3 +135,8 @@ no-port-forwarding,no-agent-forwarding,no-X11-forwarding,command="echo 'Please l brew install dust https://github.com/bootandy/dust brew install duf https://github.com/muesli/duf + +## macos14 清除 dns + +sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder + diff --git a/blog/scripts/og-template.svg b/blog/scripts/og-template.svg deleted file mode 100644 index 89349267..00000000 --- a/blog/scripts/og-template.svg +++ /dev/null @@ -1 +0,0 @@ -{{line1}}{{line2}} \ No newline at end of file diff --git a/blog/scripts/rss.ts b/blog/scripts/rss.ts index 43fca37d..b41c4829 100644 --- a/blog/scripts/rss.ts +++ b/blog/scripts/rss.ts @@ -6,10 +6,10 @@ import MarkdownIt from 'markdown-it' import type { FeedOptions, Item } from 'feed' import { Feed } from 'feed' -const DOMAIN = 'https://antfu.me' +const DOMAIN = 'https://blog.alomerry.com' const AUTHOR = { name: 'Alomerry Wu', - email: 'hi@antfu.me', + email: 'alomerrt.wu@gmail.com', link: DOMAIN, } const markdown = MarkdownIt({ @@ -28,13 +28,13 @@ async function buildBlogRSS() { const options = { title: 'Alomerry Wu', description: 'Alomerry Wu\' Blog', - id: 'https://antfu.me/', - link: 'https://antfu.me/', - copyright: '2018 © Alomerry Wu', + id: 'https://blog.alomerry.com/', + link: 'https://blog.alomerry.com/', + copyright: '2019 © Alomerry Wu', feedLinks: { - json: 'https://antfu.me/feed.json', - atom: 'https://antfu.me/feed.atom', - rss: 'https://antfu.me/feed.xml', + json: 'https://blog.alomerry.com/feed.json', + atom: 'https://blog.alomerry.com/feed.atom', + rss: 'https://blog.alomerry.com/feed.xml', }, } const posts: any[] = ( @@ -71,8 +71,8 @@ async function buildBlogRSS() { async function writeFeed(name: string, options: FeedOptions, items: Item[]) { options.author = AUTHOR - options.image = 'https://antfu.me/avatar.png' - options.favicon = 'https://antfu.me/logo.png' + options.image = 'https://blog.alomerry.com/avatar.png' + options.favicon = 'https://blog.alomerry.com/logo.png' const feed = new Feed(options) diff --git a/blog/scripts/stars-rank.ts b/blog/scripts/stars-rank.ts deleted file mode 100644 index 46535726..00000000 --- a/blog/scripts/stars-rank.ts +++ /dev/null @@ -1,38 +0,0 @@ -export function getStarsRankingUrl() { - const users = [ - 'antfu', - 'codecember', - 'knightly', - 'slidevjs', - 'type-challenges', - 'unocss', - 'elk-zone', - 'vueuse', - 'vitest-dev', - 'vue-reactivity', - 'vite-pwa', - ] - const repos = [ - 'lokalise/i18n-ally', - 'nuxt/nuxt', - 'nuxt/modules', - 'nuxt/devtools', - 'unjs/unplugin', - 'unjs/unimport', - 'vitejs/awesome-vite', - 'vitejs/vite', - 'vuejs/composition-api', - 'wenyan-lang/ide', - 'wenyan-lang/wenyan', - 'wenyan-lang/wyg', - 'windicss/vite-plugin-windicss', - ] - - const query = [ - ...users.map(i => `user:${i}`), - ...repos.map(i => `repo:${i}`), - ].join(' ') - - const url = `https://github.com/search?l=&o=desc&s=stars&type=Repositories&q=${encodeURIComponent(query)}` - return url -}