Skip to content

Instantly share code, notes, and snippets.

@Drane
Drane / gist:c5828a1ace8b9d331e384aee40ef6216
Created September 23, 2016 15:10
Javascript enable all checkboxes
var textinputs = document.querySelectorAll('input[type=checkbox]');
textinputs.forEach(function(el){el.checked=true});
@Drane
Drane / README.md
Created February 12, 2016 12:28
JBoss EAP 6.3 H2 MySQL Oracle datasources
    <extension module="org.jboss.as.weld"/>
</extensions>
<system-properties>
    <property name="com.sun.xml.ws.transport.http.HttpAdapter.dump" value="true"/>
    <property name="com.sun.xml.ws.transport.http.client.HttpTransportPipe.dump" value="true"/>
    <property name="com.sun.xml.internal.ws.transport.http.HttpAdapter.dump" value="true"/>
    <property name="com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump" value="true"/>
</system-properties>
@Drane
Drane / standalone-full.xml
Last active February 12, 2016 14:40
JBoss Mysql XA datasource
<datasources>
<datasource jndi-name="java:jboss/datasources/H2DS" pool-name="H2DS" enabled="true" use-java-context="true">
<connection-url>jdbc:h2:tcp://localhost/~/dev/tmp/isps;INIT=CREATE SCHEMA IF NOT EXISTS ccmc;</connection-url>
<driver>h2</driver>
<security>
<user-name>sa</user-name>
<password>sa</password>
</security>
</datasource>
<xa-datasource jndi-name="java:jboss/datasources/H2DSXA" pool-name="H2DSXA" enabled="true" use-java-context="true">
@Drane
Drane / README.md
Created February 11, 2016 17:54
JBoss SOAP logginig properties

com.sun.xml.internal.ws.transport.http.HttpAdapter.dump=true com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump=true com.sun.xml.ws.transport.http.HttpAdapter.dump=true com.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true

// Uses AMD or browser globals to create a module.
// If you want something that will also work in Node, see returnExports.js
// If you want to support other stricter CommonJS environments,
// or if you need to create a circular dependency, see commonJsStrict.js
// Defines a module "amdWeb" that depends another module called "b".
// Note that the name of the module is implied by the file name. It is best
// if the file name and the exported global have matching names.