作者: ryan

98 篇文章

go beginner
go变量声明与C语言的不同: go变量声明引入var关键字可以一次同时声明多个变量 var myvar1, myvar2, myvar3 int OR var ( myvar1 int myvar2 string ) 变量类型声明与C类似,类型关键字在变量后面且没分号结束,C语言类型关键字在变量前面且以分号结束 go: var myvar int …
How to setup rabbitmq cluster in kubernetes
There are multiple projects aims to implement this, here we will use the official one. This post mainly focus on the pitfalls while apply the official autocluster plugin. Pref…
Python framework for c10k
C10k problem How to configure operating systems and write code to support thousands of clients is what we called C10k problem Candidates: Django It is a high-level Python Web …
MySQL 5.7 ERROR 1045 (28000) Access denied
The reason is MySQL v 5.7 or higher generates a temporary random password after installation and stored that in mysql error log file, located at /var/log/mysqld.log for an ins…
How to add 3rd party python packages or modules
类似于sosreport之类的module可以从/usr/lib//site-packages/直接导入并加以使用 e.g: import sos.policyredhat, 但是自己创建的package直接放入/usr/lib//site-packages/ 并不能直接import,提示module不存在错误。要使第三方创建的模块被其他pytho…
梅林固件设置
最近败了一个Netgear6900,原装Netgear固件运行很稳定,但可玩性不高,可惜了这个双核1G的CPU和256M内存,忍耐不住刷了梅林固件。基于华硕和网件基本采用同一个解决方案开发,使用网件的硬件稍作修改用华硕的固件也可以刷,基于第三方定制开发的华硕固件,叫做梅林(Merlin)。 原始的梅林固件来自于:A custom firmware …