Skip to content

Instantly share code, notes, and snippets.

View mbbroberg's full-sized avatar
:dependabot:
Exploring agents as I look for my next adventure

Matthew Broberg mbbroberg

:dependabot:
Exploring agents as I look for my next adventure
View GitHub Profile
@mbbroberg
mbbroberg / bootstrap.sh
Created June 19, 2017 15:18
Getting a sufficient dev environment on Ubuntu 17.04
#!/bin/bash
export GITHUB_USER=mbbroberg
sudo apt-get update -y
# Awesome packaging for IDE + languages
# https://wiki.ubuntu.com/ubuntu-make
sudo apt install ubuntu-make
# install the latest Go without much hassle
$ docker-compose ps
Name Command State Ports
----------------------------------------------------------------------------------------------------------
exampleconf_elasticsearch_1 /docker-entrypoint.sh elas ... Up 0.0.0.0:9200->9200/tcp, 9300/tcp
exampleconf_kibana-ro_1 /docker-entrypoint.sh kibana Up 0.0.0.0:8091->5601/tcp
exampleconf_kibana_1 /docker-entrypoint.sh kibana Up 0.0.0.0:8081->5601/tcp
exampleconf_mariadb_1 docker-entrypoint.sh mysqld Up 0.0.0.0:3306->3306/tcp
exampleconf_mordred_1 /bin/sh -c ${DEPLOY_USER_D ... Exit 127
```
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