Skip to content

Instantly share code, notes, and snippets.

@admc
Created May 20, 2009 20:50
Show Gist options
  • Save admc/115085 to your computer and use it in GitHub Desktop.
Save admc/115085 to your computer and use it in GitHub Desktop.
# local windmill preferences file
# warning - this file will be overwritten by windmill
# so any edits should be done while windmill
# is not active.
import windmill
from windmill.server import add_forward_condition, remove_forward_condition
from windmill.server import proxy
proxy.exclude_from_retry.append('www.google-analytics.com')
#proxy.first_forward_domains.append('fb.community.monkey.labs.slide.com')
proxy.first_forward_domains.append('static.slide.com')
conditions= [
lambda e: 'swf' not in e['reconstructed_url'] ,
lambda e: 'mozilla.com' not in e['reconstructed_url'],
]
for c in conditions: add_forward_condition(c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment