<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
| <?php | |
| /** | |
| * Generates human-readable string. | |
| * | |
| * @param string $length Desired length of random string. | |
| * | |
| * retuen string Random string. | |
| */ | |
| function readable_random_string($length = 6) |
##Install Xcode command line tools
Xcode>Preferences>Downloads
Enable root if not already enabled: http://support.apple.com/kb/PH11331?viewlocale=en_US
##Apache
Apache is already installed, just not running.
| # Script for automatic setup of SOCKS proxy through SSH connection. | |
| # It automatically teardowns SOCKS configuration before stopping. | |
| # It's supposed to work on Mac OS X 10.6+ | |
| # | |
| # Author: Adam Stankiewicz (@sheerun) | |
| # | |
| [[ -n "$1" ]] || { echo "Usage: proxy [email protected]"; exit 1; } | |
| # get service GUID and NAME (like Wi-Fi) to set SOCKS proxy |
| # Enable syntax-highlighting in less. | |
| # Last tested on CentOS 6.3. | |
| # | |
| # First, add these two lines to ~/.bashrc | |
| # export LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s" | |
| # export LESS=" -R " | |
| sudo yum -y install boost boost-devel ctags | |
| wget http://springdale.math.ias.edu/data/puias/unsupported/6/x86_64/source-highlight-3.1.6-3.puias6.x86_64.rpm |
| apt-get install python-pygraphviz | |
| pip install django-extensions | |
| # add 'django_extensions' to INSTALLED_APPS in settings.py | |
| python manage.py graph_models trees -o test.png |
| # Edit here - set path to you directory with config.json & fonts | |
| FONT_DIR ?= ./assets/vendor/fontello/src | |
| ### Don't edit below ### | |
| FONTELLO_HOST ?= https://fontello.com | |
| fontopen: | |
| @if test ! `which curl` ; then \ |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| #!/bin/bash | |
| ### Setup a wifi Access Point on Ubuntu 12.04 (or its derivatives). | |
| ### make sure that this script is executed from root | |
| if [ $(whoami) != 'root' ] | |
| then | |
| echo " | |
| This script should be executed as root or with sudo: | |
| sudo $0 | |
| " |