Skip to content

Instantly share code, notes, and snippets.

View Tingenek's full-sized avatar

Mark Lawson Tingenek

  • MarkLogic
  • Cotswolds
View GitHub Profile
Tingenek / gist:5025014
Created February 24, 2013 18:54
1-wire to mqtt Camel route
<!-- Read temperatures from the owfs directory structure. -->
<from uri="file:/Users/mark/work/test?noop=true&amp;readLock=none&amp;idempotent=false&amp;delay=10000&amp;antInclude=*/temperature&amp;recursive=true" />
<!-- Get temp and add date/time -->
<simple>${bodyAs(String)} at ${date:now:yyyy-MM-dd hh:mm:ss}</simple>
Tingenek / process.xml
Created April 14, 2013 16:03
Cascaded selects followed by assembly into a new instance for submission
<!-- Process for A -->
<process id="id-process-A">
<!-- Pipelines for A -->
<pipeline id="id-pipeline-A1">
<cmdline id="id-cmdline1-fo-a-and-b">
<!-- Command line for A FO -->
Tingenek / gist:5805141
Created June 18, 2013 12:59
How to use tika...
1) Download tika-app-1.3.jar from here
2) Move it from Downloads to somewhere more useful. I created a folder called work.
3) The tika jar is actually an application. So, you can now either
a) Double-click on it to start it up. You'll get a little ui, and drag a file into the window.
You can use the view menu to switch type of output, text, xml etc
b) Use it as part of a program. Open a command-prompt (Applications,Utilities,Terminal)
cd to the folder where you put the jar
type java -jar tika-app-1.3.jar -x [filename] where [filename] is the file you want to read.
-x gives you xml, -t text etc.