Skip to content

Instantly share code, notes, and snippets.

View mikemichaelis's full-sized avatar

Mike Michaelis mikemichaelis

View GitHub Profile
@mikemichaelis
mikemichaelis / gist:4953869
Created February 14, 2013 16:14
WPF 3.5 SP1 feature: StringFormat
http://blogs.msdn.com/b/llobo/archive/2008/05/19/wpf-3-5-sp1-feature-stringformat.aspx
@mikemichaelis
mikemichaelis / gist:1583437
Created January 9, 2012 15:34
NLog config to log output formatted to log4j XML (includes xml header and namespace)
<target xsi:type="File" name="file" fileName="file.xml">
<layout xsi:type="LayoutWithHeaderAndFooter">
<header xsi:type="SimpleLayout" text="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;&lt;root xmlns:log4j=&quot;http://jakarta.apache.org/log4j/&quot;&gt;"/>
<layout xsi:type="Log4JXmlEventLayout" />
<footer xsi:type="SimpleLayout" text="&lt;/root&gt;"/>
</layout>
</target>
@mikemichaelis
mikemichaelis / git core.askpass
Created January 5, 2012 15:00
When using Git HTTPS set core.askpass to git-gui--askpass this will pop up a window prompting you for your password.
$ git config --global core.askpass /usr/libexec/git-core/git-gui--askpass