Skip to content

Commit 57c8034

Browse files
committed
Merge branch 'astro' of https://github.com/haxck/haxck.github.io into astro
2 parents 18d3ca2 + b62d587 commit 57c8034

15 files changed

+235
-19
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
VITE_ALGOLIA_ADMIN_KEY: ${{secrets.ALGOLIA_ADMIN_KEY}}
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414
with:
1515
token: ${{ secrets.GITHUB_TOKEN }}
1616
# If your repository depends on submodule, please see: https://github.com/actions/checkout
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
node-version: '18'
2121
- name: Cache NPM dependencies
22-
uses: actions/cache@v2
22+
uses: actions/cache@v4
2323
with:
2424
path: node_modules
2525
key: ${{ runner.OS }}-npm-cache

astro.config.mjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,5 @@ import tailwind from "@astrojs/tailwind";
1010
// https://astro.build/config
1111
export default defineConfig({
1212
site: 'https://blog.haxck.com',
13-
redirects: {
14-
'/': '/posts/'
15-
},
1613
integrations: [mdx(), sitemap(), tailwind(),icon()],
1714
});

autopush.bat

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
@echo off
2+
git add src/data/blog/*
3+
git commit -m "new post %date%"
4+
git push origin astro

src/components/AI.astro

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,28 @@
11
---
2-
import { Icon } from 'astro-icon/components'
3-
const { ai } = Astro.props
2+
import { Icon } from "astro-icon/components";
3+
const { ai } = Astro.props;
44
---
55

66
<!-- Component: Outline accordion with icons -->
7-
<section class="w-full bg-white border divide-y rounded divide-slate-200 border-slate-200">
8-
<details class="p-4 group">
9-
<summary class="[&::-webkit-details-marker]:hidden relative flex gap-4 pr-8 font-medium list-none cursor-pointer text-slate-700 focus-visible:outline-none transition-colors duration-300 group-hover:text-slate-900 ">
10-
<Icon name={"mdi:stars"} class:list={"w-6 h-6"}/>
11-
AI Summary
7+
<section
8+
class="w-full bg-white border divide-y rounded divide-slate-200 border-slate-200"
9+
>
10+
<details class="p-4 group" transition:animate="slide">
11+
<summary
12+
class="[&::-webkit-details-marker]:hidden relative flex items-center gap-4 pr-8 font-medium list-none cursor-pointer text-slate-700 focus-visible:outline-none transition-colors duration-300 group-hover:text-slate-900"
13+
>
14+
<Icon name={"mdi:stars"} class:list={"w-6 h-6 flex-shrink-0"} />
15+
<span>AI Summary</span>
16+
<span
17+
class="absolute right-2 top-1/2 -translate-y-1/2 transition-transform duration-300 group-open:rotate-180"
18+
>
19+
<Icon name={"mdi:chevron-down"} class:list={"w-5 h-5 flex-shrink-0"} />
20+
</span>
1221
</summary>
13-
<p class=" text-slate-500">
14-
{ai}
15-
</p>
22+
<div class="overflow-hidden">
23+
<p class="text-slate-500 mb-0">
24+
{ai}
25+
</p>
26+
</div>
1627
</details>
1728
</section>

src/consts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const SITE_TITLE = "Haxck's blog";
55
export const SITE_DESCRIPTION = "Haxck's blog";
66

77
export const NAVS = [
8-
{"name":"博客","link":"/posts"},
8+
{"name":"主页","link":"/"},
99
{"name":"收集","link":"/quote"},
1010
{"name":"清单","link":"/list"},
1111
]

src/data/blog/automatically-deploy-hexo-blog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: 自动部署 hexo 博客
33
description: none
44
pubDate: 2018-03-06 15:10:16
5+
tags: ['技术']
56
---
67

78
去年将博客搬到了 Github,用的是 hexo 生成好的静态网页。此外还开了新分支来备份 hexo 源文件。每次写完文章后,hexo generate,hexo deploy 等一系列操作。
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
---
2+
title: 《左耳听风》中个人成长及程序员入门书摘
3+
description: 文章主要讲述了如何做正确的事,关注长期收益和个人成长,并详细阐述了个人成长的标准、程序员应具备的技能和技术,以及如何进行技术选择和深度思考。
4+
pubDate: 2025-03-28 15:25:45
5+
ai: 文章主要讲述了如何做正确的事,关注长期收益和个人成长,并详细阐述了个人成长的标准、程序员应具备的技能和技术,以及如何进行技术选择和深度思考。
6+
tags: ['成长','书']
7+
---
8+
- 正确的事
9+
- 给个人或公司带来长期收益。
10+
- 能使个人或公司有质的提升或成长
11+
- 能提高效率
12+
- 能解放生产力
13+
- 提高竞争力
14+
> 多关注自己得到的,而不是自己失去的。一个人的时间、金钱、青春、精力、经验、能力等都可以用来投资,而聪明的投资者只关注自己能获得什么,而不是会失去什么。
15+
>
16+
- 个人成长的 4 条标准
17+
- 能否进入世界一流公司,并在其中表现出色。在挑战性的环境中工作,与同行竞争,学习和掌握新技能,并建立起强大的职业网络
18+
- 能够在世界经济不断变化中找到稳定高质量的工作
19+
- 能否做到大多数人做不到的事
20+
- 是否具备领导力。具备领导力可以更好地与达人合作,发挥个人优势。
21+
- 真正的绩效
22+
- 有效的沟通能力
23+
- 有效的时间管理能力
24+
- 应对变化与挑战的能力
25+
- 坚持不懈与自我激励
26+
- 有竞争力的程序员
27+
- 独立思考
28+
- 获取高质量信息的能力
29+
- 构建个人知识体系
30+
- 个人技能
31+
- 领导力
32+
- 如何选择技术
33+
- 大公司是否使用
34+
- 有没有杀手级应用
35+
- 社区热度
36+
- 是否有人为这项技术做贡献
37+
# 程序员的样子
38+
39+
### 学习一门脚本语言
40+
- 处理文本文件或 csv 文件的工具。读取文件,并对文件做操作。如单词统计,日志处理。
41+
- 遍历本地文件系统的程序。统计目录所有文件的信息,按照各种条件排序和保存结果
42+
- 与数据库交互的脚本。
43+
44+
### 掌握一种主流编辑器
45+
46+
- 高效查看修改代码或日志,配置文件
47+
48+
### 熟悉 Shell 命令
49+
50+
- 文件系统结构和基本操作
51+
52+
- ls, rm, mkdir, cat, find, tar, gzip, chmod, chown, mount, ln
53+
54+
- 文本操作命令
55+
56+
- sed, awk, grep, tail, less, more
57+
58+
- 管理命令
59+
60+
- ps, top, lsof, netseat, kill, tcpdump, iptables, dd
61+
62+
- 了解 /etc 目录下的各种配置文件,学会看 /var/log下的日志及 /proc 下的系统运行信息
63+
64+
### Web
65+
66+
- 修改网页样式或结构
67+
68+
- 使用 js 操作 dom
69+
70+
- 表单提交
71+
72+
- 操作数据库
73+
74+
## 硬核技术
75+
76+
### C 语言和操作系统调用
77+
78+
- 理解指针和内存模型,并使用 c 实现各种经典算法和数据结构
79+
- Linux 系统调用
80+
- WindowsSDK 编程
81+
### Java
82+
### Web 安全与架构
83+
- Web 开发安全
84+
- Http server 的 rewrite 机制
85+
- Nginx 反向代理
86+
- Web 异步工作流
87+
- 数据 cache
88+
- 负载均衡
89+
### 数据库
90+
- 设计范式
91+
- 存储过程、触发器、试图、索引
92+
- 数据库优化

src/data/blog/car-license.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: 新技能:驾照
33
description: "没能等上自动驾驶,只好我上了"
44
pubDate: 2023-12-01
55
ai: 本文主要讲述了作者考取驾照的经历,包括考取驾照的费用、科目考试的感想以及作者对于考取驾照的一些个人想法。
6+
tags: ['随笔']
67
---
78
拖拖拉拉了两年之久,总算在 23 年年底把驾照考完了,现在我也可以开车咯。
89

src/data/blog/fm.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ tags: ["随笔"]
2222
- 如果你是个较真的人,这个你一定喜欢
2323
- Blow Your Mind
2424
- 峰哥和简里里讲故事
25+
- 无人知晓
26+
- 孟岩的声音太好听了,光是听他的声就是享受。
27+
- 推荐听:
28+
- #E23 此时此刻
2529
- 三点下班
2630
- 理财
2731
- 理财小客栈

src/data/blog/mirouter-ssh.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
title: 小米路由器解锁 SSH
2+
title: 解锁小米路由器 SSH
33
description: 解锁路由器 SSH
44
pubDate: 2025-03-03 21:39:58
55
ai: 使用 xmir-patcher 工具解锁小米路由器的 SSH,并简单介绍了 SSH 登录后的基本操作和一些可以进行的折腾,但作者最终因为路由器配置和官方固件够用等原因,放弃了刷 OpenWrt 的想法。
6-
tags: ['']
6+
tags: ['技术','路由器']
77
---
88

99
前段时间买了新路由,就想着玩玩 OpenWrt ,买回来也没折腾,这几天想起来了就折腾一下。

0 commit comments

Comments
 (0)