Feb 28, 2024

tips for soft launch properties file

In most of the projects, two sets of properties files will be maintained for production environment. One for soft launch and another for actual implementation.


While deploying, you might be using different approaches to migrate only *e1_sl* files during soft launch and actual files e1* during actual implementation.

Instead, you can maintain different folders like below.


You can use maven profiles to deploy the respective properties files during soft launch & actual implementation.



As you can see below, using "-P actual" adds the contents of resources folder to the artifact.

Using "-P sl" will add contents of the "resources_sl" folder to the artifact.


Hope this helps someone. Would love to see other ways of doing the same in the comments...

Ref:
https://stackoverflow.com/questions/1149352/using-maven-for-multiple-deployment-environment-production-development
https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html






Sep 6, 2023

Recipe-garlic curry

Garlic puli kolambu

This is for 2-3 people

Pour little oil in the pan.

Half Onion( shallots should be used for this curry)

Half tomato

Garlic(6-8)

Hand full of coconut

Saute for 5 mins( until coconut becomes dry)

Keep it aside and let it cool down.

Then, grind to a paste using mixie.


In the same pan, add the below

Oil

Fenugreek 

Curry leaves

Onion (little bit)

Garlic (12-15) 

Saute for a few minutes

Then add 

Sambar powder ( 2 tsp)

Tumeric

Corrinder powder (2tsp)

Chilly powder( as needed )

Salt

Tamarind water

Add the previously grinded paste to the pan and mix it well

Keep it In medium flame for 20 minutes and sauté or stir every 5 minutes

Aug 20, 2018

git: fatal: unable to access 'remote link': Received HTTP code 502 from proxy after CONNECT

Get a verbose log
export GIT_CURL_VERBOSE=1
git pull origin master
Confirm that the issue is related to proxy
Check your proxy


echo $http_proxy;echo $https_proxy;echo $HTTP_PROXY;echo $HTTPS_PROXY

Unset proxy

unset http_proxy;unset https_proxy;unset HTTP_PROXY;unset HTTPS_PROXY

Or

git config --add remote.origin.proxy ""


Now, the git command will work fine

To make it permanent, add the below to .bash_profile

export no_proxy=stash.company.com


Ref:

https://stackoverflow.com/questions/16538372/git-proxy-bypass



May 25, 2018

mac tips

 
Tips
Shortcut Keys
 
1
Show hidden files
cmd+shift+. 
2
for adhoc path while saving
cmd+shift+g 
3
Screen shot for full screen to clip board
ctrl+cmd+shift+3 
4
Screen shot for partial screen to clip board
ctrl+cmd+shift+4 
5
Screen shot for full screen to desktop
cmd+shift+3 
6
Screen shot for partial screen to desktop
cmd+shift+4 
7
show desktop
Fn + F11 
8
Move to trash
cmd+del 
9Deletectrl+d 
10open terminal  
11
open .app
open TOS_BD-macosx-cocoa.app
 

intellijgo backopt+cmd+<-
macyoutubeL - Skip forward 10 seconds J - Skip back 10 seconds K - Pause/play
gitgit update password
mac - git config --global --unset user.password

windows - git config --system --unset credential.helper

python tips


-> ModuleNotFoundError

ModuleNotFoundError: No module named 'openpyxl'

-> Cannot connect to proxy

pip3 install openpyxl

Collecting openpyxl
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x111744fd0>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known'))': /simple/openpyxl/



export https_proxy=https://<user>:<password>@proxy.company.com:8080

-> Could not install packages due to an EnvironmentError

Installing collected packages: jdcal, et-xmlfile, openpyxl

Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/jdcal.py'
Consider using the `--user` option or check the permissions.


pip3 install --user openpyxl

-> pip for python 2x & pip3 for python 3x