This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### install pip first ### | |
### pip is package manager for python ### | |
sudo apt-get install python-pip | |
### install virtualenv from pip ### | |
pip install virtualenv | |
### check the version ### | |
virtualenv --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Create the file /etc/apt/sources.list.d/pgdg.list and add a line for the repository ### | |
deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main | |
### Import the repository signing key, and update the package lists ### | |
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
### update and install postgresql ### | |
sudo apt-get update && sudo apt-get install postgresql-10 | |
## start ## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### install mysql connector using pip ### | |
pip install mysql-connector-python | |
### if issue persists while importing mysql connector ### | |
>>> import mysql.connector | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
ImportError: No module named mysql.connector | |
>>> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
RUN apt-get update | |
RUN apt-get install -y wget | |
RUN apt-get install bzip2 | |
RUN wget https://repo.continuum.io/archive/Anaconda3-5.0.1-Linux-x86_64.sh | |
RUN bash Anaconda3-5.0.1-Linux-x86_64.sh -b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------------------------------------------------------------------------------------------------ | |
### uninstall old version if present ### | |
$ sudo apt-get remove docker docker-engine docker.io | |
### for Xenial 16.04 and newer #### | |
### Update the apt package index ### | |
$ sudo apt-get update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
***The Docker daemon always runs as the root user. | |
If you don’t want to preface the docker command with sudo, | |
create a Unix group called docker and add users to it. | |
When the Docker daemon starts, it creates a Unix socket | |
accessible by members of the docker group. *** | |
### Create the docker group ### | |
$ sudo groupadd docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##### add remote origin ######### | |
git remote add origin https://github.com/limbuu/machinelearning-basics.git | |
##### set remote -url orgin if there is existing origin ####### | |
git remote set-url origin git@github.com:User/User.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Build image ## | |
docker build -t image_name . | |
### Build image with version tag ### | |
docker build -t image_name:version_tag . (To build particular version) | |
### Run image ### | |
docker run image_name -it bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## install git Large File Storage (git LFS) ##### | |
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash | |
sudo apt-get install git-lfs | |
## select any file types you like to manage ## | |
git lfs track "*.csv" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Create environment ## | |
conda create -n MY_ENV (u can specify python) | |
## Activate environment ## | |
source activate MY_ENV | |
## Deactivate environment ## | |
source deactivate |
OlderNewer