<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:
| -- A method to have RETURNING work if you are partitioning data using trigger. | |
| -- The method to this madness is: | |
| -- | |
| -- 1) Use the normal trigger mechanism to insert the data into the child tables, but | |
| -- Instead of the trigger function returning NULL so that the row does not get⋅ | |
| -- inserted into the master table, it returns the row inserted into the child | |
| -- table | |
| -- | |
| -- 2) Postgres will insert the new row from the trigger into the master table | |
| -- |
| #!/bin/bash | |
| # | |
| # This script installs and configures couchdb on a fresh Amazon Linux AMI instance. | |
| # | |
| # Must be run with root privileges | |
| # Tested with Amazon Linux AMI release 2011.02.1.1 (ami-8c1fece5) | |
| # | |
| export BUILD_DIR="$PWD" |
| cd ~ | |
| sudo yum update | |
| sudo yum install java-1.7.0-openjdk.i686 -y | |
| wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.9.tar.gz -O elasticsearch.tar.gz | |
| tar -xf elasticsearch.tar.gz | |
| rm elasticsearch.tar.gz | |
| mv elasticsearch-* elasticsearch | |
| sudo mv elasticsearch /usr/local/share |
| #!/bin/bash | |
| # from here: http://www.codingsteps.com/install-redis-2-6-on-amazon-ec2-linux-ami-or-centos/ | |
| # and here: https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server | |
| ############################################### | |
| # To use: | |
| # wget https://raw.github.com/gist/2776679/04ca3bbb9f085b192f6aca945120fe12d59f15f9/install-redis.sh | |
| # chmod 777 install-redis.sh | |
| # ./install-redis.sh | |
| ############################################### | |
| echo "*****************************************" |
| #!/bin/bash -e | |
| # A SHORT DESCRIPTION OF YOUR SCRIPT GOES HERE | |
| # USAGE: | |
| # DESCRIPTION OF ENV VARS HERE | |
| ############################################################################### | |
| set -e # exit on command errors (so you MUST handle exit codes properly!) | |
| set -o pipefail # capture fail exit codes in piped commands | |
| #set -x # execution tracing debug messages | |
| # Get command info |
| var express = require('express'), | |
| httpProxy = require('http-proxy'), | |
| app = express(); | |
| var proxy = new httpProxy.RoutingProxy(); | |
| function apiProxy(host, port) { | |
| return function(req, res, next) { | |
| if(req.url.match(new RegExp('^\/api\/'))) { | |
| proxy.proxyRequest(req, res, {host: host, port: port}); |
| <!-- Highlight syntax for Mou.app, insert at the bottom of the markdown document --> | |
| <script src="http://yandex.st/highlightjs/7.3/highlight.min.js"></script> | |
| <link rel="stylesheet" href="http://yandex.st/highlightjs/7.3/styles/github.min.css"> | |
| <script> | |
| hljs.initHighlightingOnLoad(); | |
| </script> |
| global | |
| pidfile /var/run/haproxy.pid | |
| log 127.0.0.1 local0 info | |
| ulimit-n 65536 | |
| defaults | |
| mode http | |
| clitimeout 600000 # maximum inactivity time on the client side | |
| srvtimeout 600000 # maximum inactivity time on the server side |