This is a real fun lick, got a kinda country flavour to it, but it works great in rock and and blues derivative style.
Experiment and see how many different ways you can use the idea - there are literally thousands! You can use your ear, or your brain, or best of all - use both!!
As written this lick would sound awesome over:
A7 -- because---> E and G are 5 and b7
C --- because---> E and G are 3 and 5
Emin -- because---> E and G are Root and b3
With a semitone bend instead of a tone bend:
C min --- because---> Eb and G are b3 and 5
Eb maj -- because---> Eb and G are Root and 3
Ab maj7 -- because---> Eb and G are 5 and 7
See how a little theory knowledge of the make up of chords can be applied to expand your one lick into many!