Skip to content

Commit e6b194e

Browse files
committed
⚡ update wiki
1 parent c92608d commit e6b194e

6 files changed

Lines changed: 179 additions & 7 deletions

File tree

book.english/docs/part18-ielts/18.8-writing-basic.md

Whitespace-only changes.

book.wiki/docs/coding-practice/git.md

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Git 的版本库有一个称为 Stage 的暂存区以及最后的 History 版本
8080

8181
Git 会使用 \<\<\<\<\<\<\< ,======= ,\>\>\>\>\>\>\> 标记出不同分支的内容,只需要把不同分支中冲突部分修改成一样就能解决冲突。
8282

83-
```
83+
```bash
8484
<<<<<<< HEAD
8585
Creating a new branch is quick & simple.
8686
=======
@@ -94,7 +94,7 @@ Creating a new branch is quick AND simple.
9494

9595
可以在合并时加上 --no-ff 参数来禁用 Fast forward 模式,并且加上 -m 参数让合并时产生一个新的 commit。
9696

97-
```
97+
```bash
9898
$ git merge --no-ff -m "merge with no-ff" dev
9999
```
100100

@@ -106,7 +106,7 @@ $ git merge --no-ff -m "merge with no-ff" dev
106106

107107
可以使用 git stash 将当前分支的修改储藏起来,此时当前工作区的所有修改都会被存到栈中,也就是说当前工作区是干净的,没有任何未提交的修改。此时就可以安全的切换到其它分支上了。
108108

109-
```
109+
```bash
110110
$ git stash
111111
Saved working directory and index state \ "WIP on master: 049d078 added the index file"
112112
HEAD is now at 049d078 added the index file (To restore them type "git stash apply")
@@ -120,7 +120,7 @@ Git 仓库和 Github 中心仓库之间的传输是通过 SSH 加密。
120120

121121
如果工作区下没有 .ssh 目录,或者该目录下没有 id_rsa 和 id_rsa.pub 这两个文件,可以通过以下命令来创建 SSH Key:
122122

123-
```
123+
```bash
124124
$ ssh-keygen -t rsa -C "youremail@example.com"
125125
```
126126

@@ -148,7 +148,7 @@ $ ssh-keygen -t rsa -C "youremail@example.com"
148148

149149
编辑 ~/.ssh/config:
150150

151-
```
151+
```bash
152152
Host github.com
153153
HostName github.com
154154
User git
@@ -162,12 +162,44 @@ Host github.com
162162

163163
测试:
164164

165-
```
165+
```bash
166166
ssh -T git@github.com
167167
```
168168

169169
完成以上步骤后,Git 就会使用指定的密钥进行身份验证。
170170

171+
## tag
172+
173+
```bash
174+
git tag
175+
```
176+
177+
按字母顺序列出所有 tag 名称。
178+
179+
```bash
180+
git tag --sort=-creatordate
181+
```
182+
183+
这个命令会把最新创建的 tag 排在最前面。
184+
185+
需要查特定前缀的 tag(比如 v1.)也可以这样:
186+
187+
```bash
188+
git tag -l "v1.*"
189+
```
190+
191+
要切换(checkout)到某一个 Git tag,可以用下面的命令:
192+
193+
```bash
194+
git checkout <tag-name>
195+
```
196+
197+
## 指定 ssh 文件
198+
199+
```bash
200+
GIT_SSH_COMMAND='ssh -i {SSH_KEY_PATH} -o StrictHostKeyChecking=no' git clone xxxx
201+
```
202+
171203
## 参考资料
172204

173205
- [Git - 简明指南](http://rogerdudler.github.io/git-guide/index.zh.html)

book.wiki/docs/coding-practice/jetbrains.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,17 @@ title: "Jetbrains"
1616

1717
![](https://cdn.xiaobinqt.cn//xiaobinqt.io/20250420/8f1c3854c5254789ab154740ca9720fc.png)
1818

19+
## 新版本没有 commit dialog
20+
21+
![](https://cdn.xiaobinqt.cn//xiaobinqt.io/20250426/5afcb725a5634a9a8bf79e9d8e8c5e17.png)
22+
23+
新版本把这个功能去掉了,我非常不习惯,可以用一个插件解决。
24+
25+
[Commit Tool window missing! ](https://intellij-support.jetbrains.com/hc/en-us/community/posts/13000351411346-Commit-Tool-window-missing)
26+
1927
## 常用插件
2028

2129
- [Markdown Image Support](https://plugins.jetbrains.com/plugin/14097-markdown-image-support)
2230
- [Gitmoji Plus: Commit Button](https://plugins.jetbrains.com/plugin/12383-gitmoji-plus-commit-button)
31+
- [Translation](https://plugins.jetbrains.com/plugin/8579-translation/getting-started)
2332

book.wiki/docs/coding-practice/mac.md

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,88 @@ brew install shivammathur/php/php@8.2
8686
brew install shivammathur/extensions/mcrypt@7.2
8787
```
8888

