This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var road = new OpenLayers.Layer.Bing({ | |
name: "Road", | |
key: apiKey, | |
type: "Road" | |
}); | |
var hybrid = new OpenLayers.Layer.Bing({ | |
name: "Hybrid", | |
key: apiKey, | |
type: "AerialWithLabels" | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var layers=[ | |
{provider:'OpenLayers.Layer.Bing',args:[{name: "Road",key: "AqTGBsziZHIJYYxgivLBf0hVdrAk9mWO5cQcb8Yux8sW5M8c8opEC2lZqKR1ZZXf",type: "Road"}]}, | |
{provider:'OpenLayers.Layer.Bing',args:[{name: "Hybrid",key: "AqTGBsziZHIJYYxgivLBf0hVdrAk9mWO5cQcb8Yux8sW5M8c8opEC2lZqKR1ZZXf",type: "AerialWithLabels"}]}, | |
{provider:'OpenLayers.Layer.Bing',args:[{name: "Aerial",key: "AqTGBsziZHIJYYxgivLBf0hVdrAk9mWO5cQcb8Yux8sW5M8c8opEC2lZqKR1ZZXf",type: "Aerial"}]} | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function assembleLayer(conf) { | |
var constructorr=window, path=conf.provider.split("."); | |
// get a reference to the constructor, by walking the provider path | |
for(var i=0,l=path.length;i<l;i++) { constructorr=constructorr[path[i]]; } | |
// following constructor code from: http://stackoverflow.com/a/1608546/887883 | |
// now invoke it | |
function F() { | |
return constructorr.apply(this, conf.args); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN {start=0} | |
/^COPY "/ { if(index($0,TBL)!=0) { start=1; } } | |
// {if(start==1) print $0;} | |
/\\\./ {start=0;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
file { | |
type => "accesslog" | |
path => [ "/var/log/access_logs/access_log" ] | |
} | |
} | |
filter { | |
grok { | |
match => { "message" => "%{EXTENDEDAPACHELOG}" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
starts first, then stops. All other routes start after this one has completed | |
Same as: curl -XPUT http://localhost:9200/_template/opennms -d @elmapping.json | |
--> | |
<route id="elastisearchTemplateMapping" autoStartup="true" startupOrder="1"> | |
<from uri="timer://runOnce?repeatCount=1&delay=0"/> | |
<setHeader headerName="CamelHttpMethod"> | |
<constant>PUT</constant> | |
</setHeader> | |
<setHeader headerName="CamelContentType"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package your.package.here; | |
import java.util.Map; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import javax.validation.constraints.NotNull; | |
import org.jasig.cas.CentralAuthenticationService; | |
import org.jasig.cas.Message; | |
import org.jasig.cas.authentication.AuthenticationException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.opennms.netmgt.correlation.drools; | |
import java.util.Date; | |
import java.util.Calendar; | |
import org.opennms.netmgt.correlation.drools.DroolsCorrelationEngine; | |
import org.opennms.netmgt.xml.event.Event; | |
import org.opennms.netmgt.xml.event.Parms; | |
import org.opennms.netmgt.xml.event.Parm; | |
import org.opennms.netmgt.xml.event.Value; | |
import org.opennms.netmgt.model.events.EventBuilder; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
opennms> features:install opennms-elasticsearch-event-forwarder | |
ERROR: Bundle org.opennms.features.elasticsearch.event-forwarder [184] EventDispatcher: Error during dispatch. (java.lang.NoClassDefFoundError: org/apache/lucene/store/IndexInput) | |
java.lang.NoClassDefFoundError: org/apache/lucene/store/IndexInput | |
at java.lang.ClassLoader.defineClass1(Native Method) | |
at java.lang.ClassLoader.defineClass(ClassLoader.java:760) | |
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.findClass(BundleWiringImpl.java:2318) | |
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1524) | |
at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:77) | |
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1993) | |
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Simple VCB can be used to drive vcb backups from more than one | |
# server. The list must be comma separated. The names will be used as the actual URL | |
# | |
vcb.servers=vsphere,vcenter | |
# | |
# vsphere config: | |
# the name is the actual server name and will be used as the url | |
# user, password: self explanatory |
OlderNewer