Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
import subprocess
import urllib2, urllib
import json
import os
import sys
VER = {}
APIKEY = '<KEY>'
LIBRENMS = 'http://<HOST>/api/v0/devices'
#!/platform/python/bin/python
import datetime
from dateutil.parser import parse as parse_date
import sys
import cachetclient.cachet as cachet
import json
ENDPOINT = 'http://status/api/v1'
API_TOKEN = '<%= @cachethq_key %>'
<?php
/*
* Facter (Puppet) plugin for racktables 0.20.1 (and probably newer)
*
* This file is both a web GUI and REST webservice for auto create and update machines based on facter (puppet) files.
*
* REST example:
* curl -F "userfile=@/root/facter.txt" -u username:password "http://racktables/index.php?module=redirect&page=depot&tab=facter&op=Update"
*
* Usage instructions:
#!/bin/sh
# Warranty request script for Dell PCs
# Written by Adam Nielsen <adam.nielsen@uq.edu.au>
# This code is in the public domain, and is supplied with no warranty.
#
# This script uses Dell's web service to retrieve the most distant warranty expiration
# date for a given machine, as identified by its service tag. It requires curl and awk.
# It doesn't parse the WSDL or anything nice like that, it just sends a precomposed
# request to the server and extracts the relevant info from the response.
@djtecha
djtecha / kibana.json
Last active August 29, 2015 14:13 — forked from untergeek/kibana.json
{
"title": "Collectd Metrics",
"services": {
"query": {
"list": {
"0": {
"query": "plugin:\"load\"",
"alias": "Load",
"color": "#7EB26D",
"id": 0,