Download CMake from: https://cmake.org/download/
wget https://cmake.org/files/v3.12/cmake-3.12.3.tar.gz
tar zxvf cmake-3.*
| # 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) |
| 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 |
| # 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: |
wget https://cmake.org/files/v3.12/cmake-3.12.3.tar.gz
tar zxvf cmake-3.*
| import os | |
| import random | |
| from scipy import ndarray | |
| # image processing library | |
| import skimage as sk | |
| from skimage import transform | |
| from skimage import util | |
| from skimage import io |
http://tinkerman.cat/rpi3_iot_server.pdf (Catalan)
| 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 |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| config.vm.box = "centos/7" | |
| config.vm.provider :virtualbox do |v| | |
| v.memory = 4048 | |
| v.cpus = 2 |
| 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/ |