Skip to content

Instantly share code, notes, and snippets.

View mss's full-sized avatar

Malte S. Stretz mss

View GitHub Profile
@mss
mss / rails+php-on-docker.diag
Created October 7, 2013 18:16
A docker host serving Rails and PHP containers.
blockdiag {
orientation = portrait;
default_shape = roundedbox;
default_group_color = "#808080";
user [shape = actor]
inet [shape = cloud];
user -> inet
@mss
mss / ApacheHttpClient4Handler.java.patch
Created October 3, 2013 21:19
Fix for JERSEY-2126 aka dropwizard issue 403
Index: src/main/java/com/sun/jersey/client/apache4/ApacheHttpClient4Handler.java
===================================================================
--- src/main/java/com/sun/jersey/client/apache4/ApacheHttpClient4Handler.java (revision 5854)
+++ src/main/java/com/sun/jersey/client/apache4/ApacheHttpClient4Handler.java (working copy)
@@ -71,6 +71,7 @@
import javax.ws.rs.core.MultivaluedMap;
import java.io.BufferedInputStream;
import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
import java.io.Closeable;
@mss
mss / .bashrc
Created June 13, 2009 14:51
Append this to your .bashrc to have the current Git branch prepended to your Bash prompt
if [ "$(type -t __git_ps1)" ]; then
PS1="\$(__git_ps1 '(%s)')$PS1"
fi