http://docs.aws.amazon.com/AmazonVPC/latest/GettingStartedGuide/GetStarted.html
phpMyAdmin
| Type | Protocol | Port Range | Destination |
|---|---|---|---|
| SSH | TCP | 22 | 0.0.0.0/0 |
http://docs.aws.amazon.com/AmazonVPC/latest/GettingStartedGuide/GetStarted.html
phpMyAdmin
| Type | Protocol | Port Range | Destination |
|---|---|---|---|
| SSH | TCP | 22 | 0.0.0.0/0 |
This gist assumes:
| To install virtualenv via pip | |
| $ pip3 install virtualenv | |
| Note that virtualenv installs to the python3 directory. For me it's: | |
| $ /usr/local/share/python3/virtualenv | |
| Create a virtualenvs directory to store all virtual environments | |
| $ mkdir somewhere/virtualenvs | |
| Make a new virtual environment with no packages |
| // --- Compiling --- | |
| $ wget http://download.redis.io/releases/redis-2.8.3.tar.gz | |
| $ tar xzvf redis-2.8.3.tar.gz | |
| $ cd redis-2.8.3 | |
| $ make | |
| $ make install | |
| // --- or using yum --- | |
| $ rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
| $ rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm |
| from selenium import webdriver | |
| from selenium.webdriver.common.keys import Keys | |
| from time import sleep | |
| from selenium.common.exceptions import TimeoutException | |
| from selenium.webdriver.support.ui import WebDriverWait | |
| from selenium.webdriver.support.ui import Select | |
| from selenium.webdriver.common.by import By | |
| from selenium.webdriver.support import expected_conditions | |
| from selenium.common.exceptions import NoSuchElementException | |
This face-boxer.py script is more-or-less the same code that you'll find in the OpenCV tutorial: Face Detection using Haar Cascades. For another variation, with more explanation, check out RealPython's tutorial.
The face-boxer.py script is designed to be run from the command-line. It has two required arugments:
| Steps: | |
| Set up EBS | |
| 21Created 1 TB EBS | |
| Created 64 Bit Amazon Linux AMI 2012.09 M1 Medium 3.7 gb ram, 2 ECUs | |
| Connect to ec2 instance via ssh | |
| chmod 400 IFS-KeyPair.pem | |
| ssh -v -i IFS-KeyPair.pem [email protected] | |
| Note: Do not replace ec2-user with your user id. This is a AWS Amazon AMI requirement. |
| How to install PostGIS 2.1 on Ubuntu 12.04 LTS (precise) from source | |
| Prerequisites | |
| Several components are needed, which can either be built from source or installed from pre-built packages, as shown below. | |
| Install prerequisite packages using: | |
| sudo apt-get install build-essential postgresql-9.1 postgresql-server-dev-9.1 libxml2-dev python-all-dev libproj-dev libjson0-dev xsltproc docbook-xsl docbook-mathml | |
| Build GEOS 3.4.x |
| #!/bin/bash | |
| # | |
| # Script to setup a Elastic Beanstalk AMI with geospatial libraries and postGIS | |
| # | |
| # sh aws_ami_prep.sh > aws_ami_prep.log 2>&1 & | |
| # Go to ec2-user home directory | |
| cd /home/ec2-user | |
| # yum libraries |
| import uuid | |
| from django.db import models | |
| from django.utils import timezone | |
| from django.core import validators | |
| from django.utils.translation import ugettext_lazy as _ | |
| from django.core.validators import MinLengthValidator | |
| from django.core.validators import MaxLengthValidator | |
| from django.contrib.auth.models import AbstractBaseUser | |
| from django.contrib.auth.models import PermissionsMixin | |
| from django.contrib.auth.models import BaseUserManager |