Recette pour faire un pain de ~750g pour le jour J.
D'après le livre The Sourdough Framework et la vidéo Your First Sourdough Bread du même auteur.
Faire son propre levain demande de une à trois semaines.
Recette pour faire un pain de ~750g pour le jour J.
D'après le livre The Sourdough Framework et la vidéo Your First Sourdough Bread du même auteur.
Faire son propre levain demande de une à trois semaines.
| /* | |
| * (C) Copyright 2021 Nuxeo (http://nuxeo.com/) and others. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| #!/bin/bash | |
| SRC=${SRC:-/home/ben/dev/nuxeo.git} | |
| set -x | |
| set -e | |
| export MAVEN_OPTS="-Xmx4g -Xms4g -XX:+TieredCompilation -XX:TieredStopAtLevel=1" | |
| cd $SRC | |
| if [ -f ./modules/pom.xml ]; then | |
| export JAVA_HOME=$JAVA_11_HOME |
| # Start Elasticsearch 6.6.2 | |
| docker run -p 9200:9200 docker.elastic.co/elasticsearch/elasticsearch-oss:6.6.2 | |
| # 1. Create an index with a mapping | |
| curl -X PUT "http://localhost:9200/my-index?pretty" -H 'Content-Type: application/json' -d'{ | |
| "settings": { | |
| "index": { | |
| "number_of_shards": 1, | |
| "number_of_replicas": 0 | |
| } |
| version: '2' | |
| services: | |
| zookeeper: | |
| image: zookeeper:3.5.5 | |
| kafka: | |
| image: wurstmeister/kafka:2.12-2.3.0 | |
| kafkahq: | |
| image: tchiotludo/kafkahq:0.9.0 | |
| traefik: | |
| image: traefik:maroilles-alpine |
| # install deps | |
| apt-get install cmake build-essential linux-tools-common linux-tools-generic linux-cloud-tools-generic linux-tools-`uname -r` linux-cloud-tools-`uname -r` | |
| # setup JAVA_HOME | |
| export JAVA_HOME=/usr/lib/jvm/java-8-oracle | |
| export PATH=/usr/lib/jvm/java-8-oracle/bin:$PATH | |
| git clone https://github.com/jrudolph/perf-map-agent.git /usr/local/perf-map-agent |
| // Gatling upload of file (blobFilename, blobPath, blobMimeType) into bucket with a PUT request (limited to 5g) | |
| .exec(session => { | |
| val script = "/path/to/awsS3Sign.sh " + | |
| bucket + " " + session("blobFilename").as[String] + " " + session("blobMimeType").as[String] | |
| val scriptOutput: String = script.!! | |
| val dateHeader: String = scriptOutput.substring(0, scriptOutput.indexOf('|')) | |
| val authorizationHeader: String = scriptOutput.substring(scriptOutput.indexOf('|') + 1).trim() | |
| println("Upload " + session("blobFilename").as[String]) | |
| session.set("awsDate", dateHeader) | |
| .set("awsAuth", authorizationHeader) |
| /* | |
| * (C) Copyright 2017 Nuxeo SA (http://nuxeo.com/) and others. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| #!/bin/sh -x | |
| HERE=`dirname $0` | |
| HERE=`cd $HERE; pwd` | |
| KSAR_JAR=$HERE/kSar.jar | |
| LOG_PATH=$HERE/log | |
| SAR_FILE=$LOG_PATH/bench.sar | |
| SAR_PID=$LOG_PATH/sar.pid | |
| mkdir -p $LOG_PATH |
| #!/bin/bash | |
| # number of images to generate | |
| MAX=6607360 | |
| # directory that contains some tiff images used as template | |
| SAMPLE=/tmp/sample | |
| # directory where new tiff are generated | |
| OUTDIR=/tmp/gentif | |
| #OUTDIR=/opt/nuxeo/repo1/data |