Robin Bramley rbramley

View blueprints_rdf_graphsail_neo4j.groovy
1 2 3 4 5 6 7 8 9 10
@Grab(group='com.tinkerpop.blueprints', module='blueprints-neo4j-graph', version='2.4.0')
@Grab(group='com.tinkerpop.blueprints', module='blueprints-graph-sail', version='2.4.0')
@Grab(group='org.openrdf.sesame', module='sesame-repository-sail', version='2.7.8')
@Grab(group='org.openrdf.sesame', module='sesame-queryparser-sparql', version='2.7.8')
 
import com.tinkerpop.blueprints.*
import com.tinkerpop.blueprints.oupls.sail.GraphSail
import com.tinkerpop.blueprints.impls.neo4j.Neo4jGraph
 
import info.aduna.iteration.*
View IssueMigrator.groovy
1 2 3 4 5 6 7 8 9 10
/**
* Copying and distribution of this file, with or without modification,
* are permitted in any medium without royalty provided the copyright
* notice and this notice are preserved. This file is offered as-is,
* without any warranty.
*
* Migrate issues from one Googlecode project to another (e.g. if you need to rename).
* Note (line 39): fetch of issues from source project currently limited to 50
*
* See: http://code.google.com/p/support/wiki/IssueTrackerAPI for API details
View walk_and_count.groovy
1 2 3 4 5 6 7 8 9 10
/**
* Copying and distribution of this file, with or without modification,
* are permitted in any medium without royalty provided the copyright
* notice and this notice are preserved. This file is offered as-is,
* without any warranty.
*
* @author Robin Bramley (c) 2012
*
* Groovy script to walk a Freemind node tree and count occurrences of leaf terms.
*/
View CreateSonarPom.groovy
1 2 3 4 5 6 7 8 9 10
/*
* Copyright 2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
View map_counter_bump.groovy
1 2 3 4 5 6 7 8 9 10
/**
* Copying and distribution of this file, with or without modification,
* are permitted in any medium without royalty provided the copyright
* notice and this notice are preserved. This file is offered as-is,
* without any warranty.
*
* @author Robin Bramley (c) 2011
*
* Groovy meta-programming to 'bump' a counter in a map for conciseness.
*/
View DuplicateId_LuceneIndexWalker.groovy
1 2 3 4 5 6 7 8 9 10
/**
* Copying and distribution of this file, with or without modification,
* are permitted in any medium without royalty provided the copyright
* notice and this notice are preserved. This file is offered as-is,
* without any warranty.
*
* @author Robin Bramley (c) 2011
*
* Purpose:
* Of the deletions in an unoptimised Lucene index, how many were
View check_sql_query.groovy
1 2 3 4 5 6 7 8 9 10
/**
* Copying and distribution of this file, with or without modification,
* are permitted in any medium without royalty provided the copyright
* notice and this notice are preserved. This file is offered as-is,
* without any warranty.
*
* Custom SQL check (invoked using check_by_ssh) to ensure app server can query
* the database. Used with Groovy 1.5.6 on Debian Lenny against SQL Server.
*
* Opsview users should use check_sql_advanced for MySQL/PostgreSQL/Oracle or
View check_many.groovy
1 2 3 4 5 6 7 8 9 10
/**
* Copying and distribution of this file, with or without modification,
* are permitted in any medium without royalty provided the copyright
* notice and this notice are preserved. This file is offered as-is,
* without any warranty.
*
* Aggregate Opsview checks.
* @author Robin Bramley, Opsera Limited (c) 2010
*/
View check_hudson_job.pl
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/perl
use strict;
use LWP::UserAgent;
use JSON;
 
#
# Check Hudson job status using the JSON API
#
# (c) 2009 Robin Bramley, Opsera Ltd.
# Copying and distribution of this file, with or without modification,
Something went wrong with that request. Please try again.