Zeng's Page


  • 首页

  • 标签

  • 归档

  • 相册

  • 搜索

Git多账号配置

Posted on 2019-02-13 | In Git

假设有2个github账号,mygithub(default)和mygithub2,要在同一个git客户端下使用,可按以下配置。

生成SSH Key

mygithub的ssh key已按默认生成,对应id_rsa。再生成mygithub2账号的ssh key,假设取名为mygithub2:

1
2
3
cd ~/.ssh
# ssh-keygen -t rsa -b 4096 -C <email> -f mygithub2
ssh-keygen -f mygithub2
Read more »

使用PyCharm远程调试

Posted on 2019-02-13 | In 其它

软件:PyCharm Professional Edition 2018.3

如果想在Windows系统中使用PyCharm进行Python代码开发,而在Linux机器上部署运行,那么可以使用PyCharm的远程调试功能。这样可以避免因使用不同系统下的Python环境,在Windows上正常运行,而在Linux上报错,需要再次修改代码才能运行。

Read more »

使用Docker部署一个Django Demo

Posted on 2019-01-16 | In Docker

系统:CentOS 7.2

准备一个Django Demo,运行后效果如下:

1547641817316

Read more »

单例模式-实验

Posted on 2019-01-04 | In 其它

饿汉式

1
2
3
4
5
6
7
8
9
10
11
12
13
/**
* 饿汉式
*/
class SingletonType1 {
private static SingletonType1 singletonType1 = new SingletonType1();

private SingletonType1() {
}

public static SingletonType1 getInstance() {
return singletonType1;
}
}
Read more »

一个用Excel实现的万年历

Posted on 2019-01-03 | In 其它

Excel版本:V2007以上,不使用VBA

效果图

2019年

1546527646465

Read more »
1…192021
Lz. Zeng

Lz. Zeng

Continuous Self-Improvement

104 发布
18 分类
28 标签
© 2022 Lz. Zeng
NexT.Pisces
 |         Words: 97.2k
0%