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)
| 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.| #!/bin/bash | |
| #### Restart Bluetooth | |
| if [ "$1" == "resetBT" ] ; then | |
| sudo rfkill block bluetooth && sleep 0.1 && sudo rfkill unblock bluetooth; | |
| exit; | |
| fi; | |
| #### Toggle listen/speak | |
| if [ "$1" == "" -o "$1" == "toggle" ] ; then |
| title Collab CI pipeline | |
| space | |
| ==Commit verification job - project integration tests \n\nAlternative 2 - version metadata resolved by leveraging Maven.== #gold | |
| entryspacing 0.4 | |
| #actor Space for widening the source box............................... | |
| actor Commiter | |
| participant "Stash\n" as Stash #DodgerBlue |
| #!/bin/bash | |
| REBASE_ONTO_BRANCH="develop" | |
| REBASE_ONTO_REMOTE="upstream" | |
| STARTING_COMMIT=$(git rev-parse HEAD) | |
| STARTING_BRANCH=(git rev-parse --abbrev-ref HEAD) | |
| GO_INTO_CONFLICT=""; | |
| if [ "$1" == "force" ] ; then | |
| GO_INTO_CONFLICT="true"; |