Skip to content

Instantly share code, notes, and snippets.

View anis016's full-sized avatar

Sayed Anisul Hoque anis016

View GitHub Profile
@anis016
anis016 / mongo_
Created September 8, 2017 02:11
MongoDB Installations/Configurations/Dump/Restore
## 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
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
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]
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]
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
[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
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')
@anis016
anis016 / hiring_developers
Created March 18, 2017 22:04 — forked from markalanevans/hiring_developers
Job Hiring Boards
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
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";
},