| Version | Link |
|---|---|
| ECMAScript 2015 - ES2015 - ES6 | All Features List |
| ECMAScript 2016 - ES2016 - ES7 | All Features List |
| ECMAScript 2017 - ES2017 - "ES8" | All Features List |
| ECMAScript 2018 - ES2018 - "ES9" | All Features List |
| ECMAScript 2019 - ES2019 - "ES10" | All Features List |
| ECMAScript 2020 - ES2020 - "ES11" | All Features List |
This file contains hidden or 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::Serverless-2016-10-31 | |
| # Template Information | |
| Description: "Personal Website" | |
| # Template Parameters |
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| require 'shellwords' | |
| files = `find . -iname '*.heic'`.split("\n") | |
| files.each do |original_file| | |
| output_file = original_file.gsub(/\.heic\z/i, ' Converted.jpg') | |
| if File.exist?(output_file) | |
| STDERR.puts "Skipping output #{output_file} exists." | |
| else |
This file contains hidden or 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
| service: serverless-feature-flag | |
| provider: | |
| name: aws | |
| runtime: nodejs12.x | |
| lambdaHashingVersion: 20201221 | |
| memorySize: 128 | |
| stage: ${opt:stage, 'develop'} | |
| region: eu-west-1 | |
| apiGateway: | |
| shouldStartNameWithService: true |
This file contains hidden or 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
| # Mount the data disk | |
| # Adapted from https://gist.github.com/ctompkinson/30f570882af38879b36fc7bffe3d1a60 | |
| device=/dev/sdh | |
| mount_point=/monitor-config | |
| apt-get install -y nvme-cli | |
| while [ true ]; do | |
| for blkdev in $(nvme list | awk '/^\/dev/ { print $1 }'); do | |
| mapping=$(nvme id-ctrl --raw-binary "${blkdev}" | cut -c3073-3104 | tr -s ' ' | sed 's/ $//g') | |
| if [ ${mapping} = ${device} ]; then | |
| echo "Found $device on $blkdev" |
This file contains hidden or 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: Hosting resource stack creation using Amplify CLI | |
| Parameters: | |
| env: | |
| Type: String | |
| Default: gist | |
| bucketName: | |
| Type: String | |
| Default: cfn-sample-bucketname-20210209000412 | |
| pubkeyCallerReference: |
This file contains hidden or 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
| import axios, { AxiosResponse } from 'axios'; | |
| import dotenv from 'dotenv'; | |
| import newman from 'newman'; | |
| import { Collection, Variable } from 'postman-collection'; | |
| import { Logger } from './logger.js'; | |
| interface PostmanMetadata { | |
| id: string; | |
| name: string; |
This file contains hidden or 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: > | |
| SSM Automation Document run a custom SSM Command Document | |
| against a fleet of target instances. | |
| Parameters: | |
| AutomationDocumentName: | |
| Type: String | |
| Description: Name of created SSM Automation Document | |
| Default: MyAutomation |
This file contains hidden or 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
| import boto3 | |
| import json | |
| region = "us-gov-west-1" | |
| all_instance_ids = [ | |
| i.id for i in boto3.resource("ec2", region_name=region).instances.all() | |
| ] | |
| ssm_inst_paginator = boto3.client("ssm", region_name=region).get_paginator( |
This file contains hidden or 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
| const messageTable = new Table(this, 'CDKMessageTable', { | |
| billingMode: BillingMode.PAY_PER_REQUEST, | |
| partitionKey: { | |
| name: 'id', | |
| type: AttributeType.STRING, | |
| }, | |
| }); | |
| const roomTable = new Table(this, 'CDKRoomTable', { | |
| billingMode: BillingMode.PAY_PER_REQUEST, |