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
{ | |
"template":"logstash-*", | |
"settings":{ | |
"index.refresh_interval":"5s" | |
}, | |
"mappings":{ | |
"_default_":{ | |
"dynamic_templates":[ | |
{ | |
"string_fields":{ |
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
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
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
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
#!/usr/bin/python -u | |
import snmp_passpersist as snmp | |
from collectd_unixsock import * | |
def update(): | |
c = Collectd() | |
list = c.listval() | |
for val in list: | |
stamp, identifier = val.split() | |
values = c.getval(identifier) |
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
$.get('http://162.13.113.151/geoserver/wfs?service=wfs&version=2.0.0&request=GetPropertyValue&outputFormat=application/json&typeNames=topp:states&valueReference=SUB_REGION',function(data) { | |
$(data).find('SUB_REGION').contents().each(function(i,v){console.log(v);}) | |
}); |
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
this.invokeLater(function(){ | |
Pony.getPath('mainPage.mainPane').append(); | |
}, Pony.transitionSpeed*1000); |
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
// define the transition duration globally | |
Pony.transitionSpeed=0.5; | |
// [more code here] // | |
// Automatic transitions, courtesy of SC 1.10 | |
transitionIn: SC.View.SLIDE_IN, | |
transitionInOptions: { direction: 'down', duration: Pony.transitionSpeed, delay: Pony.transitionSpeed }, | |
transitionOut: SC.View.SLIDE_OUT, |