Skip to content

Instantly share code, notes, and snippets.

@bkeifer
bkeifer / stash.groovy
Created November 11, 2015 15:21
Send a log message to Logstash
def stash(msg) {
log.debug(msg)
def dateNow = new Date()
// def isoDateNow = dateNow.format("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", location.timeZone)
def isoDateNow = dateNow.format("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
def json = "{"
json += "\"date\":\"${dateNow}\","
json += "\"isoDate\":\"${isoDateNow}\","
json += "\"name\":\"log\","
json += "\"message\":\"${msg}\","
@enpassant
enpassant / vimwiki2html.md
Last active May 14, 2024 20:56
Convert VimWiki to HTML (markdown, mediawiki)

With this wiki2html.sh bash script and pandoc program, you can convert markdown to html.

Usage: In the vim list section of the .vimrcfile, include options:

let g:vimwiki_list = [{'path': ‘your_wiki_place',
  \ 'path_html': ‘wiki_html_location’,
  \ 'syntax': 'markdown',
 \ 'ext': '.md',