Skip to content

Instantly share code, notes, and snippets.

@manthasriram
manthasriram / txt
Created May 31, 2022 03:43
AWS CLI commands
$ aws configure list-profiles
#Start configuring
aws configure
## creating cloudformation stack
aws cloudformation create-stack \
--stack-name myteststack \
--template-body file:///home/testuser/mytemplate.json \
--parameters ParameterKey=Parm1,ParameterValue=test1 ParameterKey=Parm2,ParameterValue=test2
@manthasriram
manthasriram / dockerfile
Created March 17, 2021 16:13
Multi stage maven build
## This is a multi stage build
# our base build image
FROM maven:3.5-jdk-8 as maven
# copy the project files
COPY ./pom.xml ./pom.xml
# build all dependencies
RUN mvn dependency:go-offline -B
@manthasriram
manthasriram / mvc-docker-compose.yaml
Created February 24, 2021 17:25
Simple Angular Spring app - docker compose
version: '3.4'
services:
tradedashboard-ui:
image: manthalabs/tradedashboard
environment:
- RoboTraderAPIUrl=http://robotrader-api
ports:
- "8081:80"
depends_on:
//Your custom logic can go here
SimpleBeanPropertyFilter theFilter = new SimpleBeanPropertyFilter() {
@Override
protected boolean include(BeanPropertyWriter writer) {
Annotation annotation = writer.getAnnotation(AvailableForInternalClients.class);
//Basically if the annotation is defined and the Client is an External client then we dont include the property
return annotation == null || clientTypeIdentifier.isInternalClient();
}
};