This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cordis@remarque:/tmp$ curl -svo /dev/null -A 'iPhone' "https://www.gearbrain.com/get-a-free-25-amazon-gift-card-when-you-sign-up-for-clean-energy-2641647793.html" | |
* Trying 3.123.165.116... | |
* Connected to www.gearbrain.com (3.123.165.116) port 443 (#0) | |
* found 148 certificates in /etc/ssl/certs/ca-certificates.crt | |
* found 604 certificates in /etc/ssl/certs | |
* ALPN, offering http/1.1 | |
* SSL connection using TLS1.2 / ECDHE_RSA_AES_128_GCM_SHA256 | |
* server certificate verification OK | |
* server certificate status verification SKIPPED | |
* common name: gearbrain.com (matched) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20261654 function calls (20004818 primitive calls) in 37.982 seconds | |
Ordered by: cumulative time | |
List reduced from 4353 to 871 due to restriction <0.2> | |
ncalls tottime percall cumtime percall filename:lineno(function) | |
1 0.000 0.000 37.988 37.988 ./content/routing/django_request_handler.py:16(process_request) | |
1 0.000 0.000 37.972 37.972 ./content/routing/django_request_handler.py:62(_view_page) | |
1 0.000 0.000 37.972 37.972 ./rebelmouse/decorators.py:674(wrapper) | |
1 0.000 0.000 37.972 37.972 ./content/routing/controllers.py:43(view_section_page) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> from community.models import SiteExtraManager | |
>>> site_id = 18284455 | |
>>> len(SiteExtraManager._cache_extra_get(site_id)) | |
87 | |
>>> | |
>>> from django.conf import settings | |
>>> from pprint import pprint | |
>>> pprint(settings.CACHES) | |
{'default': {'BACKEND': 'rm.memcached.EventletMemcachedCache', | |
'KEY_FUNCTION': 'rm.memcached.make_safe_key', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class IValidator(object): | |
__metaclass__ = ABCMeta | |
@abstractmethod | |
def validate(self, site): | |
""" | |
:type site: community.models.Site | |
:rtype: bool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h4>"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..."</h4> | |
<Assembler layout="listicle" numeration="{order: 'asc'}"> | |
<Particle id="???" href="???"> | |
<Assembiler layout="slideshow" thumbnails="{position: 'below'}"> | |
<Particle id="1" title="And 1" href="..."> | |
<Image id="19185714" href="https://assets.rbl.ms/19185714/980x.jpg"> | |
<Title><p>some caption...</p></Title> | |
<Credit><p>some credit...</p></Credit> | |
</Image> | |
<p>gsdfdg</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import os | |
import sys | |
import raven | |
CURRENT = os.path.dirname(__file__) | |
sys.path.insert(0, os.path.realpath(os.path.join(CURRENT, '..', '..'))) | |
sys.path.insert(1, os.path.realpath(os.path.join(CURRENT, '..', '..', 'rebelmouse'))) |