Skip to content

Instantly share code, notes, and snippets.

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

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.

@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() {
(("iloveyOuilOveyouiloveyOuilOveyOuiloveyouilOveyouilOveyOuilOv".unpack('B*')[0]<<"011").split(/(.{21})/) - [""]).map { |i| puts(i.split("").join(" ")) }
;';;;;';;;;;;;;;;;;;;;;;;;'';''';;;;;';;;;;;;';;;;;;;;'+++'+###+++#++++'''';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;'';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;';;'+++####+#+++######++'''+'++###+##++'''''''''''''''''''''
';';;;;;;;;;;;;;;;';;;;;;;;'''''''';;;;;;;;;;;;';;;;;';'''''+##+++##++'';;;;;;;;;;;;;;;;;;;';;;;;;;;;;;;;;;;'';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;';;'##+++#++#+#+###+##++'''++##########+''''''''''''''''''''
;;'';;;;;';;;;'';;;;;;';;;;';'';;;;;';;';;;';;';'';';'';;'''+#++'+++'''';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;++++++++++#+++##+++''''+####@#@@####++'''''''''''''''''''
;;';;;;;;;';;;;';;;;;;;;;;;;''';';;';';';''';;;';'';;'';;';;'++'''''''';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;';;';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;'+###++++########++++'++##@@@@@@@@##@#+'''''''''''''''''''
';;;;;;;;'';;;;;;;;;;;'''';;;;''''';'';'''''''';;';;;';;;;;;;;''';;;;'';;';;;;;;';;;;;;;;';;;;';;;;;;;;;;;;;'''';';;;;;;;;;;;;;;;;;;;;;;;;;;;;;'++###+##+######+++'+###@##@##@@@@@@##'''''''''''''''''''
';;;';;;;;;;;;;;;;
hello world this is jacob
I'm working on a Rails app that's designed for research projects. I have what I think the model/database layout should be,
but am having trouble implementing it (thus, I figured there was probably something small, either in implementation or
design, that should be looked at). The overall schema I'm working with is as follows:
User
| -username
| -password
|
\
Project
/* multiplication_a_la_russe.c
* multiplication a la russé
*/
#include <stdio.h>
int main()
{
int op1, op2, total_sum = 0;
require 'spec_helper'
describe Student do
before do
@student = FactoryGirl.create(:student)
end
subject { @student }
@jacobsmith
jacobsmith / gist:7624674
Created November 24, 2013 08:09
.vimrc
set nocompatible
syntax on
filetype on
filetype indent on
set expandtab
set shiftwidth=2
set softtabstop=2
set number
set incsearch