提交 c0f48230 编写于 作者: whatyn's avatar whatyn

1

上级 e87ee62d
## README # README
> 个人仓库
java linux mysql ... - [x] 个人仓库 java linux mysql ...
- [gitlab]( https://gitlab.com/xuyq123/mynotes )   [gitee]( https://gitee.com/xy180/MyNotes )   [github]( https://github.com/scott180/MyNotes )   [csdn_code]( https://codechina.csdn.net/xu180/MyNotes )   [coding]( https://xyqin.coding.net/public/my/MyNotes/git/files )   [bitbucket]( https://bitbucket.org/xu12345/mynotes )
### 序 ******************************************
- [ ] `仓库`   [gitlab]( https://gitlab.com/xuyq123/mynotes )   [gitee]( https://gitee.com/xy180/MyNotes )   [github]( https://github.com/scott180/MyNotes )   [csdn_code]( https://codechina.csdn.net/xu180/MyNotes )   [coding]( https://xyqin.coding.net/public/my/MyNotes/git/files )   [bitbucket]( https://bitbucket.org/xu12345/mynotes ) ## 1、笔记
****************************************** - [x] [**note**]( https://gitee.com/xy180/MyNotes/blob/master/note.md )   [java]( https://gitee.com/xy180/MyNotes/blob/master/java.md )
### 1、笔记
---
> [**note**](./note.md)   [java]( https://gitee.com/xy180/MyNotes/blob/master/java.md ) - [x] 运维
#### 1.1、运维 - [linux笔记]( https://gitee.com/xy180/MyNotes/blob/master/linuxNote-x.md )   [git笔记]( https://github.com/scott180/MyNotes/blob/master/gitNote.md )   [docker笔记]( https://github.com/scott180/MyNotes/blob/master/%E5%85%B6%E4%BB%96/docker.md )
- [linux笔记]( https://gitee.com/xy180/MyNotes/blob/master/linuxNote-x.md )   [git笔记]( https://github.com/scott180/MyNotes/blob/master/gitNote.md )   [docker笔记]( https://github.com/scott180/MyNotes/blob/master/docker.md )
#### 1.2、后端 - [x] 后端
- [springcloud-test]( https://github.com/scott180/springcloud-test )   [springboot初始化]( https://start.spring.io/ )   [2小时学会springboot]( https://blog.csdn.net/forezp/article/details/61472783 )   [springCloud教程]( https://www.cnblogs.com/ityouknow/category/994104.html ) - [springcloud-test]( https://github.com/scott180/springcloud-test )   [springboot初始化]( https://start.spring.io/ )   [2小时学会springboot]( https://blog.csdn.net/forezp/article/details/61472783 )   [springCloud教程]( https://www.cnblogs.com/ityouknow/category/994104.html )
- [dubbo]( https://github.com/scott180/dubbo-test ) - [dubbo]( https://github.com/scott180/dubbo-test )   [RabbitMQ]( https://github.com/scott180/RabbitMQ-test )
- [RabbitMQ]( https://github.com/scott180/RabbitMQ-test ) ---
****************************************** - [x] 数据库
#### 1.3、数据库 - [mysqlNote]( https://github.com/scott180/MyNotes/blob/master/mysqlNote.md )   [oracleNote]( https://github.com/scott180/MyNotes/blob/master/oracleNote.md )   [mongo笔记]( https://github.com/scott180/MyNotes/blob/master/mongo.md )   [ldap]( https://github.com/scott180/MyNotes/blob/master/%E5%85%B6%E4%BB%96/ldapNote.txt )
- [mongo笔记]( https://github.com/scott180/MyNotes/blob/master/mongo.md )   [ldap]( https://github.com/scott180/MyNotes/blob/master/ldapNote.txt )   [mysql]( https://github.com/scott180/MyNotes/blob/master/mysql.txt )
---
#### 1.4、前端 - [x] 前端
* [nodejs   vue.md]( https://github.com/scott180/MyNotes/blob/master/nodejs%20%26%20vue.md ) * [nodejs   vue.md]( https://github.com/scott180/MyNotes/blob/master/nodejs%20%26%20vue.md )
* [深入理解javascript原型和闭包]( https://github.com/scott180/MyNotes/tree/master/%E6%B7%B1%E5%85%A5%E7%90%86%E8%A7%A3javascript%E5%8E%9F%E5%9E%8B%E5%92%8C%E9%97%AD%E5%8C%85 ) * [深入理解javascript原型和闭包]( https://github.com/scott180/MyNotes/tree/master/%E6%B7%B1%E5%85%A5%E7%90%86%E8%A7%A3javascript%E5%8E%9F%E5%9E%8B%E5%92%8C%E9%97%AD%E5%8C%85 )
...@@ -41,16 +42,16 @@ java linux mysql ... ...@@ -41,16 +42,16 @@ java linux mysql ...
* [react入门实例教程]( http://www.ruanyifeng.com/blog/2015/03/react.html )   [react官方文档]( https://reactjs.org/docs/forms.html ) * [react入门实例教程]( http://www.ruanyifeng.com/blog/2015/03/react.html )   [react官方文档]( https://reactjs.org/docs/forms.html )
#### 1.5、其他 - [x] 其他
- [本地安装zookeeper]( https://blog.csdn.net/xu180/article/details/105235397 ) - [本地安装zookeeper]( https://blog.csdn.net/xu180/article/details/105235397 )
- [kafka本地安装方法]( https://blog.csdn.net/xu180/article/details/109309482 ) - [kafka本地安装方法]( https://blog.csdn.net/xu180/article/details/109309482 )
- `markdown`  [typora]( https://typora.io/#windows ) [作业部落]( https://www.zybuluo.com/mdeditor ) - `markdown`  [typora]( https://typora.io/#windows ) [作业部落]( https://www.zybuluo.com/mdeditor )
****************************************** ******************************************
<h4 id="commonSoft"></h4>
### 2、常用软件 ## 2、软件
``` ```
java mysql maven java mysql maven
...@@ -61,12 +62,8 @@ python nodejs vue ...@@ -61,12 +62,8 @@ python nodejs vue
火绒安全软件 向日葵 Everything 火绒安全软件 向日葵 Everything
``` ```
#### 2.1、jdk - [x] idea maven mysql
[Java Development Kit]( https://gitee.com/xy180/MyNotes/blob/master/jdk.md )
#### 2.2、 idea maven mysql
| 软件 | 下载地址 | | 软件 | 下载地址 |
| -------- | ----- | | -------- | ----- |
| idea | [idea官方下载]( https://www.jetbrains.com/idea/download/other.html ) &ensp; [idea2019]( https://www.aliyundrive.com/s/oWgxBBNqGj9 ) | | idea | [idea官方下载]( https://www.jetbrains.com/idea/download/other.html ) &ensp; [idea2019]( https://www.aliyundrive.com/s/oWgxBBNqGj9 ) |
...@@ -79,13 +76,43 @@ python nodejs vue ...@@ -79,13 +76,43 @@ python nodejs vue
## 3、项目
```
个人资料一般保存在git平台及网盘,如下:
git平台:gitlab、github、gitee、csdn_code、coding、bitbucket
网盘:阿里云网盘、百度网盘、阿里云个人邮箱网盘、坚果云、天翼云、微云、wps云盘
笔记:csdn、博客园、作业部落、有道云笔记、qq邮箱记事本、语雀、腾讯文档、飞书、简书
```
<br/>
> 项目 <br/>
| 名称 | 仓库 | 备注 |
| --------- | ------------------------------------------------------------- | ---------- |
| MyNotes | [gitlab]( https://gitlab.com/xuyq123/mynotes ) &ensp; [gitee]( https://gitee.com/xy180/MyNotes ) &ensp; [github]( https://github.com/scott180/MyNotes ) &ensp; [csdn_code]( https://codechina.csdn.net/xu180/MyNotes ) &ensp; [coding]( https://xyqin.coding.net/public/my/MyNotes/git/files ) &ensp; [bitbucket]( https://bitbucket.org/xu12345/mynotes ) | 工作笔记 |
| java-book | [gitlab]( https://gitlab.com/xuyq123/java-book ) &ensp; [gitee]( https://gitee.com/xy180/java-book ) &ensp; [github]( https://github.com/scott180/java-book ) &ensp; [csdn_code]( https://codechina.csdn.net/xu180/java-book ) &ensp; [coding]( https://xyqin.coding.net/public/my/java-book/git/files ) | java书籍 |
| calligraphy-boot | [gitlab]( https://gitlab.com/xuyq123/calligraphy-boot ) &ensp; [gitee]( https://gitee.com/xy180/calligraphy-boot ) &ensp; [github]( https://github.com/scott180/calligraphy-boot ) &ensp; [csdn_code]( https://codechina.csdn.net/xu180/calligraphy-boot ) | springboot项目 |
| calligraphy | [gitlab]( https://gitlab.com/xuyq123/calligraphy ) &ensp; [gitee]( https://gitee.com/xy180/calligraphy ) &ensp; [github]( https://github.com/scott180/calligraphy ) &ensp; [gitlab_pages]( https://xuyq123.gitlab.io/plain/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9--%E6%98%8E%E6%9C%88%E5%87%A0%E6%97%B6%E6%9C%89.html ) &ensp; [gitlab_mkdocs]( https://xuyq123.gitlab.io/plain-mkdocs/ ) | 书法练习轨迹 |
| mkdocs | gitlab [note-mkdocs]( https://gitlab.com/xuyq123/note-mkdocs )&ensp; [**网页**]( https://xuyq123.gitlab.io/note-mkdocs/ ) &ensp;&ensp; [myblog-mkdocs]( https://gitlab.com/xuyq123/myblog-mkdocs )&ensp; [网页]( https://xuyq123.gitlab.io/myblog-mkdocs/ ) <br/>github [note-mkdocs]( https://github.com/scott180/note-mkdocs )&ensp; [网页]( https://scott180.github.io/note-mkdocs/ ) &ensp;&ensp;[myblog-mkdocs]( https://github.com/scott180/myblog-mkdocs )&ensp; [网页]( https://scott180.github.io/myblog-mkdocs/ )<br/>gitee [plain-mkdocs]( https://gitee.com/xy180/plain-mkdocs/tree/master/note ) [网页]( http://xy180.gitee.io/plain-mkdocs/note/site/ ) &ensp;&ensp;[myblog-mkdocs]( https://gitee.com/xy180/myblog-mkdocs ) | 我的笔记与博客 |
| docsify | gitlab [plain-docsify]( https://gitlab.com/xuyq123/plain-docsify )&ensp; [**网页**]( https://xuyq123.gitlab.io/plain-docsify/ ) &ensp;&ensp; [myblog-docsify]( https://gitlab.com/xuyq123/myblog-docsify )&ensp; [网页]( https://xuyq123.gitlab.io/myblog-docsify/ ) <br/>github [plain-docsify]( https://github.com/scott180/plain-docsify )&ensp; [网页]( https://scott180.github.io/plain-docsify/ ) &ensp;&ensp;[myblog-docsify]( https://github.com/scott180/myblog-docsify )&ensp; [网页]( https://scott180.github.io/myblog-docsify/ ) | 笔记与博客docsify |
****************************************** ******************************************
****************************************** ******************************************
****************************************** ******************************************
[书法练习轨迹--明月几时有]( https://gitee.com/xy180/calligraphy ) ***
![tag]( https://xyqin.coding.net/p/my/d/imgs/git/raw/master/%E4%B9%A6%E6%B3%95%E5%AD%97%E5%B8%96/文徵明-小楷赤壁赋.jpg )
> 注册了微信公众号及今日头条号:**无为徐生**,以后会将书法练习轨迹、程序员笔记以及一些随笔感想更新在此。若有兴趣,可扫码关注。
| 无为徐生 | 今日头条号 | &ensp; | 微信公众号 |
| --------- | ------------------------------------------------------------- | - | ---------- |
| 二维码 | ![t]( https://codechina.csdn.net/xu180/document/-/raw/master/imgs/toutiao/无为徐生.png ) | <br/> | ![w]( https://codechina.csdn.net/xu180/document/-/raw/master/imgs/weixin/无为徐生.png ) |
***
......
#!/bin/bash #!/bin/bash
dir=/opt/backup/loginErrorLog dir=/opt/backup/loginErrorLog
/home/sudytech/mysql/bin/mysqldump -uroot -pbyau#20180129113 IDSPLUS T_LOGINERRORLOG > "$dir/LOGINERRORLOG_`date +%Y%m%d`.sql" /home/tech/mysql/bin/mysqldump -uroot -pbyau#20180129113 IDSPLUS T_LOGINERRORLOG > "$dir/LOGINERRORLOG_`date +%Y%m%d`.sql"
#USE IDSPLUS; #USE IDSPLUS;
/home/sudytech/mysql/bin/mysql -uroot -pbyau#20180129113 -e "use IDSPLUS;delete from T_LOGINERRORLOG;" /home/tech/mysql/bin/mysql -uroot -pbyau#20180129113 -e "use IDSPLUS;delete from T_LOGINERRORLOG;"
#!/bin/bash #!/bin/bash
#请在linux的创建,若在windoxs下创建文件可能创建临时文件。 #请在linux的创建,若在windoxs下创建文件可能创建临时文件。
file=/home/share/timerSearch/record.txt file=/home/share/timerSearch/record.txt
mysql -uroot -pSudy.web123 -e "use IDSPLUS;select id,loginName,name,password,idcard,field29 from T_USER where loginName='admin'\G;" >> $file mysql -uroot -pSu.web123 -e "use IDSPLUS;select id,loginName,name,password,idcard,field29 from T_USER where loginName='admin'\G;" >> $file
...@@ -5,7 +5,7 @@ echo "========================================" >> $file ...@@ -5,7 +5,7 @@ echo "========================================" >> $file
echo "定时查询脚本启动了。。。" >> $file echo "定时查询脚本启动了。。。" >> $file
date "+%Y-%m-%d %H:%M:%S" >> $file date "+%Y-%m-%d %H:%M:%S" >> $file
/opt/sudytech/mysql/bin/mysql -uroot -p12344 -e "use IDSPLUS;select id,loginName,name,password,idcard,field29 from T_USER where loginName='admin'\G;" >> $file /opt/sutech/mysql/bin/mysql -uroot -p12344 -e "use IDSPLUS;select id,loginName,name,password,idcard,field29 from T_USER where loginName='admin'\G;" >> $file
echo "" >> $file echo "" >> $file
echo "" >> $file echo "" >> $file
......
...@@ -6,10 +6,10 @@ echo "===============begin=========================" ...@@ -6,10 +6,10 @@ echo "===============begin========================="
echo "定时查询脚本启动了。。。" echo "定时查询脚本启动了。。。"
date "+%Y-%m-%d %H:%M:%S" date "+%Y-%m-%d %H:%M:%S"
docker_name=mobile_ucp_db_1 docker_name=mobile_ucc_db_1
sql="use UCPPLUS;select id,loginName,name,password,idcard,field29 from T_USER where loginName='admin'\G;" sql="use UCCPLUS;select id,loginName,name,password,idcard,field29 from T_USER where loginName='admin'\G;"
#docker exec -it ${docker_name} mysql -uroot -pSudy.web123 -e $sql >> $file #docker exec -it ${docker_name} mysql -uroot -pSudy.web123 -e $sql >> $file
docker exec -i mobile_ucp_db_1 mysql -uroot -pSudy.web123 -e "select now();use UCPPLUS;select id,loginName,name,password,idcard,field29 from T_USER where loginName='admin'\G;" >> /home/share/timerSearch/recordDB.txt docker exec -i mobile_ucc_db_1 mysql -uroot -pSudy.web123 -e "select now();use UCCPLUS;select id,loginName,name,password,idcard,field29 from T_USER where loginName='admin'\G;" >> /home/share/timerSearch/recordDB.txt
echo "" echo ""
echo "" echo ""
...@@ -41,11 +41,8 @@ fi ...@@ -41,11 +41,8 @@ fi
find $data_dir -mtime +7 -name 'data_[1-9].sql' -exec rm -rf {} \; find $data_dir -mtime +7 -name 'data_[1-9].sql' -exec rm -rf {} \;
作者:isovu 参考:https://www.jianshu.com/p/be1e581acb8e
链接:https://www.jianshu.com/p/be1e581acb8e
來源:简书
简书著作权归作者所有,任何形式的转载都请联系作者获得授权并注明出处。
0 2 * * * sh /absolute/path/to/mysql_dumps.sh > /absolute/path/to/mysql_dumps.log 2>&1 0 2 * * * sh /absolute/path/to/mysql_dumps.sh > /absolute/path/to/mysql_dumps.log 2>&1
...@@ -104,10 +101,10 @@ echo "===============begin=========================" ...@@ -104,10 +101,10 @@ echo "===============begin========================="
echo "定时查询脚本启动了。。。" echo "定时查询脚本启动了。。。"
date "+%Y-%m-%d %H:%M:%S" date "+%Y-%m-%d %H:%M:%S"
docker_name=mobile_ucp_db_1 docker_name=mobile_ucc_db_1
sql="use UCPPLUS;select id,loginName,name,password,idcard,field29 from T_USER where loginName='admin'\G;" sql="use UCCPLUS;select id,loginName,name,password,idcard,field29 from T_USER where loginName='admin'\G;"
#docker exec -it ${docker_name} mysql -uroot -pSudy.web123 -e $sql >> $file #docker exec -it ${docker_name} mysql -uroot -pSudy.web123 -e $sql >> $file
docker exec -i mobile_ucp_db_1 mysql -uroot -pSudy.web123 -e "select now();use UCPPLUS;select id,loginName,name,password,idcard,field29 from T_USER where loginName='admin'\G;" >> /home/share/timerSearch/recordDB.txt docker exec -i mobile_ucp_db_1 mysql -uroot -pSai.web123 -e "select now();use UCCPLUS;select id,loginName,name,password,idcard,field29 from T_USER where loginName='admin'\G;" >> /home/share/timerSearch/recordDB.txt
echo "" echo ""
echo "" echo ""
## git笔记 ## git笔记
> [gitee]( https://gitee.com/xy180/MyNotes ) [github]( https://github.com/scott180 ) > [gitlab]( https://gitlab.com/xuyq123/mynotes ) &ensp; [gitee]( https://gitee.com/xy180/MyNotes ) &ensp; [github]( https://github.com/scott180 )
------------------------ ------------------------
...@@ -327,6 +327,50 @@ git checkout -b reback_remove_branch ddd94a4 ...@@ -327,6 +327,50 @@ git checkout -b reback_remove_branch ddd94a4
``` ```
#### 2.4、撤销
> git commit之后如何撤销
```
git log 查询提交记录
如果在git commit之后,需要撤回commit一般有以下三种方式
1.git reset --soft 版本号
git reset --soft HEAD^ //回到上一个版本
git reset --soft 9478618f5b73885e3b5dd0ff946ae557b86c7560
不删除工作区改动的代码,撤销commit,不撤销git add .
2.git reset --mixed 版本号
git reset --mixed HEAD^ //回到上一个版本
git reset --mixed 9478618f5b73885e3b5dd0ff946ae557b86c7560
不删除工作区改动的代码,撤销commit,撤销git add .
3.git reset --hard 版本号
git reset --hard HEAD^ //回到上一个版本
git reset --hard 9478618f5b73885e3b5dd0ff946ae557b86c7560
删除工作区的代码,撤销commit,撤销git add . 回到上一次commit的状态
参考 https://blog.csdn.net/weixin_44843859/article/details/111385032
```
---
> git revert 撤销版本
```
git revert -n 9478618f5b73885e3b5dd0ff946ae557b86c7560
https://blog.csdn.net/yxlshk/article/details/79944535
https://segmentfault.com/a/1190000012897697
```
------------------------ ------------------------
### 3、问题 ### 3、问题
......
...@@ -72,6 +72,7 @@ window.$docsify = { ...@@ -72,6 +72,7 @@ window.$docsify = {
创建docs目录,将markdown文件放在此处,推送文件。 创建docs目录,将markdown文件放在此处,推送文件。
可参考此项目 https://gitlab.com/xuyq123/plain-docsify https://xuyq123.gitlab.io/plain-docsify 可参考此项目 https://gitlab.com/xuyq123/plain-docsify https://xuyq123.gitlab.io/plain-docsify
多级页面可参考 https://gitlab.com/xuyq123/myblog-docsify https://xuyq123.gitlab.io/myblog-docsify
``` ```
......
...@@ -124,6 +124,17 @@ SpringBoot整合Mybatis完整详细版 | [链接]( https://blog.csdn.n ...@@ -124,6 +124,17 @@ SpringBoot整合Mybatis完整详细版 | [链接]( https://blog.csdn.n
### 1.5、项目 ### 1.5、项目
```
盘点一下Github上开源的Java面试/学习相关的仓库
https://mp.weixin.qq.com/s?__biz=Mzg2OTA0Njk0OA==&mid=2247484789&idx=1&sn=2ad9fabb8fc7fae3bd3756ea05594344&source=41#wechat_redirect
https://github.com/Snailclimb/JavaGuide.git
https://github.com/it-interview/EasyJob.git
https://github.com/crossoverJie/JCSprout.git
https://github.com/geekcompany/ResumeSample.git
```
标题 | 地址 标题 | 地址
----------- | --------- ----------- | ---------
私活必备,Web 开发中后台管理 | [链接]( https://blog.csdn.net/sinat_33224091/article/details/100980160 ) 私活必备,Web 开发中后台管理 | [链接]( https://blog.csdn.net/sinat_33224091/article/details/100980160 )
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
复制文件 | cp srcname targetname 复制文件 | cp srcname targetname
复制目录 | cp -r dir1/ dir2/ 复制目录 | cp -r dir1/ dir2/
修改名称(移动文件) | mv readme.txt readme.doc 修改名称(移动文件) | mv readme.txt readme.doc
跨服务器复制 | scp /data/ROOT.tar.gz root@192.168.239.35:/opt/sudytech/db_backup 跨服务器复制 | scp /data/ROOT.tar.gz root@192.168.239.35:/opt/saiwen/db_backup
删除普通文件a.txt | rm a.txt (-f:表示强制) 删除普通文件a.txt | rm a.txt (-f:表示强制)
目录a删除 | rm -rf a (-f:表示强制; -r:表示目录) 目录a删除 | rm -rf a (-f:表示强制; -r:表示目录)
建立新文件 | touch test.txt 建立新文件 | touch test.txt
...@@ -316,18 +316,18 @@ usr/lib/mysql 是指:mysql的安装路径 ...@@ -316,18 +316,18 @@ usr/lib/mysql 是指:mysql的安装路径
导出数据库 /opt/tech/mysql/bin/mysqldump -uroot -p1234 webpro > /opt/tech/20170814.sql 导出数据库 /opt/tech/mysql/bin/mysqldump -uroot -p1234 webpro > /opt/tech/20170814.sql
导入数据 mysql -uroot -pSudy.web123 UCPPLUS < /opt/sql/ucpplus_v4_0_5.sql 导入数据 mysql -uroot -pSai.web123 YCKPLUS < /opt/sql/uccpplus_v4_0_5.sql
mysql导入时出现"ERROR at line : Unknown command '\''."的解决办法 mysql导入时出现"ERROR at line : Unknown command '\''."的解决办法
mysql -uroot -p12344 --default-character-set=utf8 IMP_V12_1 < E:\ids-1.1.2.sql mysql -uroot -p12344 --default-character-set=utf8 IMP_V12_1 < E:\isds-1.1.2.sql
导出查询语句 /opt/sudytech/mysql/bin/mysql -uroot -p12344 -e "use IDSPLUS;select id,loginName from T_USER where id=1\G;" >> /opt/test.txt 导出查询语句 /opt/saiwen/mysql/bin/mysql -uroot -p12344 -e "use YCKPLUS;select id,loginName from T_USER where id=1\G;" >> /opt/test.txt
导出表 /opt/tech/mysql/bin/mysqldump -uroot -p1234 webpro t_user > /opt/tech/t_user.sql 导出表 /opt/tech/mysql/bin/mysqldump -uroot -p1234 webpro t_user > /opt/tech/t_user.sql
创建数据库 创建数据库
CREATE DATABASE UCPPLUS DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; CREATE DATABASE YCKPLUS DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
use UCPPLUS; use YCKPLUS;
登录mysql /opt/tech/mysql/bin/mysql -uroot -p1234 登录mysql /opt/tech/mysql/bin/mysql -uroot -p1234
/opt/tech/mysql/bin/mysql -uroot -padmin /opt/tech/mysql/bin/mysql -uroot -padmin
...@@ -351,9 +351,9 @@ mysql -u root -p12344 ...@@ -351,9 +351,9 @@ mysql -u root -p12344
navicat连接mysql失败授权 navicat连接mysql失败授权
GRANT ALL PRIVILEGES ON `db1`.* TO 'user1'@'192.171.1.18' identified by 'pwd1' WITH GRANT OPTION; GRANT ALL PRIVILEGES ON `db1`.* TO 'user1'@'192.171.1.18' identified by 'pwd1' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON `IDSPLUS`.* TO 'sudy'@'192.171.1.18' identified by 'shhg12344' WITH GRANT OPTION; GRANT ALL PRIVILEGES ON `YCKPLUS`.* TO 'saiwen'@'192.171.1.18' identified by 'test12344' WITH GRANT OPTION;
grant all privileges on *.* to root@'%' identified by 'Sudy.web123' with grant option; grant all privileges on *.* to root@'%' identified by 'saiwen.web123' with grant option;
-- flush privileges; -- flush privileges;
...@@ -385,19 +385,19 @@ SELECT @@GLOBAL.sql_mode; ...@@ -385,19 +385,19 @@ SELECT @@GLOBAL.sql_mode;
lower_case_table_names = 2 lower_case_table_names = 2
启动mysql 启动mysql
/opt/sudytech/mysql/support-files/mysql.server start /opt/saiwen/mysql/support-files/mysql.server start
/opt/sudytech/mysql/bin/mysqld_safe --user=mysql --basedir=/opt/sudytech/mysql --datadir=/opt/sudytech/mysql/data & /opt/saiwen/mysql/bin/mysqld_safe --user=mysql --basedir=/opt/saiwen/mysql --datadir=/opt/saiwen/mysql/data &
cd /opt/sudytech/mysql/ cd /opt/saiwen/mysql/
./bin/mysqld_safe & ./bin/mysqld_safe &
chmod -R 775 mysql chmod -R 775 mysql
cd /data/sudytech/mysql/&&./bin/mysqld_safe & cd /data/saiwen/mysql/&&./bin/mysqld_safe &
cd /opt/sudytech/mysql/ && bin/mysqld_safe --user=root & cd /opt/saiwen/mysql/ && bin/mysqld_safe --user=root &
``` ```
******************************************************************** ********************************************************************
...@@ -407,14 +407,14 @@ lower_case_table_names = 2 ...@@ -407,14 +407,14 @@ lower_case_table_names = 2
[mongo笔记]( https://github.com/scott180/MyNotes/blob/master/mongo.md ) [mongo笔记]( https://github.com/scott180/MyNotes/blob/master/mongo.md )
``` ```
配置文件启动 配置文件启动
cd /opt/sudytech/mongodb cd /opt/saiwen/mongodb
./bin/mongod --config /opt/mongodb/conf/mongo.conf ./bin/mongod --config /opt/mongodb/conf/mongo.conf
自定义路径启动 自定义路径启动
/opt/sudytech/mongodb/bin/mongod --dbpath=/opt/sudytech/mongodb/data --logpath=/opt/sudytech/mongodb/logs --logappend --port=27017 --fork /opt/saiwen/mongodb/bin/mongod --dbpath=/opt/saiwen/mongodb/data --logpath=/opt/saiwen/mongodb/logs --logappend --port=27017 --fork
登陆mongo 登陆mongo
cd /opt/sudytech/mongodb/bin cd /opt/saiwen/mongodb/bin
mongo mongo
``` ```
******************************************************************** ********************************************************************
...@@ -428,7 +428,7 @@ http://www.runoob.com/redis/redis-install.html ...@@ -428,7 +428,7 @@ http://www.runoob.com/redis/redis-install.html
启动 redis-server.exe redis.windows.conf 启动 redis-server.exe redis.windows.conf
登录 redis-cli.exe -h 127.0.0.1 -p 6379 登录 redis-cli.exe -h 127.0.0.1 -p 6379
redis-cli -a sudy12344 redis-cli -a saiwen12344
Redis 设置密码登录 Redis 设置密码登录
...@@ -462,7 +462,7 @@ password值在/redis/redis.conf文件中搜索requirepass ...@@ -462,7 +462,7 @@ password值在/redis/redis.conf文件中搜索requirepass
[root@localhost src]# cd /opt/sudytech/custom/redis-2.8.17/ [root@localhost src]# cd /opt/saiwen/custom/redis-2.8.17/
[root@localhost redis-2.8.17]# redis-server redis.conf //启动redis [root@localhost redis-2.8.17]# redis-server redis.conf //启动redis
[root@localhost ~]# redis-cli //进入redis客户端 [root@localhost ~]# redis-cli //进入redis客户端
127.0.0.1:6379> keys * //取出所有的key 127.0.0.1:6379> keys * //取出所有的key
...@@ -532,8 +532,8 @@ Linux下Tomcat的启动、关闭、杀死进程 (进入tomcat的bin目录 ...@@ -532,8 +532,8 @@ Linux下Tomcat的启动、关闭、杀死进程 (进入tomcat的bin目录
./jdk-6u45-linux-x64.bin ./jdk-6u45-linux-x64.bin
二、配置tomcat的 ../bin/setclasspath.sh 在文件的开头添加以下 二、配置tomcat的 ../bin/setclasspath.sh 在文件的开头添加以下
export JAVA_HOME=/opt/sudytech/jdk1.6.0_45 export JAVA_HOME=/opt/saiwen/jdk1.6.0_45
export JRE_HOME=/opt/sudytech/jdk1.6.0_45/jre export JRE_HOME=/opt/saiwen/jdk1.6.0_45/jre
三、重启tomcat 三、重启tomcat
...@@ -765,10 +765,10 @@ echo "===============begin=========================" ...@@ -765,10 +765,10 @@ echo "===============begin========================="
echo "定时查询脚本启动了。。。" echo "定时查询脚本启动了。。。"
date "+%Y-%m-%d %H:%M:%S" date "+%Y-%m-%d %H:%M:%S"
docker_name=mobile_ucp_db_1 docker_name=mobile_uccp_db_1
sql="use UCPPLUS;select id,loginName,name,password,idcard,field29 from T_USER where loginName='admin'\G;" sql="use YCKPLUS;select id,loginName,name,password,idcard,field29 from T_USER where loginName='admin'\G;"
#docker exec -it ${docker_name} mysql -uroot -pSudy.web123 -e $sql >> $file #docker exec -it ${docker_name} mysql -uroot -psaiwen.web123 -e $sql >> $file
docker exec -i mobile_ucp_db_1 mysql -uroot -pSudy.web123 -e "select now();use UCPPLUS;select id,loginName,name,password,idcard,field29 from T_USER where loginName='admin'\G;" >> /home/share/timerSearch/recordDB.txt docker exec -i mobile_uccp_db_1 mysql -uroot -psaiwen.web123 -e "select now();use YCKPLUS;select id,loginName,name,password,idcard,field29 from T_USER where loginName='admin'\G;" >> /home/share/timerSearch/recordDB.txt
echo "" echo ""
echo "" echo ""
...@@ -777,7 +777,7 @@ echo "" ...@@ -777,7 +777,7 @@ echo ""
#crontab -uroot -e #crontab -uroot -e
0 3 * * 5 /data/sudytech/shell/copyCasSecret.sh 0 3 * * 5 /data/saiwen/shell/copyCasSecret.sh
说明: 说明:
分钟 小时 日 月 星期 命令 分钟 小时 日 月 星期 命令
......
...@@ -496,6 +496,14 @@ lower_case_table_names = 2 ...@@ -496,6 +496,14 @@ lower_case_table_names = 2
### 4.其他 ### 4.其他
```
sql将毫秒数字转换为日期
SELECT FROM_UNIXTIME(operation_time/1000,"%Y-%m-%d %H:%i:%s") operationDate FROM ins_purchase
```
#### 4.1.group_concat函数 #### 4.1.group_concat函数
``` ```
...@@ -821,4 +829,55 @@ CONSTRAINT check_salary CHECK ...@@ -821,4 +829,55 @@ CONSTRAINT check_salary CHECK
``` ```
#### Mysql复制表结构、表数据的方法
```
1、复制表结构及数据到新表(不包含主键、索引、分区等)
CREATE TABLE 新表 SELECT * FROM 旧表
或 CREATE TABLE 新表 AS SELECT * FROM 旧表
这种方法将旧表基本结构和数据复制到新表。
不过这种方法的一个最不好的地方就是新表中没有了旧表的主键、索引、Extra(auto_increment,字符集编码及排序)、注释、分区等属性 以及触发器、外键等。
2、只复制表结构到新表
CREATE TABLE 新表 SELECT * FROM 旧表 WHERE 1=2 (只是第一种方式去除掉数据)
CREATE TABLE 新表 LIKE 旧表
这种方式的复制可以复制旧表的主键、索引、Extra(auto_increment,字符集编码及排序)、注释、分区等属性。但是不包含触发器、外键等
3、复制旧表的数据到新表
INSERT INTO 新表 SELECT * FROM 旧表
INSERT INTO 新表(字段1,字段2,.......) SELECT 字段1,字段2,...... FROM 旧表
上面两条语句的前提是新表已经存在
4、复制表结构及数据到新表(包含主键、索引、分区等)
结合上述第2、3点,即:
先 CREATE TABLE 新表 LIKE 旧表
然后 INSERT INTO 新表 SELECT * FROM 旧表
5、可以将表1结构复制到表2(mysql不支持)
SELECT * INTO 表2 FROM 表1 WHERE 1=2
6、可以将表1内容全部复制到表2(mysql不支持)
SELECT * INTO 表2 FROM 表1
7、 show create table 旧表;
这样会将旧表的创建命令列出。我们只需要将该命令拷贝出来,更改table的名字,就可以建立一个完全一样的表
```
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#### 1.1.1、windows常用快捷键 #### 1.1.1、windows常用快捷键
``` ```java
windows常用快捷键 windows常用快捷键
Ctrl+C 复制选中内容 Ctrl+C 复制选中内容
...@@ -26,7 +26,7 @@ Ctrl+X 剪切 ...@@ -26,7 +26,7 @@ Ctrl+X 剪切
Ctrl+F 查找与替换 Ctrl+F 查找与替换
Ctrl+W 关闭程序 Ctrl+W 关闭程序
Ctrl+Z 撤刚才进行的操作 Ctrl+Z 刚才进行的操作
Ctrl+Y 恢复刚才进行的操作 Ctrl+Y 恢复刚才进行的操作
Ctrl+N 新建一个空白文档 Ctrl+N 新建一个空白文档
Ctrl+P 打开"打印"对话框 Ctrl+P 打开"打印"对话框
...@@ -75,7 +75,7 @@ F12 浏览器打开调试 ...@@ -75,7 +75,7 @@ F12 浏览器打开调试
#### 1.1.3、notepadd++小知识 #### 1.1.3、notepadd++小知识
``` ```java
无扩展名文件默认打开程序设置Notepad++ 无扩展名文件默认打开程序设置Notepad++
在命令提示符cmd以管理员身份下输入 在命令提示符cmd以管理员身份下输入
...@@ -84,7 +84,7 @@ ftype "No Extension"="D:\ProgramFiles\Notepadd++\Notepad++\notepad++.exe" "%1" ...@@ -84,7 +84,7 @@ ftype "No Extension"="D:\ProgramFiles\Notepadd++\Notepad++\notepad++.exe" "%1"
``` ```
```java ```
notepad++常用插件:Compare、JSTool、Json Viewer、MIME Tools notepad++常用插件:Compare、JSTool、Json Viewer、MIME Tools
将dll文件放在如下目录,重启notepad即可 将dll文件放在如下目录,重启notepad即可
D:\ProgramFiles\Notepadd++\Notepad++\plugins D:\ProgramFiles\Notepadd++\Notepad++\plugins
...@@ -105,12 +105,14 @@ notepad竖向选择 ...@@ -105,12 +105,14 @@ notepad竖向选择
#### 1.1.4、markdown #### 1.1.4、markdown
``` ```java
markdown在线编辑 markdown在线编辑
作业部落 https://www.zybuluo.com/mdeditor 作业部落 https://www.zybuluo.com/mdeditor
马克飞象 https://maxiang.io/ 马克飞象 https://maxiang.io/
菜鸟工具 http://c.runoob.com/front-end/712 菜鸟工具 http://c.runoob.com/front-end/712
Marked https://marked.js.org/demo/ Marked https://marked.js.org/demo/
gitlab https://gitlab.com/-/ide/project/gitlab-org/gitlab/edit/master/-/doc/user/markdown.md
markdown软件 markdown软件
typora https://www.typora.io/ typora https://www.typora.io/
...@@ -125,6 +127,7 @@ https://blog.csdn.net/davidhzq/article/details/100815332 ...@@ -125,6 +127,7 @@ https://blog.csdn.net/davidhzq/article/details/100815332
Ⅱ.点击 文件-导出-HTML Ⅱ.点击 文件-导出-HTML
Ⅲ.浏览器打开文件-打印-另存为PDF Ⅲ.浏览器打开文件-打印-另存为PDF
markdown转PDF文件分页 markdown转PDF文件分页
<div STYLE="page-break-after: always;"></div> <div STYLE="page-break-after: always;"></div>
...@@ -142,16 +145,23 @@ https://gitlab.com/xuyq123/mynotes/-/blob/master/gitlab%E3%80%81github%E3%80%81g ...@@ -142,16 +145,23 @@ https://gitlab.com/xuyq123/mynotes/-/blob/master/gitlab%E3%80%81github%E3%80%81g
gitlab mkdocs主题仓库 gitlab mkdocs主题仓库
https://gitlab.com/xuyq123/plain-mkdocs https://gitlab.com/xuyq123/plain-mkdocs
https://xuyq123.gitlab.io/plain-mkdocs https://xuyq123.gitlab.io/plain-mkdocs
https://gitlab.com/xuyq123/myblog-mkdocs
https://xuyq123.gitlab.io/myblog-mkdocs
---
git平台docsify布署markdown文件 git平台docsify布署markdown文件
https://gitlab.com/xuyq123/mynotes/-/blob/master/git%E5%B9%B3%E5%8F%B0docsify%E5%B8%83%E7%BD%B2markdown%E6%96%87%E4%BB%B6.md https://gitlab.com/xuyq123/mynotes/-/blob/master/git%E5%B9%B3%E5%8F%B0docsify%E5%B8%83%E7%BD%B2markdown%E6%96%87%E4%BB%B6.md
docsify主题仓库 gitlab docsify主题仓库
https://gitlab.com/xuyq123/plain-docsify https://gitlab.com/xuyq123/plain-docsify
https://xuyq123.gitlab.io/plain-docsify/ https://xuyq123.gitlab.io/plain-docsify/
https://gitlab.com/xuyq123/myblog-mkdocs
https://xuyq123.gitlab.io/myblog-docsify/
``` ```
...@@ -185,11 +195,11 @@ redmibook的FN键没有作用,F1~F12功能键直接按就是调节音. ...@@ -185,11 +195,11 @@ redmibook的FN键没有作用,F1~F12功能键直接按就是调节音.
#### 1.2.3、无线网连不上 & 代理连接失败 #### 1.2.3、无线网连不上 & 代理连接失败
```java ```
win7无线网络连接不上(未连接-连接可用)常用解决方法。 win7无线网络连接不上(未连接-连接可用)常用解决方法。
开始 --控制面板(查看方式-小图标)--管理工具 --服务 开始 --控制面板(查看方式-小图标)--管理工具 --服务
WLAN AutoConfig 启动此服务且启动类型改为自动 WLAN AutoConfig 启动此服务且启动类型改为自动
``` ```
...@@ -200,18 +210,28 @@ WLAN AutoConfig 启动此服务且启动类型改为自动 ...@@ -200,18 +210,28 @@ WLAN AutoConfig 启动此服务且启动类型改为自动
控制面板 - 网络和Internet - Internet选项 - 连接 - 局域网设置 - 代理服务器 - 为LAN使用代理服务器[这些设置不用于拨号或VPN连接][X] 控制面板 - 网络和Internet - Internet选项 - 连接 - 局域网设置 - 代理服务器 - 为LAN使用代理服务器[这些设置不用于拨号或VPN连接][X]
去掉勾选-确定 去掉勾选-确定
---
治根方法: 治根方法:
参考 https://www.zhihu.com/question/25686082?sort=created 参考 https://www.zhihu.com/question/25686082?sort=created
方法1:
网上能找到的方法都试过了,没解决。 网上能找到的方法都试过了,没解决。
最后忘了从哪找到的方法,把WinHttpAutoProxySvc 服务给禁用了,似乎是好了,几个小时了没有再出现问题。 最后忘了从哪找到的方法,把WinHttpAutoProxySvc 服务给禁用了,似乎是好了,几个小时了没有再出现问题。
忘了说了,我是用完fiddler之后出现的问题。 忘了说了,我是用完fiddler之后出现的问题。
禁用需要编辑注册表: 禁用需要编辑注册表:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinHttpAutoProxySvc Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinHttpAutoProxySvc
右边Start值改为4(禁止启动) 右边Start值改为4(禁止启动)。
然后重启电脑 然后重启电脑。
方法2:
进到这个目录下:HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Internet Settings/Connections
通过目录找到Connections,把整个文件夹删除。
不放心的话可以把Connections改名。
---
进入服务: 控制面板 - 系统和安全 - 管理工具 - 服务 进入服务: 控制面板 - 系统和安全 - 管理工具 - 服务
进入注册表: WIN+R - regedit 进入注册表: WIN+R - regedit
...@@ -270,31 +290,26 @@ Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinHttpAutoProxySv ...@@ -270,31 +290,26 @@ Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinHttpAutoProxySv
``` ```
眼睛心理学 眼睛心理学
眼睛往左看代表:回忆;往右看代表:动用情感来创造词汇。
眼睛往左看代表:回忆 ;往右看代表:动用情感来创造词汇。 关于眼睛的心理学:
关于眼睛的心理bai学:
1. 如果对方眼球处于左上方,表示正在进行视觉回想,也就是回忆。 1. 如果对方眼球处于左上方,表示正在进行视觉回想,也就是回忆。
2. 如果对方眼球处于左下方,表示正在思考,正在与自己对话。 2. 如果对方眼球处于左下方,表示正在思考,正在与自己对话。
3. 如果对方眼球处于右上方,表示正在创建视觉想象,也就是在脑海中创建一些现实中没有的事物。 3. 如果对方眼球处于右上方,表示正在创建视觉想象,也就是在脑海中创建一些现实中没有的事物。
4. 如果对方眼球处于右下方,表示ta正在感受自己的身体,感受情感的触动。 4. 如果对方眼球处于右下方,表示ta正在感受自己的身体,感受情感的触动。
5. 如果对方眼球向一侧看,同时脑袋微微向一侧倾斜,对方看上去像是在认真聆听,这个举动与声音有关,可能是在交谈中回忆起了某个声音,这时眼球也会处于中间位置。 5. 如果对方眼球向一侧看,同时脑袋微微向一侧倾斜,对方看上去像是在认真聆听,这个举动与声音有关,可能是在交谈中回忆起了某个声音,这时眼球也会处于中间位置。
6. 如果对方眼球向左右平视,表示ta正在试图弄懂别人的意思。 6. 如果对方眼球向左右平视,表示ta正在试图弄懂别人的意思。
7. 如果对方眼球迅速地左右运动,表示ta正在忙碌地思考,也有可能是感受到了压力或者心怀戒备。
7. 如果对方眼球迅速地左右运动,表示ta正在忙碌地思考,也有可能是感受到了压力或者心怀戒备
``` ```
#### 1.3.3、视频会员兑换渠道 #### 1.3.3、视频会员兑换渠道
```java ```
视频会员:腾讯视频、优酷、爱奇艺、芒果TV等视频网站会员积分兑换 视频会员:腾讯视频、优酷、爱奇艺、芒果TV等视频网站会员积分兑换
...@@ -326,7 +341,7 @@ Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinHttpAutoProxySv ...@@ -326,7 +341,7 @@ Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinHttpAutoProxySv
### 2.2、mysql logbin日志 ### 2.2、mysql logbin日志
```mysql ```sql
mysql开启log-bin日志.md https://gitlab.com/xuyq123/mynotes/-/blob/master/mysql%E5%BC%80%E5%90%AFlog-bin%E6%97%A5%E5%BF%97.md mysql开启log-bin日志.md https://gitlab.com/xuyq123/mynotes/-/blob/master/mysql%E5%BC%80%E5%90%AFlog-bin%E6%97%A5%E5%BF%97.md
logbin日志 记录新增、更新、删除的sql logbin日志 记录新增、更新、删除的sql
...@@ -417,9 +432,35 @@ http://localhost:8080/druid/sql.html ...@@ -417,9 +432,35 @@ http://localhost:8080/druid/sql.html
### 3.1、java常用方法 ### 3.1、java常用方法
```
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ComboboxVO {}
MessageResult result = JSON.parseObject(text, new TypeReference<MessageResult>() {});
List<DiffRegionLogisticsDetailVO> cateList = JSON.parseObject(text, new TypeReference<List<DiffRegionLogisticsDetailVO>>() {});
# 格式化全局时间
spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
spring.jackson.time-zone=GMT+8
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime;
Assert.isTrue(!StringUtils.isEmpty(param.getPhone()), "联系方式不能为空");
```
#### 3.1.1、lambda表达式 #### 3.1.1、lambda表达式
```java ```java
/*** lambda表达式 */ /*** lambda表达式 */
// 循环 // 循环
...@@ -448,7 +489,11 @@ LinkedHashMap<String, List<DeliveryOrderShopDAO>> addrMap = deliveryOrderShopDAO ...@@ -448,7 +489,11 @@ LinkedHashMap<String, List<DeliveryOrderShopDAO>> addrMap = deliveryOrderShopDAO
Map<String, List<DeliveryGoodsDO>> deliveryGoodsMap = deliveryGoodsDOS.stream().collect(Collectors.groupingBy(item -> item.getVirtualgoodsId() + "_" + item.getTitle() + "_" + item.getSpec())); Map<String, List<DeliveryGoodsDO>> deliveryGoodsMap = deliveryGoodsDOS.stream().collect(Collectors.groupingBy(item -> item.getVirtualgoodsId() + "_" + item.getTitle() + "_" + item.getSpec()));
// list转map-值为单个对象 // list转map-值为单个对象
Map<String, DeliveryDO> deliveryOrderMap = deliveryDOS.stream().collect(Collectors.toMap(DeliveryDO::getDeliveryOrder, (p) -> p)); Map<String, DeliveryDO> deliveryOrderMap = deliveryDOS.stream().collect(Collectors.toMap(DeliveryDO::getDeliveryOrder, a -> a));
// list转map-值为单个对象 (如有重复,用第一个)
Map<String, DeliveryDO> deliveryOrderMap = deliveryDOS.stream().collect(Collectors.toMap(DeliveryDO::getDeliveryOrder, a-> a,(k1,k2)->k2));
// list转map-值为对象的字段 // list转map-值为对象的字段
Map<Integer, Integer> goods2ProductParam = logisticsGoodsDAOS.stream().filter(dao -> goodsIdParamList.contains(dao.getGoodsId())). Map<Integer, Integer> goods2ProductParam = logisticsGoodsDAOS.stream().filter(dao -> goodsIdParamList.contains(dao.getGoodsId())).
...@@ -662,6 +707,18 @@ Java 8 Stream peek 与 map的区别 ...@@ -662,6 +707,18 @@ Java 8 Stream peek 与 map的区别
``` ```
```java
// 创建数组的四种方法
int[] a1;
int[] a2 = {1, 2, 3};
int[] a3 = new int[]{1, 2, 3};
int[] a4 = new int[3];
a4[0] = 1;
a4[2] = 2;
a4[3] = 3;
```
```java ```java
几个快速添加list的方法 几个快速添加list的方法
...@@ -671,6 +728,7 @@ Collections.addAll(s,"1","2","3") ...@@ -671,6 +728,7 @@ Collections.addAll(s,"1","2","3")
2. 使用Arrays.asList(...args) 直接返回一个List 2. 使用Arrays.asList(...args) 直接返回一个List
List<String> s = Arrays.asList("1","2","3") List<String> s = Arrays.asList("1","2","3")
// 可能会抛异常 UnsupportOperationException
3. 如果引入了Guava的工具包可以使用他的Lists.newArrayList(...args)方法 3. 如果引入了Guava的工具包可以使用他的Lists.newArrayList(...args)方法
List<String> list = Lists.newArrayList("1","2","3") List<String> list = Lists.newArrayList("1","2","3")
...@@ -680,6 +738,20 @@ List<String> s = List.of("1","2","3") ...@@ -680,6 +738,20 @@ List<String> s = List.of("1","2","3")
``` ```
```
使用Arrays.asList()报错 UnsupportOperationException 原因
常常使用Arrays.asLisvt()后调用add,remove这些method时出现java.lang.UnsupportedOperationException异常。这是由于:
Arrays.asLisvt() 返回java.util.Arrays$ArrayList, 而不是ArrayList。
Arrays$ArrayList和ArrayList都是继承AbstractList,remove,add等 method在AbstractList中是默认throw UnsupportedOperationException而且不作任何操作。
ArrayList override这些method来对list进行操作,但是Arrays$ArrayList没有override remove(int),add(int)等,所以throw UnsupportedOperationException。
解决方法:
List<String> list=new ArrayList(Arrays.asList(nameList));
```
--- ---
### 3.2、idea基本配置与快捷键 ### 3.2、idea基本配置与快捷键
...@@ -716,34 +788,37 @@ file and code Templates -- Includes -- File Header ...@@ -716,34 +788,37 @@ file and code Templates -- Includes -- File Header
SettingsEditorGeneralAuto Import SettingsEditorGeneralAuto Import
选中Optimize imports on the fly和Add unambiguous imports on the fly 选中Optimize imports on the fly和Add unambiguous imports on the fly
7idea常用插件 Plugins
lombok
Free Mybatis plugin MybatisX
Spring Assistant
Alibaba Java Coding Guidelines 7代码自动定位文件
Markdown
swagger
8代码自动定位文件
Project - Show Options Menu - Autoscroll From Source Project - Show Options Menu - Autoscroll From Source
9显示成员变量及方法 8显示成员变量及方法
Project - Show Options Menu - Show Members Project - Show Options Menu - Show Members
9初始化idea删除所有配置及历史记录
10初始化idea删除所有配置及历史记录
删除目录 C:\Users\Administrator\.IdeaIC2019.1 删除目录 C:\Users\Administrator\.IdeaIC2019.1
``` ```
```
idea常用插件 Plugins
lombok
Free Mybatis plugin MybatisX
Spring Assistant
Translation
Alibaba Java Coding Guidelines
Markdown
swagger
```
#### 3.2.2、idea常用快捷键 #### 3.2.2、idea常用快捷键
``` ```
eclipse & idea常用快捷键 eclipse & idea常用快捷键
sout 打印 sout 打印
fori 循环
Shift+Enter 另起一行 Shift+Enter 另起一行
Alt+Enter 快速命名 Alt+Enter 快速命名
Ctrl+h 全局关键词搜索 Ctrl+h 全局关键词搜索
...@@ -944,11 +1019,21 @@ git平台:gitlab、github、gitee、csdn_code、coding、bitbucket ...@@ -944,11 +1019,21 @@ git平台:gitlab、github、gitee、csdn_code、coding、bitbucket
| calligraphy-boot | [gitlab]( https://gitlab.com/xuyq123/calligraphy-boot ) &ensp; [gitee]( https://gitee.com/xy180/calligraphy-boot ) &ensp; [github]( https://github.com/scott180/calligraphy-boot ) &ensp; [csdn_code]( https://codechina.csdn.net/xu180/calligraphy-boot ) | java项目 | | calligraphy-boot | [gitlab]( https://gitlab.com/xuyq123/calligraphy-boot ) &ensp; [gitee]( https://gitee.com/xy180/calligraphy-boot ) &ensp; [github]( https://github.com/scott180/calligraphy-boot ) &ensp; [csdn_code]( https://codechina.csdn.net/xu180/calligraphy-boot ) | java项目 |
| calligraphy | [gitlab]( https://gitlab.com/xuyq123/calligraphy ) &ensp; [gitee]( https://gitee.com/xy180/calligraphy ) &ensp; [github]( https://github.com/scott180/calligraphy ) &ensp; [gitlab_pages]( https://xuyq123.gitlab.io/plain/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9--%E6%98%8E%E6%9C%88%E5%87%A0%E6%97%B6%E6%9C%89.html ) &ensp; [gitlab_mkdocs]( https://xuyq123.gitlab.io/plain-mkdocs/ ) | 书法练习轨迹 | | calligraphy | [gitlab]( https://gitlab.com/xuyq123/calligraphy ) &ensp; [gitee]( https://gitee.com/xy180/calligraphy ) &ensp; [github]( https://github.com/scott180/calligraphy ) &ensp; [gitlab_pages]( https://xuyq123.gitlab.io/plain/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9--%E6%98%8E%E6%9C%88%E5%87%A0%E6%97%B6%E6%9C%89.html ) &ensp; [gitlab_mkdocs]( https://xuyq123.gitlab.io/plain-mkdocs/ ) | 书法练习轨迹 |
| mkdocs | gitlab [note-mkdocs]( https://gitlab.com/xuyq123/note-mkdocs )&ensp; [**网页**]( https://xuyq123.gitlab.io/note-mkdocs/ ) &ensp;&ensp; [myblog-mkdocs]( https://gitlab.com/xuyq123/myblog-mkdocs )&ensp; [网页]( https://xuyq123.gitlab.io/myblog-mkdocs/ ) <br/>github [note-mkdocs]( https://github.com/scott180/note-mkdocs )&ensp; [网页]( https://scott180.github.io/note-mkdocs/ ) &ensp;&ensp;[myblog-mkdocs]( https://github.com/scott180/myblog-mkdocs )&ensp; [网页]( https://scott180.github.io/myblog-mkdocs/ )<br/>gitee [plain-mkdocs]( https://gitee.com/xy180/plain-mkdocs/tree/master/note ) [网页]( http://xy180.gitee.io/plain-mkdocs/note/site/ ) &ensp;&ensp;[myblog-mkdocs]( https://gitee.com/xy180/myblog-mkdocs ) | 我的笔记与博客 | | mkdocs | gitlab [note-mkdocs]( https://gitlab.com/xuyq123/note-mkdocs )&ensp; [**网页**]( https://xuyq123.gitlab.io/note-mkdocs/ ) &ensp;&ensp; [myblog-mkdocs]( https://gitlab.com/xuyq123/myblog-mkdocs )&ensp; [网页]( https://xuyq123.gitlab.io/myblog-mkdocs/ ) <br/>github [note-mkdocs]( https://github.com/scott180/note-mkdocs )&ensp; [网页]( https://scott180.github.io/note-mkdocs/ ) &ensp;&ensp;[myblog-mkdocs]( https://github.com/scott180/myblog-mkdocs )&ensp; [网页]( https://scott180.github.io/myblog-mkdocs/ )<br/>gitee [plain-mkdocs]( https://gitee.com/xy180/plain-mkdocs/tree/master/note ) [网页]( http://xy180.gitee.io/plain-mkdocs/note/site/ ) &ensp;&ensp;[myblog-mkdocs]( https://gitee.com/xy180/myblog-mkdocs ) | 我的笔记与博客 |
| docsify | gitlab [plain-docsify]( https://gitlab.com/xuyq123/plain-docsify )&ensp; [**网页**]( https://xuyq123.gitlab.io/plain-docsify/ ) <br/>github [plain-docsify]( https://github.com/scott180/plain-docsify )&ensp; [网页]( https://scott180.github.io/plain-docsify/ ) | 笔记docsify | | docsify | gitlab [plain-docsify]( https://gitlab.com/xuyq123/plain-docsify )&ensp; [**网页**]( https://xuyq123.gitlab.io/plain-docsify/ ) &ensp;&ensp; [myblog-docsify]( https://gitlab.com/xuyq123/myblog-docsify )&ensp; [网页]( https://xuyq123.gitlab.io/myblog-docsify/ ) <br/>github [plain-docsify]( https://github.com/scott180/plain-docsify )&ensp; [网页]( https://scott180.github.io/plain-docsify/ ) &ensp;&ensp;[myblog-docsify]( https://github.com/scott180/myblog-docsify )&ensp; [网页]( https://scott180.github.io/myblog-docsify/ ) | 笔记与博客docsify |
---
--- ---
***
> 注册了微信公众号及今日头条号:**无为徐生**,以后会将书法练习轨迹、程序员笔记以及一些随笔感想更新在此。若有兴趣,可扫码关注。
| 无为徐生 | 今日头条号 | &ensp; | 微信公众号 |
| --------- | ------------------------------------------------------------- | - | ---------- |
| 二维码 | ![t]( https://codechina.csdn.net/xu180/document/-/raw/master/imgs/toutiao/无为徐生.png ) | <br/> | ![w]( https://codechina.csdn.net/xu180/document/-/raw/master/imgs/weixin/无为徐生.png ) |
***
...@@ -8,7 +8,7 @@ http://www.runoob.com/redis/redis-install.html ...@@ -8,7 +8,7 @@ http://www.runoob.com/redis/redis-install.html
启动 redis-server.exe redis.windows.conf 启动 redis-server.exe redis.windows.conf
登录 redis-cli.exe -h 127.0.0.1 -p 6379 登录 redis-cli.exe -h 127.0.0.1 -p 6379
redis-cli -a sudy12344 redis-cli -a s12344
Redis 设置密码登录 Redis 设置密码登录
...@@ -42,7 +42,7 @@ password值在/redis/redis.conf文件中搜索requirepass ...@@ -42,7 +42,7 @@ password值在/redis/redis.conf文件中搜索requirepass
[root@localhost src]# cd /opt/sudytech/custom/redis-2.8.17/ [root@localhost src]# cd /opt/stech/custom/redis-2.8.17/
[root@localhost redis-2.8.17]# redis-server redis.conf //启动redis [root@localhost redis-2.8.17]# redis-server redis.conf //启动redis
[root@localhost ~]# redis-cli //进入redis客户端 [root@localhost ~]# redis-cli //进入redis客户端
127.0.0.1:6379> keys * //取出所有的key 127.0.0.1:6379> keys * //取出所有的key
......
# Markdown常用语法
## 1 Markdown简介
Markdown是一种可以使用普通文本编辑器编写的标记语言,通过简单的标记语法,它可以使普通文本内容具有一定的格式。
Markdown的语法简洁明了、学习容易,而且功能比纯文本更强,因此有很多人用它写博客。世界上最流行的博客平台WordPress和大型CMS如Joomla、Drupal都能很好的支持Markdown。
完全采用Markdown编辑器的博客平台有Ghost和Typecho。
用于编写说明文档,并且以“README.md”的文件名保存在软件的目录下面。
## 2 Markdown在线编辑
markdown在线编辑 <br/>
作业部落 https://www.zybuluo.com/mdeditor <br/>
马克飞象 https://maxiang.io/ <br/>
菜鸟工具 http://c.runoob.com/front-end/712 <br/>
Marked https://marked.js.org/demo/ <br/>
gitlab https://gitlab.com/-/ide/project/gitlab-org/gitlab/edit/master/-/doc/user/markdown.md <br/>
markdown软件 <br/>
typora https://www.typora.io/ <br/>
Dillinger https://dillinger.io/ <br/>
https://blog.csdn.net/davidhzq/article/details/100815332 <br/>
## 3 Markdown常用语法
### 3.1 标题
两种形式:
1)使用`=``-`标记一级和二级标题。
> 一级标题
> `=========`
> 二级标题
> `---------`
效果:
> 一级标题
> =========
> 二级标题
> ---------
2)使用`#`,可表示1-6级标题。
> \# 一级标题
> \## 二级标题
> \### 三级标题
> \#### 四级标题
> \##### 五级标题
> \###### 六级标题
效果:
> # 一级标题
> ## 二级标题
> ### 三级标题
> #### 四级标题
> ##### 五级标题
> ###### 六级标题
### 3.2 段落
段落的前后要有空行,所谓的空行是指没有文字内容。若想在段内强制换行的方式是使用**两个以上**空格加上回车(引用中换行省略回车)。
### 3.3 区块引用
在段落的每行或者只在第一行使用符号`>`,还可使用多个嵌套引用,如:
> \> 区块引用
> \>> 嵌套引用
效果:
> 区块引用
>> 嵌套引用
### 3.4 代码区块
代码区块的建立是在每行加上4个空格或者一个制表符(如同写代码一样)。如
普通段落:
void main()
{
printf("Hello, Markdown.");
}
代码区块:
void main()
{
printf("Hello, Markdown.");
}
**注意**:需要和普通段落之间存在空行。
### 3.5 强调
在强调内容两侧分别加上`*`或者`_`,如:
> \*斜体\*,\_斜体\_
> \*\*粗体\*\*,\_\_粗体\_\_
效果:
> *斜体*,_斜体_
> **粗体**,__粗体__
### 3.6 列表
使用`·``+`、或`-`标记无序列表,如:
> \-(+\*) 第一项
> \-(+\*) 第二项
> \- (+\*)第三项
**注意**:标记后面最少有一个_空格_或_制表符_。若不在引用区块中,必须和前方段落之间存在空行。
效果:
> + 第一项
> + 第二项
> + 第三项
有序列表的标记方式是将上述的符号换成数字,并辅以`.`,如:
> 1 . 第一项
> 2 . 第二项
> 3 . 第三项
效果:
> 1. 第一项
> 2. 第二项
> 3. 第三项
### 3.7 分割线
分割线最常使用就是三个或以上`*`,还可以使用`-``_`
### 3.8 链接
链接可以由两种形式生成:**行内式****参考式**
**行内式**
> \[scott180的笔记\]\(https:://github.com/scott180/MyNotes\)。
效果:
> [scott180的笔记](https:://github.com/scott180/MyNotes)。
**参考式**
> \[scott180的笔记1\]\[1\]
> \[scott180的笔记2\]\[2\]
> \[1\]:https:://github.com/scott180/MyNotes
> \[2\]:https:://github.com/scott180/MyNotes
效果:
> [scott180的笔记1][1]
> [scott180的笔记2][2]
[1]: https:://github.com/scott180/MyNotes
[2]: https:://github.com/scott180/MyNotes
**注意**:上述的`[1]:https:://github.com/scott180/MyNotes`不出现在区块中。
### 3.9 图片
添加图片的形式和链接相似,只需在链接的基础上前方加一个`!`
> \[公众号\]\(https://codechina.csdn.net/xu180/document/-/raw/master/imgs/weixin/wuweixusheng.png\)。
效果:
![公众号](https://codechina.csdn.net/xu180/document/-/raw/master/imgs/weixin/wuweixusheng.png)
### 3.10 反斜杠`\`
相当于**反转义**作用。使符号成为普通符号。
### 3.11 符号'`'
起到标记作用。如:
>\`ctrl+a\`
效果:
>`ctrl+a`
### 3.12 空格符号
```
半角空格: &ensp;
全角空格: &emsp;
```
---
---
```
文章参考
https://www.baike.com/wikiid/5652766406012153832?prd=mobile&view_id=38rg5xc426g000#catalog_1
https://github.com/younghz/Markdown/blob/master/README.md
https://www.cnblogs.com/hnrainll/p/3514637.html
```
# 书法练习轨迹ReadMe
## 一、自序
幼时接触书法,学而未成。 <br/>
二零二零庚子年九月底,有感大丈夫处身立世必有一技之长。 <br/>
或曰**君子慎独**,一人之际,奋发之时。尝学英语,练吹埙,打篮球,志不在此,无有所成。 <br/>
历年从事之业,设计、物流、销售、客服,加之当前程序员工作。或天资所限,或志不在此,难登顶峰。 <br/>
快哉,路漫漫其修远兮,吾将上下求索。水落石出,拨云见日,惟书法是吾追求,趣之所向,志之所在,必持之以恒,有所为。自勉。 <br/>
`--2020-11-11`
此为本人书法练习历程: [书法练习轨迹--明月几时有]( https://xuyq123.gitlab.io/plain/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9--%E6%98%8E%E6%9C%88%E5%87%A0%E6%97%B6%E6%9C%89.html )。记录每周练字情况,拍照留存及一些感想。之所以记录下来,主要是以下几点原因: <br/>
一、是要把所写的字,由丑到美,由差到好的过程保存下来,方便对照。不想练的时候,觉得没有进步的时候,看看以前的丑字又会给自己无穷的动力:原来自己进步蛮大,天天练习还是有意义的。 <br/>
二、是寻找志同道合者,对书法有兴趣的可以联系本人,相互交流,共同进步,所谓他山之石,可以攻玉。同时也希望书法大师不吝赐教,光临指导。 <br/>
三、炫耀+装逼,引流+宣传。毕竟人生在世,名利二字。当然肯定是一年半载甚至三年五载,小有所成之后才能晒图,发朋友圈,示字与人。 <br/>
四、希望究天人之际,通古今之变,成一家书法之言。目前字还是不够好,需继续练习。**坚持,自勉**<br/>
`--2021-01-04`
人情必有所寄,习惯而成自然。练着练着,书法就成了生活的一部分,记录书法练习轨迹更是有趣有意思的点缀。不能说是点缀,于我而言,练字与记录是相辅相成、缺一不可的关系。 <br/>
`--2021-07-03`
---
<div STYLE="page-break-after: always;"></div>
## 二、书法练习轨迹网址
> 若无意外,一般每周一在gitlab《**书法练习轨迹--明月几时有**》记录上周练习情况。其他渠道,不定时同步。
```
以下网址包含三类文件:《书法练习轨迹--明月几时有》、《书法练习轨迹ReadMe》、书法练习轨迹图片。
《书法练习轨迹--明月几时有》记录本人每周练习书法情况:包含练习图片及一些感悟。
《书法练习轨迹ReadMe》即当前文档,是git平台的README文件:作自我介绍之意。
书法练习轨迹图片是《书法练习轨迹--明月几时有》文档中图片实际保存地,markdown文件中看到的图片是图片链接。
注:书法练习轨迹--明月几时有.md README.md 都是markdown格式的文件。
```
| 序号 | 仓库 | 备注 |
| --- | ------------------------------------------------------------- | ----------------------------------- |
| 1 | [**gitlab**]( https://gitlab.com/xuyq123/calligraphy ) &ensp; [imgs]( https://gitlab.com/xuyq123/imgs ) | 国外网站,网速较慢。 |
| 2 | [csdn_code]( https://codechina.csdn.net/xu180/calligraphy ) &ensp; [imgs]( https://codechina.csdn.net/xu180/imgs ) | 备份,国内网站,速度快。用户较少。 |
| 3 | [github]( https://github.com/scott180/calligraphy ) &ensp; [imgs]( https://github.com/scott180/imgs ) | 备份,最流行git仓库。国外网站,但有时打不开。 |
| 4 | [coding]( https://xyqin.coding.net/public/my/calligraphy/git ) &ensp; [imgs]( https://xyqin.coding.net/public/my/imgs/git ) | 备份,速度快。但仓库markdown文件不渲染。 |
| 5 | [gitee]( https://gitee.com/xy180/calligraphy ) &ensp; [imgs]( https://gitee.com/xy180/imgs ) | 备份,国内网站,速度快。但可能会被[屏蔽]。 |
| 6 | [bitbucket]( https://bitbucket.org/xu12345/calligraphy ) &ensp; [imgs]( https://bitbucket.org/xu12345/imgs ) | 备份,国外网站。markdown渲染不太完善。 |
| - | **社区** | |
| 7 | [csdn博客]( https://blog.csdn.net/xu180/article/details/113602103 ) &ensp; [ReadMe]( https://blog.csdn.net/xu180/article/details/118492424 ) | 程序员技术交流平台,发布文章,有删减。 |
| 8 | [博客园]( https://www.cnblogs.com/scott123/p/14729493.html ) &ensp; [ReadMe]( https://www.cnblogs.com/scott123/p/14972979.html ) | 开发者知识分享社区。 |
| 9 | [语雀]( https://www.yuque.com/longguang123/ccgbto/cbq9u0 ) &ensp; [ReadMe]( https://www.yuque.com/longguang123/ccgbto/oby4hq ) | 文档与知识管理工具,无删减。阿里巴巴产品。 |
| 10 | [飞书]( https://nal4j8dwi0.feishu.cn/docs/doccntwAAd1yjADzHGQT0ueBkN7 ) &ensp; [ReadMe]( https://nal4j8dwi0.feishu.cn/docs/doccnpf5pWihfu3aW4psk5vO7ue ) | 办公平台。字节跳动产品。|
| 11 | [我来]( https://www.wolai.com/rDqeCwfv87RLPPmuu2fvyi ) &ensp; [ReadMe]( https://www.wolai.com/npaRuQ7wj44TYHqup5xg2w ) | 不仅仅是未来的云端协作平台与个人笔记。 |
| - | **云盘** | |
| 12 | [坚果云]( https://www.jianguoyun.com/p/DTnLeQEQxP-NBhjNrfED ) &ensp; [markdown]( https://www.jianguoyun.com/p/DfYHsfUQxP-NBhjOrfED ) | 文件分享。 |
| 13 | [百度网盘]( https://pan.baidu.com/s/1dOJMgeZAyCYolEflsKIOPQ ) | 提取码: zpxu 。pdf文件分享,需要登录。 |
| 14 | [阿里云盘]( https://www.aliyundrive.com/s/dKE1SMhqdwn ) | pdf文件分享,需要登录。 |
| 15 | [天翼云]( https://cloud.189.cn/t/RRBbumb2MB7b ) | pdf文件分享,需要登录。中国电信网盘。 |
| 16 | [和彩云]( https://caiyun.139.com/m/i?125CmrCy7hU1y ) | 提取码:WAmq 。pdf文件分享,需要登录。中国移动网盘。 |
| 17 | [wps云盘]( https://www.kdocs.cn/l/cpUDGjX6765H ) | pdf文件分享,需要登录。 |
| 18 | [微云]( https://share.weiyun.com/JKZ4ANJ5 ) &ensp; [腾讯文档]( https://docs.qq.com/pdf/DVmxKTG5YZHZBUGlx ) | pdf文件分享。 |
| 19 | [有道云]( http://note.youdao.com/s/V7b1jHjB ) | 笔记分享,无删减。 |
| 20 | [google云盘]( https://drive.google.com/file/d/1Ubx-Rz3Xwhn48PEXMx-BmWrJGyIAzNfn/view?usp=sharing ) | 文件分享,无删减。 |
| - | **网页** | |
| 21 | [作业部落]( https://www.zybuluo.com/scott180/note/1793757 ) &ensp; [ReadMe]( https://www.zybuluo.com/scott180/note/892814 ) | markdown编辑器,文件分享。 |
| 22 | [gitee_pages]( http://xy180.gitee.io/plain-mkdocs/calligraphy/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9--%E6%98%8E%E6%9C%88%E5%87%A0%E6%97%B6%E6%9C%89.html ) &ensp; [ReadMe]( http://xy180.gitee.io/plain-mkdocs/calligraphy/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9ReadMe.html ) | gitee静态网页,markdown转html。 |
| 23 | [github_pages]( https://scott180.github.io/calligraphy/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9--%E6%98%8E%E6%9C%88%E5%87%A0%E6%97%B6%E6%9C%89 ) &ensp; [ReadMe]( https://scott180.github.io/calligraphy ) | github静态网页,有时打不开。[主题1]( https://scott180.github.io/calligraphy1/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9--%E6%98%8E%E6%9C%88%E5%87%A0%E6%97%B6%E6%9C%89 ) &ensp; [主题2]( https://scott180.github.io/calligraphy2/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9--%E6%98%8E%E6%9C%88%E5%87%A0%E6%97%B6%E6%9C%89 ) |
| 24 | [**gitlab_pages**]( https://xuyq123.gitlab.io/plain/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9--%E6%98%8E%E6%9C%88%E5%87%A0%E6%97%B6%E6%9C%89.html ) &ensp; [ReadMe]( https://xuyq123.gitlab.io/plain/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9ReadMe.html ) | gitlab静态网页,markdown转html。 |
```
自二零二零年九月底练习书法以来,刚开始一直在gitee仓库记录更新每周练习情况,毕竟这是国产网站,还是要支持的。
后来有鉴于某云盘背信弃义停止服务,一个网站保存资料不保险,鸡蛋不能放到一个篮子里。
而且全世界最流行的git平台是github,于是二零二零年十一月将文件备份到此处,gitee为主github为辅。
但是github是境外网站,网速慢,经常打不开。于是又找了个国产git平台-csdn_code,将资料再备份一份到此处。
这个git平台虽然建立时间短,知名度低,用户少,但是网速挺快,限制也少,不怎么屏蔽关键字。
再后来觉得狡兔三窟,互联网这玩意不是特别靠谱,说不定哪天网站会被封或者停止服务,多找些地方备份总是没错的。
于是网上搜索常用git平台仓库,将书法练习资料又备份到gitlab和coding。这五个平台同时保存书法练习相关资料和图片。
然而随着每周更新,书法练习轨迹的内容越来越多,gitee所屏蔽的关键词也越来越多,还不提示哪个被禁了,应该怎么改。
其他四个平台基本不屏蔽,就他一个屏蔽。总是“该文件疑似存在违规内容,无法显示: 。” 。此处不留人,自有留人处。
因此虽然gitee是第一个记录书法练习资料,有很多历史记录,刚开始一直当做官网,有一种初恋情结。但是不给力不好用啊,只能当备份了。
综合比较这几个git仓库,gitee有关键词屏蔽,根本就看不见内容;github外网速度很慢,经常打不开;csdn_code成立时间短用户少不是很放心;
coding是腾讯的有大厂背书,但是成也tx败也tx,有腾讯微云的前车之鉴,不敢信也不好说,关键是markdown文件不渲染;
还是gitlab比较好用,github第一gitlab就是第二,虽然也是外网,但是网速还行,可以接受。
因此决定将gitlab仓库作为书法练习的官网,每周更新资料,其他的作为备份,不定时同步。
各Git平台书法练习仓库创建时间:
gitee--20200930
github--20201112
csdn_code--20210202
gitlab--20210504
coding--20210524
同时使用阿里云盘、坚果云、百度云盘等等保存练习资料及图片。
不定时将书法练习轨迹更新到csdn博客、博客园、语雀等比较小众的程序员网站。
以后字写好了能见人了再拿出来到头条、豆瓣、知乎等高流量渠道晒图、晒字。
所谓十年磨一剑,砺得梅花香。
如有游客想浏览本人的书法练习轨迹,可点击上面表格首尾行加粗部分gitlab、gitlab_pages,这两处前者内容最全面,后者格式最美观。
以上 --20210527
```
```
这几天github相关网页都打不开。果然,鸡蛋不能放在一个篮子里。
若要查看书法练习轨迹相关文档,可到上述表格第一号“gitlab”项目。目前这个平台还是稳定的,本人最新记录正在此处。
如感觉网速较慢或者页面加载不出来,可到第二号“csdn_code”或第二十一号“作业部落”查看文档。此两处为国产软件,平台稳定,网速较快。
--20210721
github网页还是看不了,csdn_code图片突然打不开,再看看还有啥git平台。
发现bitbucket,在此再备份书法练习轨迹文档及图片。
此平台网速还行,可建立私有仓库,但是对于markdown文件兼容的不理想,有些html标签不能识别,网页渲染不美观。
bitbucket--20210726
```
***
***
***
> git平台mkdocs主题仓库
```
在git平台创建mkdocs主题仓库,自动将markdown文件生成静态网页。
将《书法练习轨迹--明月几时有》、《书法练习轨迹ReadMe》、《笔名汉字频率分析》等文件聚合在一起。 --20210803
```
| 仓库 | 地址 | 备注 |
| ----- | ------------------------------------------------------------- | ----------------------------------- |
| gitlab | [plain-mkdocs]( https://gitlab.com/xuyq123/plain-mkdocs ) &ensp; [**网页**]( https://xuyq123.gitlab.io/plain-mkdocs ) <br/>[plain-pip-mkdocs]( https://gitlab.com/xuyq123/plain-pip-mkdocs ) &ensp; [网页]( https://xuyq123.gitlab.io/plain-pip-mkdocs ) <br/>[plain-mkdocs-gitbook]( https://gitlab.com/xuyq123/plain-mkdocs-gitbook ) &ensp; [网页]( https://xuyq123.gitlab.io/plain-mkdocs-gitbook ) | gitlab布署mkdocs:配置文件.gitlab-ci.yml。 |
| github | [plain-mkdocs]( https://github.com/scott180/plain-mkdocs ) &ensp; [网页]( https://scott180.github.io/plain-mkdocs/ ) <br/>[plain-pip-mkdocs]( https://github.com/scott180/plain-pip-mkdocs ) &ensp; [网页]( https://scott180.github.io/plain-pip-mkdocs ) <br/>[plain-mkdocs-serve]( https://github.com/scott180/plain-mkdocs-serve ) &ensp; [网页]( https://scott180.github.io/plain-mkdocs-serve ) | github布署mkdocs:命令mkdocs gh-deploy 。 |
| gitee | [plain-mkdocs]( https://gitee.com/xy180/plain-mkdocs ) &ensp; [网页1]( http://xy180.gitee.io/plain-mkdocs/1/site/ ) &ensp; [网页2]( http://xy180.gitee.io/plain-mkdocs/2/site/ ) &ensp; [网页3]( http://xy180.gitee.io/plain-mkdocs/3/site/ ) | gitee布署mkdocs:mkdocs build 布署目录。 |
| note-mkdocs | gitlab [note-mkdocs]( https://gitlab.com/xuyq123/note-mkdocs )&ensp; [**网页1**]( https://xuyq123.gitlab.io/note-mkdocs/ ) &ensp; [网页2]( https://xuyq123.gitlab.io/note-pip-mkdocs/ ) <br/>github [note-mkdocs]( https://github.com/scott180/note-mkdocs )&ensp; [网页]( https://scott180.github.io/note-mkdocs/ )<br/>gitee [plain-mkdocs]( https://gitee.com/xy180/plain-mkdocs/tree/master/note )&ensp; [网页]( http://xy180.gitee.io/plain-mkdocs/note/site/ ) | 个人笔记,含书法练习及java笔记。 |
| myblog-mkdocs | gitlab [myblog-mkdocs]( https://gitlab.com/xuyq123/myblog-mkdocs )&ensp; [网页]( https://xuyq123.gitlab.io/myblog-mkdocs/ ) <br/>github [myblog-mkdocs]( https://github.com/scott180/myblog-mkdocs )&ensp; [网页]( https://scott180.github.io/myblog-mkdocs/ )<br/>gitee [myblog-mkdocs]( https://gitee.com/xy180/myblog-mkdocs ) | 我的博客 |
---
> git平台docsify主题仓库
```
docsify是跟mkdocs类似的工具,可将markdown文件布署成静态网页。
但是docsify布署更简单一点。且布署的文件有多级目录,更易查看。
两种布署方法可见附录5。
```
| 名称 | 仓库 | 备注 |
| --------- | ------------------------------------------------------------- | ---------- |
| plain-docsify | gitlab [plain-docsify]( https://gitlab.com/xuyq123/plain-docsify )&ensp; [**网页**]( https://xuyq123.gitlab.io/plain-docsify/ ) <br/>github [plain-docsify]( https://github.com/scott180/plain-docsify )&ensp; [网页]( https://scott180.github.io/plain-docsify/ ) | 笔记docsify |
| myblog-docsify | gitlab [myblog-docsify]( https://gitlab.com/xuyq123/myblog-docsify )&ensp; [**网页**]( https://xuyq123.gitlab.io/myblog-docsify/ ) <br/>github [myblog-docsify]( https://github.com/scott180/myblog-docsify )&ensp; [网页]( https://scott180.github.io/myblog-docsify/ ) | 笔记与博客docsify |
---
> 书法练习轨迹--明月几时有-简洁版 <br/>
> 专门发布在今日头条及微信公众号上的版本。去掉所有练习图片及链接,适当删减内容。删繁就简,制作此版。
| 序号 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- |
| **链接** | [今日头条]( https://www.toutiao.com/a7003584972175147528/ ) | [微信公众号]( https://mp.weixin.qq.com/s/HmdDsCaeumuZg_DfitIdlw ) | [知乎]( https://zhuanlan.zhihu.com/p/403400860 ) | [语雀]( https://www.yuque.com/longguang123/ccgbto/dm3duy ) | [豆瓣]( https://www.douban.com/note/811096721/ ) | [博客园]( https://www.cnblogs.com/scott123/p/15184752.html ) | [csdn]( https://blog.csdn.net/xu180/article/details/119910067 ) | [百度百家号]( https://mbd.baidu.com/newspage/data/landingshare?context=%7B%22nid%22%3A%22news_8658967678359931515%22%2C%22sourceFrom%22%3A%22bjh%22%7D ) | [360doc个人图书馆]( http://www.360doc.com/content/21/0908/14/37424511_994645014.shtml) |
---
> 笔名汉字频率分析 <br/>
> 数据来自《[书法练习轨迹--明月几时有]( https://xuyq123.gitlab.io/plain/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9--%E6%98%8E%E6%9C%88%E5%87%A0%E6%97%B6%E6%9C%89.html )》中关于本人笔名的记录。
| 序号 | 1 | 2 | 3 | 4 | 5 | 6 |
| ---- | ---- | ---- | ---- | ---- | ---- | ---- |
| **链接** | [gitlab_pages]( https://xuyq123.gitlab.io/plain/%E7%AC%94%E5%90%8D%E6%B1%89%E5%AD%97%E9%A2%91%E7%8E%87%E5%88%86%E6%9E%90 ) | [语雀]( https://www.yuque.com/longguang123/ccgbto/flt0hf ) | [作业部落]( https://www.zybuluo.com/scott180/note/1809817 ) | [微信公众号]( https://mp.weixin.qq.com/s?__biz=Mzg4NDY2OTM0Mg==&mid=2247484803&idx=1&sn=b6711609078268e817fd244f9d095078&chksm=cfb5eb72f8c2626471240152663a7ec184dfb677733d194eea4d237d800ed571cc5f643f4fa8&token=1687261351&lang=zh_CN#rd ) | [csdn]( https://blog.csdn.net/xu180/article/details/118940065 ) | [github_pages]( https://scott180.github.io/calligraphy/%E7%AC%94%E5%90%8D%E6%B1%89%E5%AD%97%E9%A2%91%E7%8E%87%E5%88%86%E6%9E%90 ) |
---
> 无为徐生 <br/>
> 我的头条号、公众号、百家号等等。书法练习轨迹、程序员笔记以及一些随笔感想。
| 序号 | 1 | 2 | 3 | 4 | 5 |
| ---- | ---- | ---- | ---- | ---- | ---- |
| **链接** | [gitlab_docsify]( https://xuyq123.gitlab.io/myblog-docsify/#/%E6%96%87%E6%A1%A3/%E6%97%A0%E4%B8%BA%E5%BE%90%E7%94%9F ) | [美篇]( https://www.meipian.cn/3rzt1rtc ) | [作业部落]( https://www.zybuluo.com/scott180/note/1686777 ) | [微信公众号]( https://mp.weixin.qq.com/s?__biz=Mzg4NDY2OTM0Mg==&mid=2247484710&idx=1&sn=3e74cc71e835e6cbc019f1edee8a24d6&chksm=cfb5ebd7f8c262c1edf31245b3e14ded8b8675f22fe432399a307a83e602bae15a021600b949&token=1687261351&lang=zh_CN#rd ) | [github_pages]( https://scott180.github.io/calligraphy/%E6%97%A0%E4%B8%BA%E5%BE%90%E7%94%9F ) |
---
---
<div STYLE="page-break-after: always;"></div>
## 三、附录
### 1、书法练习轨迹链接
> git平台 官网 项目地址 静态网页 docsify网页 mkdocs网页 HTTPS SSH 图片地址
| 序号 | 官网 | 项目地址 | 静态网页 | docsify网页 | mkdocs网页 | HTTPS | SSH | 图片地址 |
| --- | ---- | -------- | -------- | ----------- | ---------- | ----- | --- | -------- |
| 1 | [gitlab]( https://gitlab.com/explore/projects/trending ) | [calligraphy]( https://gitlab.com/xuyq123/calligraphy ) | [书法练习轨迹]( https://xuyq123.gitlab.io/plain/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9--%E6%98%8E%E6%9C%88%E5%87%A0%E6%97%B6%E6%9C%89.html ) | [plain-docsify]( https://xuyq123.gitlab.io/plain-docsify/ ) &ensp; [myblog-docsify]( https://xuyq123.gitlab.io/myblog-docsify/ ) | [plain-pip-mkdocs]( https://xuyq123.gitlab.io/plain-pip-mkdocs ) | `https://gitlab.com/xuyq123/calligraphy.git` | `git@gitlab.com:xuyq123/calligraphy.git` | [2021050202.jpg]( https://gitlab.com/xuyq123/imgs/-/raw/master/mingyue/2021/202105/2021050202.jpg ) |
| 2 | [csdn_code]( https://codechina.csdn.net/xu180 ) | [calligraphy]( https://codechina.csdn.net/xu180/calligraphy ) | - | - | - | `https://codechina.csdn.net/xu180/calligraphy.git` | `git@codechina.csdn.net:xu180/calligraphy.git` | [2021042504.jpg]( https://codechina.csdn.net/xu180/imgs/-/raw/master/mingyue/2021/202104/2021042504.jpg ) |
| 3 | [coding]( https://e.coding.net/login ) | [calligraphy]( https://xyqin.coding.net/p/my/d/calligraphy/git ) | [public]( https://xyqin.coding.net/public/my/calligraphy/git/files ) | - | - | `https://e.coding.net/xyqin/my/calligraphy.git` | `git@e.coding.net:xyqin/my/calligraphy.git` | [2021042601.jpg]( https://xyqin.coding.net/p/my/d/imgs/git/raw/master/mingyue/2021/202105/2021042601.jpg ) |
| 4 | [bitbucket]( https://bitbucket.org/product/ ) | [calligraphy]( https://bitbucket.org/xu12345/calligraphy ) | - | - | - | `https://bitbucket.org/xu12345/calligraphy.git` | `git@bitbucket.org:xu12345/calligraphy.git` | [2021072402.jpg]( https://bitbucket.org/xu12345/imgs/raw/fac05f5cff30d534a7cf92a9b304b4d7f2df083b/mingyue/2021/202107/2021072402.jpg ) |
| 5 | [github]( https://github.com/scott180 ) | [calligraphy]( https://github.com/scott180/calligraphy ) | [书法练习轨迹]( https://scott180.github.io/calligraphy/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9--%E6%98%8E%E6%9C%88%E5%87%A0%E6%97%B6%E6%9C%89 ) | [plain-docsify]( https://scott180.github.io/plain-docsify/ ) &ensp; [myblog-docsify]( https://scott180.github.io/myblog-docsify/ ) | [plain-mkdocs]( https://scott180.github.io/plain-mkdocs/ ) | `https://github.com/scott180/calligraphy.git` | `git@github.com:scott180/calligraphy.git` | [2021042501.jpg]( https://raw.githubusercontent.com/scott180/imgs/master/mingyue/2021/202104/2021042501.jpg ) |
| 6 | [gitee]( https://gitee.com/xy180 ) | [calligraphy]( https://gitee.com/xy180/calligraphy ) | [书法练习轨迹]( http://xy180.gitee.io/plain-mkdocs/calligraphy/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9--%E6%98%8E%E6%9C%88%E5%87%A0%E6%97%B6%E6%9C%89.html ) | - | [plain-mkdocs]( http://xy180.gitee.io/plain-mkdocs/1/site ) | `https://gitee.com/xy180/calligraphy.git` | `git@gitee.com:xy180/calligraphy.git` | [2021040202.jpg]( https://gitee.com/xy180/imgs/raw/master/mingyue/2021/202104/2021040202.jpg ) |
```
1、书法练习轨迹链接
《书法练习轨迹--明月几时有》
**仓库**
gitlab https://gitlab.com/xuyq123/calligraphy
csdn_code https://codechina.csdn.net/xu180/calligraphy
github https://github.com/scott180/calligraphy
coding https://xyqin.coding.net/public/my/calligraphy/git
gitee https://gitee.com/xy180/calligraphy
bitbucket https://bitbucket.org/xu12345/calligraphy
**社区**
csdn博客 https://blog.csdn.net/xu180/article/details/113602103
博客园 https://www.cnblogs.com/scott123/p/14729493.html
语雀 https://www.yuque.com/longguang123/ccgbto/cbq9u0
飞书 https://nal4j8dwi0.feishu.cn/docs/doccntwAAd1yjADzHGQT0ueBkN7
我来 https://www.wolai.com/rDqeCwfv87RLPPmuu2fvyi
**云盘**
坚果云 https://www.jianguoyun.com/p/DTnLeQEQxP-NBhjNrfED
markdown https://www.jianguoyun.com/p/DfYHsfUQxP-NBhjOrfED
百度网盘 https://pan.baidu.com/s/1dOJMgeZAyCYolEflsKIOPQ 提取码: zpxu
阿里云盘 https://www.aliyundrive.com/s/dKE1SMhqdwn
天翼云 https://cloud.189.cn/t/RRBbumb2MB7b
和彩云 https://caiyun.139.com/m/i?125CmrCy7hU1y 提取码:WAmq
wps云盘 https://www.kdocs.cn/l/cpUDGjX6765H
微云 https://share.weiyun.com/JKZ4ANJ5
腾讯文档 https://docs.qq.com/pdf/DVmxKTG5YZHZBUGlx
有道云 http://note.youdao.com/s/V7b1jHjB
google云盘 https://drive.google.com/file/d/1Ubx-Rz3Xwhn48PEXMx-BmWrJGyIAzNfn/view?usp=sharing
**网页**
作业部落 https://www.zybuluo.com/scott180/note/1793757
gitee_pages http://xy180.gitee.io/plain-mkdocs/calligraphy/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9--%E6%98%8E%E6%9C%88%E5%87%A0%E6%97%B6%E6%9C%89.html
github_pages https://scott180.github.io/calligraphy/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9--%E6%98%8E%E6%9C%88%E5%87%A0%E6%97%B6%E6%9C%89
gitlab_pages https://xuyq123.gitlab.io/plain/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9--%E6%98%8E%E6%9C%88%E5%87%A0%E6%97%B6%E6%9C%89.html
---------
《书法练习轨迹ReadMe》
csdn博客 https://blog.csdn.net/xu180/article/details/118492424
博客园 https://www.cnblogs.com/scott123/p/14972979.html
语雀 https://www.yuque.com/longguang123/ccgbto/oby4hq
飞书 https://nal4j8dwi0.feishu.cn/docs/doccnpf5pWihfu3aW4psk5vO7ue
作业部落 https://www.zybuluo.com/scott180/note/892814
gitee_pages http://xy180.gitee.io/plain-mkdocs/calligraphy/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9ReadMe.html
github_pages https://scott180.github.io/calligraphy
gitlab_pages https://xuyq123.gitlab.io/plain/%E4%B9%A6%E6%B3%95%E7%BB%83%E4%B9%A0%E8%BD%A8%E8%BF%B9ReadMe.html
---------
书法练习轨迹图片
gitlab https://gitlab.com/xuyq123/imgs
csdn_code https://codechina.csdn.net/xu180/imgs
github https://github.com/scott180/imgs
coding https://xyqin.coding.net/public/my/imgs/git
gitee https://gitee.com/xy180/imgs
bitbucket https://bitbucket.org/xu12345/imgs
---------
gitlab mkdocs主题仓库
plain-mkdocs
https://gitlab.com/xuyq123/plain-mkdocs
https://xuyq123.gitlab.io/plain-mkdocs
plain-pip-mkdocs
https://gitlab.com/xuyq123/plain-pip-mkdocs
https://xuyq123.gitlab.io/plain-pip-mkdocs
plain-mkdocs-gitbook
https://gitlab.com/xuyq123/plain-mkdocs-gitbook
https://xuyq123.gitlab.io/plain-mkdocs-gitbook
github mkdocs主题仓库
plain-mkdocs
https://github.com/scott180/plain-mkdocs
https://scott180.github.io/plain-mkdocs/
gitee mkdocs主题仓库
https://gitee.com/xy180/plain-mkdocs/
http://xy180.gitee.io/plain-mkdocs/1/site
note-mkdocs 个人笔记,含书法练习及java笔记。
https://gitlab.com/xuyq123/note-mkdocs https://xuyq123.gitlab.io/note-mkdocs/
https://github.com/scott180/note-mkdocs https://scott180.github.io/note-mkdocs/
https://gitee.com/xy180/plain-mkdocs/tree/master/note http://xy180.gitee.io/plain-mkdocs/note/site
docsify主题仓库
plain-docsify
https://gitlab.com/xuyq123/plain-docsify
https://xuyq123.gitlab.io/plain-docsify/
https://github.com/scott180/plain-docsify
https://scott180.github.io/plain-docsify/
myblog-docsify
https://gitlab.com/xuyq123/myblog-docsify
https://xuyq123.gitlab.io/myblog-docsify/
https://github.com/scott180/myblog-docsify
https://scott180.github.io/myblog-docsify/
古文诗词
https://blog.csdn.net/xu180/article/details/118940022
https://zhuanlan.zhihu.com/p/399112509
https://www.jianshu.com/p/1c8613c90c7c
https://www.zybuluo.com/scott180/note/1815061
https://www.douban.com/note/810205173/
https://www.cnblogs.com/scott123/p/15141189.html
书法练习轨迹--明月几时有-简洁版
https://zhuanlan.zhihu.com/p/403400860
https://www.jianshu.com/p/af695e39963a
https://www.douban.com/note/811096721/
https://www.cnblogs.com/scott123/p/15184752.html
https://blog.csdn.net/xu180/article/details/119910067
```
----
### 2、各git仓库图片链接
```
2、各git仓库图片链接
gitlab 国外网站,加载慢
https://gitlab.com/xuyq123/imgs/-/raw/master/mingyue/2021/202105/2021050202.jpg
coding 加载快,无屏蔽
https://xyqin.coding.net/p/my/d/imgs/git/raw/master/mingyue/2021/202105/2021042601.jpg
csdn_code 加载快,无屏蔽
https://codechina.csdn.net/xu180/imgs/-/raw/master/mingyue/2021/202104/2021042504.jpg
github 国外网站,加载慢
https://raw.githubusercontent.com/scott180/imgs/master/mingyue/2021/202104/2021042501.jpg
gitee 加载快,有屏蔽
https://gitee.com/xy180/imgs/raw/master/mingyue/2021/202104/2021040202.jpg
bitbucket 国外网站
https://bitbucket.org/xu12345/imgs/raw/fac05f5cff30d534a7cf92a9b304b4d7f2df083b/mingyue/2021/202107/2021072402.jpg
```
---
### 3、如何将markdown文件导出为带图片的PDF
```
3、如何将markdown文件导出为带图片的PDF (《书法练习轨迹--明月几时有》是markdown文件)
① markdown转PDF
Ⅰ.使用Typora 打开 markdown文件
Ⅱ.点击 文件-导出-HTML
Ⅲ.浏览器打开文件-打印-另存为PDF
② markdown转PDF文件分页
<div STYLE="page-break-after: always;"></div>
```
---
### 4、github、gitee 仓库小问题
```
4、github、gitee 仓库小问题
Ⅰ.在gitee仓库于2021-01-12 、2021-01-26删除了一些大文件,但是这些文件还在提交记录中,仍然占空间,所以仓库显得比较大(290M)。
Ⅱ.GitHub 图片加载不出来怎么办
打开路径 C:\Windows\System32\drivers\etc 下的 hosts 文件,添加下面的语句
# GitHub Start
192.30.253.112 Build software better, together
192.30.253.119 gist.github.com
151.101.184.133 assets-cdn.github.com
151.101.184.133 raw.githubusercontent.com
151.101.184.133 gist.githubusercontent.com
151.101.184.133 cloud.githubusercontent.com
151.101.184.133 camo.githubusercontent.com
151.101.184.133 avatars0.githubusercontent.com
151.101.184.133 avatars1.githubusercontent.com
151.101.184.133 avatars2.githubusercontent.com
151.101.184.133 avatars3.githubusercontent.com
151.101.184.133 Build software better, together
151.101.184.133 avatars5.githubusercontent.com
151.101.184.133 avatars6.githubusercontent.comⅢ
151.101.184.133 avatars7.githubusercontent.com
151.101.184.133 Build software better, together
Ⅲ.github.io(github pages)访问不了
参考 https://blog.csdn.net/nima1994/article/details/107985198
1、修改系统的hosts (C:\Windows\System32\drivers\etc),添加
# GitHub Start
185.199.110.153 catalyst-team.github.io
185.199.111.153 raw.githubusercontent.com
2、修改本地连接 IPv4属性
控制面板--网络和 Internet--网络和共享中心--查看活动网络--本地连接--属性--Internet 协议版本4(TCP/IPv4)--属性--使用下面的DNS服务器地址
首选DNS服务器设置为 223.5.5.5
备用DNS服务器设置为 223.6.6.6
```
---
### 5、git静态网页发布
> [gitlab、github、gitee布署mkdocs主题仓库](
https://gitlab.com/xuyq123/mynotes/-/blob/master/gitlab%E3%80%81github%E3%80%81gitee%E5%B8%83%E7%BD%B2mkdocs%E4%B8%BB%E9%A2%98%E4%BB%93%E5%BA%93.md ) &ensp; &ensp; [git平台docsify布署markdown文件]( https://gitlab.com/xuyq123/mynotes/-/blob/master/git%E5%B9%B3%E5%8F%B0docsify%E5%B8%83%E7%BD%B2markdown%E6%96%87%E4%BB%B6.md )
```
github、gitee、gitlab静态网页发布
github pages
位置:Setting - GitHub Pages - Save
优点:有十种主题可以选择;提交代码自动发布最新文件。
不足:主题偏少。外网,选择主题时速度慢,但是发布后的文件访问较快。
备注:删除目录下_config.yml文件即选择默认的markdown主题。
gitee pages
位置:服务 - Gitee Pages - 启动
优点:速度快。
不足:无主题可选;markdown会还原成纯文本,需要转成html文件;提交新代码后每次需手动更新才能发布新文件。
备注:有时服务改造,无法启动。
------
gitlab pages
gitlab布署网页与gitee、github不一样,无需启动。只要添加文件即可。
1、添加 .gitlab-ci.yml 文件 。
2、创建public文件夹,并将html文件上传到此处。
3、推送文件。在gitlab项目 CI/CD --> Jobs 查看是否布署成功。
4、访问页面。如 : https://xuyq123.gitlab.io/plain/index.html
参考项目: https://gitlab.com/xuyq123/plain
---
.gitlab-ci.yml 文件
pages:
stage: deploy
script:
- echo 'Nothing to do...'
artifacts:
paths:
- public
only:
- master
```
---
---
### 6、名帖
```
6、名帖
文徵明-小楷赤壁赋、颜真卿-多宝塔碑、王羲之-兰亭集序
```
> 文徵明-小楷赤壁赋 <br/>
![文徵明-小楷赤壁赋]( https://xyqin.coding.net/p/my/d/imgs/git/raw/master/%E4%B9%A6%E6%B3%95%E5%AD%97%E5%B8%96/文徵明-小楷赤壁赋.jpg)
> 颜真卿-多宝塔碑 <br/>
![颜真卿-多宝塔碑]( https://xyqin.coding.net/p/my/d/imgs/git/raw/master/%E4%B9%A6%E6%B3%95%E5%AD%97%E5%B8%96/颜真卿-多宝塔碑.jpg)
> 王羲之-兰亭集序 <br/>
![王羲之-兰亭集序]( https://xyqin.coding.net/p/my/d/imgs/git/raw/master/%E4%B9%A6%E6%B3%95%E5%AD%97%E5%B8%96/王羲之-兰亭集序.jpg)
---
## 四、诗词杂句
> 统计总合《书法练习轨迹》中本人所作的诗词杂句。
---
### 1、诗词
```
半生有感
龙骨山上风车横,转去庐州蜀山风。
十年一觉世不同,西湖水清临安梦。
--202105
```
```
无题
苦思冥想诗一首,
漫漫人生三十已。
若论何事挂心头,
书法练习轨迹有。
--20210712
```
```
游青山湖
青山湖道,郁郁葱葱。
背山面水,景色宜人。
古木参天,中有绿道。
草原辽阔,水面清圆。
免费景点,游人如织。
交通拥堵,绿色出行。
保护环境,人人有责。
--202111
```
```
一时易,长久难。
放弃易,努力难。
玩乐易,学习难。
躺平易,奋斗难。
生存易,生活难。
平凡易,伟大难。
--20211102
```
### 2、杂句
```
我的三观:人生观、世界观、价值观,亦即人生信条、五字真言:制 恒 强 变 真。
制:制怒、自制、克制,不冲动、不贪婪,任何时候都要保持冷静,泰山崩于前而色不变。心平气和才能修身养性。
恒:持之以恒,学习任何知识、技能都要长久的奋斗,坚持就是胜利。
强:坚强、自强、自信、自立。
变:变化,见机行事,随机应变。世上唯一的不变就是变化。
真:真诚、真实。待人以诚、待己以真。认识自己,了解自己的优点缺点,知道自己要干什么。世上乱花迷人眼,需要仔细甄别,方能去伪存真。
前三条(制、恒、强)是对内,对自己,后两条(变 真)是对外,对别人。只有内外兼修,审慎笃行,两手都要抓,两手都要硬,才能辨别真伪,提高自身。
若感觉观点太多,信条很杂,只需要记住一个字:制。即可。
--202106
```
```
人情必有所寄,然后能静,能定,能乐。
寄于山水,得之旷达。
寄于明月,得之幽深。
寄于诗词文章,得之文华。
寄于琴棋书画,得之才气。
--20210611
```
```
一生只做一件事,一生做好一件事。 --20210801
在我生前,流传的是别人的故事。
在我生后,世界会流传我的故事。
漫漫前路,来日方长。
生亦何欢,死亦何惧。
无愧于心,无惧于行。
脚踏实地,持续向前。
```
```
三不三观
友谊观:不打扰
恋爱观:不将就
人生观:不作恶
--2021.10.19
```
---
## 五、个人账号
> 若有志同道合的小伙伴想联系本人,可通过以下方式发邮件或私信。路漫漫其修远兮,吾将上下而求索。共勉。--202107
- **项目仓库** &ensp; [gitlab]( https://gitlab.com/xuyq123/calligraphy ) &ensp; [csdn_code]( https://codechina.csdn.net/xu180/calligraphy ) &ensp; [github]( https://github.com/scott180/calligraphy ) &ensp; [coding]( https://xyqin.coding.net/public/my/calligraphy/git ) &ensp; [gitee]( https://gitee.com/xy180/calligraphy ) &ensp; [bitbucket]( https://bitbucket.org/xu12345/calligraphy ) &ensp; [gitlab_docsify]( https://xuyq123.gitlab.io/plain-docsify/ )
- **个人邮箱** &ensp; 1021151991@qq.com
- **资讯账号** &ensp; [头条]( https://www.toutiao.com/c/user/token/MS4wLjABAAAA2_bWhiknCbcKNu4c6VTM2B7m2vr7zBrh0x6fSyOrtGU ) &ensp; [豆瓣]( https://www.douban.com/people/80730595/photos ) &ensp; [知乎]( https://www.zhihu.com/people/xu-xian-sheng-72-29/posts ) &ensp;
---
***
> 注册了微信公众号及今日头条号:**无为徐生**,以后会将书法练习轨迹、程序员笔记以及一些随笔感想更新在此。若有兴趣,可扫码关注。
| 无为徐生 | 今日头条号 | &ensp; | 微信公众号 |
| --------- | ------------------------------------------------------------- | - | ---------- |
| 二维码 | ![t]( https://codechina.csdn.net/xu180/document/-/raw/master/imgs/toutiao/无为徐生.png ) | <br/> | ![w]( https://codechina.csdn.net/xu180/document/-/raw/master/imgs/weixin/无为徐生.png ) |
***
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
2、解压文件,进入目录,创建 logs文件夹。 2、解压文件,进入目录,创建 logs文件夹。
进入config目录,打开 server.properties 文件: 进入config目录,打开 server.properties 文件:
注释 注释
#log.dirs=/tmp/kafka-logs `#log.dirs=/tmp/kafka-logs`
#zookeeper.connect=localhost:2181 `#zookeeper.connect=localhost:2181`
添加配置 添加配置
log.dirs=E:\ProgramFiles\kafka_2.13-2.5.1\logs log.dirs=E:\ProgramFiles\kafka_2.13-2.5.1\logs
...@@ -63,3 +63,10 @@ kafka在windows平台就是有这个BUG,没办法。只能手动删除\kafka_2 ...@@ -63,3 +63,10 @@ kafka在windows平台就是有这个BUG,没办法。只能手动删除\kafka_2
软件下载 [kafka_2.13-2.5.1.tgz]( https://download.csdn.net/download/xu180/13060538 ) 软件下载 [kafka_2.13-2.5.1.tgz]( https://download.csdn.net/download/xu180/13060538 )
文档参考 https://blog.csdn.net/lizhitao627619011/article/details/50593278 文档参考 https://blog.csdn.net/lizhitao627619011/article/details/50593278
```
[本地安装zookeeper]( https://blog.csdn.net/xu180/article/details/105235397 )
[kafka_2.13-2.5.1.tgz]( https://download.csdn.net/download/xu180/13060538 )
文档参考 https://blog.csdn.net/lizhitao627619011/article/details/50593278
```
#### 本地安装zookeeper-3.5.7 #### 本地安装zookeeper
##### 1、 下载zookeeper [官网](https://downloads.apache.org/zookeeper/zookeeper-3.5.7/) &ensp; [zookeeper-3.5.7]( https://download.csdn.net/download/xu180/12303347 ) ##### 1、 下载zookeeper [官网]( https://downloads.apache.org/zookeeper/ ) &ensp; [zookeeper-3.5.7]( https://download.csdn.net/download/xu180/12303347 )
`` ```
从目前的最新版本3.5.5开始,带有bin名称的包才是我们想要的下载可以直接使用的里面有编译后的二进制的包,而之前的普通的tar.gz的包里面是只是源码的包无法直接使用。 从目前的最新版本3.5.5开始,带有bin名称的包才是我们想要的下载可以直接使用的里面有编译后的二进制的包,而之前的普通的tar.gz的包里面是只是源码的包无法直接使用。
`` 如 apache-zookeeper-3.6.3-bin.tar.gz 是安装包。apache-zookeeper-3.6.3.tar.gz 是源码。
```
******* *******
##### 2、 建立文件夹、改名 ##### 2、 建立文件夹、改名
解压后,建立data和log目录。进入conf目录,有一个zoo_sample.cfg文件,将其重命名为zoo.cfg,然后打开,在最后添加 解压后,建立data和log目录。进入conf目录,有一个zoo_sample.cfg文件,将其重命名为zoo.cfg,然后打开,在最后添加
`` `dataDir=E:\ProgramFiles\apache-zookeeper-3.5.7-bin\data`
dataDir=E:\ProgramFiles\apache-zookeeper-3.5.7-bin\data `dataDirLog=E:\ProgramFiles\apache-zookeeper-3.5.7-bin\log`
dataDirLog=E:\ProgramFiles\apache-zookeeper-3.5.7-bin\log
``
注释 #dataDir=/tmp/zookeeper 注释 #dataDir=/tmp/zookeeper
......
# 排序算法
## 时间复杂度
```
时间复杂度
https://blog.csdn.net/qq_41523096/article/details/82142747
https://zhuanlan.zhihu.com/p/50479555
https://www.cnblogs.com/biehongli/p/11672380.html
时间维度:是指执行当前算法所消耗的时间,我们通常用「时间复杂度」来描述。
空间维度:是指执行当前算法需要占用多少内存空间,我们通常用「空间复杂度」来描述。
常见的时间复杂度量级有:
常数阶O(1)
对数阶O(logN)
线性阶O(n)
线性对数阶O(nlogN)
平方阶O(n²)
立方阶O(n³)
K次方阶O(n^k)
指数阶(2^n)
时间复杂度为O(logn)。
  当数据增大n倍时,耗时增大logn倍(这里的log是以2为底的,比如,当数据增大256倍时,耗时只增大8倍,是比线性还要低的时间复杂度)
```
```
对数公式是数学中的一种常见公式,如果a^x=N(a>0,且a≠1),则x叫做以a为底N的对数,记做x=log(a)(N),其中a要写于log右下。
其中a叫做对数的底,N叫做真数。
通常我们将以10为底的对数叫做常用对数,以e为底的对数称为自然对数。
(1)常用对数:lg(b)=log10b(10为底数)。
(2)自然对数:ln(b)=logeb(e为底数)。 ㏒ebеенp
e为无限不循环小数,通常情况下只取e=2.71828。
https://www.cnblogs.com/chenxi188/p/11050016.html
```
```
https://www.runoob.com/w3cnote/ten-sorting-algorithm.html
https://www.toutiao.com/a6873663185333780999/?channel=&source=search_tab
```
## 冒泡排序
```
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册