Then create the user; remember setting to his password to "chessman123"
sudo adduser binsun
import bson | |
from pymongo import MongoClient | |
def dump(collections, conn, db_name, path): | |
""" | |
MongoDB Dump |
version: '2' | |
services: | |
web: | |
image: php:apache | |
restart: unless-stopped | |
volumes: | |
- $PWD:/var/www | |
ports: | |
- 80:80 |
-- Remove the history from | |
rm -rf .git | |
-- recreate the repos from the current content only | |
git init | |
git add . | |
git commit -m "Initial commit" | |
-- push to the github remote repos ensuring you overwrite history | |
git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git |