http://tinkerman.cat/rpi3_iot_server.pdf (Catalan)
- download the latest image
| # MIT License | |
| # Copyright (c) 2016 Chandler Abraham | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: |
| import cdk = require('@aws-cdk/core'); | |
| import greengrass = require('@aws-cdk/aws-greengrass'); | |
| import lambda = require('@aws-cdk/aws-lambda'); | |
| import { CfnCustomResource } from '@aws-cdk/aws-cloudformation'; | |
| import { PolicyStatement, Role, ServicePrincipal, CompositePrincipal } from '@aws-cdk/aws-iam'; | |
| import { group_deployment_reset_code } from '../lib/code/group_deployment_reset'; | |
| import { thing_vendor_code } from '../lib/code/thing_vendor'; |
| var AWS = require('aws-sdk') | |
| AWS.config.update({region: 'us-east-1'}) | |
| const uuidV4 = require('uuid/v4') | |
| var translate = new AWS.Translate(); | |
| var polly = new AWS.Polly(); | |
| var s3 = new AWS.S3({ | |
| params: { | |
| Bucket: 'YOURBUCKETNAME', | |
| } | |
| }) |
| #!/bin/bash | |
| set -euo pipefail | |
| # given an aws-cdk bundle archive (the one published to github releases), extract | |
| # all .jsii manifests and places them under "jsii/*.jsii" | |
| # now they can be used with jsii-reflect | |
| zip=${1:-} | |
| if [ -z "${zip}" ]; then | |
| echo "Usage: $(basename $0) <cdk-bundle-zip>" |
| /* | |
| I was curious as to whether it was possible to make resources | |
| created using CDK constructs work with raw CloudFormation | |
| resources and vice versa. | |
| This aws-cdk app demonstrates a VPC and an ELB that belongs to it | |
| in different, dependant stacks, leveraging CFN outputs / imports, | |
| and leveraging CDK's method of passing information from one | |
| stack to another. | |
| */ |
| name: Build and publish Jekyll Docker image for Octocat Generator | |
| on: [push] | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: clean up, docker login && docker build && docker push |
| 'use strict'; | |
| exports.handler = (event, context, callback) => { | |
| // Get request and request headers | |
| const request = event.Records[0].cf.request; | |
| const headers = request.headers; | |
| // Configure authentication | |
| const authUser = 'user'; | |
| const authPass = 'pass'; |
http://tinkerman.cat/rpi3_iot_server.pdf (Catalan)
Tcpdump is a commandline tool that is used to dump traffic on a network. This tool comes in hand when you want to analyse network captures within the command line. Basically it can do most of the wireshark job.
NOTE This guide might not be complete it just serve as a reference to me.
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <title>Example of plotting live data with websockets and highcharts</title> | |
| <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> | |
| <script src="mqttws31.js" type="text/javascript"></script> | |
| <script type="text/javascript"> | |
| var MQTTbroker = 'test.mosquitto.org'; | |
| var MQTTport = 8080; | |
| var MQTTsubTopic = 'meriat/sala1/#'; //works with wildcard # and + topics dynamically now |