In the following, replace example.net with your domain name. XXX.XXX.XXX.XXX is the IP of the reverse proxy.
example.net. 300 IN A XXX.XXX.XXX.XXX
| import struct | |
| import socket | |
| import hashlib | |
| import sys | |
| from select import select | |
| import re | |
| import logging | |
| class WebSocket(object): | |
| handshake = ( |
| #!/bin/sh | |
| # on ubuntu: need some utils & dev libs | |
| sudo apt-get install apache2-utils openssl libssl-dev libpcre3-dev | |
| # compile nginx | |
| cd /tmp | |
| curl http://nginx.org/download/nginx-0.7.64.tar.gz | tar xz | |
| cd nginx* | |
| ./configure --with-http_ssl_module --with-http_dav_module \ |
| import bisect | |
| import itertools | |
| import operator | |
| class _BNode(object): | |
| __slots__ = ["tree", "contents", "children"] | |
| def __init__(self, tree, contents=None, children=None): | |
| self.tree = tree |
| import bisect | |
| import itertools | |
| import operator | |
| class _BNode(object): | |
| __slots__ = ["tree", "contents", "children"] | |
| def __init__(self, tree, contents=None, children=None): | |
| self.tree = tree |
Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
#Create bitbucket branch
##Create local branch
$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
master
* sync
| # These instructions work for OS X 10.6 with homebrew pre-installed. | |
| brew install python --framework | |
| brew install gfortran | |
| # install other dependencies through pip: | |
| pip install numpy | |
| # the regular pip build for matplotlib is b0rken, and it can't find the built-in libraries for OSX | |
| export LDFLAGS="-L/usr/X11/lib" |
| /* | |
| * L.SingleTile uses L.ImageOverlay to display a single-tile WMS layer. | |
| * url parameter must accept WMS-style width, height and bbox. | |
| */ | |
| L.SingleTile = L.ImageOverlay.extend({ | |
| defaultWmsParams: { | |
| service: 'WMS', | |
| request: 'GetMap', | |
| version: '1.1.1', |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <link rel="stylesheet" href="style.css"> | |
| </head> | |
| <body> | |
| <svg id="defs"> | |
| <defs> | |
| <linearGradient id="gradBlue" x1="0%" y1="0%" x2="100%" y2="0%"> |