-
This is a numbered list.
-
I'm going to include a fenced code block as part of this bullet:
Code More Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -x | |
string="matchthis, but not this" | |
pattern="([a-z]+)" | |
[[ $string =~ $pattern ]] | |
result=${BASH_REMATCH[1]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
stdin { | |
type => "stdin-type" | |
} | |
syslog { | |
type => syslog | |
port => 5514 | |
} | |
file { | |
type => "logstash" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# logstash indexer filter for drupal watchdog | |
# | |
# See: https://events.drupal.org/dublin2016/sessions/building-high-available-elk-drupal | |
# | |
filter { | |
grok { | |
match => { "message" => "%{SYSLOGWATCHDOG}" } | |
} | |
date { |
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: