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 / 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>
@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 / 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 / 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 / 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 / GXelement.txt
Created July 4, 2012 12:46
Generate GX element
mvn archetype:generate -DinteractiveMode=false -DarchetypeGroupId=nl.gx.webmanager.archetypes -DarchetypeArtifactId=webmanager-element-archetype -DarchetypeVersion=9.18.0 -DgroupId=com.gxwebmanager.myproject -DartifactId=youtube -Dclassprefix=Youtube -s C:\GX\WebManager9\settings.xml
@gmic
gmic / gist:5387494
Created April 15, 2013 11:39
Save webpage with wget
wget -E -H -k -K -p url
@gmic
gmic / gist:5387687
Created April 15, 2013 12:27
Edit virtual host apache osx
sudo vi /private/etc/apache2/extra/httpd-vhosts.conf
@gmic
gmic / gist:5387706
Created April 15, 2013 12:30
Restart apache2 on OSX
sudo /usr/sbin/apachectl restart
@gmic
gmic / gist:5500530
Created May 2, 2013 06:43
webmanager mvn formcomponent archetype
mvn archetype:generate -DinteractiveMode=false -DarchetypeGroupId=nl.gx.webmanager.archetypes -DarchetypeArtifactId=webmanager-formcomponent-archetype -DarchetypeVersion=9.18.1 -DgroupId=com.example.someproject -DartifactId=doenformcomponents -Dclassprefix=SomeProject -s ..\..\WebManager9\settings.xml