This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
git filter-branch --env-filter ' | |
OLD_NAME="oldName" | |
CORRECT_NAME="newName" | |
if [ "$GIT_COMMITTER_NAME" = "$OLD_NAME" ] | |
then | |
export GIT_COMMITTER_NAME="$CORRECT_NAME" | |
# export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL" | |
fi | |
if [ "$GIT_AUTHOR_NAME" = "$OLD_NAME" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 工作流程 | |
### 发布流程: | |
1. 合并代码到master. | |
2. 登录 发布产品登记表, 发给运维, 测试组长. | |
3. 测试通知可以进行发布. | |
4. 使用walle审核发布. | |
### bug发布流程: | |
1. 测试提bug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Node编码规范 | |
## 注释 | |
使用代码注释的目的是用文字说明代码的作用(即为什么要用编写该代码,而不是如何编写),说明何时可能出错和为什么出错。通常在编写代码前进行注释,在要注释的代码前书写注释。 | |
1. 注释可以采用`/*注释内容*/ `和`//注释内容`两种注释符号,涉及到多行注释时采用前者的方式。 | |
2. 对于一行代码的注释可放在前一行及本行上,不允许放在下一行,更不允许在一行语句的中间加入注释。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 阿里oss使用nginx代理https测试报告 | |
### 需求 | |
现苹果app store要求启用https增加app安全, 需要对项目中的阿里oss文件服务,进行https包装 | |
### 方案 | |
因阿里oss本身不支持https | |
所以使用nginx作反向代理, 在nginx层添加https相关配置, 所有请求先通过nginx, 再转发到系统内部逻辑服务器. | |
### 参考资料 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: npm基础命令 | |
date: 2016-08-23 19:07:43 | |
tags: [npm] | |
categories: [npm] | |
--- | |
## 基础命令 | |
**npm install -d** 安装package.json文件中的dependencies, -d显示安装详细信息 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#预约 redis锁处理 | |
## 需求 | |
现 居民预约 同一时间请求, 会导致号源超过限制, 需要限制同一时间内 相同类型预约 请求数量. | |
相关bug: http://120.24.38.201/zentao/bug-view-867.html | |
相关任务: http://120.24.38.201/zentao/task-view-587.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Thrift的安装与使用 | |
### thrift的安装 | |
#### 下载源代码 | |
到官网下载thrift源代码: [官网下载地址](http://thrift.apache.org/download). | |
这里使用git克隆源代码. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##Git操作规范 | |
### 现状 | |
当前正式部署使用git的master分支进行部署, 测试也使用master分支进行测试,有可能导致某些不应该发布的代码发布到正式服, 现启用debug分支, 提供测试服测试使用. | |
###操作流程 | |
1. 新建分支: 对于修复bug, 新功能, 新建新的分支用于bug的修复, 新功能的编写. | |
2. 测试: 在本地进行测试完毕的bug修复, 新功能代码, 要提交到测试服进行测试, 将所在的分支合并的debug分支, 合并后到测试服pull重启程序. | |
3. 正式部署: master分支部署,对于已经在debug分支测试通过的bug, 新功能, 合并相应的分支. 然后进行部署. | |
分支命名规范: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssh 7.3 新特性 | |
``` | |
host local | |
hostname localhost | |
port 22 | |
user ubuntu | |
host target | |
hostname target.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 面试要问的一些问题 | |
### 公司使用的bug收集管理器?redmine,tower,teambition? | |
### 公司任务分发的流程?希望不要说是使用邮件,excel。 | |
### 公司使用的代码版本管理: svn, git?? | |
### 公司的开发流程? 是否先本地调试,在部署到测试服测试,再正式服 |
NewerOlder