Skip to content

Instantly share code, notes, and snippets.

jwalton /
Last active December 20, 2015 13:38
Generate a platform-specific tarball name
# Print usage instructions.
printUsage() {
cat <<END
usage: `basename $0` [-hv] [-s version] [-p prefix]
prefix - The filename prefix to use in generating the tarball name.
version - The version number to use in generating the tarball name.
jwalton / Github Milestone Dashing
Last active July 30, 2020 23:17
Dashing Widget to Display Next Git Milestone

This will show your next GitHub milestone as a Dashing widget. Built on top of the Text widget.

To use:

  • Add the following to your gemfile:

  •   gem 'rest-client'
  • Replace the git_token, git_owner, and git_project in git-milestone.rb as appropriate.

jwalton /
Created September 16, 2013 01:55
Demonstration of mongoose streaming + longjohn causing sadness

To reproduce:

  • Copy the files below
  • npm install
  • ./node_modules/.bin/coffee

Set "repoProblem" to true to make the problem happen, and to false to make the app run WAY faster and not run out of memory. :)

jwalton /
Last active July 30, 2021 02:35
Rickshaw Graph is a drop in replacement for Dashing's graph

Graphing Widget

The graphing widget shows graphs using the Rickshaw graphing library. The names of data fields should be (vaguely) familiar if you've used Rickshaw before.

It's recommended that you replace the /assets/javascripts/rickshaw.min.js from your dashboard with the latest from here.

Supported HTML data fields

jwalton / Dashing
Last active October 10, 2019 04:47
EC2 CloudWatch stats for Dashing

Get EC2 CloudWatch stats and graph them in Dashing.

jwalton /
Last active October 13, 2022 07:03
Remote-reload widget for Dashing

So, you made a change to your dashboard, and now you have to run all over the building, plugging in a keyboard, and reloading the dashboard on the various TVs in your office. What if you could reload all the dashboard from the comfort of your desk?

Add this widget to the very bottom of your dashboard, after the "gridster" div:

<div class="gridster">
    <li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
      <div data-view="Image" data-image="/benbria/loop.png" style="background-color:#666766"></div>
jwalton /
Last active March 27, 2020 10:28 — forked from james/
Pingdom widget for Dashing


Simple Dashing widget (and associated job) to display Pingdom checks.



Add it to dashing's gemfile:

jwalton /
Last active December 5, 2016 08:12 — forked from chelsea/


Dashing widget to display a random cute picture from

The display of the widget is heavily based on the Image widget, however it does not prepend the src with 'assets' which allows for external images.


You can set a placeholder image in the event that reddit is down, or otherwise unresponse. This is set at the top of random_aww.rb as follows:

jwalton / OC Transpo for
Last active March 26, 2019 19:24
OC Transo widget for Dashing

Fetches times for the next buses at a given OC Transpo stop.

Add the following to your gemspec:

gem 'octranspo_fetch', '>= 0.0.4'

Screen Shot

Then configure the constants at the top of oc_transpo.rb.

jwalton /
Last active October 13, 2022 07:03
CSS3 Transitions for Dashing Dashboards

Flying Widgets adds CSS3 transitions to your dashboard, allowing you to cycle through multiple widget sets on a single TV without page reloads, using stylish CSS3 transitions. You can even still re-order your widgets and save their locations!

Note that sinatra-cyclist is a potential alternative if the machine you use to display your dashboards is lacking in graphics horsepower.

To use, put this file in assets/javascripts/ Then find this line in

    $('.gridster ul:first').gridster