I knew how to play the first one and double some tracks and stuff.
The second one was me looking at a Buckethead video and saying "Yeah...that'll work" and playing by ear. It actually sound rather close to the video I was going off of so I was happy.