Skip to content

Instantly share code, notes, and snippets.

@matschaffer
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matschaffer/55864a96702f72904087 to your computer and use it in GitHub Desktop.
Save matschaffer/55864a96702f72904087 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
echo a
echo b
echo ----
echo c
echo d
echo ----
echo
#!/usr/bin/env ruby
puts <<EOF
a
b
----
c
d
----
EOF
#!/usr/bin/env bash
echo -e 'a\nb\n----\nc\nd\n----\n'
# -*- mode: toml -*-
# vi: set ft=toml :
[hekad]
base_dir = "/Users/mat/stellar/ops/heka/coremailer/tmp"
[ondash]
type = "RegexSplitter"
delimiter = "----\n"
[DemoProcessInput]
type = "ProcessInput"
ticker_interval = 2
splitter = "ondash"
stdout = true
stderr = false
[DemoProcessInput.command.0]
env = []
bin = "/Users/mat/stellar/ops/heka/coremailer/corecapture.rb"
[DebugOutput]
#message_matcher = "Type == 'heka.sandbox.stellar.debug'"
#message_matcher = "Type == 'heka.sandbox-terminated'"
#message_matcher = "Type == 'heka.sandbox-terminated'"
message_matcher = "TRUE"
#message_matcher = "Type != 'heka.httpinput.data'"
type = "LogOutput"
encoder = "RstEncoder"
[RstEncoder]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment