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 bot.config.ITConfig | |
import org.junit.jupiter.api.extension.ExtendWith | |
import org.springframework.boot.test.context.SpringBootTest | |
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment | |
import org.springframework.test.context.ActiveProfiles | |
import org.springframework.test.context.junit.jupiter.SpringExtension | |
import org.springframework.boot.test.util.TestPropertyValues | |
import org.springframework.context.ConfigurableApplicationContext | |
import org.springframework.context.ApplicationContextInitializer | |
import org.springframework.context.ApplicationListener |
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 SpringBootUndertowHTTP2 { | |
@Bean | |
UndertowEmbeddedServletContainerFactory embeddedServletContainerFactory() { | |
UndertowEmbeddedServletContainerFactory factory = new UndertowEmbeddedServletContainerFactory(); | |
factory.addBuilderCustomizers( | |
builder -> builder.setServerOption(UndertowOptions.ENABLE_HTTP2, true)); | |
return factory; | |
} | |
} |
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
task docker(dependsOn: tasks.bootJar) { | |
def tag = 'app' | |
def workDir = file("$buildDir/docker") | |
def dockerFile = file('src/main/docker/Dockerfile') | |
def inputDir = file("$buildDir/libs") | |
doLast { | |
copy { | |
from inputDir | |
from dockerFile |
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
# JDK 7 | |
-Dcom.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump=true | |
-Dcom.sun.xml.internal.ws.transport.http.HttpAdapter.dump=true | |
-Dcom.sun.xml.internal.ws.transport.http.HttpAdapter.dumpTreshold=999999 | |
# JDK 8 | |
-Dcom.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true | |
-Dcom.sun.xml.ws.transport.http.HttpAdapter.dump=true | |
-Dcom.sun.xml.ws.transport.http.HttpAdapter.dumpTreshold=999999 |
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
{ | |
"name": "teamcity-build-starter", | |
"version": "0.0.1", | |
"private": true, | |
"dependencies": { | |
"node-fetch": "latest" | |
} | |
} |
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
curl -s http://whatthecommit.com/index.txt |
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
¯\_(ツ)_/¯ |
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 trustAllCertificates() { | |
try { | |
TrustManager[] trustAllCerts = new TrustManager[] { | |
new X509TrustManager() { | |
public java.security.cert.X509Certificate[] getAcceptedIssuers() { | |
return null; | |
} | |
public void checkClientTrusted(X509Certificate[] certs, String authType) { | |
} |
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 enableProxy() { | |
System.setProperty("http.proxySet", "true"); | |
System.setProperty("http.proxy", "localhost"); // JavaFX WebView | |
System.setProperty("http.proxyHost", "localhost"); | |
System.setProperty("http.proxyPort", "8080"); | |
System.setProperty("https.proxySet", "true"); | |
System.setProperty("https.proxy", "localhost"); // JavaFX WebView | |
System.setProperty("https.proxyHost", "localhost"); | |
System.setProperty("https.proxyPort", "8080"); |
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
--- | |
- name: Provision | |
hosts: all | |
sudo: yes | |
tasks: | |
- name: Upgrade | |
apt: upgrade=dist | |
- name: Locale install | |
apt: name=language-pack-ru state=latest update_cache=yes cache_valid_time=3600 |