This lick can be used to return to E in a blues progression, or for endings of blues songs/solos. For better tone, try using downstrokes only in the bar 1. In the bar 2, there are 4 palm muted notes. The idea is to use dynamics in such way so that first notes in a lick come out loudest, and last notes come out more quiet.
We are using I-IV-V progression in the key of E. E blues scale, dorian mode and major third note is what we will use in combination (Major third is G#, and you won't find it in those two scales). For rhythm, almost all notes are eight triplets, so if you count three notes per click, you won't get lost.
I used Amplitube 3 software for this mini lick, tubescreamer and Mesa Boogie MKII emulations.
Guitar is a Fender Stratocaster, neck single pickup.