Skip to content

Instantly share code, notes, and snippets.

View chowdhary987's full-sized avatar

Avinash Chowdary chowdhary987

View GitHub Profile
AWS new instance type which are full HVM, utilizes NVMe interface for accessing the EBS volume, instead of paravirtual driver on HVM AMI.
With the following instances, EBS volumes are exposed as NVMe block devices: C5, C5d, i3.metal, M5, and M5d. The device names are /dev/nvme0n1, /dev/nvme1n1, and so on. The device names that you specify in a block device mapping are renamed using NVMe device names (/dev/nvme[0-26]n1).
Please type sudo lsblk to get the device listing e.g. when I have created another volume and attached as /dev/sdb, it is being shown as nvme1n1.
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
nvme0n1 259:1 0 30G 0 disk
nvme0n1p1 259:2 0 1M 0 part
@chowdhary987
chowdhary987 / README.md
Created August 6, 2018 08:23 — forked from hilios/README.md
init.d for supervisord for Amazon Linux AMI

Auto start for Supervisord at AWS

Install commands
$ sudo mv supervisor /etc/init.d
$ sudo chkconfig --add supervisor
$ sudo chkconfig supervisor on
@chowdhary987
chowdhary987 / gist:ea9266f6819f834312350b9e16a76802
Created August 10, 2018 05:44 — forked from sebsto/gist:19b99f1fa1f32cae5d00
Install Maven with Yum on Amazon Linux
sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
sudo sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo
sudo yum install -y apache-maven
mvn --version
@chowdhary987
chowdhary987 / install_postgresql.sh
Created August 10, 2018 14:27 — forked from dstroot/install_postgresql.sh
Install PostgreSQL on Amazon AMI
#!/bin/bash
###############################################
# To use:
# https://raw.github.com/gist/2776351/???
# chmod 777 install_postgresql.sh
# ./install_postgresql.sh
###############################################
echo "*****************************************"
echo " Installing PostgreSQL"
echo "*****************************************"
@chowdhary987
chowdhary987 / mysqldb_python3.sh
Created October 31, 2018 16:31 — forked from shibli049/mysqldb_python3.sh
Install mysqlclient for python3
#sudo pip3 install mysqlclient fails with mysql_config not found
sudo apt-get install libmysqlclient-dev
#without pip3 it will not going to work for python3
sudo pip3 install mysqlclient
# to run django migration
python3 manage.py migrate
@chowdhary987
chowdhary987 / nginxproxy.md
Created January 28, 2019 07:33 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

version: '2.1'
services:
kong-migrations:
image: "${KONG_DOCKER_TAG:-kong:0.14.1-alpine}"
command: kong migrations up
depends_on:
db:
condition: service_healthy
environment:
KONG_DATABASE: postgres
@chowdhary987
chowdhary987 / basic_auth.md
Created January 30, 2019 12:10 — forked from hiroyuki-sato/basic_auth.md
digdag basic auth
daemon off;
#error_log /dev/stdout debug;
error_log /dev/stdout info;
events {

}
http {
        access_log /dev/stdout;
@chowdhary987
chowdhary987 / .gitlab-ci.yml
Created March 14, 2019 09:30 — forked from thornbill/.gitlab-ci.yml
Example Node GitLab CI Yamlfile
# Official framework image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/node/tags/
image: node:6
before_script:
- npm install
# This folder is cached between builds
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache
cache:
@chowdhary987
chowdhary987 / azure-pipelines.yml
Created March 29, 2019 11:42 — forked from zhangtaii/azure-pipelines.yml
Setup Azure Pipelines for React Native
trigger:
branches:
include:
- master
- releases/*
exclude:
- refs/tag/*
pool: