This a blues/rock lick. You can hear similar licks in albums by Joe Satriani, Kenny Wayne, Zakk Wylde etc. Play it with your heart!
We're playing in the F minor pentatonic scale + "blue" note.
I use the middle pickup of my Ibanez Rg7620 guitar. I set a Line 6 Pod X3 live, with a Twin reverb Preamp + Tubescreamer pedal.