Skip to content

Instantly share code, notes, and snippets.

View mamun67's full-sized avatar

SK MAMUN ARFIN mamun67

  • INDIA (WEST BENGAL)
View GitHub Profile
@mamun67
mamun67 / Troubleshoot
Created September 4, 2018 11:13
EC2 Troubleshooting Commands
To view the status of all instances, use the following command:
aws ec2 describe-instance-status
To get the status of all instances with a instance status of impaired:
aws ec2 describe-instance-status --filters Name=instance-status.status,Values=impaired
To get the status of a single instance, use the following command:
aws ec2 describe-instance-status --instance-ids i-1234567890abcdef0
@mamun67
mamun67 / Google Maps Simple Multiple Marker Example
Created September 18, 2018 18:51 — forked from parth1020/Google Maps Simple Multiple Marker Example
Google Maps Simple Multiple Marker Example
<html>
<head>
<title>Google Maps Multiple Markers</title>
<script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>
</head>
<body>
<div id="map" style="height: 400px; width: 500px;">
</div>
<script type="text/javascript">
@mamun67
mamun67 / gist:a9a9e182b1fd5a086ec544f7d3d9ca9c
Created October 30, 2018 09:18 — forked from mikepfeiffer/gist:4d9386afdcceaf29493a
EC2 UserData script to install CodeDeploy agent
#!/bin/bash
yum install -y aws-cli
cd /home/ec2-user/
aws s3 cp 's3://aws-codedeploy-us-east-1/latest/codedeploy-agent.noarch.rpm' . --region us-east-1
yum -y install codedeploy-agent.noarch.rpm
@mamun67
mamun67 / setup-kubernetes-ubuntu-16.md
Created November 10, 2018 16:16 — forked from ruanbekker/setup-kubernetes-ubuntu-16.md
Install a 3 Node Kubernetes Cluster on Ubuntu 16

Master: Dependencies

apt update && apt upgrade -y
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -

cat <<EOF > /etc/apt/sources.list.d/kubernetes.list
deb http://apt.kubernetes.io/ kubernetes-xenial main
EOF
@mamun67
mamun67 / docker_registry
Last active July 11, 2020 07:03
Docker Registry Setup
docker run -d -p 5000:5000 --restart always --name registry registry:2
docker run --rm -it -p 5000:5000 registry:2
http://localhost:5000/v2/_catalog
//format to to push image into the registry
format: source image registry:port/repository [:tag]
docker tag mongo localhost:5000/mongo
docker push localhost:5000/mongo
@mamun67
mamun67 / aws
Last active December 27, 2018 08:56
AWS NOTES
EC@ instnace types
On Spot:
Suitable for developmentand flexibility, also for application with unpredictable load or spiky workloads
Reserverd Instance
Suitable for steady and predictable usage, also schduled instance available
Spot Instance
Suitable for flexible start and end time , also needing large amount of additional computing capacity with urgent need
Dedicated Hosts
It is good for deployments which does not support multitenance and cloud deployments
@mamun67
mamun67 / kubernetes
Last active January 10, 2019 06:51
kubernetes_notes
What is kubernetes
(An orchetrator for microservice apps)
system for running many different containers over multiple different machines
Why user kubernetes?
when you need to run many different conatiners with different images
kubectl -> used for managing containers in the node and interact with node
@mamun67
mamun67 / docker_network
Created January 2, 2019 05:18
Docker Networking
docker network
docker network ls
docker network inspect <networkname>
dcoker network create -d bridge --subnet 10.0.0.1/24 ps-bridge
//tutorial link
https://docs.docker.com/network/
@mamun67
mamun67 / sysops
Created January 5, 2019 10:56
aws_sysops
AWS Cloudwatch- is used for monitoring the aws services as well as the applications running on aws
Cloudwatch can monitor things like
Compute:
AUto scaling
ELB
Route 53 healthcheck
Storage and content Delivery
EBS volumne
Storgae gateway
@mamun67
mamun67 / hadoop
Created January 13, 2019 20:28
Hadoop Basics
Pre Hadoop 2.2
Two main components
-disstributed file system
-MapReduce Engine
HDFS runs on top of the existing file system
Designed to handle very large files