Skip to content

Instantly share code, notes, and snippets.

@jguice
jguice / README.md
Last active July 2, 2016 08:00
Personal Dashboard POC

These are notes and code snippets for setting up a "personal dashboard". The impetus for this was that I wanted a way to visually monitor ad-hoc things on our servers. If they prove to be useful monitors then the idea is that they get moved into grafana, kibana, etc. where everyone can share them.

Sometimes you just want to run a command on a bunch of servers and graph/display the output in a nice way. :)

knife ssh can be handy for this if you're using chef, but I wanted something with even less overhead/setup.

This POC uses dashing and ansible only so the requirements are:

  1. install dashing (modern ruby, bundler, some gems)
  2. install ansible (pip or provided OS package) and have ssh access to the servers
@jguice
jguice / Rakefile.tmPreferences
Created May 16, 2015 16:58
Rakefile preferences (Textmate/Sublime Text) that will add rake tasks to the symbol list
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Symbol List</string>
<key>scope</key>
<string>source.ruby.rakefile.task</string>
<key>settings</key>
<dict>
@jguice
jguice / Rakefile.tmLanguage
Last active September 28, 2017 00:35
Rakefile language definition file (Textmate/Sublime Text)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>rake</string>
<string>Rakefile</string>
</array>
<key>foldingStartMarker</key>
@jguice
jguice / CustomTestConsole.hidden-tmTheme
Last active October 24, 2015 02:05
Sublime Text 3 RubyTest custom tmTheme file (applies Twilight theme colors to rspec 3 output)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>TestConsoleTheme</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
@jguice
jguice / CustomTestConsole.tmLanguage
Last active October 24, 2015 02:05
Sublime Text 3 RubyTest custom tmLanguage file (allows coloring of more rspec 3 output)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<!-- TODO put most specific matchers first -->
<!-- TODO reorg, cleanup, and comment entries (e.g. which ones are for rspec 3, etc.) -->
<dict>
<key>bundleUUID</key>
<string>72174d10-bb12-11e0-962b-112233445566</string>
<key>name</key>
<string>TestConsole</string>