Skip to content

Instantly share code, notes, and snippets.

View amran-bd's full-sized avatar

Amran Hossain amran-bd

View GitHub Profile
FROM openjdk:15-jdk-slim as bulid
WORKDIR application
COPY mvnw .
COPY .mvn .mvn
COPY pom.xml .
COPY src src
RUN ./mvnw install -DskipTests
@amran-bd
amran-bd / docker-compose.yml
Created September 14, 2023 22:05 — forked from luisdiasdev/docker-compose.yml
[docker-compose] Simple Bitnami Zookeeper + Kafka + Kafdrop Admin UI compose file
version: '3'
services:
zookeeper:
image: bitnami/zookeeper:3-debian-10
ports:
- 2181:2181
volumes:
- zookeeper_data:/bitnami
environment:
@amran-bd
amran-bd / grokking_to_leetcode.md
Created September 8, 2023 20:38 — forked from tykurtz/grokking_to_leetcode.md
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window

@amran-bd
amran-bd / configure_k8s.sh
Created September 30, 2022 16:21 — forked from lucashalbert/configure_k8s.sh
Script to install and configure kubernetes on CentOS-7
#######################
# === All Systems === #
#######################
# Ensure system is fully patched
sudo yum -y makecache fast
sudo yum -y update
# Disable swap
sudo swapoff -a
@amran-bd
amran-bd / clean_code.md
Created July 12, 2020 16:43 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules