Skip to content

Instantly share code, notes, and snippets.

View jrichardsz's full-sized avatar

JRichardsz jrichardsz

View GitHub Profile
@jrichardsz
jrichardsz / build.xml
Created October 13, 2013 16:28
Configuracion del archivo build.xml del proyecto openxava.
<?xml version="1.0"?>
<project name="Empresa" basedir="." default="desplegarWar">
<property name="project" value="Empresa" />
<property name="ox3" value="true" />
<property file="../openxava.properties"/>
<!--
Compila todos los .java y .groovy
@jrichardsz
jrichardsz / actualizar esquema.irclog
Last active December 25, 2015 10:49
Log de exito al actualizar esquema usando el ant de openxava.
Buildfile: R:\RICHARD\JOB\JAVA7ICE\expos\openxava\workspace\eclipse\openxava-4.8\openxava-4.8\workspace\Empresa\build.xml
actualizarEsquema:
defineHibernateTool:
updateSchemaJPA:
[hibernatetool] Executing Hibernate Tool with a JPA Configuration
[hibernatetool] 1. task: hbm2ddl (Generates database schema)
[hibernatetool] SLF4J: Class path contains multiple SLF4J bindings.
[hibernatetool] SLF4J: Found binding in [jar:file:/R:/RICHARD/JOB/JAVA7ICE/expos/openxava/workspace/eclipse/openxava-4.8/openxava-4.8/workspace/OpenXava/web/WEB-INF/lib/slf4j-jdk14.jar!/org/slf4j/impl/StaticLoggerBinder.class]
[hibernatetool] SLF4J: Found binding in [jar:file:/R:/RICHARD/JOB/JAVA7ICE/expos/openxava/workspace/eclipse/openxava-4.8/openxava-4.8/workspace/Empresa/web/WEB-INF/lib/slf4j-jdk14.jar!/org/slf4j/impl/StaticLoggerBinder.class]
[hibernatetool] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
@jrichardsz
jrichardsz / log tomcat openxava.irclog
Created October 13, 2013 16:51
Log tomcat de exito al acceder a la aplicacion openxava.
Listening for transport dt_socket at address: 8000
...
INFO: Initializing ProtocolHandler ["http-bio-8080"]
oct 13, 2013 11:50:44 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
...
INFO: Server startup in 8118 ms
oct 13, 2013 11:51:10 AM org.apache.jasper.compiler.TldLocationsCache tldScanJar
INFO: Al menos un JAR, que se ha explorado buscando TLDs, a·n no contenÝa TLDs. Activar historial de depuraci¾n para este historiador para una completa lista de los JARs que fueron explorados y de los que nos se hall¾ TLDs. Saltarse JARs no necesarios durante la exploraci¾n puede dar lugar a una mejora de tiempo significativa en el arranque y compilaci¾n de JSP .
oct 13, 2013 11:51:12 AM org.openxava.controller.ModuleManager <clinit>
@jrichardsz
jrichardsz / MainActivity.java
Last active December 28, 2015 04:48
Simple Hola mundo en android!
package com.example.helloworld;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.TextView;
public class MainActivity extends Activity {
@Override
@jrichardsz
jrichardsz / SelectionDemo.java
Created December 19, 2013 03:57
Efecto seleccion de rectangular con el mouse / Select images by using a rectangular area. NOTA: Si se pone una imagen como fondo en el jpanel + un listener mouseDragged, se podra obtener la seleccion de una porcion de la imagen. Fuente: http://www.daniweb.com/software-development/java/threads/342036/how-to-select-images-by-using-a-rectangular-area
import java.awt.BorderLayout;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import javax.swing.JPanel;
@jrichardsz
jrichardsz / setup_sshkeys.sh
Created January 19, 2016 17:31 — forked from cedricziel/setup_sshkeys.sh
Openshift git wrapper script creation for being able to use private git repos
#!/usr/bin/env bash
# copy this script to your gear, make it executable and run it once
# make the appropriate directory
mkdir -p "$OPENSHIFT_DATA_DIR/.ssh"
# generate a key
ssh-keygen -q -t rsa -f $OPENSHIFT_DATA_DIR/.ssh/id_rsa -N ""
@jrichardsz
jrichardsz / _IEFormElementSetValue example.au3
Created March 28, 2016 00:31
Function _IEFormElementSetValue - AutoIt
#include <IE.au3>
Call ("SignIn")
Func SignIn()
Global $oIE = _IECreate ("http://www.google.com")
Local $username = _IEGetObjByName ($oIE, "user")
Local $password = _IEGetObjByName ($oIE, "pass")
_IEFormElementSetValue($username,"jyjtrans")
_IEFormElementSetValue($password,"tucontraseña")
@jrichardsz
jrichardsz / 0-react-hello-world.md
Created May 20, 2016 16:50 — forked from danawoodman/0-react-hello-world.md
React Hello World Examples

React "Hello World" Examples

Below are a small collection of React examples to get anyone started using React. They progress from simpler to more complex/full featured.

They will hopefully get you over the initial learning curve of the hard parts of React (JSX, props vs. state, lifecycle events, etc).

Usage

You will want to create an index.html file and copy/paste the contents of 1-base.html and then create a scripts.js file and copy/paste the contents of one of the examples into it.

@jrichardsz
jrichardsz / gist:0b7f55ae9ab2441135c54a29690af9ba
Created July 8, 2016 15:34 — forked from ivan-loh/gist:ee0d96c3795e59244063
Node.JS ( & pm2 ) Process Memory Limit
# Plain Ol' Node
node --max-old-space-size=1024 app.js # increase to 1gb
node --max-old-space-size=2048 app.js # increase to 2gb
node --max-old-space-size=3072 app.js # increase to 3gb
node --max-old-space-size=4096 app.js # increase to 4gb
node --max-old-space-size=5120 app.js # increase to 5gb
node --max-old-space-size=6144 app.js # increase to 6gb
# For pm2
pm2 start app.js --node-args="--max-old-space-size=1024" # increase to 1gb
@jrichardsz
jrichardsz / install-comodo-ssl-cert-for-nginx.rst
Created July 14, 2016 20:48 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert