For some reasons you may want to change all line endings of your text files to LF instead of CRLF, here is how to do it.
Since JDK 8, the Java FX libraries are not included into the standard library (OpenJDK).
To add JavaFX jar files into jre/lib/ext you have to run the following command:
sudo apt-get install openjfx
Tested with OpenJDK 1.8.0_151 on Linux 3.10.0-693.11.6.el7.x86_64 (Debian GNU/Linux 9.3)
To get the list of folders of a specific folder sorted by size, use the command “du” (disk usage)
For example if you want to list the folders of “/home” sorted by size:
du -sh /home/* | sort -h
Example of output:
Let’s say you want to know if the port 4567 is available on your linux machine, you can use the following piece of code:
if [[ $(exit | telnet localhost 4567 | grep "Connected to") == "Connected to"* ]]; then echo "Port 4567 is not available" exit 1 fi
Here is a way to get the HTTP response as a String in a Beanshell Post-Processor:
String httpResponseBody = new String(ctx.getPreviousResult().getResponseData());
log.info("HTTP Response Body: "+httpResponseBody);
Modern browsers have a built-in timer feature that can help you debugging your code.
The API is composed of two functions:
console.time(): start a timer
console.timeEnd(): end a timer and print time spent
Example of use in Firefox 58: