Skip to content

Instantly share code, notes, and snippets.

View alamin-mahamud's full-sized avatar
🎯
Focusing

Alamin Mahamud alamin-mahamud

🎯
Focusing
View GitHub Profile
@alamin-mahamud
alamin-mahamud / mongo-docker.bash
Created December 17, 2018 00:33 — forked from davideicardi/mongo-docker.bash
Running mongodb inside a docker container (with mongodb authentication)
# Create a container from the mongo image,
# run is as a daemon (-d), expose the port 27017 (-p),
# set it to auto start (--restart)
# and with mongo authentication (--auth)
# Image used is https://hub.docker.com/_/mongo/
docker pull mongo
docker run --name YOURCONTAINERNAME --restart=always -d -p 27017:27017 mongo mongod --auth
# Using the mongo "localhost exception" (https://docs.mongodb.org/v3.0/core/security-users/#localhost-exception)
# add a root user
@alamin-mahamud
alamin-mahamud / django_cmd.sh
Created August 4, 2018 08:36 — forked from hezhao/django_cmd.sh
Django Commands Cheatsheet
# Use Python 3 for easy unicode
$ virtualenv -p python3 .env
$ source .env/bin/activate
$ pip install django
$ deactivate
# Start new django project and app
$ django-admin.py startproject mysite
$ ./manage.py migrate
$ ./manage.py createsuperuser
@alamin-mahamud
alamin-mahamud / README-Template.md
Created July 25, 2018 02:20 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@alamin-mahamud
alamin-mahamud / template.node.travis.yml
Created July 25, 2018 02:19 — forked from pwmckenna/template.travis.yml
basic template for nodejs travis
# This .travis.yml file instructs travis-ci.org to build your master branch using `yeoman build`
# and deploy the output to your project's gh-pages branch.
#
# You must sign into travis-ci.org and set the commit hook on your project for travis to
# run on your project. You also need to replace the env variables below. The secure: variable
# must be generated by running `travis encrypt` on a github oauth key that you can generate using
# curl.
language:
node_js
@alamin-mahamud
alamin-mahamud / webdev_online_resources.md
Created July 18, 2018 00:39 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)