Skip to content

Instantly share code, notes, and snippets.

View Suhail's full-sized avatar

Suhail Suhail

View GitHub Profile
location / {
gzip on;
gzip_http_version 1.0;
gzip_vary on;
gzip_comp_level 6;
gzip_proxied any;
gzip_types text/plain text/html text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_buffers 16 8k;
proxy_redirect off;
@Suhail
Suhail / gist:204372
Created October 7, 2009 19:48 — forked from damm/gist:204370
Restarting nginx: 2009/10/07 19:42:52 [emerg] 11068#0: "proxy_pass" may not have URI part in location given by regular expression, or inside named location, or inside the "if" statement, or inside the "limit_except" block in /etc/nginx/sites-enabled/api.domain.com:47
nginx.
location / {
gzip on;
gzip_http_version 1.0;
gzip_vary on;
gzip_comp_level 6;
gzip_proxied any;
gzip_types text/plain text/html text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
#!/usr/bin/env python
"""
client module for memcached (memory cache daemon)
Overview
========
See U{the MemCached homepage<http://www.danga.com/memcached>} for more about memcached.
#!/usr/bin/env python
"""
client module for memcached (memory cache daemon)
Overview
========
See U{the MemCached homepage<http://www.danga.com/memcached>} for more about memcached.
<!-- First include the script: -->
<script type="text/javascript">
var mp_protocol = (("https:" == document.location.protocol) ? "https://" : "http://");
document.write(unescape("%3Cscript src='" + mp_protocol + "api.mixpanel.com/site_media/js/api/mixpanel.js'
type='text/javascript'%3E%3C/script%3E"));
</script>
<!-- Initialize it with your project token -->
<!-- First include the script: -->
<script type="text/javascript">
var mp_protocol = (("https:" == document.location.protocol) ? "https://" : "http://");
document.write(unescape("%3Cscript src='" + mp_protocol + "api.mixpanel.com/site_media/js/api/mixpanel.js'
type='text/javascript'%3E%3C/script%3E"));
</script>
<!-- Initialize it with your project token -->
<script type="text/javascript" src="http://api.mixpanel.com/site_media/js/api/mixpanel.js"></script>
<script type="text/javascript">
try { var mpmetrics = MixpanelLib("YOUR_TOKEN"); } catch(err) {}
</script>
...
<script type="text/javascript" src="http://mixpanel.com/site_media/js/api/mpmetrics.js"></script>
<script type="text/javascript">
try {
mpmetrics.init("YOUR_TOKEN");
mpmetrics.register({"user type": "noob", "gender": "male"});
} catch(err) {}
</script>
<script type="text/javascript" src="http://mixpanel.com/site_media/js/api/mpmetrics.js"></script>
<script type="text/javascript">
try {
mpmetrics.init("YOUR_TOKEN");
mpmetrics.register({"user type": "noob", "gender": "male"});
} catch(err) {}
</script>
<script type="text/javascript" src="http://mixpanel.com/site_media/js/api/mpmetrics.js"></script>
<script type="text/javascript">
try {
mpmetrics.init("YOUR_TOKEN");
mpmetrics.register({"user type": "noob", "gender": "male"});
} catch(err) {}
</script>