Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am talevy on github.
  • I am talevy (https://keybase.io/talevy) on keybase.
  • I have a public key ASBwHL9LIkTcTuPfaR6Z095hp7BL-73Uf1Wg1WMQ6aHXvwo

To claim this, I am signing this object:

@talevy
talevy / regex.txt
Last active March 8, 2018 22:39
Offending regex
Bonsuche mit folgender Anfrage: Belegart->\[(?<WORD:param2>\b\w+\b),(?<param5>(\s*(?:\S+))*)\] Zustand->ABGESCHLOSSEN Kassennummer->(?<WORD:param9>\b\w+\b) Bonnummer->(?<WORD:param10>\b\w+\b) Datum->(?<DATESTAMP_OTHER:param11>(?:(?:Mon(?:day)?|Tue(?:sday)?|Wed(?:nesday)?|Thu(?:rsday)?|Fri(?:day)?|Sat(?:urday)?|Sun(?:day)?)) (?:\b(?:Jan(?:uary|uar)?|Feb(?:ruary|ruar)?|M(?:a|ä)?r(?:ch|z)?|Apr(?:il)?|Ma(?:y|i)?|Jun(?:e|i)?|Jul(?:y)?|Aug(?:ust)?|Sep(?:tember)?|O(?:c|k)?t(?:ober)?|Nov(?:ember)?|De(?:c|z)(?:ember)?)\b) (?:(?:(?:0[1-9])|(?:[12][0-9])|(?:3[01])|[1-9])) (?:(?!<[0-9])(?:(?:2[0123]|[01]?[0-9])):(?:(?:[0-5][0-9]))(?::(?:(?:(?:[0-5]?[0-9]|60)(?:[:.,][0-9]+)?)))(?![0-9])) (?:(?:[PMCE][SD]T|UTC)) (?:(?>\d\d){1,2}))
@talevy
talevy / README.md
Last active September 28, 2015 16:35
Custom Partitioner in Logstash Kafka Output Plugin

Running Logstash Output Kafka With Custom Partitioner

checkout example round-robin partitioner and build jar

$ git clone git@github.com:talevy/kafka-round-robin-partitioner.git
$ cd kafka-round-robin-partitioner
$ ./gradlew fatJar

set java classpath env variable so logstash knows where to find the partitioner class

@talevy
talevy / gist:44f6911ff5af99a39d7d
Created December 12, 2014 01:22
chicken recipe
2 onion
4 carrot
2 cups of water with chicken powder broth
1/2 cup honey
1 cup red wine
pinch of paprika
powdered thyme
chicken thigh
@talevy
talevy / diff
Last active August 29, 2015 14:08
diff
This file has been truncated, but you can view the full file.
795a796
> <a href="http://fleasof1000camels.blogspot.com/" target="_blank">Fleas</a> • <a href="https://twitter.com/slcboston" target="_blank">Twits</a></div></i></font></font>
13495a13497,13516
> <strong>Paylaþ</strong> <a href="http://twitter.com/home?status=Son G%C3%B6z Lazer Fiyatlar%C4%B1 Kar%C5%9F%C4%B1la%C5%9Ft%C4%B1rmal%C4%B1%20http://forum.donanimhaber.com/fb.asp?m=54294897" title="Tweetle" target="_blank"><img border="0" src="http://icon.donanimhaber.com/m-stwitter.png"></a>
> <strong>Paylaþ</strong> <a href="http://twitter.com/home?status=Son G%C3%B6z Lazer Fiyatlar%C4%B1 Kar%C5%9F%C4%B1la%C5%9Ft%C4%B1rmal%C4%B1%20http://forum.donanimhaber.com/fb.asp?m=54460246" title="Tweetle" target="_blank"><img border="0" src="http://icon.donanimhaber.com/m-stwitter.png"></a>
> <strong
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@talevy
talevy / event_codegen.py
Created June 3, 2013 05:21
This is an example avro codegen'd python object representing a specific avro schema
#
# Autogenerated by Avro
#
# DO NOT EDIT DIRECTLY
#
from avro.io import validate
from avro.schema import parse
class Event(dict):