Skip to content

Instantly share code, notes, and snippets.

https://www.javacodegeeks.com/2015/11/hamcrest-matchers-tutorial.html
https://www.leveluplunch.com/java/examples/#java-hamcrest
https://www.leveluplunch.com/java/examples/hamcrest-collection-matchers-junit-testing/
@isidromerayo
isidromerayo / datasource.xml
Last active August 18, 2017 12:07 — forked from aVolpe/datasource.xml
Jboss sample informix datasource
<datasource jta="true" jndi-name="java:jboss/datasources/CopacoBillingDS" pool-name="CopacoBillingDS" enabled="true" use-ccm="true">
<connection-url>jdbc:informix-sqli://10.13.200.41:9088/copaco_prueba01:informixserver=copacodb</connection-url>
<driver>informix-jdbc</driver>
<security>
<user-name>USER</user-name>
<password>PASS</password>
</security>
</datasource>
@isidromerayo
isidromerayo / gist:11942c1677074adeedf9186cab59a822
Created December 30, 2016 13:24
Maven: JUnit + Mockito + Hamcrest
<properties>
<junit4.version>4.11</junit4.version>
<hamcrest.version>1.3</hamcrest.version>
<mockito.version>1.10.19</mockito.version>
</properties>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>${mockito.version}</version>
@isidromerayo
isidromerayo / gist:8eb386e9802e4c8f589c0715323dc0be
Created December 19, 2016 15:39
Hibernate + JPA resources
http://www.vogella.com/tutorials/JavaPersistenceAPI/article.html
http://wiki.eclipse.org/EclipseLink/Examples/JPA/JSF_Tutorial
@isidromerayo
isidromerayo / gist:5a5370731f381ffe0e9ec2e906c5180e
Created December 14, 2016 07:19
TODO - PHP Tools to discover
Phan is a static analyzer for PHP - https://github.com/etsy/phan
Exakat provides a real time PHP code analyser - https://www.exakat.io/
Tuli a static analysis engine - https://github.com/ircmaxell/tuli
@isidromerayo
isidromerayo / weblogic.xml
Created December 7, 2016 17:29
Weblogic 12.1.3 enable Jersey 2.5.1
<?xml version="1.0" encoding="UTF-8"?>
<wls:weblogic-web-app
xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.7/weblogic-web-app.xsd">
<wls:library-ref>
<wls:library-name>jax-rs</wls:library-name>
<wls:specification-version>2.0</wls:specification-version>
<wls:exact-match>false</wls:exact-match>
</wls:library-ref>
@isidromerayo
isidromerayo / maven.profile.xml
Last active December 7, 2016 17:27
Maven profiles Weblogic 12.1.3
<profile>
<id>weblogic-1213</id>
<build>
<plugins>
<plugin>
<groupId>com.oracle.weblogic</groupId>
<artifactId>weblogic-maven-plugin</artifactId>
<version>${weblogic.version.server}</version>
<!-- You can find and redefine the following variables in the parent
pom file arccording to your environment. oracleMiddlewareHome oracleServerUrl
@isidromerayo
isidromerayo / references_links.md
Last active April 26, 2016 12:51
Understanding Java Security and JAAS
@isidromerayo
isidromerayo / gulpfile.js
Last active December 12, 2017 09:13
chuleta gulp
# Instalar gulp
$ npm install -g gulp
# Hacer link a nuestro proyecto
$ npm link gulp --save-dev
# Crear package.json
{
"name": "name_you_want",
@isidromerayo
isidromerayo / gist:d9602ee59b2204fb3d3d
Created January 2, 2015 12:51
Reconnect linkedin
Notice: Undefined index: refrom in /var/www/deploy/portal/releases/20141216145713/login/linkedin/connect.php on line 15 Notice: Undefined index: refrom in /var/www/deploy/portal/releases/20141216145713/login/linkedin/connect.php on line 17 Notice: Undefined index: refrom in /var/www/deploy/portal/releases/20141216145713/login/linkedin/connect.php on line 19 Notice: Undefined index: oauth in /var/www/deploy/portal/releases/20141216145713/login/linkedin/connect.php on line 59 Fatal error: Uncaught exception 'LinkedInException' with message 'LinkedIn->retrieveTokenAccess(): bad data passed, string type is required for $token, $secret and $verifier.' in /var/www/deploy/portal/releases/20141216145713/includes/linkedin.php:868 Stack trace: #0 /var/www/deploy/portal/releases/20141216145713/login/linkedin/connect.php(59): LinkedIn->retrieveTokenAccess('77--4b7816d6-c0...', NULL, '57379') #1 {main} thrown in /var/www/deploy/portal/releases/20141216145713/includes/linkedin.php on line 868