Create Key (no passphrase and name mirror the key)
ssh-keygen -t rsa -N "" -f ~/.ssh/mirror
| iPad | |
| 1024 × 690 In landscape on iOS 4.3 | |
| 1024 × 672 In landscape on iOS 5 | |
| 768 × 946 In portrait on iOS 4.3 | |
| 768 × 928 In portrait on iOS 5 | |
| 1024 × 660 Always showing bookmarks bar in landscape on iOS 4.3 | |
| 1024 × 644 Always showing bookmarks bar in landscape on iOS 5 | |
| 768 × 916 Always showing bookmarks bar in portrait on iOS 4.3 |
| Homebrew (https://github.com/mxcl/homebrew/wiki/installation) | |
| brew install postgres | |
| brew install gdal --with-postgres (EDIT THE FORMULA FIRST, see https://github.com/mxcl/homebrew/issues/8301) | |
| brew install postgis | |
| edit /etc/paths to put /usr/local/bin on top, so that lion's psql doesnt win | |
| PostGIS templates (based on https://wiki.archlinux.org/index.php/PostGIS) | |
| createdb template_postgis -E UTF8 | |
| createlang plpgsql template_postgis | |
| psql -d template_postgis -f /usr/local/share/postgis/postgis.sql |
| virtualenv --no-site-packages . | |
| source bin/activate | |
| bin/pip install Django psycopg2 django-sentry | |
| bin/pip freeze > requirements.txt | |
| bin/django-admin.py startproject sc-heroku-django | |
| cat >.gitignore <<EOF | |
| bin/ | |
| include/ | |
| lib/ | |
| EOF |
| # Usage: show <local-port> <subdomain> | |
| function show() { | |
| DOMAIN=".webhostology.com" | |
| REMOTE="$2$DOMAIN" | |
| ssh -tR 8080:127.0.0.1:$1 vps "sudo ssh -Nl \$USER -L $REMOTE:80:127.0.0.1:8080 localhost" | |
| } |