I hereby claim:
- I am codemoran on github.
- I am codemoran (https://keybase.io/codemoran) on keybase.
- I have a public key ASCCd3lrwRwtPq3iRmuOFijQD0EFIKLwZxa0PK-3a7xfvgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# Make sure we have the dev tools | |
yum groupinstall "Development Tools" | |
# Just in case you started installing dependencies from yum | |
yum -y remove libnfnetlink | |
# lets put the source code here | |
mkdir -p ~/.src |
// ==UserScript== | |
// @name Add Graphdat to Azure | |
// @description Inserts a Graphdat embedded dashboard into the Azure dashboard | |
// @namespace http://userscripts.org/users/codemoran | |
// @version 0.1 | |
// @include https://manage.windowsazure.com/*Workspaces/VirtualMachineExtension/VirtualMachine* | |
// @run-at document-end | |
// @grant none | |
// ==/UserScript== |
// ==UserScript== | |
// @name Add Graphdat to commando.io | |
// @description Inserts a Graphdat embedded dashboard into the commando.io dashboard | |
// @namespace http://userscripts.org/users/codemoran | |
// @version 0.1 | |
// @include https://*.commando.io/dashboard | |
// @include https://*.commando.io/execute | |
// @run-at document-end | |
// @grant none | |
// ==/UserScript== |
#!/bin/env node | |
var exec = require('child_process').exec; | |
var http = require('http'); | |
var querystring = require('querystring'); | |
var COMMAND_TO_RUN = 'supervisorctl restart graphdat'; | |
var PATH = '/restart-server'; | |
var PORT = 8000; | |
var USERNAME = 'restart'; |
#!/bin/sh | |
## | |
## The graphdat-relay hosts and manages the graphdat plugins. | |
## Batching and sending data to graphdat.com | |
## | |
# chkconfig: 345 85 15 | |
# description: Graphdat Relay Daemon | |
# processname: graphdat-relay | |
# Source init functions |
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: graphdat-relay | |
# Required-Start: $local_fs $remote_fs $network $named | |
# Required-Stop: $local_fs $remote_fs $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: start and stop the graphdat-relay | |
# Description: The graphdat-relay hosts plugins that send data to graphdat.com |
var _dgram = require('dgram'); | |
var _https = require('https'); | |
// How often does the UDP server flush the message queue and send to Graphdat | |
// To keep the graphs flowing in real time, flush every 3s | |
var FLUSH_TIME = 3000; | |
// What port should the server start up on | |
var SERVER_PORT = 8900; |
var _exec = require('child_process').exec; | |
var _https = require('https'); | |
var _os = require('os'); | |
var _options = { | |
method: 'POST', | |
host: 'api.graphdat.com', | |
port: 443, | |
path: '/v1/measurements', | |
auth: '[email protected]:api.896a98bf4f', |
#! /usr/bin/env python | |
import time | |
from wsgiref.simple_server import make_server | |
import graphdat | |
def application(environ, start_response): | |
# get the graphdat timer | |
graphdat = environ['graphdat'] |