[Tutorial] How to set up Auto Scaling group with Elastic Load Balancer on AWS

Today we’re going to learn how to set up auto scaling group with AWS’s Elastic Load Balancer, with third party DNS, like Cloudflare. Set up Launch Templat...

AWS Lambda Tutorial - how to create a daily scheduled task

In this tutorial, I’m going to talk about how to create a AWS Lambda function triggered by scheduled events.For example, I want to schedule a daily job of pu...

Using Async Task Queue Celery with Django

pip install -U celery[django] http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html Trigger task at specific timehttps://vinta.ws/cod...

Jenkins Tutorial pt.3 - Deploying on Servers w/ Docker

Welcome back! In the previos tutorial, we’ve managed to build and push on to ECR docker registry.Now we are going to deploy the code on to our servers! Pre...

Jenkins Tutorial pt.2 - Setup Docker build pipeline w/ECR

Welcome to the second part of the tutorial! We are going to build a docker image and push it to AWS’s ECR docker registry. PrerequisitesFirst, of course, y...

Jenkins Tutorial pt.1 - Installing Jenkins on Ubuntu 18.04 and Setup

Prerequisites:Install Java 8.Note the version number! If you directly install the default jdk, it won’t be 8! 123sudo apt updatesudo apt install openjdk-8-j...

Useful Commands when Fixing EBS in EC2

When there is problem with your EBS Volume, you can try detach the root device, attaching it to another device and access it to fix it. To attach: mount /d...

Deploy Django on AWS EC2

set up instanceFirst, you need to have an AWS IAM account, and set up and instance.Next, you can SSH into the instance with ssh -i key.pem end_pointOnce you ...

[LeetCode] Minimum Height Tree

Topological Sort to find root 1234567891011121314151617181920212223242526272829def findMinHeightTrees(self, n, edges): # Wirte your code here if n == 1...

Fenwick Tree / Binary Indexed Tree

Fenwick Tree, or Binary Indexed Tree, is a data structure for range queries.It is similar to Segment Tree, however A simple implementation for constructing F...