These are my notes based on my experience with using Docker on Mac OS X.
If these assumptions are not true for you, then this document may not be for you.
I assume you have these installed:
- recent-ish Mac OS X
0x8659C0FF528275C010Ac23454F24e2ADE075505b |
brew tap homebrew/science | |
brew install opencv3 --without-numpy --without-python --with-python3 | |
brew link --force opencv3 | |
mkvirtualenv -p python3 cv | |
pip install numpy | |
ln -s /usr/local/opt/opencv3/lib/python3.6/site-packages/cv2.cpython-36m-darwin.so \ | |
~/.virtualenvs/cv/lib/python3.6/site-packages |
<!DOCTYPE html> | |
<html lang="en" class="no-js"> | |
<head> | |
<title>{% if wp_title %}{{ post.title }} - {{ site.name }}{% else %}{{ site.name }} - {{ site.description }}{% endif %}</title> | |
<meta charset="{{ site.charset }}"> | |
<meta name="description" content="{{ site.description }}"> | |
<meta name="viewport" content="width=device-width,initial-scale=1.0"> | |
<meta property="og:title" content="{% if wp_title %}{{ post.title }} - {% endif %}{{ site.name }}"> | |
<meta property="og:description" content="{{ site.description }}"> | |
<meta property="og:image" content="{{ theme.link }}/static/img/share-logo.jpg"> |
#!/bin/sh | |
curl -s https://api.wordpress.org/secret-key/1.1/salt | sed "s/^define('\(.*\)',\ *'\(.*\)');$/\1='\2'/g" |
Extension Matches REF EXT min/Max PHP min/Max PHP all | |
------------------------------------------------------------- | |
Core Core 5.3.0 5.3.0 | |
PDO PDO 5.1.0 5.1.0 | |
Reflection Reflection 5.0.0 5.0.0 | |
SimpleXML SimpleXML 5.0.1 5.0.1 | |
com_dotnet user 4.0.0 | |
ctype ctype 4.0.4 4.0.4 | |
curl curl 4.0.4 4.0.4 | |
date date 5.2.0 5.2.0 |
#!/bin/bash | |
mkdir ./config && curl http://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem > ./config/amazon-rds-ca-cert.pem | |
#DATABASE_URL=postgres://user:password@host:port/database?sslca=config/amazon-rds-ca-cert.pem |
#!/bin/bash | |
# On OSX, two different types of Python builds exist: a regular build and | |
# a framework build. In order to interact correctly with some GUI | |
# frameworks, you need to use a framework build. Unfortuantly, on OSX | |
# virtualenv always uses a regular build. | |
# | |
# The best known workaround, borrowed from the WX wiki, is to use the non- | |
# virtualenv Python along with the PYTHONHOME environment variable. | |
# See: http://matplotlib.org/faq/virtualenv_faq.html#osx |
machine: | |
post: | |
- nvm use && nvm alias default $(nvm current) |
from django.contrib import admin | |
from example.models import Example | |
class ExampleAdmin(admin.ModelAdmin): | |
""" | |
Don't allow addition of more than one model instance in Django admin | |
See: http://stackoverflow.com/a/12469482 | |
""" | |
def has_add_permission(self, request): |