Skip to content

Instantly share code, notes, and snippets.

This a comparison to help myself decide my IDE, listed in order of importance.
## Context
1. Coding in Typescript for 2 year, 3 years on NodeJS before that, 15+ years in general (mostly Java)
2. Spent about 6 months on VS Code and 6 month with WebStorm
3. Cost is not a factor (company provides JetBrain licenses)
4. What my projects look like: back-end, OOP, Typescript, Mocha, ESLint, pnpm and monorepos (~15 packages, ~300 files)
## WebStorm does better
@rafaelliu
rafaelliu / cleanup.sh
Created September 10, 2021 01:23
Network cleanup
# ###### Delete Stack Sets and Instances
# CALL_AS="DELEGATED_ADMIN"
# RETAIN_PARAM="--retain-stacks" # "--no-retain-stacks" #
# BLACKLIST_PATTERN=("RecreateOrganizationControlRole-Isengard" )
# SETS=$(aws cloudformation list-stack-sets --call-as $CALL_AS | jq -r '.Summaries[] | select(.Status == "ACTIVE") | .StackSetName' )
@rafaelliu
rafaelliu / app.py
Created August 10, 2021 22:15
pycryptodome on Lambda using SAM
from Crypto.PublicKey import RSA
from Crypto.Cipher import PKCS1_OAEP
import binascii
import base64
DEFAULT_MESSAGE = b'my test essage'
def createKeys():
return RSA.generate(1024)
@rafaelliu
rafaelliu / jmeter-lambda
Last active July 7, 2021 17:38
JMeter test plan for Lambda
# Variables
export AWS_ACCESS_KEY_ID=<my key>
export AWS_SECRET_ACCESS_KEY=<my secret>
export REGION=us-east-1
export FUNCTION_NAME=python-test
# Build and start sigv4 proxy
git clone https://github.com/awslabs/aws-sigv4-proxy
cd aws-sigv4-proxy
docker build -t aws-sigv4-proxy .