This file contains hidden or 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
// YOU HAVE TO : | |
// 1. install the Extended Choice Parameter Plugin : https://wiki.jenkins.io/display/JENKINS/Extended+Choice+Parameter+plugin | |
// 2. Allow the instanciation of ExtendedChoiceParameterDefinition in you script approval admin page https://myjenkins/scriptApproval/ | |
List params = [] | |
List props = [] | |
// https://github.com/jenkinsci/extended-choice-parameter-plugin/blob/master/src/main/java/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition.java#L427 | |
// https://issues.jenkins-ci.org/browse/JENKINS-34617 |
This file contains hidden or 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
from ubuntu | |
RUN apt-get update && apt-get install -y wget build-essential cmake libqt4-dev libgcrypt11-dev zlib1g-dev | |
ENV VERSION 2.0.2 | |
RUN wget https://www.keepassx.org/releases/$VERSION/keepassx-$VERSION.tar.gz | |
RUN wget https://www.keepassx.org/releases/$VERSION/keepassx-$VERSION.tar.gz.sig | |
RUN gpg --keyserver pgpkeys.mit.edu --recv-key 83135D45 | |
RUN gpg --verify keepassx-$VERSION.tar.gz.sig keepassx-$VERSION.tar.gz |
This file contains hidden or 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
#https://github.com/crccheck/docker-tcpdump | |
#docker ps format help https://docs.docker.com/engine/reference/commandline/ps/#format | |
# IPT : https://github.com/ruyadorno/ipt | |
function dshark { | |
if [ $# == 0 ]; then | |
CONTAINER=`docker ps --format='table {{.ID}} | {{.Names}} | {{.Command}}' | ipt | cut -d '|' -f 1` | |
if [ "$$CONTAINER" == "" ]; then | |
echo "Missing docker container: $CONTAINER" | |
return 1 | |
fi |
This file contains hidden or 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
datatable = $('#table').dataTable( { | |
"bStateSave": true, | |
// là suite est optionnelle. par défaut cookie, là on utilise localstorage html5 | |
"fnStateSave": function(oSettings, oData) { | |
localStorage.setItem('DataTables_' + this.fnSettings().sTableId, JSON.stringify(oData)); | |
}, | |
"fnStateLoad": function (oSettings) { | |
return JSON.parse(localStorage.getItem('DataTables_' + this.fnSettings().sTableId)); | |
} | |
.... |
This file contains hidden or 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
// wget .... raw url ... | |
// mongo colstats_to_csv.js > `date +"%Y-%m-%d"`_stats.csv | |
rs.slaveOk(); | |
print("db; col; total; storage; index; unused; unused KB; unused MB"); | |
db._adminCommand("listDatabases").databases.forEach(function (d) {mdb = db.getSiblingDB(d.name); mdb.getCollectionNames().forEach(function(c) {idx = mdb[c].totalIndexSize(); s = mdb[c].storageSize(); t = mdb[c].totalSize(); print(d.name+"; "+c+"; "+t+";"+s+"; "+idx+"; "+(t-s-idx)+"; "+((t-s-idx)/1024)+"; "+((t-s-idx)/1024/1024));})}) |
This file contains hidden or 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
[Desktop Entry] | |
#see https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1221848 | |
Version=1.0 | |
Name=Eclipse | |
Icon=/opt/eclipse/icon.xpm | |
Exec=env UBUNTU_MENUPROXY= /opt/eclipse/eclipse | |
# -consolelog -debug -verbose | |
StartupNotify=true | |
Terminal=false | |
Type=Application |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:p="http://www.springframework.org/schema/p" | |
xmlns:util="http://www.springframework.org/schema/util" | |
xmlns:security="http://www.springframework.org/schema/security" | |
xmlns:c="http://www.springframework.org/schema/c" | |
xmlns:context="http://www.springframework.org/schema/context" | |
xsi:schemaLocation="http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.1.xsd | |
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd |
This file contains hidden or 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.text.ParseException; | |
import java.text.SimpleDateFormat; | |
import java.util.Date; | |
import java.util.Locale; | |
import org.junit.Assert; | |
import org.junit.Test; | |
import com.cloudseal.client.saml2.CloudsealPrincipal; |
This file contains hidden or 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
Pour tester , changer l'odre des dependencySets | |
et regarder le contenu de target/trial-0.0.1-SNAPSHOT-orderedunpack/trial-0.0.1-SNAPSHOT/META-INF/MANIFEST.MF | |
POM: | |
<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/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>test</groupId> | |
<artifactId>trial</artifactId> |
This file contains hidden or 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
assertSame(Float.NaN, Float.Nan) |