This file contains hidden or 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
## Installing MONGODB | |
Specific Version to install: 3.2.16 | |
Ubuntu 16.04 OS | |
Source: https://docs.mongodb.com/v3.2/tutorial/install-mongodb-on-ubuntu/ | |
1. Import the public key used by the package management system. | |
$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927 |
This file contains hidden or 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
0. Installation requires Git and triggers git clone for each configured repository to ~/.vim/bundle/ by default. | |
Curl is required for search. | |
1. Install VIM | |
$ sudo apt-get remove vim-tiny | |
$ sudo apt-get update | |
$ sudo apt-get install vim | |
2. Install CMake | |
$ sudo apt-get install CMake |
This file contains hidden or 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
1. Install Python3.6 | |
$ sudo add-apt-repository ppa:jonathonf/python-3.6 | |
$ sudo apt-get update | |
$ sudo apt-get install python3.6 | |
$ sudo apt install python3.6-dev | |
2. Install PIP 3.6 | |
First download the file: get-pip.py [source: https://bootstrap.pypa.io/get-pip.py] |
This file contains hidden or 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
1. login with sudo mode | |
$ sudo su | |
2. install virtualenv | |
$ pip install virtualenv | |
3. goto the folder where you want to create virtualenvironment | |
$ cd /home/work/python | |
4. create virtualenv using a given python version [if omitted, '-p /usr/bin/python3.6' then it is going to take the default one] |
This file contains hidden or 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
0. Login with Root mode and always give the commands with root access | |
$ sudo su | |
1. Pre-Installation Steps [In all the nodes] | |
1.1 Fix Swappiness: | |
$ cat /proc/sys/vm/swappiness | |
$ sysctl -w vm.swappiness=1 | |
$ cat /proc/sys/vm/swappiness | |
$ vi /etc/sysctl.conf |
This file contains hidden or 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
[Setup for the Centos minimal version] | |
[Note: After setting up the Static network then use SSH to connect the VM for easy editing] | |
## Static network setup in Centos 7.X minimal | |
1. Check the default gateway, dns servers address of the host machine | |
> Default gateway: 192.168.188.1 | |
> DNS servers: 8.8.8.8, 8.8.4.4 | |
2. VM -> Network -> Adapter 1 = NAT, Adapter 2 = Bridged Adapter | |
3. Start the VM |
This file contains hidden or 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
import os | |
import pandas as pd | |
import numpy as np | |
from pandas import DataFrame | |
project_path = os.path.dirname(os.path.abspath(__file__)) | |
data_path = os.path.join(project_path, 'data/') | |
file_row_capacity = os.path.join(data_path, 'row_capacity.csv') | |
file_tickets_sold = os.path.join(data_path, 'tickets_sold.csv') |
This file contains hidden or 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
Coding: | |
http://jobs.readwriteweb.com/ | |
http://noodleyard.com/ | |
http://angel.co/jobs | |
http://startuply.com/ | |
http://jobs.37signals.com/ | |
http://www.dice.com/ | |
http://jobs.github.com/ | |
http://www.craigslist.org | |
http://news.ycombinator.com/jobs |
This file contains hidden or 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
sap.ui.jsview("easybike.bikes", { | |
/** Specifies the Controller belonging to this View. | |
* In the case that it is not implemented, or that "null" is returned, this View does not have a Controller. | |
* @memberOf easybike.bikes | |
*/ | |
getControllerName : function() { | |
return "easybike.bikes"; | |
}, |
This file contains hidden or 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
''' | |
__author__ = 'anis016' | |
Date: 18.05.16 | |
Time: 20:41 | |
''' | |
import os | |
import sys | |
from mrjob.job import MRJob | |
from mrjob.step import MRStep |