Skip to content

Instantly share code, notes, and snippets.

@jatin-lab49
jatin-lab49 / github-images-cdn.md
Last active May 27, 2020 19:21
TIL-Lab49/github_gist_images
@jatin-lab49
jatin-lab49 / plantuml-lines.md
Last active May 27, 2020 19:19
TIL-Lab49/plantuml-lines

Linetypes in PlantUML

Sometimes your boxes in PlantUML end up next to each other. In this case, PlantUML by default adds a curved line which doesn't look very tidy.

gist_demo_reg

To fix this, you can use the skinparam linetype as below

Add ortho linetype:

@jatin-lab49
jatin-lab49 / ionic-router-issues.md
Created May 21, 2020 14:08
TIL-Lab49/ionic-router

So, if using the IonReactRouter in your Ionic React app, do note that the Page/component does not get unmounted when navigating to another component.

This is by design, per the discussion here: ionic-team/ionic-framework#20543

Confusing, but good to know!

@jatin-lab49
jatin-lab49 / cloudfront-cache.md
Last active May 6, 2020 22:13
TIL-Lab49/cloudfront-caching

Managing S3 cache-control for AWS Cloudfront

Turns out you need can set the Cache-Control value for your S3 objects to be used with AWS Cloudfront in two ways!
The documentation at https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html says it has to be in the MetaData property.
But, you can also have it defined as a CacheControl value on the object. This can be done by passing it as the argument --cache-control max-age=0 to the aws s3 sync command.

Keybase proof

I hereby claim:

  • I am jatin-lab49 on github.
  • I am jatinlab49 (https://keybase.io/jatinlab49) on keybase.
  • I have a public key ASDL2gGxoVavFI2u3i8X3sZNTTObiZazjtyEP0DGDfZj-wo

To claim this, I am signing this object: