Skip to content

Instantly share code, notes, and snippets.

View gmic's full-sized avatar

Gerhard Messelink gmic

  • GMIC
  • Netherlands
View GitHub Profile
java -jar selenium-server-standalone-2.42.2.jar -role node -hub http://localhost:8001/grid/register -Dwebdriver.firefox.profile=xc-forms-selenium-tests
#!/bin/sh
TOPDIR=$(dirname $0)
cd $TOPDIR
nohup java -jar selenium-server-standalone-2.42.2.jar -role hub -port 8001 > grid.log 2>&1 &
@gmic
gmic / gist:6040832
Created July 19, 2013 17:17
Copy same files to directory
find -type f -iname *.epub -exec cp {} books \;
<?xml version="1.0"?>
<xsl:stylesheet version="2.0"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="xhtml xsl xs">
<xsl:output method="xml" version="1.0" encoding="UTF-8" doctype-public="-//W3C//DTD XHTML 1.1//EN" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" indent="yes"/>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>fop</artifactId>
<version>1.1</version>
<exclusions>
<exclusion>
<artifactId>avalon-framework-api</artifactId>
<groupId>org.apache.avalon.framework</groupId>
</exclusion>
<exclusion>
@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
@gmic
gmic / gist:5387706
Created April 15, 2013 12:30
Restart apache2 on OSX
sudo /usr/sbin/apachectl restart
@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:5387494
Created April 15, 2013 11:39
Save webpage with wget
wget -E -H -k -K -p url
@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