Skip to content

Instantly share code, notes, and snippets.

View zhengzhou's full-sized avatar
😇
996

zhou zhengzhou

😇
996
View GitHub Profile
"===[ Settings ]========================================================
" Autocomplete using Firefox Awesomebar subsystem
set complete=l
" Show completions as you type? '' waits for tab, 'auto' shows them immediately
set wildoptions=''
" Select the longest autocomplete match
set wildmode='list:full'
@zhengzhou
zhengzhou / 51-android.rules
Created May 16, 2014 01:23
Linux下Adb ?? 问题 把附件里面的 51-android.rules. 拷到 /etc/udev/rules.d/ 目录下, 权限改为 644
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTR{idVendor}=="1ebf", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTR{idVendor}=="17ef", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTR{idVendor}=="1782", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTR{idVendor}=="19d2", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTR{idVendor}=="24e3", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTR{idVendor}=="2006", MODE="0666", GROUP="plugdev"
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.4'
}
}
apply plugin: 'android'
@zhengzhou
zhengzhou / checkStyle.xml
Last active February 5, 2021 17:44
基于华为Java编程规范的Eclipse checkStyle.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
<!-- Generated by RHY @will_awoke -->
<module name="Checker">
<property name="charset" value="UTF-8"/>
<property name="severity" value="warning"/>
@zhengzhou
zhengzhou / myCheckStyle.xml
Created May 28, 2014 03:43
自定义java规范CheckStyle
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<!--
This configuration file was written by the eclipse-cs plugin configuration editor
-->
<!--
Checkstyle-Configuration: My_check
Description:
java代码检查规则,使用eclipse插件检查.(插件官方地址 http://eclipse-cs.sourceforge.net/update/)
@zhengzhou
zhengzhou / autoWallpaper.py
Last active August 29, 2015 14:02
ubuntu自动切换壁纸
#!/usr/bin/python
# -*- coding:utf8 -*-
# 修改/usr/share/gnome-background-properties/ubuntu-wallpapers.xml加入如下node: 
# <wallpaper deleted="false">
# <name>bing Community Wallpapers</name>
# <filename>/usr/share/backgrounds/BingWallpapers/bing.xml</filename>
# <options>zoom</options>
# </wallpaper>

============

MAPS

Debug KeyStore

keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android

ADB

@zhengzhou
zhengzhou / hosts
Created September 4, 2014 08:19
etc/hosts
203.208.46.200 dl.google.com
203.208.46.200 dl.l.google.com
203.208.46.200 dl-ssl.google.com
127.0.0.1 fonts.googleapis.com
127.0.0.1 ajax.googleapis.com
@zhengzhou
zhengzhou / rename.gradle
Last active August 29, 2015 14:06
androidStudio 运行时重命名apk
def outPut = "$buildDir/outputs/apk/"
def channel_id = -1000
def buildVariant = '-debug.'
task getChannelId << {
def manifest = new XmlParser().parse("2.1.1/AndroidManifest.xml")
def androidSchemas = new groovy.xml.Namespace("http://schemas.android.com/apk/res/android", 'android')
manifest.application.('meta-data').each{
def nodeName = it.attribute(androidSchemas.name)
if(nodeName.equals('xinyi_id'))
@zhengzhou
zhengzhou / adb_wireless.txt
Created September 27, 2014 15:13
adb wifi调试
su//获取root权限
setprop service.adb.tcp.port 5555//设置监听的端口,端口可以自定义,如5554,5555是默认的
stop adbd//关闭adbd
start adbd//重新启动adbd