Skip to content

Commit

Permalink
添加tools
Browse files Browse the repository at this point in the history
  • Loading branch information
ddean2009 committed Mar 31, 2024
1 parent cbc99b8 commit 7746c16
Show file tree
Hide file tree
Showing 35 changed files with 139 additions and 39 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions docs/cheatSheet/cheatsheet/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# 各种秘籍

import DocCardList from '@theme/DocCardList';

<DocCardList />
3 changes: 3 additions & 0 deletions docs/cheatSheet/mindmap/architect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 架构师必须掌握的技术

![](https://img-blog.csdnimg.cn/20200404104031260.png)
3 changes: 3 additions & 0 deletions docs/cheatSheet/mindmap/bigdata.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 大数据我们该学点什么

![](https://img-blog.csdnimg.cn/20200404105052489.png)
3 changes: 3 additions & 0 deletions docs/cheatSheet/mindmap/blockchain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 区块链技术大合集

![](https://img-blog.csdnimg.cn/2020040410571812.png)
3 changes: 3 additions & 0 deletions docs/cheatSheet/mindmap/golang.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# golang基础

![](https://img-blog.csdnimg.cn/2020040410590241.png)
5 changes: 5 additions & 0 deletions docs/cheatSheet/mindmap/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# 思维导图

import DocCardList from '@theme/DocCardList';

<DocCardList />
3 changes: 3 additions & 0 deletions docs/cheatSheet/mindmap/java.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# java必须掌握的技术

![](https://img-blog.csdnimg.cn/20200404104308533.png)
3 changes: 3 additions & 0 deletions docs/cheatSheet/mindmap/js.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 你所不知道的前端技术

![](https://img-blog.csdnimg.cn/2020040411005491.png)
3 changes: 3 additions & 0 deletions docs/cheatSheet/mindmap/patten.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 必须掌握的设计模式

![](https://img-blog.csdnimg.cn/20200404104728815.png)
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
小知识系列:数据库的主键和外键
---
slug: /01-db-primary-foregin-keys
---

# 1. 小知识系列:数据库的主键和外键


[toc]

# 简介

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
12个月大厂主机免费领AWS Azure Google-Cloud还不快到碗里来
---
slug: /01-googleCloud-azure-aws
---

# 2. 12个月大厂主机免费领AWS Azure Google-Cloud还不快到碗里来

# 简介

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
小知识系列:查询数据库数据的元信息
---
slug: /02-db-ResultSetMetaData
---

# 3. 小知识系列:查询数据库数据的元信息


[toc]

# 简介

Expand Down Expand Up @@ -79,4 +83,4 @@ ResultSetMetaData提供了很多非常有用的元数据检测方法:

# 总结

以上就是ResultSet和ResultSetMetaData的介绍,大家学会了吗?
以上就是ResultSet和ResultSetMetaData的介绍,大家学会了吗?
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
---
slug: /02-new-gitbook-to-pdf
---

# 4. 把gitbook转换成pdf

最近想把自己写的一个gitbook转成pdf分享出去,突然发现最新的gitbook版本已经不支持导出PDF了。于是在网上找了好久终于被我发现了三个将gitbook转换成pdf的方式,现分享给大家。我使用的是mac系统,如果是其他系统大家可以查找相应的方案。

## gitbook自带的npm模块gitbook
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
小知识系列:让版本出来说话

[toc]
---
slug: /03-semantic-version
---

# 5. 小知识系列:让版本出来说话
# 简介

不知道大家都是怎么定义软件的版本号的?是老老实实的从1.0版本开始,还是像埃里森那样直接从2.0开始,还是从beta版本0.x开始呢?
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
怎么将swagger API导出为HTML或者PDF
---
slug: /03-swagger-to-html-pdf
---

# 6. 怎么将swagger API导出为HTML或者PDF

## 将swagger API导出为HTML或者PDF

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
开发小技巧之:unicode的排序和正则匹配
---
slug: /04-unicode-sorting
---

[toc]
# 7. 开发小技巧之:unicode的排序和正则匹配

# 简介

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
使用账号密码来操作github? NO!
---
slug: /05-git-personal-access-token
---

[toc]
# 8. 使用账号密码来操作github? NO!

# 简介

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
JetBrains又出神器啦!Fleet,体验飞一般的感觉
---
slug: /06-jetbrains-fleet
---

[toc]
# 9. JetBrains又出神器啦!Fleet,体验飞一般的感觉

# 简介

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Github又悄悄升级了,这次的变化是大文件的存储方式
---
slug: /07-git-largefile
---

[toc]
# 10. Github又悄悄升级了,这次的变化是大文件的存储方式

# 简介

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
slug: /beidou-how-to-work
---

# 11. 北斗系统和他的工作原理

# 简介

Expand Down
30 changes: 30 additions & 0 deletions docs/cheatSheet/tips/add-slug.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

# 使用find命令递归查找所有.md文件
find . -type f -name "*.md" | while read -r file; do
# 获取文件所在的目录和带后缀的文件名
dir=$(dirname -- "$file")
filename_with_ext=$(basename -- "$file")

# 去除文件名开头的数字和短横线,并获取不带后缀的文件名
# filename=$(echo "$filename_with_ext" | sed -E 's/^[0-9-]+//')
filename=$(echo "$filename_with_ext")
filename="${filename%.md}" # 去除.md后缀

# 构造要插入的三行代码
header="---
slug: /${filename}
---
"
echo "$header";

# 将这三行代码插入到文件的开头
{
echo "$header";
cat "$file";
} > "${file}.tmp" && mv "${file}.tmp" "$file"

echo "已更新文件: $file"
done

echo "所有.md文件已更新完成。"
19 changes: 19 additions & 0 deletions docs/cheatSheet/tips/bat-insert.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

# 初始化计数器
count=0

# 列出当前目录下的所有 .md 文件
for file in *.md; do
# 如果文件存在
if [ -f "$file" ]; then
# 计数器加1
count=$((count+1))
# 构造要添加的文本
text="# $count. "
# 使用 sed 命令在文件的第一行前添加文本
gsed -i "1s|^|$text|" "$file"
fi
done

echo "Finished adding numbering to .md files."
5 changes: 5 additions & 0 deletions docs/cheatSheet/tips/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# 小技巧

import DocCardList from '@theme/DocCardList';

<DocCardList />
3 changes: 0 additions & 3 deletions docs/mindmap/architect.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/mindmap/bigdata.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/mindmap/blockchain.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/mindmap/golang.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/mindmap/java.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/mindmap/js.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/mindmap/patten.md

This file was deleted.

0 comments on commit 7746c16

Please sign in to comment.