Skip to content

Instantly share code, notes, and snippets.

View tranminhan's full-sized avatar

Tran Minh An tranminhan

View GitHub Profile
@tranminhan
tranminhan / maven-compiler-plugin-config
Created April 11, 2011 16:22
maven config to use a specific java source version
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<source>1.5</source>
annotations are not supported in -source 1.3
<use -source 5 or higher to enable annotations>
@tranminhan
tranminhan / Maven archetype for simple servlet 2.5
Created April 11, 2011 18:20
Maven archetype for simple servlet 2.5
<?xml version="1.0" encoding="UTF-8"?>
<web-app 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://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<display-name>Archetype Created Web Application</display-name>
</web-app>
@tranminhan
tranminhan / sts.ini
Created April 11, 2011 18:28
sts.ini
-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
—launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.R36x_v20101222
-product
com.springsource.sts.ide
—launcher.defaultAction
openFile
—launcher.XXMaxPermSize
256M
@tranminhan
tranminhan / install java on linux
Created April 11, 2011 18:33
install java on linux
sudo add-apt-repository “deb http://archive.canonical.com/ lucid partner”
sudo apt-get update
sudo apt-get install sun-java6-jdk
@tranminhan
tranminhan / install fonts on linux
Created April 11, 2011 18:34
install fonts on linux
sudo apt-get install ubuntu-restricted-extras
@tranminhan
tranminhan / install ibus unikey on linux
Created April 11, 2011 18:51
install ibus unikey on linux
sudo apt-get install ibus-unikey
@tranminhan
tranminhan / install chrome on linux
Created April 11, 2011 18:54
install chrome on linux
sudo apt-get install chromium-browser
@tranminhan
tranminhan / install subversion on linux
Created April 11, 2011 18:56
install subversion on linux
sudo apt-get install subversion
@tranminhan
tranminhan / print environment variable in linux
Created April 11, 2011 18:59
print environment variable in linux
printenv TERM
echo $TERM