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 static ClientHttpRequestFactory httpRequestFactoryWithoutSsl() { | |
TrustStrategy acceptingTrustStrategy = (x509Certificates, s) -> true; | |
SSLContext sslContext = null; | |
try { | |
sslContext = org.apache.http.ssl.SSLContexts.custom().loadTrustMaterial(null, acceptingTrustStrategy).build(); | |
} catch (NoSuchAlgorithmException | KeyManagementException | KeyStoreException e) { | |
log.error("problem with creating no-ssl context"); | |
} | |
SSLConnectionSocketFactory csf = new SSLConnectionSocketFactory(sslContext, new NoopHostnameVerifier()); | |
CloseableHttpClient httpClient = HttpClients.custom().setSSLSocketFactory(csf).build(); |
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
brew uninstall nvm | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash | |
vim ~/.zshrc | |
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
nvm install --lts node | |
nvm ls | |
nvm alias default 'lts/*' |
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
brew update | |
brew tap homebrew/cask-versions | |
brew cask install java | |
brew cask install java11 | |
brew cask install java8 | |
brew install jenv | |
vim ~/.zshrc | |
export PATH="$HOME/.jenv/bin:$PATH" | |
eval "$(jenv init -)" |
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
https://github.com/lettuce-io/lettuce-core/issues/882#issuecomment-430531861 |
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"?> | |
<!DOCTYPE suppressions PUBLIC | |
"-//Puppy Crawl//DTD Suppressions 1.1//EN" | |
"http://www.puppycrawl.com/dtds/suppressions_1_1.dtd"> | |
<suppressions> | |
<suppress files="[\\/]jaxb[\\/]" checks=".*"/> | |
<!-- (6.9.1 version of checkstyle) suppress files="^(?!.*[\\/]jaxb[\\/])([a-zA-Z0-9\\/]*)" checks=".*"/--> | |
</suppressions> |
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"?> | |
<!DOCTYPE module PUBLIC | |
"-//Puppy Crawl//DTD Check Configuration 1.3//EN" | |
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> | |
<!-- | |
Checkstyle configuration that checks the sun coding conventions from: | |
- the Java Language Specification at |
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
/*! ****************************** | |
Handlebars helpers | |
*******************************/ | |
// debug helper | |
// usage: {{debug}} or {{debug someValue}} | |
// from: @commondream (http://thinkvitamin.com/code/handlebars-js-part-3-tips-and-tricks/) | |
Handlebars.registerHelper("debug", function(optionalValue) { | |
console.log("Current Context"); | |
console.log("===================="); |
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
(?s)word1.*word2 |
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 profiles https://github.com/exogenesick/jersey-rest/blob/614eebd3981ca0bfffa7f32da78958623fcd8167/src/main/resources/application-context.xml |
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
package com.javarush.test.level03.lesson06.task03; | |
/* Семь цветов радуги | |
Выведи на экран текст: семь цветов радуги. | |
В каждой строке должно быть по три цвета, в последней - один. | |
Цвета разделяй пробелом. | |
*/ | |
public class Solution | |
{ |
NewerOlder