Skip to content

Instantly share code, notes, and snippets.

View warmfusion's full-sized avatar

Toby Jackson warmfusion

View GitHub Profile
@warmfusion
warmfusion / tempalte.go
Created June 11, 2015 08:35
sstarcher-help-template - Golang
{{range datacenters}}
{{ range (print "@" . | nodes) }}
{{ . }}
{{end}}
{{end}}
@warmfusion
warmfusion / sensu-event-wrapper.sh
Created May 29, 2015 14:40
Sensu Event Wrapper
#!/bin/bash
#
# Usage: echo 'My Message' | ./sensu-event-wrapper.sh my-event-name
#
NAME=${1:-sensu_event}
SOURCE=$(hostname -f)
# JSON doesnt like newlines, it demands \n - which is suprisingly tricky to do in bash
OUTPUT=$(cat | awk '{printf "%s\\n",$0} END {print ""}' )
@warmfusion
warmfusion / README.md
Last active August 29, 2015 14:22
Creating Ruby packages through FPM - Multi-Module

This project builds GEMs into Debian packages for multiple versions of Ruby and deploys them into the appropriate repositories.

The packages created are suffixed with the rubyversion being built to assist in identifying dependencies.

For example

rubygem-fluentd_0.12.8-9~ruby1.9.3-p194_all.deb
@warmfusion
warmfusion / client.json
Created May 19, 2015 14:55
Example of Redaction in Sensu Commands
{
"client": {
"name": "my.example.com",
"address": "172.25.254.127",
"bind": "127.0.0.1",
"subscriptions": [ ],
"safe_mode": false,
"keepalive": {
"thresholds": {
"warning": 60,
@warmfusion
warmfusion / gist:817e60012e328b81a59c
Created April 28, 2015 13:43
PuppetDB query for compilation failure
[
{
"configuration-version": "1427882811",
"end-time": "2015-04-28T13:22:34.237Z",
"start-time": "2015-04-28T13:22:19.476Z",
"puppet-version": "3.7.3",
"report-format": 4,
"transaction-uuid": "4c3596e6-4a86-471a-97b1-5cbf3f02eebc",
"certname": "my.example.com",
"hash": "b446ab11433c9dde790e9a3d911380a45c70f120",
### Keybase proof
I hereby claim:
* I am warmfusion on github.
* I am warmfusion (https://keybase.io/warmfusion) on keybase.
* I have a public key whose fingerprint is 99FC 863B 36EF 3956 3963 5221 8EBB 61E6 39A1 88AD
To claim this, I am signing this object:
@warmfusion
warmfusion / demo-dataset
Last active August 29, 2015 14:07
neo4j-simple-dataset
name,cardNumber,status,amount,merchant_name
Wynter Crosby,377444255602087,Declined,7.05,Jills Planes
Wynter Crosby,377444255602087,Declined,7.05,Jills Planes
Wynter Crosby,5120936868945131,Authorised,17.05,Tobys Bikes
Wynter Crosby,377444255602087,Authorised,7.05,Jills Planes
Melyssa Carey,5357469226280225,Declined,2.48,Jills Planes
Melyssa Carey,5357469226280225,Authorised,32.80,Tobys Bikes
Melyssa Carey,5357469226280225,Declined,7.23,Daves Trucks
Melyssa Carey,5357469226280225,Declined,38.70,Bobs Cars
Gary Perry,5357469226280225,Authorised,1.13,Daves Trucks
@warmfusion
warmfusion / Gemfile
Created July 28, 2014 21:22
GoogleChart Imgur HipChat Client
source 'https://rubygems.org'
gem 'hipchat'
gem 'imgur-api'
gem 'googlecharts'
@warmfusion
warmfusion / README.md
Last active March 17, 2017 20:58
stash-pull-requests widget for Dashing

Description

Simple Dashing widget (and associated job) to display open pull requests for a specific Project and/or repository from Atlassian Stash

See the example.png below for an idea on how this widget looks on a dashboard.

Dependencies

None

@warmfusion
warmfusion / README.md
Last active December 19, 2015 07:59
Stash Pull Request widget for Dashing which provides two views of open pull requests for all repositories within a given Stash project.

Description

Simple Dashing widget (and associated job) to display open pull requests for a specific Project and/or repository from Atlassian Stash

See the example.png below for an idea on how this widget looks on a dashboard.

Dependencies

None