Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<associateSites>
<associateSite url="http://download.eclipse.org/graphiti/updates/nightly" label="Graphiti nightly" />
<associateSite url="https://hudson.eclipse.org/hudson/job/sapphire-0.3.x/lastSuccessfulBuild/artifact/build/repository/" label="Sapphire integration build" />
</associateSites>
@gamerson
gamerson / Logging in Liferay
Created January 3, 2012 05:48
How to log something in Liferay
Log log = LogFactoryUtil.getLog(Test.class);
log.info("Debug string");
@gamerson
gamerson / java-debug-options.txt
Created July 18, 2012 04:59
Java Debug options
-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
@gamerson
gamerson / git-update-cmd
Created September 13, 2012 06:46
Git update
git pull -s recursive -X theirs upstream master
@gamerson
gamerson / embedded-liferay-tomcat7-run-pom.xml
Created September 10, 2013 15:03
Example pom.xml that runs Liferay Portal 6.1.2 on Embedded Tomcat via tomcat7-maven-plugin.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>ray.demo</groupId>
<artifactId>ray-demo</artifactId>
<version>0.1.0-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.coderthoughts.test</groupId>
<artifactId>org.coderthoughts.test</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>bundle</packaging>
<build>
<plugins>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.coderthoughts.test</groupId>
<artifactId>org.coderthoughts.test</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>bundle</packaging>
<build>
<plugins>
Classfile /lrdev/dev repos/liferay-tools/test-modules/doc-lib-google-docs/bin/com/liferay/portlet/documentlibrary/google/docs/AnalyzerCrawlInvokerInterfaceAIOOBTest.class
Last modified Aug 20, 2014; size 1436 bytes
MD5 checksum f68acee006d37b8afa1066880b6f5b9c
Compiled from "AnalyzerCrawlInvokerInterfaceAIOOBTest.java"
public class com.liferay.portlet.documentlibrary.google.docs.AnalyzerCrawlInvokerInterfaceAIOOBTest
SourceFile: "AnalyzerCrawlInvokerInterfaceAIOOBTest.java"
minor version: 0
major version: 51
flags: ACC_PUBLIC, ACC_SUPER
Constant pool:
@gamerson
gamerson / gist:7b0e2df93810ff7bd3c0
Last active August 29, 2015 14:05
gradle-bundle-plugin build info and error
------------------------------------------------------------
Gradle 1.12
------------------------------------------------------------
Build time: 2014-04-29 09:24:31 UTC
Build number: none
Revision: a831fa866d46cbee94e61a09af15f9dd95987421
Groovy: 1.8.6
Ant: Apache Ant(TM) version 1.9.3 compiled on December 23 2013
@gamerson
gamerson / input.h
Created January 23, 2015 13:27
JNAerator input header file for libsass
#define SASS_INTERFACE
#include "sass.h"
#include <stdbool.h>
#include "sass2scss.h"
#ifdef __cplusplus
extern "C" {
#endif