Step by step guide for enabling the apache+php server that's already installed in OSX, with per-user site (mod_userdir)
http://ole.michelsen.dk/blog/setup-local-web-server-apache-php-osx-yosemite.html
Step by step guide for enabling the apache+php server that's already installed in OSX, with per-user site (mod_userdir)
http://ole.michelsen.dk/blog/setup-local-web-server-apache-php-osx-yosemite.html
| # This is not a ready-to-run script. It just shows the relevant command-line calls. | |
| XC_WORKSPACE=path/to/MyApp.xcworkspace | |
| XC_SCHEME=MyApp | |
| XC_CONFIG=Release | |
| ARCHIVE_PATH=dest/path/to/MyApp.xcarchive | |
| EXPORT_PATH=dest/path/to/MyApp.ipa | |
| DIST_PROFILE=NameOfDistributionProfile | |
| # Build and archive. This can be done by regular developers, using their developer key/profile. |
| #!/usr/bin/env python | |
| from Foundation import NSData, NSPropertyListSerialization | |
| import fnmatch | |
| import sys | |
| from zipfile import ZipFile | |
| # TODO: Add error checking. | |
| def parse_plist(info_plist_string): |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <!-- | |
| Usage: put text as the query string. | |
| http://path/to/qr.html?text-to-encode | |
| Based on https://github.com/davidshimjs/qrcodejs (and embeds it). | |
| --> | |
| <head> | |
| <title>Cross-Browser QRCode generator for Javascript</title> |
| /* | |
| Node.js echo server | |
| Starts an http server on port 8000. The server responds with: | |
| - request headers as json | |
| - 3 newline characters ('\n\n\n') | |
| - request body (piped) | |
| It does not attempt to "understand" the request in any way. | |
| I use it for debugging clients, mostly POSTs. |
| # There are other solutions across the interwebs. This is one that avoids complexities | |
| # because it's read-only (useful when you just want to read json data, for example). | |
| # It also makes it possible to read nested dictionaries in the same way. | |
| # Based on ideas from http://code.activestate.com/recipes/473786-dictionary-with-attribute-style-access/ | |
| class attrdict (dict): | |
| ''' | |
| Read-only access to dictionary keys as attributes. | |
| >>> d=attrdict({"a":1, "b":2, "c":{"a":1, "b":2, "c":{"a":1, "b":2}}}) | |
| >>> d.a |
| import yaml | |
| import yaml.constructor | |
| def load(data): | |
| try: | |
| # included in standard lib from Python 2.7 | |
| from collections import OrderedDict | |
| except ImportError: | |
| # try importing the backported drop-in replacement |