Add this in your ini file:
[alembic:exclude]
tables = spatial_ref_sys
In env.py:
import re
Add this in your ini file:
[alembic:exclude]
tables = spatial_ref_sys
In env.py:
import re
| import uuid | |
| import wtforms_json | |
| from sqlalchemy import not_ | |
| from sqlalchemy.dialects.postgresql import UUID | |
| from wtforms import Form | |
| from wtforms.fields import FormField, FieldList | |
| from wtforms.validators import Length | |
| from flask import current_app as app | |
| from flask import request, json, jsonify, abort |
| rabbitmqctl list_connections pid port state user vhost recv_cnt send_cnt send_pend name | awk '{print "rabbitmqctl close_connection \"" $1 "\" \"manually closing idle connection\"" | "/bin/bash" }' |
| curl -XPUT 'http://localhost:9200/us/user/1?pretty=1' -d ' | |
| { | |
| "email" : "[email protected]", | |
| "name" : "John Smith", | |
| "username" : "@john" | |
| } | |
| ' | |
| curl -XPUT 'http://localhost:9200/gb/user/2?pretty=1' -d ' | |
| { |
| #!/usr/bin/env python2 | |
| """ | |
| Author: takeshix <[email protected]> | |
| PoC code for CVE-2014-0160. Original PoC by Jared Stafford ([email protected]). | |
| Supportes all versions of TLS and has STARTTLS support for SMTP,POP3,IMAP,FTP and XMPP. | |
| """ | |
| import sys,struct,socket | |
| from argparse import ArgumentParser |
| ##TCP FLAGS## | |
| Unskilled Attackers Pester Real Security Folks | |
| ============================================== | |
| TCPDUMP FLAGS | |
| Unskilled = URG = (Not Displayed in Flag Field, Displayed elsewhere) | |
| Attackers = ACK = (Not Displayed in Flag Field, Displayed elsewhere) | |
| Pester = PSH = [P] (Push Data) | |
| Real = RST = [R] (Reset Connection) | |
| Security = SYN = [S] (Start Connection) |
| # Multiple inheritance with Modules as an alternative to injected composition | |
| # from Sandi Metz's talk [Nothing is Something](http://confreaks.tv/videos/bathruby2015-nothing-is-something) | |
| # Like Sandi's 'direct' DI method this has behavior outside of the base class | |
| # that gets composed together. However in this gist I compose modules in class | |
| # definitions instead of injecting collaborators. | |
| # Tradeoffs between this and Sandi's version are that in this case the API consumer doesn't | |
| # have to know how to make a RandomEchoHouse (no `house = House.new(formatter: Whatever.new)`), | |
| # but also the API consumer can't make anything not already accounted for either. |
I've moved this gist to https://github.com/phynet/iOS-Schemes please check it there ;)
| GET /my_index/my_type/_search | |
| { | |
| "query": { | |
| "function_score": { | |
| "query": { <ORIGINAL QUERY> }, | |
| "functions": [ | |
| { | |
| "filter" : { | |
| "term" : { "_all" : "cat"} | |
| }, |