Skip to content

Instantly share code, notes, and snippets.

View windowfinn's full-sized avatar

Stef windowfinn

  • Scotland
View GitHub Profile
@windowfinn
windowfinn / Readme.md
Last active December 8, 2020 01:18
Dashing Chuck Norris Fact Generator Job

Description

Dashing job to render personalised Chuck Norris based facts into a text widget.

This job utilises the Internet Chuck Norris Database JSON api.

A randomly chosen forename and surname from an array of team members is chosen and passed to the icnd json api, and a Chuck Norris based fact, with the Chuck and the Norris replaced with our teammembers name is returned, and then sent to a dashing widget.

Installation

Put the chuck.rb file into the /jobs directory.

@windowfinn
windowfinn / checkJenkins.sh
Last active March 10, 2019 20:47 — forked from julianchurchill/checkJenkins.sh
A bash script to query a Jenkins server. Use like this: 'checkJenkins.sh <jobname>' and it will query the server with the given job name every 30s. Use like this: 'checkJenkins.sh <jobname> tmux' and it will query the server once and output tmux coloured messages appropriate to display in a tmux status bar. E.g. add this to your .tmux.conf 'set …
#!/bin/bash
CONSOLE_RED="\e[31m"
CONSOLE_GREEN="\e[32m"
CONSOLE_CLEAR="\e[39m"
JENKINS_SERVER=http://my_jenkins_server
JOB=$1
JOB_QUERY=/job/${JOB}
@windowfinn
windowfinn / Readme.md
Last active March 25, 2016 19:13 — forked from mavimo/Readme.md
Dashing Jenkins Widget - a fork that adds html5 audio alerts

Description

Dashing widget to display a Jenkins build status and build progress

This extension adds html5 audio alerts to the generated html dashboard. An alert will be played for each instance of the widget, but only if the state has changed. One sound for success, and one for failure.

This widget is a fork of Marco's work

The widget is based on the meter-widget which is default in the Dashing installation