This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.AspNetCore.Authentication.Cookies; | |
using Microsoft.AspNetCore.Components.Authorization; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.IdentityModel.JsonWebTokens; | |
using Microsoft.IdentityModel.Protocols.OpenIdConnect; | |
using BlazorWebAppOidc; | |
using BlazorWebAppOidc.Client.Weather; | |
using BlazorWebAppOidc.Components; | |
using BlazorWebAppOidc.Weather; | |
using Microsoft.AspNetCore.Authentication.OpenIdConnect; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWSTemplateFormatVersion: 2010-09-09 | |
Description: > | |
Create an AWS Cognito User Pool with a User Group and App Client for securing a web application. | |
Transform: AWS::Serverless-2016-10-31 | |
Parameters: | |
sesIdentity: | |
Description: The SES identity to use for sending emails | |
Type: String | |
Default: no-reply@yourorg.com | |
userPoolName: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWSTemplateFormatVersion: '2010-09-09' | |
Transform: AWS::SecretsManager-2020-07-23 | |
Description: ECS Cluster for SonarQube CE. | |
Dependent on an RDS instance/stack and a VPC stack. | |
Parameters: | |
ServiceName: | |
Type: String | |
Default: sonarqube-app | |
Description: A name for the service. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWSTemplateFormatVersion: '2010-09-09' | |
Transform: AWS::SecretsManager-2020-07-23 | |
Description: PostgreSQL DB RDS Instance for SonarQube | |
Parameters: | |
DBInstanceIdentifier: | |
Description: Name of the RDS Instance. | |
Type: String | |
MinLength: '1' | |
MaxLength: '255' | |
Default: sonarqube |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
AWSTemplateFormatVersion: '2010-09-09' | |
Description: Creates AWS infrastructure for the primary (non default) VPC | |
Parameters: | |
VPCOctet: | |
Description: First two octets of the VPC (e.g. '192.168' for '192.168.0.0/20') | |
Type: String | |
MinLength: 4 | |
MaxLength: 7 | |
AllowedPattern: "[0-9]{2,3}.[0-9]{1,3}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWSTemplateFormatVersion: '2010-09-09' | |
Transform: AWS::SecretsManager-2020-07-23 | |
Description: PostgreSQL DB RDS Instance | |
Parameters: | |
DBInstanceIdentifier: | |
Description: Name of the RDS Instance. | |
Type: String | |
MinLength: '1' | |
MaxLength: '50' | |
Default: postgresdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//setup INT0 and INT1 for hw int. | |
DDRD &= ~(1 << DDD2); // Clear the PD2&PD3 pin & enable PD2 & PD3 as input | |
DDRD &= ~(1 << DDD3); | |
PORTD |= (1 << PORTD2) | (1 << PORTD3); | |
//trigger INT0, INT1 on falling edge | |
EICRA |= (1 << ISC11) | (1<< ISC01); | |
EIMSK |= (1 << INT0) | (1 << INT1); |