Skip to content

Instantly share code, notes, and snippets.

View JC1738's full-sized avatar

Jim Castillo JC1738

  • San Francisco, CA
View GitHub Profile

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

<powershell>
#####
#DON'T FORGET TO SET/CHANGE THE USERNAME/PASSWORD BELOW!!!!!!!!!!
#####
$user="opscode"
$password="opscode"
#!/usr/bin/env/ruby
require 'socket'
# AWS API Credentials
AWS_ACCESS_KEY_ID = "your-aws-access-key-id"
AWS_SECRET_ACCESS_KEY = "your-aws-secret-access-key"
# Node details
NODE_NAME = "webserver-01.example.com"
#!/bin/bash
#
# This script installs and configures couchdb on a fresh Amazon Linux AMI instance.
#
# Must be run with root privileges
# Tested with Amazon Linux AMI release 2011.02.1.1 (ami-8c1fece5)
#
export BUILD_DIR="$PWD"
#!/bin/bash
#
# This script installs and configures couchdb on a fresh Amazon Linux AMI instance.
#
# Must be run with root privileges
# Tested with Amazon Linux AMI release 2011.02.1.1 (ami-8c1fece5)
#
export BUILD_DIR="$PWD"
#!/bin/bash
#
# This script installs and configures couchdb on a fresh Amazon Linux AMI instance.
#
# Must be run with root privileges
# Tested with Amazon Linux AMI release 2011.02.1.1 (ami-8c1fece5)
#
export BUILD_DIR="$PWD"
#!/bin/bash
#
# This script installs and configures couchdb on a fresh Amazon Linux AMI instance.
#
# Must be run with root privileges
# Tested with Amazon Linux AMI release 2011.02.1.1 (ami-8c1fece5)
#
export BUILD_DIR="$PWD"
<script>
echo Dim oXMLHTTP, oStream > GetPE.vbs
echo Set oXMLHTTP = CreateObject("MSXML2.XMLHTTP.3.0") >> GetPE.vbs
echo oXMLHTTP.Open "GET", "http://puppetmaster.local/boot/pe.msi", False >> GetPE.vbs
echo oXMLHTTP.Send >> GetPE.vbs
echo If oXMLHTTP.Status = 200 Then >> GetPE.vbs
echo Set oStream = CreateObject("ADODB.Stream") >> GetPE.vbs
echo oStream.Open >> GetPE.vbs
echo oStream.Type = 1 >> GetPE.vbs
echo oStream.Write oXMLHTTP.responseBody >> GetPE.vbs