Just say no. If a cop asks to search you, your stuff, your house, just say no. You don't have to consent. You can ignore their bully tactics (a possible example is below). If they wanna search you, and can't see or smell any reasonable reason to search your car/house/hotel room, they gotta get a warrant. The important corrolary to this: hide your shit. Don't leave a gun on the front seat of your car because that fits into one of the exceptions to the general rule of warrants being required: it's in plain view (ditto with plain smell - scuba dry boxes, anyone?), giving rise to probable cause. There are other exceptions, but they all involve higher risk activities.
(This isn't legal advice and I'm not condoning or supporting any law-breaking activities, I'm just paraphrasing bar review materials.)
Don't forget the core message of my first year criminal law class: don't talk to cops.
For graphical illustration of such concepts, here's Ellen Forney's "How d'ya smoke pot and stay out of jail?"

I don't know if the cop freaking out video is authentic but the second video about 4th Amendment rights is correct.

i haaaaaate the police, they are the worst here, and their uniforms are reno 911 to a t. i mean right down to the hair and the mustaches....
Haha! I'm not a lawyer and I wouldn't know what to do if you called me from jail! In my most recent convo with Josh The Cop pic: (e:heidi,55385) when he did my IRS fingerprints a couple weeks ago, we talked about what kind of law I'm going to practice. I said that if he's got somebody in custody and they want to call me as their lawyer, he can laugh at them. I'm interested in criminal law from his side - how it's impacting the borough and our community members. For everyone else, I recommend caution, prevention and don't call me.
At least I have the number for a lawyer down. ;o)
That 2nd link is pretty interesting.... Think the cop got so upset cause he thought ok I won't give the guy the ticket so then when I ask they will let me look and get him for something else?
Looked at the first link and that is pretty good.... Some of it seems funny at first and then you I should say I think about what I read in the paper and it is oh they saw no seat belt or ran a red light and then they find with drugs and guns or what ever....