自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 资源 (4)
  • 收藏
  • 关注

原创 grep

grep "$1" -rn ./ --exclude-dir=.git --exclude-dir=.repo --color=auto

2013-04-16 18:05:51 725

原创 vim 空格和换行的删除和替换

%s/\s//g%s/\r//g%s/\n//g把一个很长的一行按空格分为多行:%s/ +/\r/g简单解释一下:%s :在整个文件范围查找替换/ :分隔符+ :匹配空格,其中“ ”表示空格,+表示重复1次或多次,加在一起表示一个或多个空格。/r :换行符/g :全局替换删除文章中的空行:g

2013-04-16 14:52:59 82724 1

原创 些脚本的时,注意事项

1.首先要source ~/.bashrc2.注意环境变量#!/bin/bashsource /home/mazi/.bashrcPath="/home/mazi/source/$1/F3"repoPath="/home/mazi/bin/repo"cd "$Path"$repoPath forall -c 'git checkout -f;git clean -fd'$r

2013-04-15 17:45:25 816

转载 debug_log

/* adb debug_log */static int proximity_cdc_dbg_func_log = 0; /* log : Init = OFF */static int proximity_cdc_dbg_func_fin_log = 0; /* log : Init = OFF */static int proximity_cdc_dbg_de

2013-04-10 16:38:31 2814

原创 看cpu个数

grep -c 'processor' /proc/cpuinfo

2013-04-10 14:06:30 574

原创 pirntf 和路径转换问题.遗留

printf("%d, %d\n", a, b);C/C++都一致的,即都是先运算b,b入栈(存储进缓冲区),运算a,a入栈(存储进缓冲区) 输出(显示)时,a先出栈(a缓冲区被刷新),b出栈(b缓冲区被刷新)#include #include int main(int argc, const char *argv[]){ /* *char p[] = "a/b/c/d";

2013-04-07 18:30:52 834

转载 android之init进程-uevent

Init是linux kernel启动的第一个进程,理解init,对熟悉android系统非常重要。   Android的每个目录下面都有一个非常重要的文件Android.mk,负责编译该目录下面的代码。   System/core/init/android.mk[cpp] view plaincopy   LOCAL_FOR

2013-04-01 15:35:25 655

转载 Linux命令basename,dirname

此函数是获得directory中的basename, 比如basename(“android/system/core"),返回的是"core" 37 basename(const char*  path) 38 { 39     static char*  bname = NULL; 40     int           ret; 41 42

2013-04-01 15:23:41 859

auto_login_ssh.tar.gz

auto_login_ssh.tar.gz

2013-04-10

linux_scm的command

linux_scm的command

2013-04-10

linux_command

command for linux and android this is my teacher,give me

2013-03-29

busybox_android

busybox busybox_android 编译好的

2013-03-29

空空如也

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

TA关注的人

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