Compare commits

...

14 Commits

Author SHA1 Message Date
xiaoshuai 2493011e88 1 2026-05-12 18:54:18 +08:00
xiaoshuai 22822efe06 Merge remote-tracking branch 'origin/master' 2026-05-12 17:40:29 +08:00
xiaoshuai 037fc96285 1 2026-05-12 17:40:01 +08:00
xiaoshuai a0d611fb45 静态部署改造:改用nginx直接服务静态文件,移除Node进程
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-05-11 11:08:54 +08:00
xiaoshuai 88aaa16ec3 add LICENSE.
Signed-off-by: 宋康帅 <1250076672@qq.com>
2026-01-26 01:23:43 +00:00
xiaoshuai 476bf1880a jetbrains 2026-01-23 17:50:36 +08:00
xiaoshuai 41ed0357ab jetbrains 2026-01-23 17:48:16 +08:00
xiaoshuai 3a6252de82 linux 2025-12-24 14:33:52 +08:00
xiaoshuai 5c2f31b80b windows 2025-12-12 09:32:19 +08:00
xiaoshuai a4b972617a Merge remote-tracking branch 'origin/master' 2025-12-12 09:22:48 +08:00
xiaoshuai e4afab5b0a update README.en.md.
Signed-off-by: 宋康帅 <1250076672@qq.com>
2025-11-21 07:32:00 +00:00
xiaoshuai 02937bbca2 update README.md.
Signed-off-by: 宋康帅 <1250076672@qq.com>
2025-11-21 07:31:42 +00:00
xiaoshuai 42ac61c8c2 !1 Add README.md
Merge pull request !1 from gitee-agent/N/A
2025-11-21 07:29:44 +00:00
gitee-bot d7be8d06e8 Add README.md 2025-11-21 07:23:04 +00:00
13 changed files with 419 additions and 16 deletions
+3 -1
View File
@@ -2,4 +2,6 @@
docs/.vitepress/cache docs/.vitepress/cache
docs/.vitepress/dist docs/.vitepress/dist
node_modules node_modules
package-lock.json package-lock.json
*.log
nginx*.conf
+201
View File
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
+41
View File
@@ -0,0 +1,41 @@
# xsinfo
xsinfo is a knowledge documentation and sharing platform primarily designed to organize and publish tips and experiences related to software development and system usage. Through this platform, you can learn various practical technical content covering Linux usage, development tool configuration, programming techniques, and more.
## Project Features
- **Rich Content**: Covers practical topics such as Linux usage tips, JetBrains IDE keyboard shortcuts, Clion configuration, and more.
- **User-Friendly Documentation**: Features a clear document structure for easy reference and learning.
- **Regular Updates**: Content is continuously updated to ensure the provision of the latest and most practical technical information.
## Directory Structure
- `docs/`: Contains all documentation, including Linux usage, JetBrains configuration, gaming-related content, etc.
- `docs/.vitepress/`: VitePress configuration files used to build the documentation website.
- `docs/public/`: Static resources such as images and icons.
- `package.json`: Project dependency configuration file.
- `run_prod.sh`: Script for deploying and running the project.
## How to Run
1. Ensure you have Node.js and npm installed.
2. Install project dependencies:
```bash
npm install
```
3. Run the project:
```bash
npm run docs:dev
```
4. Build the production version:
```bash
npm run docs:build
```
## How to Contribute
Pull requests and issues are welcome to help improve content and features. If you have new technical articles or configuration tips, feel free to submit them to the `docs/` directory.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
+41
View File
@@ -0,0 +1,41 @@
# xsinfo
xsinfo 是一个知识记录与分享平台,主要用于整理和发布关于软件开发、系统使用等方面的技巧和经验。通过这个平台,你可以学习到各种实用的技术内容,涵盖 Linux 使用、开发工具配置、编程技巧等多个方面。
## 项目特点
- **内容丰富**:涵盖 Linux 使用技巧、JetBrains 系列 IDE 快捷键、Clion 配置等实用内容。
- **文档友好**:采用清晰的文档结构,便于查阅和学习。
- **持续更新**:内容将持续更新,确保提供最新、最实用的技术信息。
## 目录结构
- `docs/`:存放所有文档内容,包括 Linux 使用、JetBrains 配置、游戏相关内容等。
- `docs/.vitepress/`:VitePress 配置文件,用于构建文档网站。
- `docs/public/`:静态资源文件,如图片、图标等。
- `package.json`:项目依赖配置文件。
- `run_prod.sh`:用于部署和运行项目的脚本。
## 如何运行
1. 确保你已经安装了 Node.js 和 npm。
2. 安装项目依赖:
```bash
npm install
```
3. 运行项目:
```bash
npm run docs:dev
```
4. 构建生产环境版本:
```bash
npm run docs:build
```
## 如何贡献
欢迎提交 Issue 和 Pull Request,帮助我们改进内容和功能。如果你有新的技术文章或配置技巧,也可以提交到 `docs/` 目录中。
## 许可证
本项目遵循 MIT 许可证。详情请查看 [LICENSE](LICENSE) 文件。
+2
View File
@@ -49,6 +49,7 @@ export default {
{text: 'Linux踩坑日记', link: '/linux/linux'}, {text: 'Linux踩坑日记', link: '/linux/linux'},
{text: '学习使用Neovim', link: '/linux/01-nvim'}, {text: '学习使用Neovim', link: '/linux/01-nvim'},
{text: 'Rime输入法', link: '/linux/02-rime'}, {text: 'Rime输入法', link: '/linux/02-rime'},
{text: '使用Windows字体', link: '/linux/03-windows-fonts'},
] ]
} }
], ],
@@ -63,6 +64,7 @@ export default {
{ {
text: '针对于所有IDE', text: '针对于所有IDE',
items: [ items: [
{text: '25周年生日快乐', link: '/jetbrains/base/birthday25'},
{text: '按键冲突问题排查', link: '/jetbrains/base/keymap'}, {text: '按键冲突问题排查', link: '/jetbrains/base/keymap'},
] ]
}, },
+4 -4
View File
@@ -7,10 +7,10 @@ hero:
tagline: Timeless小帅's Blog tagline: Timeless小帅's Blog
# image: # image:
# src: /logo.png # src: /logo.png
actions: # actions:
- theme: brand # - theme: brand
text: Linux使用日常 # text: Linux使用日常
link: /linux/linux # link: /linux/linux
# - theme: alt # - theme: alt
# text: Linux使用日常 # text: Linux使用日常
# link: /linux # link: /linux
Binary file not shown.

After

Width:  |  Height:  |  Size: 529 KiB

+58
View File
@@ -0,0 +1,58 @@
---
layout: doc
---
![](assets/wsLYF60RdTz5.jpeg)
# 致我最爱的 JetBrains:25周年生日快乐!
🎉 **IntelliJ IDEA 25岁啦!** 🎉
作为一名普通的开发者,今天我怀着无比激动和感恩的心情,想要对 JetBrains 说一声:生日快乐!25年来,你们打造的 IntelliJ IDEA 不仅改变了全球开发者的工作方式,更成为了我编程路上最可靠的伙伴。
## 25年辉煌历程,从创新到传奇
1999 年,IntelliJ IDEA 首次问世,以其革命性的智能代码补全和强大的重构功能震撼了整个开发界。25 年来,它不断进化:
- **2001年**:发布首个稳定版本,奠定智能 IDE 基础
- **2004年**:引入插件架构,开启生态系统建设
- **2009年**:推出免费社区版,让更多开发者受益
- **2016年**:全面支持微服务开发,拥抱云原生时代
- **2023年**:集成 AI 辅助功能,开启智能开发新纪元
## 25年技术创新,重塑开发体验
IntelliJ IDEA 25 年的成功,源于对技术创新的不懈追求:
- **智能代码分析**:深入理解代码语义,提供精准的错误提示和优化建议
- **强大的重构支持**:安全高效地重构代码,保持代码质量
- **完善的插件生态**:拥有超过 15,000 个插件,满足各种开发需求
- **跨平台兼容性**:在 Windows、macOS 和 Linux 上提供一致的优质体验
- **AI 辅助开发**:集成 JetBrains AI,提供智能代码生成和问答功能
## 25年相伴,感恩有你
25 年来,IntelliJ IDEA 与全球数百万开发者携手同行,共同创造了无数精彩的软件作品。从初创企业到科技巨头,从个人开发者到大型团队,IntelliJ IDEA 始终是开发者最信赖的伙伴。
作为一名 2000 年出生的 "千禧一代" 开发者,我常常调侃:**IntelliJ IDEA 只比我大一岁,但它的 "人生阅历" 可比我丰富多了**!当我还在学习 ABC 的时候,它已经开始改变世界开发模式了;当我第一次接触编程时,它早已是开发者心中的 "神器";当我成为一名全职开发者时,它又带着 AI 功能华丽升级,仿佛在说:"年轻人,我还能陪你再干 25 年!"
记得刚开始学 Java 时,我对着满屏的代码不知所措,是 IntelliJ IDEA 的智能提示和错误高亮像一位耐心的导师,一步步引导我入门。如今,我已经能熟练运用它开发各种项目,但每次看到它的启动画面,依然会想起那段 "代码虐我千百遍,我待 IDE 如初恋" 的日子。
## 25周年,我们共同见证
JetBrains 为庆祝 IntelliJ IDEA 25 周年,特别推出了丰富的线上活动([https://www.jetbrains.com/lp/intellij-idea-25/](https://www.jetbrains.com/lp/intellij-idea-25/))。作为忠实用户,我也想借着这个机会,分享我与 IntelliJ IDEA 的故事,表达我最真挚的感谢。
## 未来可期,共创辉煌
25 岁,对于一个 IDE 来说正值壮年。站在新的起点上,IntelliJ IDEA 将继续以开发者为中心,不断创新,为全球开发者提供更加智能、高效、愉悦的开发体验。
> 愿 IntelliJ IDEA 继续引领 IDE 技术的发展潮流!
> 愿每一位开发者都能在 IntelliJ IDEA 的陪伴下实现自己的技术梦想!
> 愿下一个 25 年,我们依然携手共进,创造更多奇迹!
🎂 **Happy 25th Birthday, IntelliJ IDEA** 🎂
---
**感谢者**:一名出生于2000年的普通开发者
**官方活动网站**[https://www.jetbrains.com/lp/intellij-idea-25/](https://www.jetbrains.com/lp/intellij-idea-25/)
+5 -1
View File
@@ -43,7 +43,11 @@ source ~/.bashrc
``` ```
之后就可以命令行使用 nvim 了 之后就可以命令行使用 nvim 了
## 使用 NvChad ## 使用 lazyvim
git clone https://github.com/LazyVim/starter ~/.config/nvim && nvim
然后就自动安装
## 使用 NvChad(不折腾这个了,用上面的 lazyvim)
这里有安装教程: 这里有安装教程:
https://nvchad.com/docs/quickstart/install https://nvchad.com/docs/quickstart/install
+24
View File
@@ -0,0 +1,24 @@
---
layout: doc
---
# Ubuntu 下使用 Windows 字体
适用于双系统或有 Windows 分区的情况,可直接使用原系统字体。
步骤 1:创建字体目录
```shell
sudo mkdir /usr/share/fonts/truetype/windows-font
```
步骤 2:拷贝 Windows 字体文件 从 C:\Windows\Fonts 拷贝所需 .ttf 或 .ttc 文件到新目录:
这里需要替换一下windows目录
```shell
sudo cp /media/xiaoshuai/Windows/Windows/Fonts/* /usr/share/fonts/truetype/windows-font
```
步骤 3:修改权限并更新缓存
```shell
sudo chmod -R 755 /usr/share/fonts/truetype/windows-font
sudo mkfontscale
sudo mkfontdir
sudo fc-cache -fv
```
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

+29 -1
View File
@@ -1,6 +1,34 @@
--- ---
layout: doc layout: home
hero:
name: "阿帅正传"
text: "Linux 踩坑日记"
# tagline: Timeless小帅's Blog
# image:
# src: /logo.png
# actions:
# - theme: brand
# text: Linux使用日常
# link: /linux/linux
# - theme: alt
# text: Linux使用日常
# link: /linux
features:
- title: 学习使用Neovim
details: 最近想尝试用一下 nvim
link: /linux/01-nvim
- title: Rime输入法
details: ibus + rime的方案。纯开源输入法,没有任何广告,并且支持自己修改
link: /linux/02-rime
- title: 使用Windows字体
link: /linux/03-windows-fonts
details: 适用于双系统或有 Windows 分区的情况,可直接使用原系统字体。
--- ---
<br>
<br>
# Linux 使用日常记录 # Linux 使用日常记录
Linux学习日记,记录一些踩过的坑 Linux学习日记,记录一些踩过的坑
+11 -9
View File
@@ -6,17 +6,19 @@ rm -rf ./node_modules
rm -rf ./docs/.vitepress/cache rm -rf ./docs/.vitepress/cache
rm -rf ./docs/.vitepress/dist rm -rf ./docs/.vitepress/dist
# 部署静态网页 # 安装依赖
echo "npm install" echo "npm install"
npm install npm install
echo "run docs:build"
# 构建静态文件
echo "npm run docs:build"
npm run docs:build npm run docs:build
chown -R www:www ./
echo "npm run docs:preview"
# 杀掉之前运行的进程 # 拷贝到目标目录
#ps -ef | grep "npm run docs:preview" | grep -v grep | awk '{print $2}' | xargs kill -9 echo "copy to /www/xsinfo"
netstat -tulpn | grep :1234 | awk '{print $7}' | cut -d '/' -f1 | xargs kill -9 sudo rm -rf /www/xsinfo
sudo mkdir -p /www/xsinfo
sudo cp -r ./docs/.vitepress/dist/* /www/xsinfo/
sudo chown -R www-data:www-data /www/xsinfo/
# 以 www 身份后台运行,忽略挂断信号,输出重定向到日志 echo "done"
nohup sudo -u www npm run docs:preview > /www/wwwroot/xsinfo/preview.log 2>&1 &