This file contains hidden or 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
| cursor = (shard 0, id 0, group id 0) | |
| > get 10k items from shard 0 | |
| > group id set to max(id of results), say 20000 | |
| > get 10k items from shard 1 < group id (20000) | |
| > adjust id if we hit 10k+ items, and repeat on same shard | |
| > once group id is hit, go to next shard, and repeat same logic used on shard 1 | |
| > once last shard is done, go back to shard 0, get the next 10k results, and reset group id |
This file contains hidden or 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
| BeautifulSoup==3.2.1 | |
| Django==1.5.1 | |
| South==0.7.6 | |
| amqp==1.0.11 | |
| amqplib==1.0.2 | |
| anyjson==0.3.3 | |
| billiard==2.7.3.26 | |
| -e git+https://github.com/mlafeldt/camplight#egg=camplight | |
| celery==3.0.17 | |
| celerymon==1.0.3 |
This file contains hidden or 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
| - 2 runs, one warmup, one timed | |
| - warmup was 5m | |
| - timed run 30s | |
| - default sentry settings (no database access) | |
| - 3 sync workers | |
| - sentry start | |
| - os-x (brew install pypy --devel) | |
| - siege -c 3 http://localhost:9000/login/ -b -t30S | |
| == pypy 2.0 beta 2 |
This file contains hidden or 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
| # pypy | |
| 100 requests serviced in 17.763s | |
| avg of 0.178s/req, 5 req/s | |
| real 0m27.111s | |
| user 0m22.705s | |
| sys 0m0.646s | |
| # python2.7 |
This file contains hidden or 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 django.contrib.auth.hashers import BCryptPasswordHasher | |
| from django.utils.crypto import constant_time_compare | |
| from django.utils.encoding import force_bytes | |
| class DjangoBCryptPasswordHasher(BCryptPasswordHasher): | |
| """ | |
| Handles legacy passwords wich were hashed with the 'bc$' algorithm via | |
| django-bcrypt. | |
| """ |
This file contains hidden or 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
| dcramer:tenxer in ~/Development/tenxer on git:master+ | |
| $ arc lint --trace | |
| libphutil loaded from '/usr/local/include/php/libphutil/src'. | |
| arcanist loaded from '/usr/local/include/php/arcanist/src'. | |
| Loading phutil library from '/usr/local/include/php/libdisqus/src'... | |
| >>> [0] <exec> $ git rev-parse --show-cdup | |
| <<< [0] <exec> 6,196 us |
This file contains hidden or 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
| $9 personal account, 3k / day (no team members) | |
| $24 for 7.5k / day | |
| $79 for 25k / day | |
| $299 for 100k / day | |
| an exception with a stacktrace is ~5kb in storage (excluding giant ruby/java exceptions that can go over those bounds easily) | |
| - all plans have unlimited projects | |
| - SLAs on any pricetag over $200? |
This file contains hidden or 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
| Exception in thread Thread-2: | |
| Traceback (most recent call last): | |
| File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner | |
| self.run() | |
| File "/var/lib/jenkins/workspace/build/env/local/lib/python2.7/site-packages/paramiko/agent.py", line 116, in run | |
| self._communicate() | |
| File "/var/lib/jenkins/workspace/build/env/local/lib/python2.7/site-packages/paramiko/agent.py", line 126, in _communicate | |
| events = select([self._agent._conn, self.__inr], [], [], 0.5) | |
| TypeError: argument must be an int, or have a fileno() method. |
This file contains hidden or 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 gevent import Greenlet | |
| class Config(object): | |
| def __init__(self): | |
| self.url = 'http://localhost:9000/' | |
| self.timeout = 5 | |
| class EventLoop(Greenlet): |
This file contains hidden or 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
| <style type="text/css"> | |
| * { | |
| font-family: 'Open Sans', Helvetica, 'Bitstream Vera Sans', Arial, Verdana, sans-serif; | |
| } | |
| body { | |
| font-size: 12px; | |
| } | |
| a { | |
| color: #000; |