- 一个Commit对应一个修改点(除非是在项目初始阶段或是升级BSP时)。
- 不要随便修改文件的属性。Windows 修改过的文件属性会变成755,上传代码时请注意修改成文件的原属性,可以用git whatchanged 来查看自己commit修改的文件。 缩进格式跟原文件保持一致。
- 不要修改跟提交内容无关的代码。
- 设置GIT使用vim来编辑commit,请不要使用-m参数 (git config –global core.editor vim)。
# defaults for jenkins continuous integration server | |
JENKINS_ARGS="-jnlpUrl http://test.lnc.jp:8080/computer/wock/slave-agent.jnlp" | |
# jenkins home location | |
JENKINS_HOME=/opt/jenkins-slave | |
# location of the jenkins war file | |
JENKINS_WAR=$JENKINS_HOME/slave.jar | |
# pulled in from the init script; makes things easier. | |
NAME=jenkins |
# Start the old vagrant | |
$ vagrant init centos-6.4 | |
$ vagrant up | |
# You should see a message like: | |
# [default] The guest additions on this VM do not match the install version of | |
# VirtualBox! This may cause things such as forwarded ports, shared | |
# folders, and more to not work properly. If any of those things fail on | |
# this machine, please update the guest additions and repackage the | |
# box. |
--- | |
layout: post | |
title: Linux.x64 Oracle安装 | |
date: 2013-09-21 23:51:11 | |
comments: true | |
categories: [error,java,bash,bi,oracle,database,centos,linux] | |
--- | |
## 安装JDK | |
+ 1.直接执行 |
#get root access | |
$su - | |
$ cd /tmp | |
#Remove old Ruby | |
$ yum remove ruby | |
# Install dependencies | |
$ yum groupinstall "Development Tools" | |
$ yum install zlib zlib-devel |
package cache; | |
/** | |
* cache回调接口. | |
*/ | |
public interface CacheCallBack<T> { | |
T loadData(); | |
} |
# play status --secret=aC3NL1k6Zn9XEZbvMO6 | |
~ _ _ | |
~ _ __ | | __ _ _ _| | | |
~ | '_ \| |/ _' | || |_| | |
~ | __/|_|\____|\__ (_) | |
~ |_| |__/ | |
~ | |
~ play! 1.2.4, http://www.playframework.org | |
~ | |
~ Status from http://localhost:9402/@status, |
package util.transaction; | |
import play.Logger; | |
import play.db.jpa.JPA; | |
public class TransactionRetryUtil { | |
private static final int MAX_TRIED_TIMES = 15; | |
public static <T> T run(TransactionCallback<T> callback) { | |
for (int i = 0; i < MAX_TRIED_TIMES; i++) { | |
try { |
public static void syncAmazon(final String sid) { | |
// play status 检查平均耗时 2.5s , 开放线程时间 3s 后回掉 | |
await(new Job<Selling>() { | |
@Override | |
public Selling doJobWithResult() throws Exception { | |
Selling selling = Selling.findById(sid); | |
selling.syncFromAmazon(); | |
return selling; | |
} |