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
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2
mQENBFOuWZQBCACVzA6Go/1rMHnjvgX+4QMCv2gs9r9F0lIXd4+R+rlny5TSAUmN
RhuyQQzW8KzPAUeSbVimqRR5DgjFmJtKMDjg0j9yTTjemhAob8H7z+dBMr1oDYyA
tbKz9bxWDEikFfJl545oNHxwKLdntp3x473VZ4J0/oqQgj+GLb+BDX+QlORwJlCy
ajjKzUhKWRdGOzJ8GX828c+AwwXj+LSZiBsnXWvbcj4I8JINYO9AJJKmHOs7RU7D
vS43rh7cJ8F0aWof/z4wvlQcBziXi2H7gmzV6L83DCfspyxn4Cfz0qHC1X20TKH7
t2110UqjaAWocx5qoZAMS1s/VGqT4wZpQgX7ABEBAAG0KkphY29iIFNtaXRoIDxq
YWNvYi53ZXNsZXkuc21pdGhAZ21haWwuY29tPokBPwQTAQIAKQUCU65ZlAIbAwUJ
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 }