Skip to content

Instantly share code, notes, and snippets.

View HeinrichHartmann's full-sized avatar

Heinrich Hartmann HeinrichHartmann

View GitHub Profile
@HeinrichHartmann
HeinrichHartmann / markdown.css
Created December 15, 2013 14:15
Slightly customized version of Kevin Burke's markdown.css released under Apache License here https://bitbucket.org/kevinburke/markdowncss/overview http://kevinburke.bitbucket.org/markdowncss/markdown.css
/*
Customized version of Kevin Burke's markdown.css released under Apache License here
https://bitbucket.org/kevinburke/markdowncss/overview
*/
body{
margin: 0 auto;
@HeinrichHartmann
HeinrichHartmann / ZmqAppender.java
Created December 6, 2013 20:11
ZmqAppender for Log4j. Publishes log messages on a zmq socket.
package net.heinrich-hartmann.gists.ZmqAppender;
import org.apache.log4j.AppenderSkeleton;
import org.apache.log4j.Layout;
import org.apache.log4j.SimpleLayout;
import org.apache.log4j.spi.LoggingEvent;
import org.jeromq.ZMQ;
/**
* ZmqAppender for Log4j.
@HeinrichHartmann
HeinrichHartmann / DistributedUrlDownloader.py
Created December 6, 2013 20:07
Distributed File Donwloader using ZMQ. List of urls is read from a file dstributed to workers, gathered and written to a directory.
#
# Distributed File Dowoloader
# ===========================
#
# List of urls is read from a file, distributed to workers, gathered and written to a directory.
#
# INSTALLATION & USAGE
# --------------------
# sudo apt-get install python-pip python-dev build-essential git screen
# sudo pip install pyzmq requests