Skip to content

Instantly share code, notes, and snippets.

@jwalton
jwalton / tarball-name.sh
Last active December 20, 2015 13:38
Generate a platform-specific tarball name
#!/bin/bash
# Print usage instructions.
printUsage() {
cat <<END
usage: `basename $0` [-hv] [-s version] [-p prefix]
where:
prefix - The filename prefix to use in generating the tarball name.
version - The version number to use in generating the tarball name.
@jwalton
jwalton / Github Milestone Dashing Widget.md
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
jwalton / README.md
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 app.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
jwalton / RickshawGraph.md
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
jwalton / Dashing EC2.md
Last active October 10, 2019 04:47
EC2 CloudWatch stats for Dashing

Get EC2 CloudWatch stats and graph them in Dashing.

@jwalton
jwalton / README.md
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">
  <ul>
    <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>
    </li>
@jwalton
jwalton / REAMDE.md
Last active March 27, 2020 10:28 — forked from james/REAMDE.md
Pingdom widget for Dashing

Description

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

##Dependencies

rest-client

Add it to dashing's gemfile:

@jwalton
jwalton / README.md
Last active December 5, 2016 08:12 — forked from chelsea/README.md

Description

Dashing widget to display a random cute picture from http://reddit.com/r/aww

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.

Settings

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
jwalton / OC Transpo for Dashing.md
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
jwalton / FlyingWidgets.md
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/cycleDashboard.coffee. Then find this line in application.coffee:

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