配置 ssh 免密登录

2018.06.19

ssh-keygen

scp -p ~/.ssh/id_rsa.pub user@remote:~/.ssh/authorized_keys

CentOS 安装 Samba

2018.06.18

Install Samba:

sudo yum -y install samba

Start Samba:

sudo systemctl start smb nmb

Restart Samba:

sudo service smb restart

Make smb ......

Linux 修改主机名

2018.04.08

sudo vim /etc/hostname

解决 Sublime Text 3 安装插件失败

2018.03.11

最近发现 Sublime Text 3 安装插件经常出现以下问题:

There are no packages available for installation

经过确认发现似乎是官方的 https://packagecontrol.io/channel_v3.json 无法访问导致......

Difference between '__new__' and '__init__' in Python

2018.03.07

Use __new__ when you need to control the creation of a new instance. Use __init__ when you need to control initialization of a new instance.

__new__ ......