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
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
#!/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
in Makefile | |
#!make | |
include .env2 | |
in bash-script | |
#!/bin/bash | |
source .env2 |
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
#!/bin/bash | |
# Delete all containers | |
docker rm -f $(docker ps -a -q) | |
# Delete all images | |
docker rmi -f $(docker images -q) | |
remove one image: | |
docker rmi dina/media:v0.4 | |
check |
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
ex. | |
docker pull dina/media:v0.4 | |
docker run --rm -it dina/media:v0.4 bash | |
docker run -it -p 9990:9990 dina/media:v0.4 | |
remove one image: | |
docker rmi dina/media:v0.4 | |
remove a single container ( whith id = beec50b40e9cf67cddd7cf38557f60510d22d2d90182932dfd56974da5075b27 ) |
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
driver=com.mysql.jdbc.Driver | |
url=jdbc:mysql://localhost:3306/liquibase_demo | |
username=demo | |
password=demo | |
verbose=true | |
dropFirst=false |
OlderNewer