Skip to content

Instantly share code, notes, and snippets.

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

Manjurul Hoque Rumi manjurulhoque

🏠
Working from home
View GitHub Profile
@manjurulhoque
manjurulhoque / Dockerfile
Created June 16, 2019 17:30 — forked from amitavroy/Dockerfile
Docker setup with Laravel
FROM php:7.2.10-apache-stretch
RUN apt-get update -yqq && \
apt-get install -y apt-utils zip unzip && \
apt-get install -y nano && \
apt-get install -y libzip-dev libpq-dev && \
a2enmod rewrite && \
docker-php-ext-install pdo_pgsql && \
docker-php-ext-install pgsql && \
docker-php-ext-configure zip --with-libzip && \
@manjurulhoque
manjurulhoque / docker-help.md
Created June 12, 2019 17:11 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@manjurulhoque
manjurulhoque / custom_exception.py
Created April 9, 2019 12:22 — forked from harunurkst/custom_exception.py
Custom exception handler for Django rest framework
def format_code(code_name):
"""Format django error code to Circle Error code"""
if code_name == 'blank':
return "BLANK_FIELD"
elif code_name == 'invalid':
return "INVALID_DATA"
elif code_name == 'required':
return "KEY_ERROR"
else: