费了好大劲终于搞定了让ZBS支持打开GBK文件了。记录下过程:看源码发现ZBS打开文件时会调用src\editor\commands.lua中的LoadFile函数,代码如下:1 local file_text = FileRead(filePath)2 if file_text then3 ...
分类:
其他好文 时间:
2014-12-04 19:40:18
阅读次数:
146
收集vmware的日志方法:登录VMware的命令行,用root用户执行vm-support命令,系统会提示输入存储位置。建议在/tmp下运行,生成的文件格式为esx-{date&time}.{PID}.tgz解压文件后在/commands/swfw.sh.txt这个文件里可以看服务器硬件的固件和驱动版本。
分类:
系统相关 时间:
2014-12-04 15:52:50
阅读次数:
580
Below is a table of GDB commands with the LLDB counterparts. The built in GDB-compatibility aliases in LLDB are also listed. The full lldb command nam...
分类:
数据库 时间:
2014-12-03 19:04:07
阅读次数:
323
awk是一个强大的文本分析工具,相对于grep的查找,sed的编辑,awk在其对数据分析并生成报告时,显得尤为强大。简单来说awk就是把文件逐行的读入,以空格为默认分隔符将每行切片,切开的部分再进行各种分析处理。调用AWK1.命令行方式awk[-Ffield-separator]‘commands‘input-file..
分类:
其他好文 时间:
2014-12-03 02:00:59
阅读次数:
156
event types: total readLock writeLock queries getmore insert update remove commands 你可以使用下面命令: db.adminCommand("top") use?admin
db.runCommand(?{?top:?1?}?) ?output : {
??"tota...
分类:
数据库 时间:
2014-12-02 12:11:11
阅读次数:
254
curl的用法: http://linux.about.com/od/commands/l/blcmdl1_curl.htmDER格式的cert转换为PEM格式(curl只接受PEM格式): openssl x509 -inform der -in cert.cer -out cert.pemc.....
分类:
Web程序 时间:
2014-12-01 20:42:40
阅读次数:
212
We hear a lot about loops, especiallyforloops. So what, in fact, are they? They’re just pieces of code that repeat the same commands several times, un...
分类:
编程语言 时间:
2014-11-30 18:31:01
阅读次数:
143
1, 确认是胖AP后,你可以给它的interface bri 0配个IP地址,然后IE打开登这个IP地址就可以了。
Cisco AP Commands for AP1262N-K-9
>enable
#config
#interface bVI 1
#ip address 192.168.1.1 255.255.255.0
#no shut
#ip dhcp pool ap-...
分类:
系统相关 时间:
2014-11-30 08:13:38
阅读次数:
285
1.进入hbase shell
hadoop@namenode:~/hbase-0.98.8-hadoop1/conf$ hbase shell
HBase Shell; enter 'help' for list of supported commands.
Type "exit" to leave the HBase Shell
Version 0.98.8-hadoop1, r6cf...
分类:
系统相关 时间:
2014-11-30 00:43:05
阅读次数:
278
我们这次讲的是利用commands模块执行Linux shell命令,当我们用Python写运维脚本时,经常需要执行linux shell的命令,Python中的commands模块专门用于调用Linux shell命令,并返回状态和结果,下面是commands模块的3个主要函数:1.comman....
分类:
编程语言 时间:
2014-11-29 06:43:36
阅读次数:
189