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
% split -l 10000 big.csv chunk- |
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
public class MulticastTest extends CamelTestSupport { | |
@Override | |
public boolean isUseRouteBuilder() { | |
return true; | |
} | |
@Override | |
protected RoutesBuilder createRouteBuilder() { | |
return routeBuilder(routeBuilder -> { |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<AnyConnectProfile xmlns="http://schemas.xmlsoap.org/encoding/"> | |
<ServerList> | |
<HostEntry> | |
<User>XXXX</User> <!-- your username --> | |
<HostName>YYYYY</HostName> <!-- your hostname that will show as a profile --> | |
<HostAddress>ZZZZZZ</HostAddress> <!-- host url --> | |
</HostEntry> | |
</ServerList> | |
<ServerList> |
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
# Assuming an Ubuntu Docker image | |
$ docker run -it <image> /bin/bash |
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
@Scenario("DEFAULT_SCENARIO") | |
public class DefaultScenario extends AbstractSimulatorScenario { | |
@Override | |
public void run(ScenarioRunner scenario) { | |
scenario | |
.http() | |
.receive(httpServerReceiveActionBuilder -> httpServerReceiveActionBuilder | |
.get() | |
); |
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
@Scenario("CreateNewOrder") | |
@RequestMapping(value = "/services/rest/v1/order", method = RequestMethod.POST) | |
public class CreateNewOrderScenario extends AbstractSimulatorScenario { | |
@Override | |
public void run(ScenarioRunner scenario) { | |
scenario | |
.http() | |
.receive(httpServerReceiveActionBuilder -> { | |
httpServerReceiveActionBuilder.post(); | |
}); |
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
<dependency> | |
<groupId>com.consol.citrus</groupId> | |
<artifactId>citrus-simulator-starter</artifactId> | |
<version>1.0.2</version> | |
</dependency> | |
<dependency> | |
<groupId>com.consol.citrus</groupId> | |
<artifactId>citrus-simulator-ui</artifactId> | |
<version>1.0.2</version> | |
</dependency> |
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 org.apache.commons.codec.digest.DigestUtils; | |
import org.junit.Assert; | |
import org.junit.Test; | |
import javax.xml.bind.DatatypeConverter; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
public class Md5UtilTest{ |
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
spring.datasource.url=jdbc:mysql://HOST:PORT/DATABASE | |
spring.datasource.username=USERNAME | |
spring.datasource.password=USER_PASSWORD | |
spring.datasource.driver-class-name=com.mysql.jdbc.Driver | |
spring.jpa.hibernate.ddl-auto=update |
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
MERGE INTO <TABLE_NAME> <ALIAS1> USING | |
( | |
SELECT | |
:COLUMN1 AS COLUMN1 | |
,:COLUMN2 AS COLUMN2 | |
,:COLUMN3 AS COLUMN3 | |
FROM DUAL | |
) <ALIAS2> ON | |
( | |
--- CONDITION |
NewerOlder