89+
## 安装 hugo
90+
91+
安装指定版本的
92+
93+
[https://github.com/gohugoio/hugo/releases](https://github.com/gohugoio/hugo/releases)
94+
95+
```
96+
wget https://github.com/gohugoio/hugo/releases/download/v0.144.0/hugo_extended_0.144.0_darwin-universal.tar.gz
97+
98+
tar -zxvf hugo_extended_0.144.0_darwin-universal.tar.gz
99+
100+
mv hugo /usr/local/bin
101+
```
102+
103+
安装最新版
104+
105+
```
106+
brew install hugo
107+
```
108+
89109
## 安装 nginx
90110

111+
在 macOS 上,Nginx 的错误日志(error log)默认路径可能因安装方式而异。下面是常见的几种情况:
112+
113+
114+
### 🍎 常见路径(Homebrew 安装)
115+
116+
如果你是用 **Homebrew 安装的 Nginx**(大多数人都是这样装的),那么错误日志的位置通常是:
117+
118+
```
119+
/opt/homebrew/var/log/nginx/error.log # Apple Silicon (M1/M2/M3)
120+
/usr/local/var/log/nginx/error.log # Intel Mac
121+
```
122+
123+
你可以用这个命令快速查看当前日志路径:
124+
125+
```bash
126+
grep error_log /opt/homebrew/etc/nginx/nginx.conf
127+
```
128+
129+
或者(Intel Mac):
130+
131+
```bash
132+
grep error_log /usr/local/etc/nginx/nginx.conf
133+
```
134+
135+
136+
### 🛠️ 自定义日志路径
137+
138+
你也可以在 `nginx.conf` 中找到这行配置:
139+
140+
```nginx
141+
error_log /path/to/log/error.log warn;
142+
```
143+
144+
这就是你当前设置的错误日志路径。你可以改成你想要的,比如:
145+
146+
```nginx
147+
error_log /var/log/nginx/my_error.log error;
148+
```
149+
150+
记得改完之后:
151+
152+
```bash
153+
nginx -t # 检查配置
154+
sudo nginx -s reload # 重新加载配置
155+
```
156+
157+
158+
### 📖 实时查看日志
159+
160+
你可以用 `tail -f` 实时查看错误日志:
161+
162+
```bash
163+
tail -f /opt/homebrew/var/log/nginx/error.log
164+
```
165+
166+
或者 Intel Mac:
167+
168+
```bash
169+
tail -f /usr/local/var/log/nginx/error.log
170+
```
91171

92172

93173

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ bookCollapseSection: false
77

88
bookToc: false
99

10-
title: "JS"
10+
title: "前端知识"
1111
---

book.wiki/docs/frontend/html.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
weight: 1
3+
4+
bookFlatSection: true
5+
6+
bookCollapseSection: false
7+
8+
bookToc: true
9+
10+
title: "html"
11+
---
12+
13+
# html
14+
15+
## 文本格式化标签
16+
17+
- 加粗 strong / b
18+
- 倾斜 em / i
19+
- 下划线 ins / u
20+
- 删除线 del / s
21+
22+
## 图片
23+
24+
- alt: 图片无法显示时显示的文字
25+
- title: 鼠标悬浮时显示的文字
26+
27+
浏览器缩放图片,默认是等比例缩放。
28+
29+
## 音频
30+
31+
- src 必须
32+
- controls 显示音频控制面板。在 html5 中,如果属姓名和属性值是一个单词,可以简写成一个单词。
33+
- loop 循环播放
34+
- autoplay 自动播放,浏览器一般会禁用自动播放
35+
36+
## 视频
37+
38+
- src 必须
39+
- controls 显示音频控制面板。在 html5 中,如果属姓名和属性值是一个单词,可以简写成一个单词。
40+
- loop 循环播放
41+
- muted 静音播放
42+
- autoplay 自动播放,浏览器支持视频在静音状态下自动播放
43+
44+
45+
46+
47+
48+
49+
50+
51+

0 commit comments

Comments
 (0)