寻觅生命中的那一片浅草......

每月存档 十二月, 2012

zz:Python替换JavaScript:Brython

Brython 设计用于替换网页上的 JavaScript 脚本语言,它使用 Python 来编写脚本,并直接在网页上执行。

<script src="brython.js"></script>
<body onload="brython()">

<script type="text/python">
t = TABLE()
for i in range(10):
    t <= TR(TD(i)+TD(i*i))
doc <= t
</script>

转载自:http://www.oschina.net/p/brython

又一个集中管理工具:chef

和puppet一样,也是用ruby写的,现在都流行DevOPS,chef号称可以让你很容易编写自己的代码。

教程见:http://www.mynameiskate.com/visual-guide-to-chef/

官方wiki:http://wiki.opscode.com/display/chef

加快MySQL备份的还原速度

针对不同的备份有不同的方式

txt
~~~~~~~~~~~~~~~~~~~~~

mysqlimport的速度

mysqlimport支持多线程::

mysqlimport –debug-info –use-threads=2 –local -uroot -pxxxx  logs `find . -name “*.txt”`

单个sql
~~~~~~~~~~~~~~~~~~~~~~~

有一个开源项目:tbdba-restore-mysqldump.pl

地址:https://github.com/orczhou/dba-tool/blob/master/tbdba-restore-mysqldump.pl

2012年十二月
« 11月   2月 »
 12
3456789
10111213141516
17181920212223
24252627282930
31