Skip to content

Instantly share code, notes, and snippets.


EJLP ejlp12

  • Indonesia
View GitHub Profile
ejlp12 /
Last active May 11, 2020 — forked from candyflossuk/
👩‍🌾 Fargate Vs EC2

Comparing different launch types of EKS/ECS: Fargate vs EC2

Fargate vs EC2

  • Fargate runs docker containers serverless. Fargate utilizes Docker containers and runs them virtually.
  • Fargate allows you to run containers without having to manage servers or clusters.
  • No need to scale, provision or configure clusters of virtual machines to run containers.
  • No need to choose server types and how they communicate
ejlp12 / AWSDevOpsStudyNotes
Created Oct 3, 2019
AWS DevOps Engineer Professional Study Notes
View AWSDevOpsStudyNotes
CI & CD:
2 core software development processes
CI process of automating regular code commits followed by an automated build and test process designed to highlight intergration issues early.
Additional tooling and functionality provided by Bamboo, CruiseControl, Jenkins, Go and TeamCity etc.
workflow based
CD takes the form of a workflow based process which accepts a tested software build payload from a CI server. Automates the deployment into a working QA, Pre-prod or Prod environment.
AWS CodeDeploy and CodePipeline provide CI/CD services
Elasticbeanstalk and CFN provide functionality which can be utilized by CI/CD servers.
ejlp12 /
Created Apr 13, 2019 — forked from triggan/
re:Invent 2017 - Workshop Repositories


A list of public repositories and content from re:Invent 2017 Workshops. Some of these repos also contain the slides from teh workshops as well, but not all. Many of the links are subject to be moved or completely removed at any point in time in the future.

Session ID Session Name Repo
ABD313 Building an End-to-End Serverless Data Analytics Solution on AWS
AMF303 Deep Dive into the Connected Vehicle Reference Architecture
ARC325 Managing Multiple AWS Accounts at Scale
# bash generate random alphanumeric string
# bash generate random 32 character alphanumeric string (upper and lowercase) and
NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)
# bash generate random 32 character alphanumeric string (lowercase only)
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
ejlp12 /
Last active Jan 31, 2019 — forked from n0ts/
Get latest Oracle JDK package bash shell script
# You must accept the Oracle Binary Code License
# usage: <jdk_version> <ext>
# jdk_version: 8(default) or 9
# ext: rpm or tar.gz
ejlp12 /
Created May 22, 2018 — forked from staaldraad/
AWK to get details from /proc/net/tcp and /proc/net/udp when netstat and lsof are not available
# Gawk version
# Remote
grep -v "rem_address" /proc/net/tcp | awk '{x=strtonum("0x"substr($3,index($3,":")-2,2)); for (i=5; i>0; i-=2) x = x"."strtonum("0x"substr($3,i,2))}{print x":"strtonum("0x"substr($3,index($3,":")+1,4))}'
# Local
grep -v "rem_address" /proc/net/tcp | awk '{x=strtonum("0x"substr($2,index($2,":")-2,2)); for (i=5; i>0; i-=2) x = x"."strtonum("0x"substr($2,i,2))}{print x":"strtonum("0x"substr($2,index($2,":")+1,4))}'
# No Gawk
# Local
grep -v "rem_address" /proc/net/tcp | awk 'function hextodec(str,ret,n,i,k,c){
ejlp12 /
Created May 16, 2018 — forked from mayorova/
Deploy 3scale AMP on Amazon EC2

Deploy 3scale AMP on Amazon EC2

This is an easy way to deploy a simple 3scale AMP setup using oc cluster up. Note: This should only be used for development and testing, do not ever use it in production environments.

You will need:

  • a running instance with 8GB RAM minimum (recommended 16GB) and RHEL
ejlp12 /
Created Apr 23, 2018 — forked from cgoldberg/
download and install latest geckodriver for linux or mac (selenium webdriver)
# download and install latest geckodriver for linux or mac.
# required for selenium to drive a firefox browser.
json=$(curl -s
if [[ $(uname) == "Darwin" ]]; then
url=$(echo "$json" | jq -r '.assets[].browser_download_url | select(contains("macos"))')
elif [[ $(uname) == "Linux" ]]; then
url=$(echo "$json" | jq -r '.assets[].browser_download_url | select(contains("linux64"))')
ejlp12 /
Created Apr 20, 2018 — forked from bastman/
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see:

$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
You can’t perform that action at this time.