- Launch Cloud9 IDE with SSM option
- When it launchers, open the Cloud9 IDE in the AWS Console
Install:
- AWS CLI
#!/usr/bin/env python3 | |
from functools import cache | |
import os | |
import sys | |
from typing import Literal | |
import json | |
import click | |
import boto3 | |
from rich.console import Console |
# Working example of a Glue Catalog Data Table for CloudTrail logs that can be used with Athena | |
CloudTrailGlueTable: | |
Type: AWS::Glue::Table | |
Properties: | |
CatalogId: !Ref AWS::AccountId | |
DatabaseName: !Ref CloudTrailDatabase | |
TableInput: | |
Name: !Sub "${resourcePrefix}_org_cloudtrail" | |
PartitionKeys: | |
- Name: account |
Description: Tailscale SSH sessions recorder | |
Parameters: | |
VPC: | |
Type: AWS::EC2::VPC::Id | |
Description: VPC ID | |
Subnets: | |
Type: List<AWS::EC2::Subnet::Id> | |
Description: VPC subnets |
import middy from "@middy/core"; | |
import httpJsonBodyParser from "@middy/http-json-body-parser"; | |
import httpHeaderNormalizer from "@middy/http-header-normalizer"; | |
import httpErrorHandler from "@middy/http-error-handler"; | |
import cors from "@middy/http-cors"; | |
import validator from "@middy/validator"; | |
import httpSecurityHeaders from "@middy/http-security-headers"; | |
import httpResponseSerializer from "@middy/http-response-serializer"; | |
export const middyfy = (handler: any, inputSchema?: Record<string, unknown>, outputSchema?: Record<string, unknown>, origins: string[] = ["*"]) => { |
From Jonathan Dietz, Jr.:
Almost all new displays employ VESA Coordinated Video Timings using Reduced Blanking Timing Version 2 (CVT-RBv2) which adds a small amount of overhead to the video signal. This overhead includes 80 additional horizontal pixels and enough additional lines to meet the 460 µs minimum vertical blanking interval requirement. You can download an Excel spreadsheet from VESA that will do all the calculations for you, but the math is pretty simple:
460 / ((1000000 / [refresh rate in Hz] - 460) / [vertical resolution])
To get an integer number of lines, you round this result down and add 1. So for Pro Display XDR resolution at 120 Hz that would work out to:
460 / (1000000 / 120 - 460) / 3384) = 197.710 = 198 additional lines
Description: CloudFront Functions Demo | |
# This example shows how to use CloudFront, CloudFront Functions, and CloudFormation. | |
# In this simple example we setup CloudFront so that on any request we redirect to another site. | |
# While basic, this example can be expanded to provide typical redirect scenarios, based | |
# on the event passed to the function. | |
# This example written by Mike Roberts (https://twitter.com/mikebroberts), Symphonia. | |
# For more ideas about using AWS more effectively,see our blog at https://blog.symphonia.io/ |
SELECT | |
resourceId, | |
resourceType, | |
awsRegion, | |
resourceCreationTime, | |
tags, | |
configuration.state.value | |
WHERE | |
resourceType NOT IN ('AWS::EC2::SecurityGroup', | |
'AWS::EC2::Subnet', 'AWS::EC2::VPC', |
#EXTM3U | |
#EXTINF:-1,BBC - Radio 1 | |
http://as-hls-ww-live.akamaized.net/pool_904/live/ww/bbc_radio_one/bbc_radio_one.isml/bbc_radio_one-audio%3d96000.norewind.m3u8 | |
#EXTINF:-1,BBC - Radio 1Xtra | |
http://as-hls-ww-live.akamaized.net/pool_904/live/ww/bbc_1xtra/bbc_1xtra.isml/bbc_1xtra-audio%3d96000.norewind.m3u8 | |
#EXTINF:-1,BBC - Radio 1Dance | |
http://as-hls-ww-live.akamaized.net/pool_904/live/ww/bbc_radio_one_dance/bbc_radio_one_dance.isml/bbc_radio_one_dance-audio%3d96000.norewind.m3u8 | |
#EXTINF:-1,BBC - Radio 1 Anthems (UK Only) | |
http://as-hls-uk-live.akamaized.net/pool_904/live/uk/bbc_radio_one_anthems/bbc_radio_one_anthems.isml/bbc_radio_one_anthems-audio%3d96000.norewind.m3u8 | |
#EXTINF:-1,BBC - Radio 2 |
AWSTemplateFormatVersion: 2010-09-09 | |
Description: S3 bucket remediation automation using AWS Config and AWS Service Manager | |
Parameters: | |
Versioning: | |
Type: String | |
AllowedValues: [ "true", "false" ] | |
Default: "true" |