What is this bug poop or dirt that keeps reappearing every few months by a wood beam?
Looks like dry wood termite droppings (frass) or pellets to me. 

Google termite droppings and you’ll see many pictures.