抓包准备1. 手机要有root权限2. 下载tcpdump http://www.strazzere.com/android/tcpdump3.adb push c:\wherever_you_put\tcpdump/data/local/tcpdump4.adb shell chmod 6755 ...
分类:
移动开发 时间:
2014-06-27 16:54:19
阅读次数:
320
linux中shell变量$#,$@,$0,$1,$2的含义解释:变量说明:$$Shell本身的PID(ProcessID)$!Shell最后运行的后台Process的PID$?最后运行的命令的结束代码(返回值)$-使用Set命令设定的Flag一览$*所有参数列表。如"$*"用「"」括起来的情况、以...
分类:
系统相关 时间:
2014-06-27 16:32:52
阅读次数:
423
打开cmd进入安卓 SDK的'Platform tools'输入'adb shell'suPress 'Allow' on device(必须已经root)chmod 777 /data /data/data /data/data/com.application.package(你的包名 也就是sr...
分类:
移动开发 时间:
2014-06-27 16:15:54
阅读次数:
302
答案1:The shell is a typical Unix program. It reads commands from the standard input and prints something on the standard output. This is simple and goo...
分类:
其他好文 时间:
2014-06-27 16:12:37
阅读次数:
260
我这段时间在用redis,感觉挺方便的,但比较疑惑在选择内存数据库的时候到底什么时候选择redis,什么时候选择memcache,然后就查到下面对应的资料,是来自redis作者的说法(stackoverflow上面)。 You should not care too much about per.....
分类:
其他好文 时间:
2014-06-27 16:02:52
阅读次数:
253
生活在 Bash shell 中,熟记以下快捷键,将极大的提高你的命令行操作效率。编辑命令Ctrl + a :移到命令行首Ctrl + e :移到命令行尾Ctrl + f :按字符前移(右向)Ctrl + b :按字符后移(左向)Alt + f :按单词前移(右向)Alt + b :按单词后移(左向...
分类:
其他好文 时间:
2014-06-27 15:08:30
阅读次数:
139
温馨提示 首先要安装postfix 或者 sendmail 等邮件服务器1.Apache#!/bin/bash#apache.shnc -w2 localhost 80 if[ $? -ne 0 ]then echo "apache is down,please check" | mail us.....
分类:
其他好文 时间:
2014-06-27 15:03:59
阅读次数:
256
在android下面debug,最主要的方式就是用logcat抓log了,我们可能有尝试过使用printf来打印,当然结果是不行的,这里有时间就看了一下android平台下log的flow,在此做个笔记以作记录
我们一般使用ALOGD来打印log,所以这里就跟一下ALOGD的flow
system/core/include/log/log.h
system/core/include/...
分类:
移动开发 时间:
2014-06-27 08:32:39
阅读次数:
548
#!/bin/bashsed-n‘/01/,/02/p‘y.log>01.txtsed-n‘/02/,/03/p‘y.log>02.txtsed-n‘/03/,/04/p‘y.log>03.txt#截取y.log文件中从文字01到02之间的内容到文件01.txt中。下同。这个不是按行截取,而是跟据字的内容来截龋
分类:
其他好文 时间:
2014-06-27 07:01:07
阅读次数:
130
1 #include 2 #include 3 int main() 4 { 5 int a,b; a=b=2; //成功 6 //int a = b = 2;失败 7 printf("%d %d",a,b); 8...
分类:
其他好文 时间:
2014-06-27 00:58:50
阅读次数:
187