Skip to content

Instantly share code, notes, and snippets.

View janurag's full-sized avatar
🏠
Working from home

Anurag Jain janurag

🏠
Working from home
View GitHub Profile
@janurag
janurag / docker-compose.yml
Created January 11, 2019 06:12
MySQL and Redis Compose
version: '3.5'
services:
mysql:
container_name: mysql-local
image: mysql:5.7
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: <pass123>
@janurag
janurag / pre-commit
Last active March 17, 2017 12:40
Pre commit Testing and Standardization of Javascript code
#!/bin/sh
# Description: Written while working in Macbook
# color for bash
RED='\033[0;31m'
NC='\033[0m' # No Color
echo "Wait.... I am Testing Your code!"
# for Testing
pwd && ls
@janurag
janurag / deploy.sh
Created February 11, 2016 05:59 — forked from tokudu/deploy.sh
A simple deployment script for EC2 instances
#!/bin/bash
# Updates all EC2 instances from git
# Author: anton@sothree.com
CODE_LOCATION=/var/www/your_project
SERVER_PREFIX=your_project
# exit if something fails
set -e
@janurag
janurag / .gitignore
Created February 10, 2016 10:19
Node gitignore
# For Logs
logs/
*.log
## Directory-based project format:
.idea/
### WebStorm ###
*.iml
# Logs
logs
@janurag
janurag / nginx.conf
Last active January 12, 2016 07:44 — forked from aregee/nginx.conf
# For more information on configuration, see:
# * Official English Documentation: http://nginx.org/en/docs/
# * Official Russian Documentation: http://nginx.org/ru/docs/
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
#error_log /var/log/nginx/error.log notice;
#error_log /var/log/nginx/error.log info;