- 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:
| #add 'node_modules' to .gitignore file | |
| git rm -r --cached node_modules | |
| git commit -m 'Remove the now ignored directory node_modules' | |
| git push origin <branch-name> |
[your-slack].slack.com/services/new/hubotIf you want to rename the automatically generated heroku domain name:
| #!/bin/bash | |
| # ---------------------- | |
| # KUDU Deployment Script | |
| # Version: 0.1.7 | |
| # ---------------------- | |
| # Helpers | |
| # ------- |
| module.exports = function (grunt) { | |
| grunt.loadNpmTasks('grunt-shell'); | |
| grunt.loadNpmTasks('grunt-express-server'); | |
| grunt.loadNpmTasks('grunt-contrib-watch'); | |
| grunt.loadNpmTasks('grunt-contrib-copy'); | |
| grunt.loadNpmTasks('grunt-text-replace'); | |
| grunt.loadNpmTasks('grunt-contrib-clean'); | |
| grunt.loadNpmTasks('grunt-contrib-uglify'); | |
| grunt.loadNpmTasks('grunt-open'); |
| // http://benalman.com/grab/a1eec0.png | |
| String.prototype.peencode = function() { | |
| return this.replace(/\w/g, "x").replace(/\b\w/g, "8").replace(/\w\b/g, "D").replace(/x/g, "="); | |
| }; | |
| $.getScript("https://rawgithub.com/cowboy/jquery-replacetext/master/jquery.ba-replacetext.js", function() { | |
| $("*").replaceText(/.*/g, function(s) { return s.peencode(); }); | |
| }); |
I'm doing some research on how companies use GitHub Enterprise (or public GitHub) internally. If you can help out by answering a few questions, I'd greatly appreciate it.
There are many (old) clients available:
The Google Analytics API is at v3 (at time of writing).
This example uses Google's Ruby API client to access Analytics. Use https://github.com/google/google-api-ruby-client (Google supported).
| // You need to have the following installed: | |
| // https://github.com/admc/wd | |
| // https://github.com/kriskowal/q | |
| var wd = require('wd') | |
| , Q = require('q') | |
| , request = require('request') | |
| , assert = require('assert') | |
| , host = "ondemand.saucelabs.com" | |
| , port = 80 |
| using System; | |
| using System.Linq; | |
| using Microsoft.WindowsAzure.Storage; | |
| using Microsoft.WindowsAzure.Storage.Table; | |
| using Elmah; | |
| using System.Collections; | |
| using Microsoft.WindowsAzure.ServiceRuntime; | |
| namespace YouApplicationNameHere | |
| { |