These are some of the very useful Magento 2 snippets which I came across while working with Magento 2.
You can find snippets by file name as I've kept them self descriptive. You can trigger fuzzy file finder in this repository by pressing t.
I'll add more time to time here in this repository.