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 http://us.archive.ubuntu.com/ubuntu/ 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
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
View hung-clienttests.py
#/usr/bin/python
"""
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$')
View keybase.md

Keybase proof

I hereby claim:

  • I am makuk66 on github.
  • I am makuk66 (https://keybase.io/makuk66) on keybase.
  • I have a public key ASCCjDJ6wHkiF9jfwLeEZd_Ce5EdHo4YeecL5-_gJ3LO2wo

To claim this, I am signing this object:

@makuk66
makuk66 / docker-solr-oneoff.sh
Last active Sep 18, 2017
Create a docker solr image for RCs
View docker-solr-oneoff.sh
#!/bin/bash
#
# 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 https://dist.apache.org/repos/dist/dev/lucene/ and click down to the solr tar.gz
View init-solr-home.sh
#!/bin/bash
#
# 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/CommitStatus.py.orig 2016-07-26 15:14:41.131180197 +0000
+++ venv/lib/python2.7/site-packages/github/CommitStatus.py 2016-07-26 15:52:54.506709022 +0000
@@ -70,6 +70,13 @@
return self._state.value
@property
+ def context(self):
+ """
+ :type: string
+ """
View split.py
# quick and dirty script to split the output of "git log" into separate files for Fusion to index.
writer=None
with open('gitlog', 'r') as f:
for line in f:
if line.startswith('commit '):
(word, commit) = line.strip().split(' ')
if writer != None:
writer.close()
writer = open('data/' + commit + '.txt', 'w')
writer.write(line)
View patched-ssldump.md

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

1 1  0.1727 (0.1727)  C>S  Handshake
      ClientHello
        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.