This a a blues scale (with added maj 6th!) lick that I yoinked from a Phil X youtube video. If you don’t know who Phil X is, then check out this video. Not only does he ROCK but he is totally hilarious at times. I love how he shoots from the hip in all those guitar videos and always sounds great.
This lick, transcribed from another of his videos, would fit in a country context as well as a metal/shred solo. You can download a PDF file with tab for the lick here.