Skip to content

Instantly share code, notes, and snippets.

@andrewodri
andrewodri / pdf-to-ttf.md
Created June 12, 2020 01:11
Extract fonts from PDF

First, we need to open a shell to the PDF tools Docker container:

docker run --rm -it -v ${PWD}:/pdf gkmr/pdf-tools:latest /bin/sh

Then we need to run the following commands:

cd /pdf
@MatthewJDavis
MatthewJDavis / get-aws-cw-target-id.sh
Created February 4, 2021 14:06
Get ID of AWS cloudwatch event target
# To use the terraform import aws_cloudwatch_event_target provider, we need the rule name and target ID. To find the target ID,
# run the following with the AWS cli.
aws events list-targets-by-rule --rule "ruleName"
# This will return the following and the ID can be used to import the resource.
#{
# "Targets": [
# {