I hereby claim:
- I am marji on github.
- I am cermakm (https://keybase.io/cermakm) on keybase.
- I have a public key ASDyxcQpcFoSUtPeRkHVIciRazX_LkXxA55-XB4gaDXwjAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# logstash indexer filter for drupal watchdog | |
# | |
# See: https://events.drupal.org/dublin2016/sessions/building-high-available-elk-drupal | |
# | |
filter { | |
grok { | |
match => { "message" => "%{SYSLOGWATCHDOG}" } | |
} | |
date { |
#!/bin/bash | |
# Drop And Play | |
# A script for updating a document from a dropbox URL. | |
# It checks the etag, if it has changed, it downloads and deploy the new document. | |
# Call this from Cron. | |
# | |
# Originally written for Raspberry PI running a Libre Office impress slideshow | |
# in an infinite loop (called play.odp) |
input { | |
stdin { | |
type => "stdin-type" | |
} | |
syslog { | |
type => syslog | |
port => 5514 | |
} | |
file { | |
type => "logstash" |
#!/bin/bash | |
# | |
# filesizes, v. 20140125 | |
# Author: marji@morpht.com, http://morpht.com | |
# | |
# Script which reads filenames from the standard output | |
# and prints a CSV in form of filepath, size in bytes, image width, image height | |
# Required package: imagemagick (the identify binary) | |
# http://www.imagemagick.org/script/identify.php | |
# |
#!/bin/bash -x | |
string="matchthis, but not this" | |
pattern="([a-z]+)" | |
[[ $string =~ $pattern ]] | |
result=${BASH_REMATCH[1]} |