Skip to content

Instantly share code, notes, and snippets.

View jeremie-lesage's full-sized avatar

Jérémie Lesage jeremie-lesage

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jeci-sarl on github.
  • I am itair (https://keybase.io/itair) on keybase.
  • I have a public key ASDy_ioiP8dNqhca_eKWXiyIIwAmM2IwJ9ATqoofhzNfvwo

To claim this, I am signing this object:

version: '2'
services:
alfresco:
image: jeci/alfresco-platform:5.2.f
environment:
CATALINA_OPTS: "-Xmx1G -XX:+UseConcMarkSweepGC"
depends_on:
- postgresql
networks:
<ivysettings>
<settings defaultResolver="alfresco" />
<include url="${ivy.default.settings.dir}/ivysettings-public.xml" />
<include url="${ivy.default.settings.dir}/ivysettings-shared.xml" />
<include url="${ivy.default.settings.dir}/ivysettings-local.xml" />
<include url="${ivy.default.settings.dir}/ivysettings-main-chain.xml" />
<resolvers>
<chain name="alfresco">
<ibiblio name="alfresco-public"
root="https://artifacts.alfresco.com/nexus/content/groups/public/"
<ivy-module version="2.0">
<info organisation="fr.jeci" module="alfresco-demo" />
<dependencies>
<dependency org="org.alfresco" name="alfresco-core" rev="4.2.e" />
<dependency org="org.alfresco" name="alfresco-data-model" rev="4.2.e" />
<dependency org="org.alfresco" name="alfresco-repository" rev="4.2.e" />
<dependency org="org.alfresco" name="alfresco-web-client" rev="4.2.e" />
<dependency org="org.alfresco" name="alfresco-share" rev="4.2.e" />
</dependencies>
</ivy-module>
@jeremie-lesage
jeremie-lesage / gist:2005925
Created March 9, 2012 10:05
Easy Java Bean toString() using BeanUtils
/** http://www.benmccann.com/dev-blog/easy-java-bean-tostring-using-beanutils/ **/
public String toString() {
try {
return BeanUtils.describe(this).toString();
} catch (Exception e) {
Logger.getLogger(this.getClass()).error("Error converting object to String", e);
}
return super.toString();
}
@jeremie-lesage
jeremie-lesage / gist:2005921
Created March 9, 2012 10:04
Count number au slash in a string
#! /bin/bash
path=/usr/lib/
slash="${path//[^\/]/}"
echo "Depth : $(expr ${#slash} - 1)"
@jeremie-lesage
jeremie-lesage / gist:2005919
Created March 9, 2012 10:03
du (Disk Usage) with small impact on IO
# -c for class : 0 for none, 1 for real time, 2 for best-effort, 3 for idle.
/usr/bin/ionice -c3 du -sh /home/*
@jeremie-lesage
jeremie-lesage / gist:2005911
Created March 9, 2012 10:00
Xstream in two minute
/** http://xstream.codehaus.org/tutorial.html **/
public class DemoXstreal {
public class Person {
private String firstname;
private String lastname;
private PhoneNumber phone;
private PhoneNumber fax;
// ... constructors and methods
}