Skip to content

Instantly share code, notes, and snippets.

View sjednac's full-sized avatar

Szymon Jednac sjednac

View GitHub Profile
@sjednac
sjednac / react-ts.code-snippets
Last active December 9, 2022 16:25
React/Typescript snippets for Visual Studio Code
{
// Place your frlncr workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
"Component Typescript": {
"scope": "typescript,typescriptreact",
#!/bin/bash
#
# Access Docker containers running on ECS/Fargate using SSH.
#
# You'll need to install the Session Manager plugin for the `aws` command for this to
# work properly. On macOS: `brew install session-manager-plugin`.
#
# References:
# * https://gist.github.com/sjednac/c877e8e8dc09d6e2279209dfc7d9d4f8 (source code)
# * https://aws.amazon.com/blogs/containers/new-using-amazon-ecs-exec-access-your-containers-fargate-ec2/