Skip to content

Instantly share code, notes, and snippets.

View vidhya03's full-sized avatar

Vidhyadharan Deivamani vidhya03

View GitHub Profile
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
name: first-pool
namespace: metallb-system
spec:
addresses:
- 152.16.16.240-152.16.16.250
@vidhya03
vidhya03 / version-change.sh
Created June 25, 2023 02:28
Automating the version change by checking out the repository and changing the version and commit ,push and create new PR
dir_root_path="/path-to/codeline-version-change/"
files=(
"microservice1;[email protected]:AIM/microservice1"
"microservice2;[email protected]:AIM/microservice2"
"microservice3;[email protected]:AIM/microservice3"
)
itrac_codeline="JIRA-2345"
old_version="3.2.2"
new_version="3.3.0"
@vidhya03
vidhya03 / RestTemplateHttp5Upgrade.java
Created April 14, 2024 03:20
This is for blog - java17 upgrade and under sub section - Upgrading to Apache HttpClient 5
import org.apache.hc.client5.http.config.ConnectionConfig;
import org.apache.hc.client5.http.config.RequestConfig;
import org.apache.hc.client5.http.cookie.StandardCookieSpec;
import org.apache.hc.client5.http.impl.classic.CloseableHttpClient;
import org.apache.hc.client5.http.impl.classic.HttpClients;
import org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManager;
import org.apache.hc.client5.http.impl.io.PoolingHttpClientConnectionManagerBuilder;
import org.apache.hc.client5.http.ssl.SSLConnectionSocketFactoryBuilder;
import org.apache.hc.client5.http.ssl.SSLConnectionSocketFactory;
import org.apache.hc.core5.http.io.SocketConfig;
import io.netty.channel.ChannelOption;
import io.netty.handler.timeout.ReadTimeoutHandler;
import io.netty.handler.timeout.WriteTimeoutHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;