Skip to content

Instantly share code, notes, and snippets.

View velmuruganvelayutham's full-sized avatar
🎯
Focusing

Velmurugan Velayutham velmuruganvelayutham

🎯
Focusing
View GitHub Profile
@velmuruganvelayutham
velmuruganvelayutham / SSLPoke.java
Created February 12, 2023 14:15 — forked from bric3/SSLPoke.java
The famous SSLPoke from Atlassian : establish a TLS connection but support http proxy and updated to Java 11
import javax.net.ssl.SSLParameters;
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.Socket;
@velmuruganvelayutham
velmuruganvelayutham / golang-tls.md
Created October 31, 2019 11:27 — forked from denji/golang-tls.md
Simple Golang HTTPS/TLS Examples
Generate private key (.key)
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048

# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)

Becoming a Spring Certified Professional without the Core Spring Course

Until recently, the only way you could become a Certified Spring Professional was to take Pivotal’s compulsory, 4-day, Core Spring training course. On completion of the course, participants received an exam voucher that allowed them to schedule an exam at a certification centre.

At approximately £2.5k per attendee, the course is not cheap putting certification out of the reach of many self-funded developers and those that work for organisations without generous training budgets.

In May 2017 Pivotal changed their policy. Spring Certification Exams became available for individual purchase without enrolling in the course. I set out to see if it was possible to pass the exam without the Core Spring course and only using publically available material.

I set myself a budget of £250, ap

@velmuruganvelayutham
velmuruganvelayutham / find-currupt-jars.txt
Created June 10, 2019 00:55 — forked from gsitgithub/find-currupt-jars.txt
maven: Find corrupted jar files
run this in .m2 files
it lists all the corrupted jar files in the repository
find /home/me/.m2/repository/ -name "*jar" | xargs -L 1 zip -T | grep error | grep invalid
To resolve them , delete them first and re run the build or run
@velmuruganvelayutham
velmuruganvelayutham / reading-property-from-file.sh
Created June 1, 2019 02:03 — forked from marcelbirkner/reading-property-from-file.sh
Read property from properties file within Shell Script
#!/bin/sh
PROPERTY_FILE=apps.properties
function getProperty {
PROP_KEY=$1
PROP_VALUE=`cat $PROPERTY_FILE | grep "$PROP_KEY" | cut -d'=' -f2`
echo $PROP_VALUE
}
@velmuruganvelayutham
velmuruganvelayutham / 01_setup_snowflake_cache.config
Last active August 7, 2019 17:41
setup-snowflake-cache-beanstalk - ebextensions
container_commands:
01_setup_snowflake_cache:
command: sudo sh .ebextensions/setup-snowflake.sh > /tmp/snowflake-output.txt 2>&1
ignoreErrors: false
@velmuruganvelayutham
velmuruganvelayutham / install-comodo-ssl-cert-for-nginx.rst
Created May 11, 2019 06:59 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

default:
url: https://confidant.example.com
auth_key: alias/confidant-production
auth_context:
# from context will be auto-set
to: confidant-production
user_type: user
token_cache_file: '/Users/myhomedir/.confidant_token'
region: us-east-1
@velmuruganvelayutham
velmuruganvelayutham / .gitlab-ci.yml
Last active June 10, 2022 23:36
Gitlab-CI - Review Apps - Spring Boot - Heroku
variables:
REVIEW_APP_NAME: "$CI_COMMIT_REF_SLUG-$CI_PROJECT_NAME"
stages:
- build
- review
- deploy
build:
stage: build

Keybase proof

I hereby claim:

  • I am velmuruganvelayutham on github.
  • I am velmuruganv (https://keybase.io/velmuruganv) on keybase.
  • I have a public key whose fingerprint is D756 8BF3 15FD 8AB5 245F F131 54AA 6ECC 3EB6 3A8D

To claim this, I am signing this object: