Skip to content

Instantly share code, notes, and snippets.

@jacobsmith
jacobsmith / git checkout fuzzy match
Created October 31, 2016 13:20
Allow fuzzy matching of contiguous letters (i.e. `co mas` would do `git checkout master`)
branch=$( git branch | tr -d '*' | grep $1 )
current_branch() {
echo $(git rev-parse --abbrev-ref HEAD)
}
starting_branch=$(current_branch)
# This function lists all branches with an index (starting at 1)
list_all_branches() {

InstrumentalD provides a great way to monitor auxiliary systems to your primary application. Databases, key-value stores, even Docker statistics, can all be collected and viewed with the Instrumental UI with minimal setup. Want to know what else offers minimal setup and quick turn around time? Heroku! Today we're going to look at getting InstrumentalD to run on a Heroku server and have it pull in statistics from services we may not be able to run the full InstrumentalD daemon on. This lets us still get valuable information about our Heroku Postgres database, 3rd party Redis instances, and our application, all in one convenient place.

TL;DR

Deploy

While that is deploying, create a free dev account (unless you already have an account). Skip the initial walk-through because we will be hooking up to a Heroku InstrumentalD instance.

// styles.js
const styles = {
container: {
width: '100%'
},
header: {
fontSize: '3em',
textAlign: 'left'
},