Skip to content

Instantly share code, notes, and snippets.

View thpham's full-sized avatar

Thomas Kim Pham thpham

View GitHub Profile
import * as cdk from '@aws-cdk/core';
import * as ec2 from '@aws-cdk/aws-ec2'; // import ec2 library
import * as iam from '@aws-cdk/aws-iam';
import * as elbv2 from '@aws-cdk/aws-elasticloadbalancingv2';
import * as elbvtargets from '@aws-cdk/aws-elasticloadbalancingv2-targets';
import * as ssm from '@aws-cdk/aws-ssm';
import * as kms from '@aws-cdk/aws-kms';
export class InfraCdkappMysqlStack extends cdk.Stack {
@thpham
thpham / merge_fonts.py
Created January 15, 2025 22:12
Create a custom font file and copy missing glyphs from source font.
import fontforge
# Open the source and target fonts
source_font = fontforge.open("fa-brands-400.ttf")
target_font = fontforge.open("original.ttf")
# Define the list of missing glyphs (for simplicity, you can define them manually)
missing_glyphs = ["x-twitter", "square-x-twitter"] # Add your missing glyphs here
# Iterate over each missing glyph