I've been having trouble with serving a Flask app via uWSGI and nginx, so I thought I'd put together some of the basics to help out others.
- Flask is managed by
uWSGI. uWSGItalks tonginx.
| # Hello, and welcome to makefile basics. | |
| # | |
| # You will learn why `make` is so great, and why, despite its "weird" syntax, | |
| # it is actually a highly expressive, efficient, and powerful way to build | |
| # programs. | |
| # | |
| # Once you're done here, go to | |
| # http://www.gnu.org/software/make/manual/make.html | |
| # to learn SOOOO much more. |
| #!/usr/bin/env sh | |
| # Prints out Zen quotes, pushed out by https://api.github.com | |
| # | |
| # **NOTE**: there is a limit to the number of requests that | |
| # can be made. (I think it's a max of 40 unauthenticated requests) | |
| # after that, its prints out a message tell you've exceeded rate limit. | |
| # | |
| # License: WTFPL | |
| # |
| # This file has been auto-generated by i3-config-wizard(1). | |
| # It will not be overwritten, so edit it as you like. | |
| # | |
| # Should you change your keyboard layout somewhen, delete | |
| # this file and re-run i3-config-wizard(1). | |
| # | |
| # i3 config file (v4) | |
| # | |
| # Please see http://i3wm.org/docs/userguide.html for a complete reference! |
| #!/usr/bin/env node | |
| var util = require('util'), | |
| http = require('http'), | |
| fs = require('fs'), | |
| url = require('url'), | |
| events = require('events'); | |
| var DEFAULT_PORT = 8000; |
| #!/usr/bin/env python | |
| """ | |
| Interactive execution with automatic history, tries to mimic Mathematica's | |
| prompt system. This environment's main features are: | |
| - Numbered prompts (In/Out) similar to Mathematica. Only actions that produce | |
| output (NOT assingments, for example) affect the counter and cache. | |
| - The following GLOBAL variables always exist (so don't overwrite them!): | |
| _p: stores previous result which generated printable output. |
| ; A REPL-based, annotated Seesaw tutorial | |
| ; Please visit https://github.com/daveray/seesaw for more info | |
| ; | |
| ; This is a very basic intro to Seesaw, a Clojure UI toolkit. It covers | |
| ; Seesaw's basic features and philosophy, but only scratches the surface | |
| ; of what's available. It only assumes knowledge of Clojure. No Swing or | |
| ; Java experience is needed. | |
| ; | |
| ; This material was first presented in a talk at @CraftsmanGuild in | |
| ; Ann Arbor, MI. |
| #!/bin/sh | |
| # | |
| # Shell script that configures gnome-terminal to use solarized theme | |
| # colors. Written for Ubuntu 11.10, untested on anything else. | |
| # | |
| # Solarized theme: http://ethanschoonover.com/solarized | |
| # | |
| # Adapted from these sources: | |
| # https://gist.github.com/1280177 | |
| # http://xorcode.com/guides/solarized-vim-eclipse-ubuntu/ |