Skip to content

Instantly share code, notes, and snippets.

View Vishnu-m-r's full-sized avatar

VMR Vishnu-m-r

  • Acko General Insurance
  • India
View GitHub Profile
@Vishnu-m-r
Vishnu-m-r / python_environment_setup.md
Created November 22, 2018 10:38 — forked from Geoyi/python_environment_setup.md
Setting up your python development environment (with pyenv, virtualenv, and virtualenvwrapper)

Overview

When you're working on multiple coding projects, you might want a couple different version of Python and/or modules installed. That way you can keep each project in its own sandbox instead of trying to juggle multiple projects (each with different dependencies) on your system's version of Python. This intermediate guide covers one way to handle multiple Python versions and Python environments on your own (i.e., without a package manager like conda). See the Using the workflow section to view the end result.

Use cases

  1. Working on 2+ projects that each have their own dependencies; e.g., a Python 2.7 project and a Python 3.6 project, or developing a module that needs to work across multiple versions of Python. It's not reasonable to uninstall/reinstall modules every time you want to switch environments.
  2. If you want to execute code on the cloud, you can set up a Python environment that mirrors the relevant
@Vishnu-m-r
Vishnu-m-r / bobp-python.md
Created October 21, 2018 15:42 — forked from sloria/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y php5.6
#Composer
sudo apt-get install curl php5-cli git
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
@Vishnu-m-r
Vishnu-m-r / Nginx - Configure multiple websites in same server
Last active July 5, 2024 22:47
Nginx - Configure multiple domains to point to same server with multiple websites Ubuntu 16.04
##Configure both domains to point to same ip
Nginx Configuration
sudo cp /etc/nginx/sites-available/default /etc/nginx/sites-available/example.com</a>
sudo cp /etc/nginx/sites-available/default /etc/nginx/sites-available/test.com</a>
example.com
@Vishnu-m-r
Vishnu-m-r / Laravel PHP7 LEMP AWS.md
Last active February 22, 2018 07:43 — forked from santoshachari/Laravel PHP7 LEMP AWS.md
Laravel 5.x on Ubuntu 16.x, PHP 7.x, Nginx 1.9.x

#Steps to install latest Laravel, LEMP on AWS Ubuntu 16.4 version. This tutorial is the improvised verision of this tutorial on Digitalocean based on my experience.

Install PHP 7 on Ubuntu

Run the following commands in sequence.

sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip