Skip to content

Instantly share code, notes, and snippets.

View ashutosh049's full-sized avatar

ashutosh ashutosh049

  • Pune
View GitHub Profile
@ashutosh049
ashutosh049 / System Design.md
Created May 18, 2021 21:11 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@ashutosh049
ashutosh049 / DockerSpringBootLoggingUsingSyslogAndLogstash.md
Created March 1, 2020 14:42 — forked from jamescookie/DockerSpringBootLoggingUsingSyslogAndLogstash.md
Centralised logging for Docker containers running Spring Boot applications

Centralised logging for Docker containers running Spring Boot applications

Log flow through the system

Log flow

About

We have a bunch of Spring Boot apps running in various Docker containers and wanted a centralised place to view the logs

@ashutosh049
ashutosh049 / openAndClosePrices.java
Created September 25, 2019 07:20 — forked from andersonmo/openAndClosePrices.java
Q4 - Stock Open Close Price on Particular Weekdays (www.hackerrank.com)
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
import java.net.*;
import com.google.gson.*;
//------ My code -----------
import java.io.InputStreamReader;
@ashutosh049
ashutosh049 / ConnectorConfig.java
Created September 3, 2019 09:43 — forked from ThomasVitale/ConnectorConfig.java
How to enable HTTPS in a Spring Boot Application
@Configuration
public class ConnectorConfig {
@Bean
public EmbeddedServletContainerFactory servletContainer() {
TomcatEmbeddedServletContainerFactory tomcat = new TomcatEmbeddedServletContainerFactory() {
@Override
protected void postProcessContext(Context context) {
SecurityConstraint securityConstraint = new SecurityConstraint();
securityConstraint.setUserConstraint("CONFIDENTIAL");
@ashutosh049
ashutosh049 / KongJwt.md
Created April 29, 2019 11:55 — forked from martinheld/KongJwt.md
Short example to use JWT with Kong

JWT Kong Example

  • Get and Start Kong and Co
git clone git@github.com:Mashape/docker-kong.git
cd docker-kong/compose
docker-compose up
  • Create Kong API Route