Skip to content

Instantly share code, notes, and snippets.

View gmic's full-sized avatar

Gerhard Messelink gmic

  • GMIC
  • Netherlands
View GitHub Profile
@gmic
gmic / wmpformfragment.txt
Created July 4, 2012 08:41
Generate GX wmpformfragment
mvn archetype:generate -DinteractiveMode=false -DarchetypeGroupId=nl.gx.forms.wmpformarchetypes -DarchetypeArtifactId=wmpformfragment-archetype -DarchetypeVersion=2.0.3 -DarchetypeRepository=http://repository.gxsoftware.com/releases -DgroupId=com.gxwebmanager.myproject -DartifactId=myformfragment -Dclassprefix=MyFormFragment -s C:\GX\Webmanager9\settings.xml
@gmic
gmic / xbl-reference.xml
Created February 10, 2012 13:51
xbl: get a reference to a node in outer scope
<xxforms:variable name="resource"><xxforms:sequence value=". treat as element()" xxbl:scope="outer" xbl:attr="model context ref=resource-ref"/></xxforms:variable>
@gmic
gmic / git proxy
Created January 4, 2012 13:44
Git: using a proxy server behind a corporate firewall
git config --global http.proxy http://proxyuser:[email protected]:8080
git config --system http.sslcainfo /bin/curl-ca-bundle.crt
@gmic
gmic / ruby proxy
Created January 4, 2012 13:00
Ruby: install gems behind a proxy
gem install --http-proxy http://user:[email protected]:8080 bundler
@gmic
gmic / soapbody.xslt
Created December 22, 2011 14:55
XSLT Transform Soapresponse body and strip off namespacing
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" >
<xsl:template match="/">
<xsl:apply-templates select="/env:Envelope/env:Body/*"/>
</xsl:template>
<xsl:template match="@*">
<xsl:attribute name="{local-name()}"><xsl:value-of select="."/></xsl:attribute>
<xsl:apply-templates/>
</xsl:template>