This document has now been incorporated into the uWSGI documentation:
http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html
Steps with explanations to set up a server using:
| <?php | |
| namespace Controllers; | |
| use OAuth\Common\Service\AbstractService; | |
| use OAuth\Common\Storage\Session as OAuthSession; | |
| class AuthController extends ControllerBase { | |
| // everytime we enter the controller, then we check for login, if yes, then we dont have to access here (except logout) |
| cfg.parser () { | |
| fixed_file=$(cat $1 | sed 's/ = /=/g') # fix ' = ' to be '=' | |
| IFS=$'\n' && ini=( $fixed_file ) # convert to line-array | |
| ini=( ${ini[*]//;*/} ) # remove comments | |
| ini=( ${ini[*]/#[/\}$'\n'cfg.section.} ) # set section prefix | |
| ini=( ${ini[*]/%]/ \(} ) # convert text2function (1) | |
| ini=( ${ini[*]/=/=\( } ) # convert item to array | |
| ini=( ${ini[*]/%/ \)} ) # close array parenthesis | |
| ini=( ${ini[*]/%\( \)/\(\) \{} ) # convert text2function (2) | |
| ini=( ${ini[*]/%\} \)/\}} ) # remove extra parenthesis |
| #!/usr/bin/env ruby | |
| # Usage: gitio URL [CODE] | |
| # | |
| # Turns a github.com URL | |
| # into a git.io URL | |
| # | |
| # Copies the git.io URL to your clipboard. | |
| url = ARGV[0] | |
| code = ARGV[1] |