Skip to content

Instantly share code, notes, and snippets.

View netconstructor's full-sized avatar
💭
pushing pixels

Christian Hochfilzer netconstructor

💭
pushing pixels
View GitHub Profile

Description

Dashing widget to display a bunch of current and coming-up Google Calendar events.

The widget shows only one event and is based on the text-widget which is default in the Dashing installation. The time is displayed as humand-readable time string with the help of MomentJS.

A Dashing job fetches the events of a given public or private calendar url, orders events to match starting time and sends the data to the dashboard. A certain offset can be set for each calendar widget so that it will show the first (data-pre="0"), the second (data-pre="1") or any other following event. For each calendar you'll have to define a name, so that you might assign custom background colors for events of each calendar.

While the main job is called in larger intervalls, there is a second job to be run every minute or so, which kicks out already finished events. In that way processing load on the client (dashboard)

Setup

Put the loadavg1min.rb to jobs/loadavg1min.rb.

Add the code from loadavg1min.erb to the desired dashboard.

Preview

Set Up

You will need Sija's version of the garb gem, so add this line to your Gemfile (you will need git installed for this):

gem 'garb', :git => 'git://github.com/Sija/garb.git'

Then run the gem bundler: bundle install

Set your google username

Description

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

##Dependencies

pingdom-client

Add it to dashing's gemfile:

##Description Simple Dashing widget (and associated job) to display RSS feeds. Based on Iaian Mitchell's News widget.

##Screenshot

##Dependencies nokogiri

htmlentities

#! /bin/sh
# ------------------------------------------------------------------------------
# SOME INFOS : fairly standard (debian) init script.
# Note that node doesn't create a PID file (hence --make-pidfile)
# has to be run in the background (hence --background)
# and NOT as root (hence --chuid)
#
# MORE INFOS : INIT SCRIPT http://www.debian.org/doc/debian-policy/ch-opersys.html#s-sysvinit
# INIT-INFO RULES http://wiki.debian.org/LSBInitScripts
# INSTALL/REMOVE http://www.debian-administration.org/articles/28
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head><title id="maintitle">Document Viewer</title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<link href="css/document-cloud.css" media="all" rel="stylesheet" type="text/css">
<!--
Customized document viewer for use with DocumentCloud, at http://documentcloud.org.
@james
james / REAMDE.md
Last active November 16, 2016 18:30
Pingdom Dashing Widget

Description

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

##Dependencies

pingdom-client

Add it to dashing's gemfile:

@pablohoffman
pablohoffman / gist:5593794
Created May 16, 2013 18:13
Scrapy benchmark on Scrapy Cloud dedicated servers
2013-05-16 18:10:54+0000 [scrapy] INFO: Scrapy 0.17.0 started (bot: scrapybot)
2013-05-16 18:10:54+0000 [follow] INFO: Spider opened
2013-05-16 18:10:54+0000 [follow] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 items (at 0 items/min)
2013-05-16 18:10:55+0000 [follow] INFO: Crawled 30 pages (at 1800 pages/min), scraped 0 items (at 0 items/min)
2013-05-16 18:10:56+0000 [follow] INFO: Crawled 63 pages (at 1980 pages/min), scraped 0 items (at 0 items/min)
2013-05-16 18:10:57+0000 [follow] INFO: Crawled 90 pages (at 1620 pages/min), scraped 0 items (at 0 items/min)
2013-05-16 18:10:58+0000 [follow] INFO: Crawled 117 pages (at 1620 pages/min), scraped 0 items (at 0 items/min)
2013-05-16 18:10:59+0000 [follow] INFO: Crawled 143 pages (at 1560 pages/min), scraped 0 items (at 0 items/min)
2013-05-16 18:11:00+0000 [follow] INFO: Crawled 174 pages (at 1860 pages/min), scraped 0 items (at 0 items/min)
2013-05-16 18:11:01+0000 [follow] INFO: Crawled 201 pages (at 1620 pages/min), scraped 0 items (at 0 items/min)
@petehamilton
petehamilton / README.md
Last active July 8, 2021 09:50
Circle CI Build Status widget for Dashing (Single Builds)

Description

Dashing widget to show the build status of a CircleCI project.

Usage

  • Get a Circle API Token from your Account Dashboard and set it in your environment as CIRCLE_CI_AUTH_TOKEN
  • Add the httparty to your Gemfile and run bundle install

Then: