Get involved in politics.
It's tempting to believe you can enact change from your desk chair, writing smart code and angry tweets to outwit the spies and inform the people. Well, we're not there just yet.
The people making the decisions that lead to these events - the most powerful people in the world - grew up in an age where, to produce change, you would get out into the streets and stir things up. Step out of your comfort zone, address the public and bring them to your side. Many people don't see the harm in a surveillance state. To prevent one, you must show the public why it is a bad thing and how they can speak out.
Democracy only works when your views are heard by those with the power to bring change. Not the background rumble of a subjugated people, but the articulate demands of an informed electorate with high-profile spokespeople and popular support.