- Install Hubot locally
- Install Slack Adapter
- Configure integration on Slack
- Go to
[your-slack].slack.com/services/new/hubot
- Go to
- Deploy to Heroku
If you want to rename the automatically generated heroku domain name:
[your-slack].slack.com/services/new/hubot
If you want to rename the automatically generated heroku domain name:
# Example nginx + git HTTP Smart mode (git-http-backend) + HTTP Authentication + HTTPS redirect | |
# [email protected] - http://jeroen.massar.ch | |
server { | |
listen 192.0.1.1:80; | |
listen [2001:db8::1]:80; | |
# Redirect all non-HTTPS traffic to the HTTPS variant | |
return 301 https://$host$request_uri; | |
} |
/** | |
* User Timing polyfill (http://www.w3.org/TR/user-timing/) | |
* @author RubaXa <[email protected]> | |
*/ | |
(function (window){ | |
var | |
startOffset = Date.now ? Date.now() : +(new Date) | |
, performance = window.performance || {} | |
, _entries = [] |
Git常用备忘.md
引自:http://blogread.cn/it/article/6282?f=sa
配置
git config --global user.name "robbin"
git config --global user.email "[email protected]"
git config --global color.ui true
'use strict'; | |
angular.module('yourApp') | |
.constant('Config', { | |
viewDir: 'views/', | |
API: { | |
useMocks: true, | |
fakeDelay: 2000, | |
protocol: window.location.protocol.split(':')[0], | |
host: window.location.hostname, |
#生成CA密钥 | |
ipsec pki --gen --outform pem > caKey.pem | |
#生成CA证书 | |
ipsec pki --self --in caKey.pem --dn "C=US, O=你的组织名字, CN=你的CA名字" --ca --outform pem > caCert.pem | |
#生成服务器密钥 | |
ipsec pki --gen --outform pem > serverKey.pem |
... | |
image/webp webp; | |
... |