A lot of water has flowed under the bridge since then, when the theme of rainbow tables was at its peak, but, nevertheless, the idea is entertaining. It is about this kind of intricate tables that I want to tell you.
- Flow of lua nginx module directives: https://openresty-reference.readthedocs.io/en/latest/Directives/
body_filter_by_luadocumentation: https://github.com/openresty/lua-nginx-module#body_filter_by_lua- Following sample is from this site: https://groups.google.com/d/msg/openresty-en/5PWmL2f70x8/R2DUMsNUAgAJ
http {
proxy_cache_path /tmp/cache levels=1:2 keys_zone=cache:60m max_size=1G;
server {
listen 8080;
location /replace-body {
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
| # Copy this file and run mitmproxy like this:: | |
| # | |
| # mitmproxy -s mitmproxy-quicker.py --mode reverse:http://dummy.invalid | |
| # | |
| # Then edit the code below. For example, | |
| # http://localhost:8080/index.html will serve the HTML page defined below. | |
| # mitmproxy will automatically reload the script whenever you save it to disk. | |
| # You can specify a real fallback upstream instead of ``dummy.invalid``, | |
| # or remove the ``--mode`` option altogether for a regular (forward) proxy. | |
| # |
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
| # common/admin.py | |
| class InputFilter(admin.SimpleListFilter): | |
| template = 'admin/input_filter.html' | |
| def lookups(self, request, model_admin): | |
| # Dummy, required to show the filter. | |
| return ((),) | |
| def choices(self, changelist): |
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
| /* http://meyerweb.com/eric/tools/css/reset/ | |
| v2.0-modified | 20110126 | |
| License: none (public domain) | |
| */ | |
| html, body, div, span, applet, object, iframe, | |
| h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
| a, abbr, acronym, address, big, cite, code, | |
| del, dfn, em, img, ins, kbd, q, s, samp, | |
| small, strike, strong, sub, sup, tt, var, |
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
| # -*- coding: utf-8 -*- | |
| """ | |
| admin.py | |
| Auto-register admin classes with fields and links to linked model classes | |
| based on http://djangosnippets.org/snippets/997/ | |
| """ |
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 axios from 'axios' | |
| /** | |
| * Config global for axios/django | |
| */ | |
| axios.defaults.xsrfHeaderName = "X-CSRFToken" | |
| axios.defaults.xsrfCookieName = 'csrftoken' | |
| export default axios |
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
| [program:test] | |
| command=/usr/bin/python /home/ubuntu/test.py | |
| directory=/home/ubuntu | |
| autostart=true | |
| autorestart=true | |
| startretries=3 | |
| stderr_logfile=/home/ubuntu/test.err.log | |
| stdout_logfile=/home/ubuntu/test.out.log | |
| user=ubuntu |
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 celery import Task | |
| from celery.task import task | |
| from my_app.models import FailedTask | |
| from django.db import models | |
| @task(base=LogErrorsTask) | |
| def some task(): | |
| return result | |
| class LogErrorsTask(Task): |