Watch the Don't Step in the Hole online guitar lesson by Jon Finn from 30 Melodic Modal Rock Licks You MUST Know
This is called "Don't Step in the Hole" because the rhythm is just slightly off kilter. Not so much that you think, "How weird!" But, enough so that you really have to pay close attention to the counting.
Check the notation and tablature to get the finer details. Practice with the backing track, then invent your own version of this lick!