Skip to content

Instantly share code, notes, and snippets.

View haint's full-sized avatar

Ethan Nguyen haint

  • FPT Software
  • Hanoi Vietnam
View GitHub Profile
@haint
haint / testcase.patch
Created June 11, 2012 04:08
Less importing relative relationship testcase
commit 87393b51d2c199ac7d00621c9b0fc52f86e9ae9d
Author: haint <haithanh0809@gmail.com>
Date: Mon Jun 11 10:54:00 2012 +0700
Less importing relative relationship testcase
diff --git a/plugins/less/src/test/java/juzu/plugin/less/LesserTestCase.java b/plugins/less/src/test/java/juzu/plugin/less/LesserTestCase.java
index 370f381..441906d 100644
--- a/plugins/less/src/test/java/juzu/plugin/less/LesserTestCase.java
@haint
haint / gist:4719704
Last active December 12, 2015 05:08
SecurityManagerProvider
public class SecurityManagerProvider implements Provider<SecurityManager> {
/** . */
@Inject
@Named("juzu.resource_resolver.classpath")
ResourceResolver classPathResolver;
/** . */
@Inject
@Named("juzu.resource_resolver.server")
[INFO] org.gatein.portal:portal.web:jar:4.0.0-SNAPSHOT
[INFO] +- org.exoplatform.kernel:exo.kernel.container:jar:2.4.1-GA:compile
[INFO] | \- commons-beanutils:commons-beanutils:jar:1.8.3:compile
[INFO] +- picocontainer:picocontainer:jar:1.1:compile
[INFO] | +- jmock:jmock:jar:1.0.1:compile
[INFO] | +- xstream:xstream:jar:1.0.2:compile
[INFO] | \- xpp3:xpp3:jar:1.1.4c:compile (version managed from 1.1.2a)
[INFO] +- org.exoplatform.kernel:exo.kernel.component.common:jar:2.4.1-GA:compile
[INFO] | +- org.quartz-scheduler:quartz:jar:1.8.4:compile (version managed from 2.1.6)
[INFO] | | \- javax.transaction:jta:jar:1.1:compile
@haint
haint / gist:6697682
Created September 25, 2013 10:15
GTNPORTAL-3148
diff --git a/app2/web/src/main/webapp/WEB-INF/beans.xml b/app2/web/src/main/webapp/WEB-INF/beans.xml
deleted file mode 100644
index 6c1dca2..0000000
--- a/app2/web/src/main/webapp/WEB-INF/beans.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0"?>
-<beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://jboss.org/schema/cdi/beans_1_0.xsd">
-
java.lang.RuntimeException: Unable to retrieve Drone Instance within 60 seconds
at org.jboss.arquillian.drone.impl.DroneInstanceCreator.createDroneInstance(DroneInstanceCreator.java:98)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
@haint
haint / gist:7578809
Created November 21, 2013 09:47
GateIn JBOSS EAP 6: JTA Configuration
commit 1d6ab0f173b11a83a9cffe3263e2e170cf4a3eac
Author: haint <haithanh0809@gmail.com>
Date: Thu Nov 21 15:30:53 2013 +0700
JTA Configuration successful
diff --git a/gatein/gatein.ear/portal.war/WEB-INF/conf/organization/idm-configuration.xml b/gatein/gatein.ear/portal.war/WEB-INF/conf/organization/idm-configuration.xml
index f867d9b..3b9b656 100644
--- a/gatein/gatein.ear/portal.war/WEB-INF/conf/organization/idm-configuration.xml
+++ b/gatein/gatein.ear/portal.war/WEB-INF/conf/organization/idm-configuration.xml
diff --git a/portal/web/src/main/java/org/gatein/portal/web/page/PageEditor.java b/portal/web/src/main/java/org/gatein/portal/web/page/PageEditor.java
index d1f6486..505c60e 100644
--- a/portal/web/src/main/java/org/gatein/portal/web/page/PageEditor.java
+++ b/portal/web/src/main/java/org/gatein/portal/web/page/PageEditor.java
@@ -27,6 +27,7 @@ import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
+import java.util.Locale;
@haint
haint / manage_con.sh
Last active March 28, 2016 07:10
manage_con.sh
#!/bin/bash
path="/etc/guacamole/"
bk_dir="guacamole_config_bk/"
date_now=`date +%Y_%m_%d_%H_%M_%S`
file="noauth-config.xml"
hostname=$1
port=$2
passwd=$3
protocol=$4
@haint
haint / start.sh
Created February 17, 2016 06:37
start.sh
#!/bin/bash
/etc/init.d/tomcat7 start
/etc/init.d/guacd start
#
@haint
haint / stop.sh
Created February 17, 2016 06:38
stop.sh
#!/bin/bash
/etc/init.d/guacd stop
/etc/init.d/tomcat7 stop