This file contains 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
private void populateEESpeciesProfileModule() { | |
eeSpmLookup = new HashMap<>(); | |
/* ee term | spm term */ | |
eeSpmLookup.put("General Description", "General description"); | |
//eeSpmLookup.put("Ecology", "") | |
//eeSpmLookup.put("Phylogeny", "") | |
eeSpmLookup.put("Distribution", "Distribution"); | |
eeSpmLookup.put("DiagnosticDescription", "Diagnostic description"); | |
eeSpmLookup.put("Morphology", "Morphology"); |
This file contains 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
Testing with 5.1.38 ( mysql-connector-java-5.1.38-bin.jar 5.1.38 ) | |
~log in to admin~ | |
$./bin/jboss-cli.sh --connect | |
~before you start, take a snapshot of the configuration :~ | |
~snapshot is saved in -> /wildfly/standalone/configuration/standalone_xml_history/snapshot~ | |
[domain@localhost:9999 /] :take-snapshot() |
This file contains 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
deploy customization/mysql-connector-java-5.1.38-bin.jar | |
data-source add --name=MediaDS \ | |
--jndi-name=java:/MediaDS \ | |
--driver-name=mysql-connector-java-5.1.38-bin.jar_com.mysql.jdbc.Driver_5_1 \ | |
--connection-url=jdbc:mysql://dbmedia:3306/media?useUnicode=true&characterEncoding=UTF-8 \ | |
--user-name=xxxx \ | |
--password=xxxx \ | |
--check-valid-connection-sql="SELECT 1" \ | |
--background-validation=true \ | |
--background-validation-millis=60000 \ |
This file contains 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 static org.hamcrest.Matchers.containsInAnyOrder; | |
/** | |
* http://pragmaticqa.co.uk/blog/2012/10/comparing-lists-with-hamcrest/ | |
*/ | |
@Test | |
public void TEST_HAMCREST_listTestsWithoutOrder() { | |
List<String> list1 = new ArrayList<>(); | |
List<String> list2 = new ArrayList<>(); |
This file contains 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
Github and Travis | |
#prereq for travis installation: | |
1. install travis-cli | |
1.1 ruby --version | |
-> gives 2.3 | |
(1.2 sudo apt-get install pkg-config) | |
1.2 sudo apt-get install build-essential | |
sudo apt-get install libffi-dev | |
#install travis |
This file contains 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
#!/usr/bin/groovy | |
def name='World'; println "change file names" | |
String oldFilename = "old.txt" | |
String newFilename = "new.txt" | |
new File(oldFilename).renameTo(new File(newFilename)) |
This file contains 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
<!-- able to uploead 9.0 MB file--> | |
<subsystem xmlns="urn:jboss:domain:undertow:1.2"> | |
<buffer-cache name="default"/> | |
<server name="default-server"> | |
<http-listener name="default" socket-binding="http" max-header-size="974247881"/> | |
<host name="default-host" alias="localhost"> | |
<location name="/" handler="welcome-content"/> | |
<filter-ref name="server-header"/> | |
<filter-ref name="x-powered-by-header"/> | |
</host> |
This file contains 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
example : | |
log-in | |
~/$WILDFLY_HOME/bin $ ./jboss-cli.sh --connect | |
[standalone@localhost:9990 /] /subsystem=datasources:read-resource | |
{ | |
"outcome" => "success", | |
"result" => { | |
"data-source" => { | |
"ExampleDS" => undefined, | |
"MediaDS" => undefined |
This file contains 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
/subsystem=undertow/server=default-server/http-listener=default/:write-attribute(name=max-post-size,value=1048576000) |
This file contains 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
in Makefile | |
#!make | |
include .env2 | |
in bash-script | |
#!/bin/bash | |
source .env2 |
OlderNewer