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 / guacamole
Created February 17, 2016 06:56
guacamole
#!/bin/bash
case $1 in
start)
/bin/bash /etc/guacamole/start.sh
;;
stop)
/bin/bash /etc/guacamole/stop.sh
;;
restart)
@haint
haint / guacamole.properties
Created February 17, 2016 06:40
guacamole.properties
# Guacamole - Clientless Remote Desktop
# Copyright (C) 2010 Michael Jumper
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@haint
haint / stop.sh
Created February 17, 2016 06:38
stop.sh
#!/bin/bash
/etc/init.d/guacd stop
/etc/init.d/tomcat7 stop
@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 / 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
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 / 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
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: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">
-
[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