Skip to content

Instantly share code, notes, and snippets.

View mbbroberg's full-sized avatar
:octocat:
Mostly in enterprise github lately

Matthew Broberg mbbroberg

:octocat:
Mostly in enterprise github lately
View GitHub Profile
VAGRANT_LOG=info vagrant up
INFO global: Vagrant version: 1.9.5
INFO global: Ruby version: 2.2.5
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_LOG="info"
INFO global: VAGRANT_OLD_ENV_rvm_ruby_file=""
INFO global: VAGRANT_OLD_ENV___CF_USER_TEXT_ENCODING="0x1F6:0x0:0x0"
INFO global: VAGRANT_OLD_ENV_rvm_prefix="/Users/mjbrende"
INFO global: VAGRANT_OLD_ENV_TMPDIR="/var/folders/2j/q3vl1w011yn0w4j7294btg280000gp/T/"
INFO global: VAGRANT_OLD_ENV_LC_ALL="en_US.UTF-8"

Keybase proof

I hereby claim:

  • I am mbbroberg on github.
  • I am mbbroberg (https://keybase.io/mbbroberg) on keybase.
  • I have a public key ASAm1D1-tbmIRzaTwk111nHSd9F6ZmLezgJxlaVf1YNtuAo

To claim this, I am signing this object:

@mbbroberg
mbbroberg / err.log
Created January 29, 2017 01:53
Lita error on startup. Running Redis using `docker run --network="host" redis`
lita start
[2017-01-29 01:39:50 UTC] WARN: Struct-style access of config.redis is deprecated and will be removed in Lita 5.0. config.redis is now a hash.
[2017-01-29 01:39:50 UTC] WARN: Struct-style access of config.redis is deprecated and will be removed in Lita 5.0. config.redis is now a hash.
[2017-01-29 01:39:50 UTC] FATAL: Lita could not connect to Redis. The exception was:
Error connecting to Redis on 127.0.0.1:6379 (Errno::ECONNREFUSED)
Full backtrace:
/Users/mjbrende/.rvm/gems/ruby-2.3.3/gems/redis-3.3.3/lib/redis/client.rb:345:in `rescue in establish_connection'
/Users/mjbrende/.rvm/gems/ruby-2.3.3/gems/redis-3.3.3/lib/redis/client.rb:331:in `establish_connection'
/Users/mjbrende/.rvm/gems/ruby-2.3.3/gems/redis-3.3.3/lib/redis/client.rb:101:in `block in connect'
/Users/mjbrende/.rvm/gems/ruby-2.3.3/gems/redis-3.3.3/lib/redis/client.rb:293:in `with_reconnect'
@mbbroberg
mbbroberg / curling
Last active January 3, 2017 21:29
curl to post on Slack with linkify-ing on
curl -X POST --data-urlencode 'payload={"channel": "#commitmukkah", "username": "bubbebot", "as_user": "true", "text": "@channel thank you for a wonderful Commitmukkah! I hope to see you all next year and back in #commitmas-central. Have a wonderful New Year!", "parse": "full"}' https://hooks.slack.com/services/$YOURHOOKIDENTIFIER
@mbbroberg
mbbroberg / publish-to-graphite.json
Created November 21, 2016 21:57
A Snap Task Manifest that collects from all over and publishes to Graphite (not tested)
{
"version": 1,
"schedule": {
"type": "simple",
"interval": "1s"
},
"max-failures": 50,
"workflow": {
"collect": {
"metrics": {
@mbbroberg
mbbroberg / ct.fish
Created August 1, 2016 01:57 — forked from tlockney/ct.fish
function ct
# infer a session name from the current dir and normalize it for a valid tmux session name
set -g session (basename (pwd) | sed 's/[\.\-]/_/g')
tmux attach -t $session; or tmux new-session -s $session
end

about accepting contributions on open source projects. This guide is designed as a TL;DR broken out into three sections:

  1. The issue
  2. The reason it happens
  3. How to improve

I hope this helps you reflect on your contribution processes and improves your community (and its code).

"unfit" patches

@mbbroberg
mbbroberg / psutil-passthru-file.yaml
Last active April 20, 2016 16:55
Annotated task manifest for Snap, the open telemetry framework: https://github.com/intelsdi-x/snap
--- # The Header starts after this line. |
version: 1 # All tasks note a version of the task parser.
schedule: # How frequently should we run this task?
type: "simple" # Simple means run forever at the interval below.
interval: "1s" # Minutes ('m'), seconds ('s') and down to
workflow: # milliseconds ('ms'). We have tests as small
collect: # as 10ms for a small number of statistics.
metrics: # Note: collector caching defaults to 500ms.
/intel/psutil/load/load1: {} # Here are the specific values
/intel/psutil/load/load15: {} # we collect out of the set of
@mbbroberg
mbbroberg / travis.log
Created January 7, 2016 17:06
The command "go get golang.org/x/tools/cmd/vet" failed and exited with 1 during .
Using worker: worker-linux-docker-6fd2a196.prod.travis-ci.org:travis-linux-3
travis_fold:start:system_info
Build system information
Build language: go
Build group: stable
Build dist: precise
Build image provisioning date and time
Thu Feb 5 15:09:33 UTC 2015
Operating System Details
@mbbroberg
mbbroberg / run-snapd.sh
Created January 5, 2016 21:59 — forked from jcooklin/run-snapd.sh
starts a snap tribe, loads plugins and starts a task
#!/bin/bash
typeset -i num
num=6
echo "starting seed"
$SNAP_PATH/bin/snapd --tribe --tribe-port 6000 --tribe-addr 127.0.0.1 --tribe-node-name seed --api-port 8181 -l 1 -t 0 --enable-instrumentation 2>&1 > /tmp/p-seed.out &
echo "starting $num snap agents"
for ((i=1;i<num;i++))
do
sleep .1