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
| import multiprocessing | |
| import time | |
| def generate(queue, close): | |
| queue.put_nowait('x' * 65523) | |
| close.wait() | |
| def main(): |
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
| import locale | |
| import os | |
| import time | |
| import psycopg2 | |
| import requests | |
| DATABASE_URL = os.environ['DATABASE_URL'] | |
| WEBHOOK_URL = os.environ['WEBHOOK_URL'] |
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
| Just some text which includes <h1>HTML tags</h1> for testing. | |
| What about this one <script>alert('XSS!');</script> then? |
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
| class Group(Base, mixins.Timestamps): | |
| ... | |
| def __acl__(self): | |
| terms = [] | |
| read_principal = _read_principal(self) | |
| if read_principal is not None: | |
| terms.append((security.Allow, read_principal, 'read')) |
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
| import base64 | |
| import os | |
| from flask import Flask, Response | |
| from flask import abort, request | |
| app = Flask(__name__) | |
| @app.route("/") |
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
| $ docker run -i -t --rm gliderlabs/alpine:3.4 sh | |
| / # apk-install build-base python nodejs | |
| fetch http://alpine.gliderlabs.com/alpine/v3.4/main/x86_64/APKINDEX.tar.gz | |
| fetch http://alpine.gliderlabs.com/alpine/v3.4/community/x86_64/APKINDEX.tar.gz | |
| (1/33) Upgrading musl (1.1.14-r10 -> 1.1.14-r11) | |
| (2/33) Installing binutils-libs (2.26-r0) | |
| (3/33) Installing binutils (2.26-r0) | |
| (4/33) Installing gmp (6.1.0-r0) | |
| (5/33) Installing isl (0.14.1-r0) | |
| (6/33) Installing libgomp (5.3.0-r0) |
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
| <!DOCTYPE html> | |
| <html lang="en-US"> | |
| <head> | |
| <meta content="97Mj-wW7u8U1NOnkW1rfH-I1kgO0-a9YsgoesOk41R8" name="google-site-verification"> | |
| <!-- | |
| <esi:assign name="is_mobile" value="0" /> | |
| <esi:choose> | |
| <esi:when test="$(HTTP_USER_AGENT) matches_i '''SCH-I535|SPH-L710|SGH-N064|SGH-N035|SGH-T999|SGH-I747|GT-I9305|GT-I9300|android.+mobile|iphone|ipod|webos|blackberry.+webkit.+mobile|htc|opera\ mini|operamini|iemobile|opera\ mobi|lge|lg|palm|samsung|nokia|windows\ phone|windows\ ce|bb10|blackberry|Mobile.+Firefox|tizen.+mobile'''"> | |
| <esi:assign name="is_mobile" value="1" /> | |
| </esi:when> |
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
| 2016-08-25 14:59:36,856 [10] [h.db:INFO] created session: sess=<sqlalchemy.orm.session.Session object at 0x7f9679bda8d0> | |
| 2016-08-25 14:59:36,857 [10] [h.db:INFO] registering session with tm: sess=<sqlalchemy.orm.session.Session object at 0x7f9679bda8d0>, tm=<transaction._manager.TransactionManager object at 0x7f9679996250> | |
| 2016-08-25 14:59:36,857 [10] [h.db:INFO] session state: None | |
| 2016-08-25 14:59:36,858 [10] [h.db:INFO] after_begin (<sqlalchemy.orm.session.Session object at 0x7f9679bda8d0>, <sqlalchemy.orm.session.SessionTransaction object at 0x7f9679bda590>, <sqlalchemy.engine.base.Connection object at 0x7f9679ab | |
| b750>) | |
| 2016-08-25 14:59:36,879 [10] [h.tweens:INFO] would commit normally | |
| 2016-08-25 14:59:36,879 [10] [h.db:INFO] tm before commit | |
| 2016-08-25 14:59:36,881 [10] [h.db:INFO] after_flush (<sqlalchemy.orm.session.Session object at 0x7f9679bda8d0>, <sqlalchemy.orm.unitofwork.UOWTransaction object at 0x7f9679cdb4d0>) | |
| 2016-08-25 14:59:36,881 [10] [h.db:INFO] before_commit (<sqlalchemy.orm.session.Sessi |
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 __future__ import print_function | |
| import sys | |
| import requests | |
| requests.post('http://localhost:5000/account/_debug/counter?reset') | |
| print('.', end='') | |
| sys.stdout.flush() | |
| n = 1 |
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 __future__ import print_function | |
| import sys | |
| import requests | |
| requests.post('https://hypothes.is/account/_debug/counter?reset') | |
| print('.', end='') | |
| sys.stdout.flush() | |
| n = 1 |