Since the official Gatling Maven plugin page is missing more info than it contains,
here's the output of $ mvn gatling:help -Ddetail=true -Dgoal=test
:
Available parameters:
- bodiesFolder (Default:
${project.basedir}/src/test/resources/bodies
)
object OptionsParsingUtils { | |
private inline fun <reified T : OptionEnum> tryParseEnumOption(enumArgumentDefault: T, arg: String): T? { | |
val optionIntro = "--${enumArgumentDefault.optionName}" | |
if (!arg.startsWith(optionIntro)) | |
return null | |
if (arg.endsWith(optionIntro) || arg.endsWith("=${enumArgumentDefault.optionValue}")) | |
return enumArgumentDefault |
package ch.zizka.time | |
import java.time.Duration | |
import java.time.LocalDateTime | |
import java.time.format.DateTimeFormatter | |
import java.time.format.DateTimeParseException | |
import java.time.temporal.ChronoField.DAY_OF_MONTH | |
import java.time.temporal.ChronoField.HOUR_OF_DAY | |
import java.time.temporal.ChronoField.MINUTE_OF_HOUR | |
import java.time.temporal.ChronoField.MONTH_OF_YEAR |
#!/bin/bash | |
## Places a branch to a new base. | |
## Useful when splitting a long branch to multiple pull requests. | |
## | |
## ---+--------master | |
## \ | |
## --- A ---- B | |
## | |
## git-moveBranch.sh B from A to master |
fun parseCommaDelimitedMap(str: String): Map<String, String> { | |
if (str == null) return null | |
val pairs = str.split(',').map { it.trim() }.filter { it.contains(':') } | |
.map { | |
val parts = it.split(':', limit = 2) | |
Pair(parts[0], parts[1]) | |
} | |
.associate { it } | |
return pairs |
##################################################################################################### | |
# | |
# This script creates switches between the versions of various tools, | |
# found in /mnt/jqa/sw/tools/ (curently hard-coded). | |
# | |
# Usage: | |
# $ switch maven 2.1.0 | |
# $ mvn ... | |
# | |
# Installation: |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.OutputStreamWriter; | |
import java.nio.charset.StandardCharsets; | |
import java.util.Arrays; | |
import java.util.HashMap; | |
import java.util.HashSet; | |
import java.util.List; |
<!-- | |
Tutorial code for: http://www.binpress.com/tutorial/generating-nice-movie-previews-with-ffmpeg/138 | |
--> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<a href="https://www.youtube.com/watch?v=v1uyQZNg2vE" target="_blank" class="video-preview" data-frames="100" data-source="http://i.imgur.com/BX0pV4J.jpg"></a> |
# sudo apt-get install python-picamera | |
import picamera | |
from time import sleep | |
camera = picamera.PiCamera() | |
camera.capture('image.jpg') | |
camera.start_preview() | |
camera.vflip = True | |
camera.hflip = True |
To keep the POMs (project object models) sane and maintainable, here's my suggestion of a few simple rules.
As with many other things in development - a bit more work for whoever does the changes that will save a lot of work to future maintainers.
<dependencyManagement>
.version.{artifactId}
.jar
or ../pom.xml
.