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 csv,sys | |
from fuzzywuzzy import fuzz | |
LOOKUPCSV = 'somelookup.csv' | |
RATIOTHRESHOLD = 80 | |
def output_results(results, mvdelim = '\n', output = sys.stdout): | |
"""Given a list of dictionaries, each representing | |
a single result, and an optional list of fields, | |
output those results to stdout for consumption by the |
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
from ansible import utils, errors | |
import os | |
import xml.etree.ElementTree as etree | |
class LookupModule(object): | |
def __init__(self, basedir=None, **kwargs): | |
self.basedir = basedir | |
def tostr(self, node): |
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/env python | |
# | |
# Copyright (c) 2009, Luke Maurits <[email protected]> | |
# All rights reserved. | |
# With contributions from: | |
# * Chris Clark | |
# * Klein Stephane | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: |
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 urllib2 | |
import urllib | |
from xml.dom import minidom | |
import re | |
import csv | |
import prettytable | |
import StringIO | |
import console | |
u='[SPLUNK USER HERE]' |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- Copyright(c) Ecetera --> | |
<instrumentation xmlns="http://www.optier.com/namespace" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.optier.com/namespace ../../conf/OpTierPluginInstrument.xsd"> | |
<process> | |
<class> | |
<name>oracle.tip.adapter.jms.inbound.JmsConsumer</name> | |
<additionalPath>${corefirst.home}/tierext/lib/cf-otti.jar;${corefirst.home}/tierext/lib/cf-sdk-wrapper.jar</additionalPath> | |
<static>false</static> | |