Jazz/funk dominant 7th riff, followed by a dominant ascending lick. Watch out for the muted strings, and pinky stretch on the C# note.
This is a major-based lick on the dominant chord of the D major key. I also use the mixolydian scale and blue notes in A.
I used a Gibson ES-335 electric guitar, neck humbucker, Amplitube 3 software (Roland Jazz Chorus, medium settings, with chorus), some reverb, vintage compressor stomp, and post tube rack compressor.