One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
<!doctype html> | |
<title>Site Maintenance</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } | |
article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
a { color: #dc8100; text-decoration: none; } | |
a:hover { color: #333; text-decoration: none; } | |
</style> |
AWSTemplateFormatVersion: '2010-09-09' | |
Description: | | |
AWS CloudFormation template for Mock WebSocket API Gateway. When deploying this stack please remember to check the option: | |
- I acknowledge that AWS CloudFormation might create IAM resources. | |
This template can help you to solve issues like: | |
- CloudWatch Logs role ARN must be set in account settings to enable logging | |
- Execution failed due to configuration error: statusCode should be an integer which defined in request template | |
- This custom domain name cannot map to WEBSOCKET protocol APIs | |
- Error during WebSocket handshake: Unexpected response code: 500 |
a4b.amazonaws.com | |
access-analyzer.amazonaws.com | |
account.amazonaws.com | |
acm-pca.amazonaws.com | |
acm.amazonaws.com | |
airflow-env.amazonaws.com | |
airflow.amazonaws.com | |
alexa-appkit.amazon.com | |
alexa-connectedhome.amazon.com | |
amazonmq.amazonaws.com |
curl --include \ | |
--no-buffer \ | |
--header "Connection: Upgrade" \ | |
--header "Upgrade: websocket" \ | |
--header "Host: example.com:80" \ | |
--header "Origin: http://example.com:80" \ | |
--header "Sec-WebSocket-Key: SGVsbG8sIHdvcmxkIQ==" \ | |
--header "Sec-WebSocket-Version: 13" \ | |
http://example.com:80/ |
wget https://cmake.org/files/v3.12/cmake-3.12.3.tar.gz
tar zxvf cmake-3.*
http://tinkerman.cat/rpi3_iot_server.pdf (Catalan)
# LICENSE https://creativecommons.org/licenses/by-nc-sa/3.0/ | |
# https://cjohansen.no/aws-apigw-proxy-cloudformation/ | |
AWSTemplateFormatVersion: 2010-09-09 | |
Description: An API that proxies requests to another HTTP endpoint | |
Resources: | |
Api: | |
Type: 'AWS::ApiGateway::RestApi' | |
Properties: |
# curl - Raw upload | |
curl -X PUT -T image.png https://example.com/upload | |
# curl - Content-Type: multipart/form-data | |
curl -F name=logo -F file=@image.png https://example.org/upload | |
# curl - POST presigned URL (S3) |