Adam Kokesh has plead guilty to various charges tied to a stunt he posted to YouTube, where he allegedly loaded a shotgun in Washington, DC.

Adam Kokesh, the Fairfax-based gun rights advocate, pleaded guilty Wednesday to a variety of charges associated with an Independence Day incident in which he videotaped himself loading a shotgun in Freedom Plaza, just blocks from the White House.

Kokesh, 31, was ordered released from D.C. jail, where he has been for nearly four months, pending a January sentencing hearing.