Skip to content

Instantly share code, notes, and snippets.

View missedone's full-sized avatar

Nick Tan missedone

View GitHub Profile
@missedone
missedone / HttpHijack.java
Created June 22, 2015 15:15
Http hijacking for docker startExec API call. (this is not a general purpose hijacking for any http request, not going to replace any http client)
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.net.SocketFactory;
import javax.net.ssl.SSLSocketFactory;
import java.io.*;
import java.net.Socket;
import java.net.URI;
import java.util.Map;
import java.util.Map.Entry;
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Folder\shell\cygwin-mintty]
@="Cygwin Mintty Here"
[HKEY_CLASSES_ROOT\Folder\shell\cygwin-mintty\command]
@="D:\\opt\\cygwin\\bin\\mintty.exe -e /usr/bin/bash --login -c \"cd \\\"`cygpath -u '%1'`\\\"; exec bash\""
@missedone
missedone / org.eclipse.ui.prefs
Created November 14, 2012 05:59
force OLE applications to open as stand-alone applications
DISABLE_OPEN_EDITOR_IN_PLACE=true
eclipse.preferences.version=1