Skip to content

Instantly share code, notes, and snippets.

View visibilityspots's full-sized avatar

Jan Collijs visibilityspots

View GitHub Profile

Keybase proof

I hereby claim:

  • I am visibilityspots on github.
  • I am visibilityspots (https://keybase.io/visibilityspots) on keybase.
  • I have a public key ASDhxiT3XgyICf2ZgB3ophj05LuIS8wOig74zGNqeS2fuQo

To claim this, I am signing this object:

@visibilityspots
visibilityspots / libraryh3lp-dashing-widget.md
Last active August 29, 2015 14:04
A dashing widget to show the chat availability from libraryh3lp.com

Libraryh3lp widget

One of the customers I worked for is using a chat service for libraries, https://us.libraryh3lp.com. Since we wanted to see that the covering group is available during working hours I created a dahing tile for it based on the presence-api: https://docs.libraryh3lp.com/presence-api.html.

In the example there are 2 users both member of a common chat group. If one of them is online the group is online. If both are offline the group will be offline. The background color of the tile is based on the availability of the group.

In the dashing root directory you need to add those gems to the Gemfile:

gem 'net/https'

@visibilityspots
visibilityspots / bacula-dashing-widget.md
Last active February 9, 2016 07:36
A dashing widget to show the state of your bacula backups

Bacula widget

We have a dashing dashboard to give an overview of our infrastructure. Icinga, jenkins, foreman, web-services, traffic times.. Almost everything is been captured.. Only for bacula I could not find an existing one.

So I decided to write one myself. The first idea was to scrape the bacula-web overview site and use that output in a dashing screen. Mainly because a missing API for bacula or bacula-web. Nevertheless scraping a website isn't the best idea if that layout changes your quite fucked up..

screenshot

After googling around I came across an exampling of using mysql with ruby. So I decided to use this approach to have an overview of the bacula state since we configured bacula using a mysql database.

@visibilityspots
visibilityspots / foursquare-dashing-widget.md
Last active August 29, 2015 14:01
Foursquare checked in people widget for dashing using the rubygem foursquare2

Foursquare widget

The sandwich bar I buy my lunch is in the center of Ghent. Where a lot of students 'study' and need some lunch too. Because I don't want to lose time waiting in a queue I had the wonderful idea of setting up a dashing widget which show me how many people checked in on foursquare in this popular venue.

I started writing a dashing job using the foursquare ruby wrapper of Matt Mueller (https://github.com/mattmueller/foursquare2).

screenshot

In your dashing root directory you have to add this gem into the Gemfile.