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__ ......

简单实现 printf 函数

2018.01.26

主要利用可变参数相关宏:

...: 定义函数可接受不定个数参数(只能出现在参数末尾)

va_list: 声明 va_list 变量

va_start: 初始化刚才声明的 va_list 变量

va_arg: 获取 va_list 中下一个变量

va_end: 清理 va_list

参考:......