Metatags can be hard when abandoning the body field in favor of paragraphs. This post gives you a generic solution for the problem.
Most websites abandon the body field in favor of paragraphs. One flaw this has, is that no longer a summary is provided for your (auto-generated) meta description. This snippet fixes this issue.
There are use cases where you do not want drupal to send any mails at all. Here's a snippet that does the trick.
Often we create a custom settings form with stuff like social media url's or addresses. With this snippet you make the variables available in your page.twig.html file.
In the early days of Drupal 8 we used the EntityTypeManager to render some plugin blocks or other entities. But this changed a bit. Here's a snippet on how to render a block inside your twig files.
Image url is a must-have for webpages to be properly shareable on social media. With this token snippet you can set a media entity url with image style token.
A common case when using facet searches is where you want to list some terms and when people click on them you get redirected to a filtered view. This code helps you with that.
Entity references are widely used in drupal to link to other entity objects. Here's how to loop over them in a twig file.

There are some ways to make sure your loaded object is in fact an entity of type node. I prefer the following way. In addition I check if the entity types are correct too.

I found a nice way to build complex menu's with twig in Html. Here are a few snippets