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
5 auf 5 verteilen | |
50000 5 = 5!/4! | |
41000 20 = 5!/3! | |
32000 20 = 5!/3! | |
31100 30 = 5!/2!/2! | |
22100 30 = 5!/2!/2! | |
21110 20 = 5!/3! | |
11111 1 = 5!/5! |
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
my $result = $self->es->search( | |
index => $self->index, | |
type => ['file'], | |
query => { "match_all" => {} }, | |
"filter" => { | |
"and" => [ | |
{ "exists" => { "field" => "file.documentation" } }, | |
{ "term" => { "file.status" => "latest" } }, | |
{ "prefix" => { "file.documentation" => "DBIx::" } } | |
] |
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
[ERROR] ** ElasticSearch::Error::Missing at /Users/mo/perl5/perlbrew/perls/perl-5.14.0/lib/site_perl/5.14.0/ElasticSearch/Transport/HTTPLite.pm line 56 : | |
Not Found | |
(404) | |
With vars:{ | |
'request' => { | |
'qs' => { | |
'scroll' => '5m' | |
}, | |
'cmd' => '/v0/author/_search', |
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
[ERROR] ** ElasticSearch::Error::Missing at /Users/mo/perl5/perlbrew/perls/perl-5.14.0/lib/site_perl/5.14.0/ElasticSearch/Transport/HTTPLite.pm line 56 : | |
Not Found | |
(404) | |
With vars:{ | |
'request' => { | |
'qs' => { | |
'scroll' => '5m' | |
}, | |
'cmd' => '/v0/author/_search', |
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
ps aux | grep elast | |
metacpan 10079 73.6 14.0 1550760 288244 pts/0 Sl 11:05 1:01 /usr/bin/java -Xms1g -Xmx1g -Xss128k -Djline.enabled=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=1 -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=/var/www/metacpan/elasticsearch -cp :/var/www/metacpan/elasticsearch/lib/elasticsearch-0.16.0.jar:/var/www/metacpan/elasticsearch/lib/*:/var/www/metacpan/elasticsearch/lib/sigar/* org.elasticsearch.bootstrap.ElasticSearch |
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 -XDELETE localhost:9200/test | |
curl -XPUT 'localhost:9200/test?pretty=1' -d ' | |
{ | |
"settings":{ | |
"analysis": { | |
"analyzer": { | |
"camelcase":{ | |
"type": "custom", | |
"tokenizer":"standard", | |
"filter":["camelcase", "lowercase"] |
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
x1 <= 1 --> x2 => 0 | |
x1 >= 2 --> x2 = 0 |
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
ssh-dss AAAAB3NzaC1kc3MAAACBAO3cZrZjvoVjtjNCqDbXPr2B1kZwdl0P7Cb6qgv+3y/OPKJ/h9I6YX9+QBl++klBakD3QZbR2XPBDDZR6pIFVbulgXjlRz7I0H2VRV1PsFjKlpg4mQ3Q2I26VGCaD5zElyyoGPhgviev7antK3QwIAkUFOoTMz98uJR1AbOSkb8jAAAAFQDMquqT5Y80odg1iY88Q6NbGkqCuwAAAIAmwAuG/BphMIAVi29WTM6gyOfRQfo1bQeOyZAYtM71sd/dSEYt2jGB4tzpA0mIFz6WG6IAibfFyc2Gj4Cyu2KRRP7UvJJ0GNfuqpH4+vSKrVTW1PPfQw/qxHbhtufBP3SqUNZGwY71r5Pf1C7uHWf6mWauMoGBR5hKfsDacUbMpwAAAIEAs5yqvdDF21JbyEUoGnck2RxYbWTDxIlr6WvQQaSFl3YOE/zeeE6Zqd2UVn5sxcMRenq8d/JFBZYBQ/5P9OwkJKinzvjYZrRa4TsWMxnLAO59O1ecPJ1E7Z96SMSnJlxt63dWpcsY8hRvRmk2NRytgfPzaI84E7AYp0vtB6G+oYI= mo@localhost |
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
''' | |
Created on 20.05.2011 | |
@author: mo | |
''' | |
import unittest | |
class Test(unittest.TestCase): |
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
server { | |
listen 80; | |
server_name api.beta.metacpan.org; | |
access_log /var/www/metacpan/log/api/access.log; | |
error_log /var/www/metacpan/log/api/error.log error; | |
location / { | |
proxy_pass http://localhost:5000/; | |
proxy_redirect off; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; |