自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

写代码的小孩

苦逼op 快乐地写代码

  • 博客(12)
  • 资源 (2)
  • 收藏
  • 关注

原创 zabbix mysql 迁移总结

之前的zabbix,item已经达到了27w,nvps达到了3.5K,高峰可以达到5K+,但是手里还有200台机器没有添加,还有若干个模板没有添加。面对如此情况,不得不对zabbix,做点啥了,zabbix的瓶颈在于mysql,首先的要点是mysql,我们的计划是mysql从sas迁移到ssd,顺便把主从同步,partition都做了。2015年4月27日下午决定做这件事,整体流程和大

2015-04-28 15:42:38 5463 5

转载 Golang channels tutorial

原文链接:http://guzalexander.com/2013/12/06/golang-channels-tutorial.htmlgolang channels 入门足矣Golang has built-in instruments for writing concurrent programs. Placing a go statement before a functi

2015-04-25 17:21:05 902

转载 channel in Go's runtime

原文链接:http://studygolang.com/articles/1806?from=timeline&isappinstalled=0那张图是我看明白channel 实现的关键下面是我之前困惑的一段代码,func main() { message := make(chan string) // no buffer count := 3 go f

2015-04-25 17:18:04 1287

转载 Using YUM to install specific MySQL/Percona Server versions

原文地址:http://www.percona.com/blog/2015/01/05/using-yum-to-install-specific-mysqlpercona-server-versions/Sometimes it is desired to use particular software versions in production, and not nece

2015-04-24 09:07:35 747

转载 how to install git 1.8 rpm

It appears that git18 is no longer available from RPMForge, at least in CentOS 6.6. Luckily, I came across the following instructions from a GitLab CentOS recipe:Download PUIAS repo:wget

2015-04-20 13:44:19 5961 1

原创 saltstack grains

The grain interface is some information about the underlying system,it is available for all the Salt module and compountssalt 'some host's hostname' grains.ls # to list all the grains in the salt mi

2015-04-19 00:25:21 903

原创 saltstack cheatsheet summary (key && compound matcher)

Salt key management Listing all Salt key registration requests1.salt-key -LAccepting all Salt key requests:1.salt-key -AAccepting a single Salt key request, where minion_id is the name of th

2015-04-18 23:44:52 847

原创 Python __missing__

According to the python documentation:If a subclass of dict defines a method __missing__(), if the key key is not present, the d[key] operation calls that method with the key key as argument. The

2015-04-16 10:55:00 3687

转载 Python的Descriptor在Django中的使用

这篇通过Django源码中的cached_property来看下Python中一个很重要的概念——Descriptor(描述器)的使用。想必通过实际代码来看能让人对其用法更有体会。什么是Descriptor?Descriptor是Python中定义的一个协议,协议的内容是只要你定义的这个类(对象)具有: __get__, __set__, __delete__ 方法中的任意一个

2015-04-15 21:09:19 1461

转载 在 Python 中实现 Ruby 的 Open Class 和特异方法

原文抄袭自 https://blog.tonyseek.com/post/open-class-in-python/Ruby 中的 OpenClass 是个非常方便的特性,我们可以扩充一个已有的类,往里面添加方法。甚至还能脱离类,向实例中添加该实例独有的方法,称为“特异方法”。这种做法的前提是语言具有足够的动态特性,能够运行时更改语言结构,所谓“ 元编程 ”(Meta-Prog

2015-04-15 10:05:00 956

转载 How to Get a List of Class Attributes in Python

The other day, I was trying to figure out if there was an easy way to grab a class’s defined attributes (AKA “instance variables”). The reason was that we were using the attributes we created to match

2015-04-06 17:36:59 801

原创 Python Built-in Functions

Difference Between __init__ and __call____init__ would be treated as Constructor where as __call__ methods can be called with objects any number of times. Both __init__ and __call__ functions do tak

2015-04-03 14:47:03 748

Effective C++ 第2版(中文版).pdf

很好的c++资料,高清带书签哦。程序中程序中

2012-09-14

面向对象设计

一本很好的c++面向对象模型设计的书,高清带书签

2012-09-14

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除