Author: jpuyy

  • node数据类型

    ➜  ~  node
    > var a = 1;
    undefined
    > typeof a
    'number'
    > var b = {}
    undefined
    > typeof b
    'object'
    > var c = function() {};
    undefined
    > typeof c
    'function'
    > var d = '';
    undefined
    > typeof d
    'string'
    
  • mysqladmin命令

    mysqladmin -u root -p processlist -i 3

    显示正在运行的processlist,-i 3表示每3秒检测一次。

    mysqladmin -u root -p kill 2233

    杀掉上面显示的进程2233

  • mysql清理重复数据

    select object_id from quick.host group by object_id having count(object_id) > 1;

  • R610内存插法

    插4条8G的内存  A1 A2 B1 B2 (两边各两个白色)
    插8条4G的内存 1 4 2 5   |      1   4   2  5
    插8条16G的内存 1 4 2 5   |   1 4 2 5
    R620
    插8条8G内存时            只插白色
    插16条8G内存时           插白色和黑色

     

  • racktables可以实现的功能及bug

     

     

    将非虚拟化的机器标记为虚拟化,在打开/index.php?page=virtual时会报错

    Internal error

    Argument ‘bypass’ of value ‘(NULL)’ is invalid.

    解决方法:没有,将有虚拟化的机器标记为非虚拟化

    不可以对location做log标记,在打开/index.php?page=objectlog时报错

    Missing record

    Object ‘object’#’1’ does not exist

    解决办法:没有,不对location记录log

    /index.php?page=location&tab=log&location_id=1

  • python读取ini

    http://wklken.me/posts/2012/02/19/python-ini-configparser.html