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
import eventlet | |
import tasks | |
#from json import dump, load | |
from django.conf import settings | |
from glob import glob | |
json = eventlet.import_patched('json') | |
eventlet.monkey_patch() | |
poll = eventlet.GreenPool() |
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
import eventlet | |
import tasks | |
json = eventlet.import_patched('json') | |
from eventlet.queue import LightQueue | |
from time import sleep | |
eventlet.monkey_patch() | |
def processTask(cfgFile): | |
print ("Processing stuff here") |
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
# Mappings | |
curl -XGET 'http://localhost:9200/tokens,keywords/_mapping?pretty=true' | |
{ | |
"keywords" : { | |
"pt_BR" : { | |
"properties" : { | |
"keyword" : { | |
"type" : "string", | |
"boost" : 10.0, | |
"analyzer" : "keyword", |
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
curl -XGET 'http://localhost:9200/keywords/pt_BR/_search?pretty=true' -d ' | |
{ | |
"query": { | |
"fuzzy": { | |
"keyword": { | |
"value": "hoteis sao paulo", | |
"prefix_length": 0, | |
"min_similarity": 0.6 | |
} | |
} |
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
curl -XGET 'http://localhost:9200/keywords/pt_BR/_search?pretty=true' -d ' | |
{ | |
"query": { | |
"fuzzy": { | |
"keyword": { | |
"value": "cartões bradesco", | |
"prefix_length": 0, | |
"min_similarity": 0.6 | |
} | |
} |
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
# using fuzzy_like_this_field query | |
curl -XGET 'http://localhost:9200/tokens/pt_BR/_search?pretty=true' -d ' | |
{ | |
"query": { | |
"fuzzy_like_this_field": { | |
"pt_BR.keyword": { | |
"like_text": "cartões bradesco", | |
"prefix_length": 1, | |
"min_similarity": 0.7 | |
} |
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
primary dns 200.204.0.10 | |
secondary dns 200.204.0.138 |
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
Wordlist ver 0.732 - EXPECT INCOMPATIBLE CHANGES; | |
acrobat africa alaska albert albino album | |
alcohol alex alpha amadeus amanda amazon | |
america analog animal antenna antonio apollo | |
april aroma artist aspirin athlete atlas | |
banana bandit banjo bikini bingo bonus | |
camera canada carbon casino catalog cinema | |
citizen cobra comet compact complex context | |
credit critic crystal culture david delta | |
dialog diploma doctor domino dragon drama |
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
+ parse_args git-receive-pack ''\''myapp'\''' | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ return 0 | |
+ for arg in '"$@"' | |
+ [[ git-receive-pack =~ ^--.* ]] | |
+ for arg in '"$@"' | |
+ [[ 'myapp' =~ ^--.* ]] |
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
+ parse_args git-receive-pack ''\''myapp'\''' | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ for arg in '"$@"' | |
+ case "$arg" in | |
+ return 0 | |
+ for arg in '"$@"' | |
+ [[ git-receive-pack =~ ^--.* ]] | |
+ for arg in '"$@"' | |
+ [[ 'myapp' =~ ^--.* ]] |
OlderNewer