- Understand and check Service Quota of ECS/Fargate and other related services
- Cluster
- CDK for ECS: blog
| openssl genrsa 2048 > private.pem | |
| openssl req -x509 -new -key private.pem -out public.pem | |
| openssl pkcs12 -export -in public.pem -inkey private.pem -out mycert.pfx |
This is what I was really doing while creating an example from this answer on Stack Overflow:
It turned out that I made several stupid mistakes and wasted a lot more time than it might look like from reading the answer. I eventually removed from the answer not so much out of embarrassment but because I didn't want to be accused that I am complicating the process on purpose to make Deno look better in comparison. The truth is that below ius exactly what I did while trying to create and publish a new module on npm written in TypeScript and use it with ts-node later:
| import { ExecutionContext, createParamDecorator } from '@nestjs/common'; | |
| import { ApiQuery } from '@nestjs/swagger'; | |
| export interface IPagination { | |
| page: number; | |
| limit: number; | |
| } | |
| export interface IPaginationResponse<T> { | |
| items: T[]; |
- You must have a heroku app deployed on the hobby tier. This is NOT the free tier and costs ~7/month
- i'm assuming you have homebrew installed. It will be need to install the Certbot client
- i'm also assuming you have the heroku CLI tools installed
first up, run this to install the certbot client
brew install certbotAs outlined here, there are a couple of situations where you may want/need to authenticate with GitHub by using an Access Token:-
- If you have Two-Factor Authentication (2FA) enabled.
- You are accessing an organisations protected content using SAML Single-Sign On (SSO).
In your GitHub account, go to Settings / Developer settings / Personal access tokens and select Generate New Token. Make a note of the token somewhere safe since this is the only chance you get to see it.
| 'use strict'; | |
| const crypto = require('crypto'); | |
| const ENCRYPTION_KEY = process.env.ENCRYPTION_KEY; // Must be 256 bits (32 characters) | |
| const IV_LENGTH = 16; // For AES, this is always 16 | |
| function encrypt(text) { | |
| let iv = crypto.randomBytes(IV_LENGTH); | |
| let cipher = crypto.createCipheriv('aes-256-cbc', Buffer.from(ENCRYPTION_KEY), iv); |
| console.reset = function () { | |
| return process.stdout.write('\033c'); | |
| } |