Install i2c tools to check for PCA9685 board.
sudo apt-get install i2c-tools
sudo i2cdetect -y 1
Install vim and git.
| { | |
| "metrics": [ | |
| [ { "expression": "(m2/m1)*100", "label": "percentage", "id": "e1", "yAxis": "right" } ], | |
| [ "AWS/AppSync", "4XXError", "GraphQLAPIId", "XXXXXXXX", { "label": "4xx errors", "id": "m2" } ], | |
| [ "...", { "stat": "SampleCount", "label": "total requests", "id": "m1" } ], | |
| [ ".", "5XXError", ".", ".", { "label": "5xx errors", "id": "m3", "visible": false } ] | |
| ], | |
| "region": "ap-southeast-2", | |
| "title": "Errors", | |
| "stat": "Sum", |
| import { Construct, StackProps, Stack } from '@aws-cdk/core'; | |
| import { Function, Runtime, Code } from '@aws-cdk/aws-lambda'; | |
| import { Table, AttributeType, BillingMode } from '@aws-cdk/aws-dynamodb'; | |
| import { Bucket, BucketEncryption, EventType } from '@aws-cdk/aws-s3'; | |
| import { LambdaRestApi } from '@aws-cdk/aws-apigateway'; | |
| import { S3EventSource } from '@aws-cdk/aws-lambda-event-sources'; | |
| export class InfraStack extends Stack { | |
| constructor(scope: Construct, id: string, props?: StackProps) { | |
| super(scope, id, props); |
| package coverage | |
| type Coverage struct { | |
| XMLName xml.Name `xml:"coverage"` | |
| Text string `xml:",chardata"` | |
| LinesValid string `xml:"lines-valid,attr"` | |
| LinesCovered string `xml:"lines-covered,attr"` | |
| LineRate string `xml:"line-rate,attr"` | |
| BranchesValid string `xml:"branches-valid,attr"` | |
| BranchesCovered string `xml:"branches-covered,attr"` |
| { | |
| "Resources": { | |
| "MyVpcF9F0CA6F": { | |
| "Type": "AWS::EC2::VPC", | |
| "Properties": { | |
| "CidrBlock": "10.0.0.0/16", | |
| "EnableDnsHostnames": true, | |
| "EnableDnsSupport": true, | |
| "InstanceTenancy": "default", | |
| "Tags": [ |
| #!/bin/bash | |
| set -e | |
| # provide a folder like ~/temp to build the opencv sources | |
| if [ "$#" -ne 1 ]; then | |
| echo "Usage: $0 <Build Folder>" | |
| exit | |
| fi | |
| folder="$1" |
Install i2c tools to check for PCA9685 board.
sudo apt-get install i2c-tools
sudo i2cdetect -y 1
Install vim and git.
Load up the ROS environment.
source /opt/aws/deepracer/setup.bash
Listing nodes.
$ rosnode list
| AWSTemplateFormatVersion: 2010-09-09 | |
| Description: 'authentication: Resources for hosting authentication using AWS Cognito, a @wolfeidau template' | |
| Parameters: | |
| AppName: | |
| Description: Name of application, used in signup emails and naming of aws resources. | |
| Type: String | |
| AllowedPattern: '^[a-zA-Z0-9]*$' |
| package main | |
| import ( | |
| "github.com/apex/gateway" | |
| "github.com/aws/aws-lambda-go/lambda" | |
| log "github.com/sirupsen/logrus" | |
| "github.com/wolfeidau/lambda-raven-service/pkg/api" | |
| "github.com/wolfeidau/lambda-raven-service/pkg/config" | |
| "github.com/wolfeidau/lambda-raven-service/pkg/handlers" | |
| _ "github.com/wolfeidau/lambda-raven-service/pkg/logging" |
| FROM ros:melodic-robot | |
| RUN apt-get update && apt-get install vim curl -y | |
| RUN mkdir -p /src/ydlidar/src | |
| WORKDIR /src/ydlidar | |
| RUN /bin/bash -c "source /opt/ros/melodic/setup.bash && catkin_make" | |
| WORKDIR /src/ydlidar/src | |
| RUN git clone https://github.com/EAIBOT/ydlidar.git | |
| WORKDIR /src/ydlidar | |
| RUN /bin/bash -c "source /opt/ros/melodic/setup.bash && catkin_make install && rospack profile" |