Use node-inspector to debug hubot!
sudo npm install -g node-inspector
coffee --nodejs --debug $(which hubot)
Use node-inspector to debug hubot!
sudo npm install -g node-inspector
coffee --nodejs --debug $(which hubot)
var fs = require('fs'); | |
var rfs = fs.readFileSync; | |
var wfs = fs.writeFileSync; | |
var path = require('path'); | |
var yaml = require('js-yaml'); | |
var inquirer = require('inquirer'); | |
var program = require('commander'); | |
var version = require('./package.json').version; | |
program |
# | |
# Copyright 2012 Mortar Data Inc. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
direct discussion about administrative action away from the main channel and into #reddit-diabetes-ops
to minimise disruption. our -ops
channel is the place where users should come to ask for our help. examples:
# Description: | |
# Anyone can have voice or op | |
# | |
# Commands: | |
# hubot make me an op | |
# hubot make <name> an op | |
# hubot give me voice | |
# hubot give <name> voice | |
module.exports = (robot) -> |
{ | |
"chef_type": "environment", | |
"cookbook_versions": {}, | |
"default_attributes": { | |
}, | |
"description": "The 1+N environment", | |
"json_class": "Chef::Environment", | |
"name": "1+n environment", | |
"override_attributes": { | |
"openstack": { |
#!/bin/bash | |
# collectd plugin to monitor passenger | |
# has better memory-requirement than a ruby script | |
# TODO: try writing it in c - if it makes a difference | |
HOSTNAME=`hostname -s` | |
PASSENGER_STATUS="/usr/local/bin/passenger-status" | |
PASSENGER_MEMORY_STATS="/usr/local/bin/passenger-memory-stats" | |
INTERVAL="${COLLECTD_INTERVAL:-10}" | |
PLUGIN_NAME="passenger_status" |
This was a bit of a trick to get set up, so here it is for anyone who comes across it in search results.
hear
or respond
in the buffer, and might crash it again.network
name.# Usage: | |
# 1. Drop this file into lib/capistrano/submodule_strategy.rb | |
# 2. Add the following to your Capfile: | |
# require 'capistrano/git' | |
# require './lib/capistrano/submodule_strategy' | |
# 3. Add the following to your config/deploy.rb | |
# set :git_strategy, SubmoduleStrategy | |
# 4. Add .capignore file and list each file or directory to exclude from deployment on a separate line. Example: | |
# .capignore | |
# lib |