This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.teamtter.fake</groupId> | |
<artifactId>test-fake-module</artifactId> | |
<version>2.0.0-SNAPSHOT</version> | |
<properties> | |
<java.source.target.version>1.8</java.source.target.version> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.servlet.http.HttpSessionEvent; | |
import org.springframework.context.event.ContextClosedEvent; | |
import org.springframework.context.event.ContextStartedEvent; | |
import org.springframework.context.event.EventListener; | |
import org.springframework.security.web.session.HttpSessionEventPublisher; | |
/** This class workaround a bug we observed in JUnit tests when using a full- sds server in AbstractRealDatamanagerTest: | |
* the problem was that when the spring context was trying to close, then tomcat was finally closed triggering a | |
* 'sessionDestroyed' event that in turn tried to publish a 'sessionDestroyed' having the effect of reviving the context. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def userIdCause = currentBuild.rawBuild.getCause(hudson.model.Cause$UserIdCause) | |
boolean buildTriggeredManually = (userIdCause != null); | |
//boolean buildIsNightly = userIdCause.toString().toLowerCase().contains("trigger") || currentBuild.rawBuild.getCauses().get(0).toString().contains("BranchIndexingCause") | |
def buildIsNightly = false | |
currentBuild.upstreamBuilds?.each { b -> | |
echo "Upstream build: ${b.getFullDisplayName()}" | |
buildIsNightly = true | |
} | |
//def specificCause = currentBuild.rawBuild.getCause(hudson.model.Cause$UserIdCause) // must be set to null once used because it is not serializable | |
echo "userIdCause = ${userIdCause}, buildTriggeredManually = ${buildTriggeredManually}, buildIsNightly = ${buildIsNightly}" // #debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.oleamedical.dbclient.sds; | |
import java.lang.reflect.InvocationHandler; | |
import java.lang.reflect.Method; | |
import java.lang.reflect.Proxy; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
import java.util.concurrent.Future; | |
import java.util.concurrent.ThreadFactory; | |
import java.util.function.Supplier; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Grab('org.eclipse.jetty.aggregate:jetty-server:8.1.19.v20160209') | |
@Grab('org.eclipse.jetty.aggregate:jetty-servlet:8.1.19.v20160209') | |
@Grab('javax.servlet:javax.servlet-api:3.0.1') | |
@Grab('org.seleniumhq.selenium:selenium-api:3.5.3') | |
@Grab('org.seleniumhq.selenium:selenium-remote-driver:3.5.3') | |
@Grab('org.seleniumhq.selenium:selenium-server:3.5.3') | |
@Grab('junit:junit:4.12') | |
import org.openqa.selenium.By; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
This script creates a CSV file from the gamelist.xml files contained in your Recalbox | |
*/ | |
/* | |
Telechargement automatique des librairies: | |
- jcifs pour acceder au partage reseau des fichier (protocole samba) | |
- IOUtils, la librairie contenue dans commons-io et qui permet de lire des fichiers facilement | |
*/ | |
@Grapes([ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt.BorderLayout; | |
import java.awt.Color; | |
import java.awt.Component; | |
import java.awt.Container; | |
import java.awt.Dimension; | |
import java.awt.Frame; | |
import java.awt.Insets; | |
import java.awt.LayoutManager; | |
import java.awt.Rectangle; | |
import java.awt.event.ComponentEvent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#If we do not sleep, the network is not available :( => we should use systemd !!! | |
sleep 8 | |
# inspired by http://disq.us/p/1anwvre | |
# requires to set wallpaper mode as slideshow from ~/wallpaper | |
echo "`date`" >> getBingWallpaper.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export EXTENSION=jpg | |
export TARGET_DIRECTORY=/home/pierrehenri/Dropbox/scans | |
export TIMESTAMP=$(date +%Y%m%d_%H%M%S) | |
export TMP_FILE=/tmp/scan-$TIMESTAMP.$EXTENSION | |
export OUTPUT_FILE=$TARGET_DIRECTORY/scan-$TIMESTAMP.$EXTENSION | |
export ARCHIVE_DIR=$TARGET_DIRECTORY/vieux-scans/ | |
mkdir -p $TARGET_DIRECTORY | |
mkdir -p $ARCHIVE_DIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.awt.Color; | |
import java.awt.Component; | |
import java.awt.Container; | |
import java.awt.Dimension; | |
import java.awt.Insets; | |
import java.awt.LayoutManager; | |
import javax.swing.JFrame; | |
import javax.swing.JPanel; |
NewerOlder