Skip to content

Instantly share code, notes, and snippets.

View sdalichampt's full-sized avatar

Samuel DALICHAMPT sdalichampt

View GitHub Profile
@sdalichampt
sdalichampt / TestIT.java
Created April 13, 2016 13:23
Numéro de port aléatoire pour un serveur tomcat embarqué lors de l'éxecution des tests d'intégration.
System.getProperty("tomcat.http.port")
@sdalichampt
sdalichampt / find_unused_properties.sh
Created June 12, 2014 13:52
Recherche la liste des properties non utilisées dans le projet
#!/bin/sh
fichierProperties=$1
repertoireBaseProjet=$2
fichierRapport=$3
while read line
do
key=${line%%[ =]*}
@sdalichampt
sdalichampt / libreoffice-calc-read-only.desktop
Last active August 29, 2015 13:56
Ouverture de fichier Word/Excel en lecture seule avec LibreOffice - Linux Mint 16
[Desktop Entry]
Exec=/usr/bin/libreoffice --calc --view %f
Name=Ouvrir avec LibreOffice Calc (en lecture seule)
MimeType=application/vnd.ms-excel;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;
Type=Application
NoDisplay=true
Icon=libreoffice-calc
Name[fr_FR]=Ouvrir avec LibreOffice Calc (en lecture seule)
@sdalichampt
sdalichampt / schema_diff.sql
Last active August 29, 2015 13:56
Cette requête SQL permet d'établir la différence de structure entre 2 schémas de base de données DB2.
SELECT DISTINCT
schemaR.name AS tbname,
'' AS name,
'' AS colno,
CASE
WHEN schemaA.name IS NULL AND schemaB.name IS NOT NULL THEN 'Table créée'
WHEN schemaA.name IS NOT NULL AND schemaB.name IS NULL THEN 'Table supprimée'
END AS typeModif,
'' AS coltype,
'' AS length,