Skip to content

Instantly share code, notes, and snippets.

Martijn Koster makuk66

Block or report user

Report or block makuk66

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Dockerfile
FROM ubuntu
RUN echo "deb precise main universe" >> /etc/apt/source.list
RUN apt-get update
RUN apt-get -y install rsyslog
ADD ./rsyslog.conf /etc/rsyslog.conf
ENTRYPOINT ["/usr/sbin/rsyslogd", "-n"]
makuk66 / todo-example
Created Jun 14, 2019
A TODO list example
View todo-example
- [x] Pick the flowers
- [ ] Call John 9303032332
- [x] Cancel cable subscription
- [ ] Book the flight tickets
Match up tests starting and completing to find hung tests
import re
import sys
STARTED_RE = re.compile(r'^.* > .*STARTED$')
PASSED_RE = re.compile(r'^.* > .*PASSED$')
SKIPPED_RE = re.compile(r'^.* > .*SKIPPED$')
FAILED_RE = re.compile(r'^.* > .*FAILED$')

Keybase proof

I hereby claim:

  • I am makuk66 on github.
  • I am makuk66 ( on keybase.
  • I have a public key ASCCjDJ6wHkiF9jfwLeEZd_Ce5EdHo4YeecL5-_gJ3LO2wo

To claim this, I am signing this object:

makuk66 /
Last active Sep 18, 2017
Create a docker solr image for RCs
# Script to try out RCs. It's not exactly the same as the full docker-solr
# Dockerfiles, but close.
set -euo pipefail
# URL from command-line.
# If you want to find the latest, go to and click down to the solr tar.gz
# A helper script to initialise a custom SOLR_HOME.
# For example:
# mkdir mysolrhome
# sudo chown 8983:8983 mysolrhome
# docker run -it -v $PWD/mysolrhome:/mysolrhome -e SOLR_HOME=/mysolrhome solr
View github-status-context.diff
--- venv/lib/python2.7/site-packages/github/ 2016-07-26 15:14:41.131180197 +0000
+++ venv/lib/python2.7/site-packages/github/ 2016-07-26 15:52:54.506709022 +0000
@@ -70,6 +70,13 @@
return self._state.value
+ def context(self):
+ """
+ :type: string
+ """
# quick and dirty script to split the output of "git log" into separate files for Fusion to index.
with open('gitlog', 'r') as f:
for line in f:
if line.startswith('commit '):
(word, commit) = line.strip().split(' ')
if writer != None:
writer = open('data/' + commit + '.txt', 'w')

I used ssldump on OSX and got a lot of "unknown value" for ciphers:

1 1  0.1727 (0.1727)  C>S  Handshake
        Version 3.1 
        cipher suites
        Unknown value 0xc009
        Unknown value 0xc013
        Unknown value 0x2f
View joda-date-parsing.txt
Different handling of `hh`:
groovy:000> import java.text.SimpleDateFormat
===> java.text.SimpleDateFormat
groovy:000> parser=new SimpleDateFormat("EEE MMM d hh:mm:ss yyyy Z")
===> java.text.SimpleDateFormat@fee3c270
groovy:000> parser.parse("Wed Sep 30 17:14:25 2015 -0700")
===> Thu Oct 01 01:14:25 BST 2015
groovy:000> parser2=new SimpleDateFormat("EEE MMM d HH:mm:ss yyyy Z")
===> java.text.SimpleDateFormat@87bd4670
You can’t perform that action at this time.