Skip to content

Instantly share code, notes, and snippets.

View jlandure's full-sized avatar
💭
👋

Julien Landuré jlandure

💭
👋
View GitHub Profile
@jlandure
jlandure / pom.xml
Created July 25, 2014 07:47
shade plugin avec appending de spring.handlers
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
@jlandure
jlandure / httpd_project.conf
Last active August 29, 2015 14:04
apache httpd static and redirect
Listen 80
AddDefaultCharset utf-8
DocumentRoot "J:\Dev\sources_github\src\angular_project\dist"
<Directory "J:\Dev\sources_github\src\angular_project\dist">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
@jlandure
jlandure / label.html
Created July 7, 2014 12:12
Séparateur label bootstrap
<span class="label label-primary"></span>&#x0020;
@jlandure
jlandure / server.js
Created July 4, 2014 07:13
node js simple server
var static = require('node-static');
//
// Create a node-static server instance to serve the './public' folder
//
var file = new static.Server('.');
require('http').createServer(function (request, response) {
request.addListener('end', function () {
//
.ptl-checkbox label {
cursor: pointer;
position: relative;
width: 20px;
height: 20px;
left: 8px;
top: 8px;
margin: 0px;
background: transparent;
border: #999 solid 1px;
@jlandure
jlandure / app.yaml
Last active December 7, 2018 20:45
app.yaml with different cache for index.html (5m vs 30d for others resources)
runtime: python37
threadsafe: true
default_expiration: "30d"
handlers:
# re-direct to index.html if no path is give
- url: /
static_files: index.html
upload: index.html
@jlandure
jlandure / Gen.java
Created December 4, 2012 15:01
Gen SNI
import java.io.File;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.LineIterator;
import org.apache.commons.lang.StringUtils;
public class Gen {
@jlandure
jlandure / CountElementDevFest.java
Created November 26, 2012 08:58
CountElementDevFest
import java.io.File;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.LineIterator;
import org.apache.commons.lang.StringUtils;
public class CountElementDevFest {
@jlandure
jlandure / .bashrc
Created October 29, 2012 09:09
env zenika 12-10-29
JAVA_HOME="/home/actility/Projects/Actility_ONG/softwares/jdk1.7.0_02"
export JAVA_HOME
MAVEN_HOME="/home/actility/Projects/Actility_ONG/softwares/apache-maven-3.0.4"
export MAVEN_HOME
PATH=$JAVA_HOME/bin:$MAVEN_HOME/bin:/bin:/usr/bin:$PATH
export PATH
@jlandure
jlandure / JAVA_OPTS
Created October 18, 2012 08:34
Options JVM pour derby et X11
JAVA_OPTS
-Dderby.stream.error.file="C:\\Temp\\djm-repository"
-Djava.awt.headless=true pour pb X11 et appel à AWT