Skip to content

Instantly share code, notes, and snippets.

View marhan's full-sized avatar

Markus Hanses marhan

View GitHub Profile
@marhan
marhan / forge output
Created February 3, 2014 21:03
JbossForge output while "primefaces setup"
$ primefaces setup
Which version of Primefaces?
1 - [Primefaces 2.2.1]
2 - [Primefaces 3.0]
? Choose an option by typing the number of the selection: 2
Wrote C:\Development\primefaces_test\hellmann\hellmann\pom.xml
/**
* A helper method to determine if the Faces Servlet is defined in the web.xml
*
* @param descriptor
* @return true if the Faces Servlet is defined, false otherwise
*/
private boolean isFacesServletDefined(WebAppDescriptor descriptor) {
// TODO: When WebAppDescriptor.getServlets is implemented:
List<ServletDef> servlets = descriptor.getServlets();
X-Envelope-From: <[email protected]>
X-Envelope-To: <[email protected]>
X-Delivery-Time: 1410834513
X-UID: 121
Return-Path: <[email protected]>
Authentication-Results: strato.com 1;
spf=pass
smtp.mailfrom="[email protected]";
dkim=pass
header.d=info-emailer.com
@marhan
marhan / gist:9833952f72cc04190783
Created September 19, 2014 16:42
Install Oracle JDK on Ubuntu
#!/bin/bash
sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.8.0_20/bin/java" 1
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/java/jdk1.8.0_20/bin/javac" 1
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/local/java/jdk1.8.0_20/bin/javaws" 1
sudo update-alternatives --install "/usr/bin/jar" "jar" "/usr/local/java/jdk1.8.0_20/bin/jar" 1
sudo update-alternatives --set "java" "/usr/local/java/jdk1.8.0_20/bin/java"
sudo update-alternatives --set "javac" "/usr/local/java/jdk1.8.0_20/bin/javac"
sudo update-alternatives --set "javaws" "/usr/local/java/jdk1.8.0_20/bin/javaws"
sudo update-alternatives --set "jar" "/usr/local/java/jdk1.8.0_20/bin/jar"
@marhan
marhan / gist:f88d81e760caf72a01ac
Created September 19, 2014 20:43
Installation von node.js und Abhängigkeiten für https://bitbucket.org/infinit-group/cvdb
#!/bin/bash
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
sudo npm install -g bower
npm install -g grunt-cli
npm install -g yo
--Eine Kopie der existierenden Datenbank anlegen
CREATE DATABASE destinationDB WITH TEMPLATE sourceDB OWNER owner;
--Eine Zahlentyp als Zeichentyp ausgeben
select cast(i as text) from test;
@marhan
marhan / .gitignore
Created March 10, 2015 17:44
gitignore file for grails projects
### Grails files
*.iws
*Db.properties
*Db.script
*.log
/*DB.*
*.db
/cobertura.ser
.DS_Store
/target/
@marhan
marhan / java.flt
Last active August 29, 2015 14:16
Java filter for WinMerge
## This is a directory/file filter template for WinMerge
name: Java Filter
desc: Filters all other files out
## This is an exclusive filter
## (it lets through only matching files)
def: exclude
f: \.java$ ## Java files
@marhan
marhan / svn.flt
Created March 11, 2015 17:11
SVN Filter for WinMerge
## This is a directory/file filter template for WinMerge
name: SVN Filter
desc: Filter for SVN internal folders
d: \\.svn$
d: \\._svn$
@marhan
marhan / terminal_stacktrace_grails_jvm_incompatibility
Created June 16, 2015 07:48
Stacktrace of grails while starting app due to incompatibilty between grails and java 1.8 Update 45
Jun 16, 2015 9:38:46 AM org.springsource.loaded.jvm.JVM copyMethod
SCHWERWIEGEND: Problems copying method. Incompatible JVM?
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor98.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.springsource.loaded.jvm.JVM.copyMethod(JVM.java:134)
at org.springsource.loaded.ri.OriginalClassInvoker.createJavaMethod(OriginalClassInvoker.java:68)
at org.springsource.loaded.ri.ReflectiveInterceptor.jlClassGetMethods(ReflectiveInterceptor.java:168)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)