Skip to content

Instantly share code, notes, and snippets.

View danhantao's full-sized avatar
🎯
Focusing

Jacob danhantao

🎯
Focusing
  • Jersey
  • 21:12 (UTC -12:00)
View GitHub Profile
sudo ssh -i '/home/xxx/dev/tools/bin/dev.pem' [email protected]
# ssh 用用户名密码登陆
sudo passwd root
vi /etc/ssh/sshd_config
找到 PasswordAuthentication no,把no改成yes
接下来,要重新启动下sshd
/sbin/service sshd restart
# service ssh restart
/etc/init.d/ssh restart
https://github.com/roboguice/roboguice/wiki/CustomBinding
https://github.com/goodow/realtime-android/blob/v0.3.0/src/main/java/com/goodow/realtime/android/RealtimeApplication.java
https://github.com/goodow/drive-android/blob/v0.3.x/res/values/roboguice.xml
https://github.com/roboguice/roboguice
guice注入的三种方式
#http://book.51cto.com/art/200811/97246.htm
#http://dreamzhong.iteye.com/blog/1139484
http://dreamzhong.iteye.com/blog/1141335
1.安装java环境
计算机->属性->高级系统设置->高级->环境变量
JAVA_HOME=C:\\XXX\
PATH=%JAVA_HOME%\bin;
2.验证
CMD:
echo %JAVA_HOME%
echo %PATH%
@danhantao
danhantao / android source
Last active August 29, 2015 14:00
android源码
# http://source.android.com/source/downloading.html
# 4.4.2 http://blog.csdn.net/zeroboundary/article/details/17555183
# android api
# Platform Version API Level
# http://developer.android.com/guide/topics/manifest/uses-sdk-element.html
****************************************************************************************************************************
# 解压sample.tar.xz
@danhantao
danhantao / .travis.yml
Last active August 29, 2015 14:00
自动构建
# http://docs.travis-ci.com/user/build-configuration/
sudo apt-get install ruby
sudo apt-get install ruby-dev
gem -v
sudo gem install rubygems-update
sudo update_rubygems
sudo gem install travis
@danhantao
danhantao / 工作相关
Last active August 29, 2015 14:00
测试语句
播放数据统计:
log = function(message) {
console.log(JSON.stringify(message.body(), null, 2));
window.message = message;
};
bus.registerHandler("sid.drive.player.analytics",
log);
开关机:
log = function(message) {
VIM的运行模式
编辑模式:等待编辑命令输入
插入模式:编辑模式下,输入 i 进入插入模式,插入文本信息
命令模式:在编辑模式下,输入 “:” 进行命令模式
VIM 使用的命令
:q 直接退出vi
:wq 保存后退出vi ,并可以新建文件
:q! 强制退出
@danhantao
danhantao / maven
Last active August 29, 2015 14:00
maven相关的内容
mvn
****************************************************************************************************************************
5.5 依赖范围
5.6 依赖传递
****************************************************************************************************************************
8.4 聚合与继承的关系
8.6 反应堆
****************************************************************************************************************************
14.1.Maven属性
六种:
@danhantao
danhantao / dev
Last active August 29, 2015 14:00
一些环境相关的内容
# connect computer
Usb:
http://developer.android.com/tools/device.html
adb -s emulator-5554 shell
adb connect 192.168.11.21
# lsusb
#Bus 001 Device 008: ID 0bb4:0c02 High Tech Computer Corp.
# eclipse:
@danhantao
danhantao / git
Last active August 29, 2015 14:00
一些git相关的内容
# .gitconfig https://gist.github.com/larrytin/7096087
# git config --global user.name "name"
# git config --global user.email "[email protected]"
# git config --global branch.autosetuprebase always
# git config branch.master.rebase true
# git config --global http.sslVerify false