Skip to content

Instantly share code, notes, and snippets.

View chowdhary987's full-sized avatar

Avinash Chowdary chowdhary987

View GitHub Profile
version: '3'
services:
myapp:
container_name: myapp
restart: always
build: .
ports:
- '4300:4300'
- '4301:4301'
links:
user www-data;
worker_processes auto;
worker_rlimit_nofile 10000;
events {
multi_accept on;
worker_connections 10000;
}
@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:
@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 / 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;
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 / 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

@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 / 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 / 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