Skip to content

Instantly share code, notes, and snippets.

Mark Lawson Tingenek

Block or report user

Report or block Tingenek

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Tingenek / gist:5025014
Created Feb 24, 2013
1-wire to mqtt Camel route
View gist:5025014
<!-- 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 Apr 14, 2013
Cascaded selects followed by assembly into a new instance for submission
View process.xml
<!-- 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 Jun 18, 2013
How to use tika...
View gist:5805141
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.
You can’t perform that action at this time.