Skip to content

Instantly share code, notes, and snippets.

{
"@context": "https://schema.n1analytics.com/api/monitor/1/system/list",
"offset": 0,
"limit": 300000,
"@list": [
{
"id": 0,
"spanTsUS": 1563069429900611,
"spanID": 1,
"parentID": 0,

Keybase proof

I hereby claim:

  • I am maxott on github.
  • I am maxott (https://keybase.io/maxott) on keybase.
  • I have a public key whose fingerprint is B587 95C2 0C10 47F0 4CF5 FC8A 552D 2D06 D882 E048

To claim this, I am signing this object:

@maxott
maxott / try_rete.rb
Created November 12, 2012 11:57 — forked from jackhong/try_rete.rb
Try omf rete
require 'pp'
require 'omf_rete/store'
N = 10
s = OMF::Rete::Store.create 3
(1..N).each do |i|
s.addTuple(["node_#{i}", 'status', (i % 2) == 0 ? 'ok' : 'failure'])
end
@maxott
maxott / test01.rb
Created October 9, 2012 05:03 — forked from jackhong/test01.rb
DSL in OMF 6
# Original test01.rb
defProperty('res1', "unconfigured-node-1", "ID of a node")
defProperty('res2', "unconfigured-node-2", "ID of a node")
defGroup('Actor', property.res1)
onEvent(:ALL_UP) do |event|
wait 3
info "TEST - allGroups"
// Create the map
var map = new google.maps.Map(d3.select("#map").node(), {
zoom : 11,
// center: new google.maps.LatLng(37.3943454817, -122.078649925),
center : new google.maps.LatLng(-33.778291, 151.168184),
mapTypeId : google.maps.MapTypeId.ROADMAP
});
// Load the location data. When the data comes back, create an overlay.
d3.json("destinations2.json", function(data) {
@maxott
maxott / index.html
Created November 17, 2011 20:22 — forked from mbostock/.block
SHowing all unassigned resources in an AM
<!DOCTYPE html>
<html>
<head>
<title>Available Resources</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.6.0s"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.geom.js"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js"></script>
<script type="text/javascript" src="http://documentcloud.github.com/underscore/underscore.js"></script>
<style type="text/css">
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="expires" content="0" />
<title>Line Chart</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.10.0"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.time.js?1.10.0"></script>
<script type="text/javascript" src="http://omf.mytestbed.net/projects/omf/repository/revisions/master/raw/omf-common/ruby/omf-common/web/tab/graph3/js/line_chart3.js"></script>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="expires" content="0" />
<title>Line Chart</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.10.0"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.time.js?1.10.0"></script>
<script type="text/javascript" src="http://omf.mytestbed.net/projects/omf/repository/revisions/master/raw/omf-common/ruby/omf-common/web/tab/graph3/js/line_chart3.js"></script>
@maxott
maxott / test.asciidoc
Last active August 29, 2015 14:19
Testing AsciiDoc

Lightweight Markup Languages

require 'asciidoctor'  # (1)

puts Asciidoctor.convert_file('sample.adoc', :header_footer => true)  # (2)