Skip to content

Instantly share code, notes, and snippets.

View vidhya03's full-sized avatar

Vidhyadharan Deivamani vidhya03

View GitHub Profile
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;
@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;
@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"
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
name: first-pool
namespace: metallb-system
spec:
addresses:
- 152.16.16.240-152.16.16.250
{
"name": "Hugo (Community)",
"build": {
"dockerfile": "Dockerfile",
"args": {
// Update VARIANT to pick hugo variant.
// Example variants: hugo, hugo_extended
// Rebuild the container if it already exists to update.
"VARIANT": "hugo_extended",
// Update VERSION to pick a specific hugo version.
Specs ESP8266 12E ESP-32 Arduino UNO R3 Raspberry PI 3 B+
Power Rating 197 mA 220 mA 200mA 459mA
Core 1 2 1 4×Cortex-A53
Arquitecture 32-bits 32-bits 8-bits 64-bits
Clock 80-160MHz 160-240MHz 16MHz 1.4GHz
WiFi Yes Yes No b/g/n/ac dual band
Bluetooth No Yes-Classic & BLE No 4.2 LS BLE
RAM 160KB 520KB 2K 1GB
Flash 16MB 16MB 32KB 1-2 or 4GB LPDDR4-3200 RAM
GPIO 11 22 12 40 (28 accessable)
@vidhya03
vidhya03 / cloudSettings
Last active February 3, 2021 05:57
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-06-11T10:37:30.607Z","extensionVersion":"v3.2.9"}
This file has been truncated, but you can view the full file.
@vidhya03
vidhya03 / change-favicon.js
Created October 10, 2017 10:53 — forked from mathiasbynens/change-favicon.js
Dynamically changing favicons with JavaScript
/*!
* Dynamically changing favicons with JavaScript
* Works in all A-grade browsers except Safari and Internet Explorer
* Demo: http://mathiasbynens.be/demo/dynamic-favicons
*/
// HTML5™, baby! http://mathiasbynens.be/notes/document-head
document.head || (document.head = document.getElementsByTagName('head')[0]);
function changeFavicon(src) {
@vidhya03
vidhya03 / FamBillBot-in-slack.gif
Last active July 18, 2017 21:19
TheChatBotChallenge-2017
FamBillBot-in-slack.gif